Skip to content

Commit 47c1cbd

Browse files
author
root
committed
为了控制显存,只提交短样本
1 parent 5c5ba79 commit 47c1cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agentlightning/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ async def run_async(self) -> bool:
242242
#降低最大rollout
243243
import random
244244
new_result = []
245-
if len(result) > 10:
245+
while len(new_result) < 10:
246246
#手动控制global token num 不超过1万
247247
global_token_num = 0
248248
while global_token_num > 10000:

0 commit comments

Comments
 (0)