2025-05-27 18:55:46 +08:00
|
|
|
{
|
|
|
|
"job_type": "kd_black_box_local",
|
|
|
|
"dataset": {
|
2025-07-24 11:48:45 +08:00
|
|
|
"instruction_path": "data/alpaca_en_demo.json",
|
|
|
|
"labeled_path": "data/alpaca_en_demo_labeled.json",
|
2025-05-27 18:55:46 +08:00
|
|
|
"template" : "./chat_template/chat_template_kd.jinja",
|
|
|
|
"seed": 42
|
|
|
|
},
|
|
|
|
"inference":{
|
|
|
|
"enable_chunked_prefill": true,
|
|
|
|
"seed": 777,
|
|
|
|
"gpu_memory_utilization": 0.9,
|
|
|
|
"temperature": 0.8,
|
|
|
|
"trust_remote_code": true,
|
|
|
|
"enforce_eager": false,
|
|
|
|
"max_model_len": 4096,
|
|
|
|
"max_new_tokens": 512
|
|
|
|
},
|
|
|
|
"models": {
|
|
|
|
"teacher": "teacher/Qwen/Qwen2.5-7B-Instruct/",
|
|
|
|
"student": "student/Qwen/Qwen2.5-0.5B-Instruct/"
|
|
|
|
},
|
|
|
|
"training": {
|
|
|
|
"output_dir": "./result/",
|
|
|
|
"num_train_epochs": 3,
|
|
|
|
"per_device_train_batch_size": 1,
|
|
|
|
"gradient_accumulation_steps": 8,
|
|
|
|
"max_length":512,
|
|
|
|
"save_steps": 1000,
|
|
|
|
"logging_steps": 1,
|
|
|
|
"learning_rate": 2e-5,
|
|
|
|
"weight_decay": 0.05,
|
|
|
|
"warmup_ratio": 0.1,
|
|
|
|
"lr_scheduler_type": "cosine"
|
|
|
|
}
|
2025-07-24 11:48:45 +08:00
|
|
|
}
|