初始化项目,由ModelHub XC社区提供模型
Model: wvnvwn/qwen2.5-7b-instruct-gsm8k-sn-tuned-lr5e-5 Source: Original Platform
This commit is contained in:
21
finetune_config.json
Normal file
21
finetune_config.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"base_model": "wvnvwn/qwen2.5-7b-instruct-only-sn-tuned-lr5e-5",
|
||||
"fine_tuning_type": "GSM8K Fine-tuning with Safety Neuron Freezing",
|
||||
"safety_neurons_file": "/NHNHOME/WORKSPACE/26msit001_A/edge_ai_lab/jongbokwon/minseong_results/safety_qwen2.5-7b-instruct/safety_neuron.txt",
|
||||
"dataset": "GSM8K",
|
||||
"num_train_samples": 7473,
|
||||
"batch_size": 4,
|
||||
"grad_accum": 4,
|
||||
"learning_rate": 5e-05,
|
||||
"weight_decay": 0.01,
|
||||
"warmup_ratio": 0.1,
|
||||
"epochs": 3,
|
||||
"max_length": 1024,
|
||||
"max_grad_norm": 1.0,
|
||||
"lr_scheduler_type": "cosine",
|
||||
"optimizer": "adamw_torch",
|
||||
"gradient_checkpointing": false,
|
||||
"dtype": "bf16",
|
||||
"trainer_type": "Trainer",
|
||||
"strategy": "Freeze safety neurons, train others"
|
||||
}
|
||||
Reference in New Issue
Block a user