Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett4wade committed Aug 27, 2024
1 parent 9440c7f commit 8b2c2d2
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 = rpc.n_mbs
min_n_seqs_per_dp = rpc.n_mbs if rpc.n_mbs is not None else 1
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 8b2c2d2

Please sign in to comment.