File size: 681 Bytes
5c5d70c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
!deepspeed kto.py \
   --save_path '/root/chai/kto' \
   --save_steps 50 \
   --logging_steps 10 \
   --eval_steps -1 \
   --train_batch_size 256 \
   --micro_train_batch_size 1 \
   --pretrain '/root/chai/mistralai/Mistral-Nemo-Instruct-2407' \
   --bf16 \
   --max_epochs 1 \
   --max_len 1348 \
   --zero_stage 2 \
   --learning_rate 5e-7 \
   --dataset '/root/chai/1_kto' \
   --input_key instruction \
   --output_key response \
   --label_key score \
   --flash_attn \
   --beta 0.1 \
   --max_samples 100000 \
   --gradient_checkpointing \
    --lora_rank 16 \
    --lora_alpha 32 \
    --lora_dropout 0.05
#    --use_ms False

# Dylan2048/ultrafeedback-unpaired-preferences