mirror of
https://github.com/deepseek-ai/DeepSeek-Coder
synced 2024-12-05 02:24:46 +00:00
Update eval_instruct.py
This commit is contained in:
parent
0504740537
commit
020e786bb8
@ -67,7 +67,7 @@ def generate_main(args):
|
|||||||
|
|
||||||
generated_examples = []
|
generated_examples = []
|
||||||
for ex in tqdm(examples, desc='Generating'):
|
for ex in tqdm(examples, desc='Generating'):
|
||||||
gen_example = generate_one(ex, lang, tokenizer, model)
|
gen_example = generate_one(ex, args.language, tokenizer, model)
|
||||||
generated_examples.append(gen_example)
|
generated_examples.append(gen_example)
|
||||||
|
|
||||||
print("Generate all over!!!")
|
print("Generate all over!!!")
|
||||||
@ -125,4 +125,4 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
||||||
generate_main(args)
|
generate_main(args)
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user