xlin 0.1.27__tar.gz → 0.1.28__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xlin
3
- Version: 0.1.27
3
+ Version: 0.1.28
4
4
  Summary: toolbox for LinXueyuan
5
5
  License: MIT
6
6
  Author: LinXueyuanStdio
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "xlin"
3
- version = "0.1.27"
3
+ version = "0.1.28"
4
4
  description = "toolbox for LinXueyuan"
5
5
  authors = ["LinXueyuanStdio <23211526+LinXueyuanStdio@users.noreply.github.com>"]
6
6
  license = "MIT"
@@ -164,7 +164,7 @@ def xmap(
164
164
  raise
165
165
 
166
166
  # 处理数据
167
- with tqdm(total=total_items, desc="处理数据", unit="") as pbar:
167
+ with tqdm(total=total_items, desc="Map", unit="examples") as pbar:
168
168
  # 跳过已处理的项目
169
169
  pbar.update(start_idx)
170
170
 
@@ -182,8 +182,7 @@ def xmap(
182
182
  pbar.update(len(batch))
183
183
 
184
184
  # 性能统计
185
- items_per_second = len(batch) / batch_time if batch_time > 0 else 0
186
- pbar.set_postfix_str(f"速率: {items_per_second:.1f} 项/秒")
185
+ pbar.set_postfix_str(f"{batch_time:.1f} s/batch, {len(results)} examples")
187
186
 
188
187
  # 缓存逻辑
189
188
  if need_caching and (i // batch_size) % cache_batch_num == 0:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes