mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-22 03:03:23 +00:00
Merge pull request #6347 from hpcaitech/hotfix/fix_num_update_per_episode
[fix] fix num update per episode
This commit is contained in:
commit
0e69b98c28
@ -16,7 +16,7 @@ def get_jsonl_size_fast(path: str) -> int:
|
||||
with open(path) as f:
|
||||
lines = f.readlines()
|
||||
lines = [line for line in lines if line.strip()]
|
||||
return len(lines) - 1
|
||||
return len(lines)
|
||||
|
||||
|
||||
def get_dp_size_fast(n_procs: int, plugin_config: Dict[str, Any]) -> int:
|
||||
|
Loading…
Reference in New Issue
Block a user