qibin0506 commited on
Commit
03b00ba
·
verified ·
1 Parent(s): ec47df1

Delete train_distill.py

Browse files
Files changed (1) hide show
  1. train_distill.py +0 -22
train_distill.py DELETED
@@ -1,22 +0,0 @@
1
- from llm_trainer import SFTTrainer
2
- from utils import init_env, get_distill_config, get_eval_prompt
3
-
4
-
5
- if __name__ == '__main__':
6
- init_env()
7
-
8
- eval_prompts = [
9
- get_eval_prompt('写一篇介绍太阳系行星的科普文章'),
10
- get_eval_prompt('请问今天北京天气如何??', add_think_tag=True, no_think=True),
11
- get_eval_prompt('哪吒和孙悟空谁更厉害?', add_think_tag=True),
12
- get_eval_prompt('保持健康的三个提示是什么?', add_think_tag=True, no_think=True),
13
- get_eval_prompt('你是谁?', add_think_tag=True),
14
- get_eval_prompt('你叫什么?')
15
- ]
16
-
17
- trainer = SFTTrainer(
18
- train_config=get_distill_config(),
19
- eval_prompts=eval_prompts
20
- )
21
-
22
- trainer.train()