mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-28 17:29:30 +00:00
fix pre-commit
This commit is contained in:
parent
c1ba77ec26
commit
37f040a883
1 changed files with 6 additions and 6 deletions
|
|
@ -34,12 +34,12 @@ def grab_exact_from_heterogeneous_queue(
|
||||||
max_group_size = 0
|
max_group_size = 0
|
||||||
|
|
||||||
for item in queue:
|
for item in queue:
|
||||||
l = len(item["tokens"])
|
length = len(item["tokens"])
|
||||||
lengths.append(l)
|
lengths.append(length)
|
||||||
group_sizes.append(l)
|
group_sizes.append(length)
|
||||||
total_tokens += l
|
total_tokens += length
|
||||||
if l > max_group_size:
|
if length > max_group_size:
|
||||||
max_group_size = l
|
max_group_size = length
|
||||||
|
|
||||||
if total_tokens < batch_size:
|
if total_tokens < batch_size:
|
||||||
return None, queue
|
return None, queue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue