Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
add batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecovlee committed Jul 18, 2024
1 parent 41b4410 commit 4a98493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mlora/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ def _dispatch_task_in(
else:
per_task_jobs = concurrent_jobs

per_task_jobs = min(per_task_jobs, config.batch_size)

batch_start_idx = len(input_tokens)
while per_task_jobs > 0 and len(config.data_) > 0:
per_task_jobs = per_task_jobs - 1
Expand Down

0 comments on commit 4a98493

Please sign in to comment.