Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett4wade committed Aug 26, 2024
1 parent 872bac8 commit 9440c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion realhf/system/master_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ async def model_rpc_request_func(
assert sample.bs % dp_size == 0
min_n_seqs_per_dp = sample.bs // dp_size
else:
min_n_seqs_per_dp = 1
min_n_seqs_per_dp = rpc.n_mbs
split_spec = sample.get_split_spec(dp_size, min_size=min_n_seqs_per_dp)
partitions = split_spec.partitions
target_mapping = {i: list(range(v[0], v[1])) for i, v in enumerate(partitions)}
Expand Down

0 comments on commit 9440c7f

Please sign in to comment.