File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -479,7 +479,9 @@ def pattern_match(patterns, source_list):
479
479
elif isinstance (task_name , str ):
480
480
group_task_objects .append (top_level_task )
481
481
else :
482
- raise ValueError ("The task object is of an unhandled type. Unable to override fewshot values." )
482
+ raise ValueError (
483
+ "The task object is of an unhandled type. Unable to override fewshot values."
484
+ )
483
485
484
486
for task_obj in group_task_objects :
485
487
if type (task_obj ) == tuple :
@@ -561,5 +563,5 @@ def run_eval_harness(
561
563
num_fewshot = num_fewshot ,
562
564
bootstrap_iters = bootstrap_iters ,
563
565
use_cache = False ,
564
- limit = neox_args .eval_task_limit
566
+ limit = neox_args .eval_task_limit ,
565
567
)
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ reduce_block_into_lanes(T* x,
277
277
final = x[tid] + x[tid + 32 ];
278
278
else
279
279
final = val;
280
- // __SYNCWARP();
280
+ // __SYNCWARP();
281
281
282
282
#pragma unroll
283
283
for (int i = 16 ; i >= lanes; i >>= 1 )
@@ -321,7 +321,7 @@ reduce_block_into_lanes_max_op(T* x,
321
321
final = fmaxf (fabsf (x[tid]), fabsf (x[tid + 32 ]));
322
322
else
323
323
final = val;
324
- // __SYNCWARP();
324
+ // __SYNCWARP();
325
325
326
326
#pragma unroll
327
327
for (int i = 16 ; i >= lanes; i >>= 1 )
Original file line number Diff line number Diff line change @@ -1626,8 +1626,12 @@ def train(
1626
1626
lr_scheduler = lr_scheduler ,
1627
1627
)
1628
1628
# Evaluation
1629
- is_eval_internal = neox_args .eval_interval and iteration % neox_args .eval_interval == 0
1630
- is_validation_configured = bool (neox_args .do_valid ) or (isinstance (neox_args .eval_tasks , list ) and len (neox_args .eval_tasks ) > 0 )
1629
+ is_eval_internal = (
1630
+ neox_args .eval_interval and iteration % neox_args .eval_interval == 0
1631
+ )
1632
+ is_validation_configured = bool (neox_args .do_valid ) or (
1633
+ isinstance (neox_args .eval_tasks , list ) and len (neox_args .eval_tasks ) > 0
1634
+ )
1631
1635
if is_eval_internal and is_validation_configured :
1632
1636
prefix = "iteration {}" .format (iteration )
1633
1637
evaluate_and_print_results (
You can’t perform that action at this time.
0 commit comments