Skip to content

Commit c60d595

Browse files
Kyle1668Quentin-Anthony
authored andcommitted
Run pre-commit
1 parent a4c8e00 commit c60d595

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

eval_tasks/eval_adapter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ def pattern_match(patterns, source_list):
479479
elif isinstance(task_name, str):
480480
group_task_objects.append(top_level_task)
481481
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+
)
483485

484486
for task_obj in group_task_objects:
485487
if type(task_obj) == tuple:
@@ -561,5 +563,5 @@ def run_eval_harness(
561563
num_fewshot=num_fewshot,
562564
bootstrap_iters=bootstrap_iters,
563565
use_cache=False,
564-
limit=neox_args.eval_task_limit
566+
limit=neox_args.eval_task_limit,
565567
)

megatron/fused_kernels/type_shim.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ reduce_block_into_lanes(T* x,
277277
final = x[tid] + x[tid + 32];
278278
else
279279
final = val;
280-
// __SYNCWARP();
280+
// __SYNCWARP();
281281

282282
#pragma unroll
283283
for (int i = 16; i >= lanes; i >>= 1)
@@ -321,7 +321,7 @@ reduce_block_into_lanes_max_op(T* x,
321321
final = fmaxf(fabsf(x[tid]), fabsf(x[tid + 32]));
322322
else
323323
final = val;
324-
// __SYNCWARP();
324+
// __SYNCWARP();
325325

326326
#pragma unroll
327327
for (int i = 16; i >= lanes; i >>= 1)

megatron/training.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,8 +1626,12 @@ def train(
16261626
lr_scheduler=lr_scheduler,
16271627
)
16281628
# 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+
)
16311635
if is_eval_internal and is_validation_configured:
16321636
prefix = "iteration {}".format(iteration)
16331637
evaluate_and_print_results(

0 commit comments

Comments
 (0)