Skip to content

Commit

Permalink
fix the context manager call
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Sep 4, 2023
1 parent 5e4a760 commit 83d904a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def tokenize_evals(example):
"subject": example["subject"],
}

with dist_state.main_process_first:
with dist_state.main_process_first():
bench_dataset = bench_dataset.map(tokenize_evals)
bench_dataset = bench_dataset.filter(lambda x: x["labels"][-2] in abcd_idx)

Expand Down

0 comments on commit 83d904a

Please sign in to comment.