dh-mc commited on
Commit
4e8cffe
1 Parent(s): cc72a1e

created scripts/tune-mgtv.sh

Browse files
competition/09b_InternLM_bf16_analysis.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
competition/09b_InternLM_bf16_p2_analysis.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
llama-factory/config/internlm2_5_7b_lora_sft_bf16_p1_full.yaml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### model
2
+ model_name_or_path: internlm/internlm2_5-7b-chat-1m
3
+
4
+ ### method
5
+ stage: sft
6
+ do_train: true
7
+ finetuning_type: lora
8
+ lora_target: all
9
+ # quantization_bit: 4 # use 4-bit QLoRA
10
+ loraplus_lr_ratio: 16.0 # use LoRA+ with lambda=16.0
11
+ # use_unsloth: true # use UnslothAI's LoRA optimization for 2x faster training
12
+ upcast_layernorm: true
13
+
14
+ ### dataset
15
+ dataset: alpaca_mgtv_p1
16
+ template: chatml
17
+ cutoff_len: 4096
18
+ max_samples: 25000
19
+ overwrite_cache: true
20
+ preprocessing_num_workers: 16
21
+
22
+ ### output
23
+ output_dir: saves/internlm2_5_7b/lora/sft_bf16_p1_full
24
+ logging_steps: 100
25
+ save_steps: 562
26
+ plot_loss: true
27
+ overwrite_output_dir: true
28
+ # resume_from_checkpoint: true
29
+
30
+ ### train
31
+ per_device_train_batch_size: 16
32
+ gradient_accumulation_steps: 8
33
+ learning_rate: 1.0e-4
34
+ num_train_epochs: 6.0
35
+ lr_scheduler_type: cosine
36
+ warmup_ratio: 0.1
37
+ bf16: true
38
+ ddp_timeout: 180000000
39
+
40
+ ### eval
41
+ val_size: 0.1
42
+ per_device_eval_batch_size: 1
43
+ eval_strategy: steps
44
+ eval_steps: 562
45
+
46
+ report_to: wandb
47
+ run_name: internlm2_5_7b # optional
llama-factory/config/internlm2_5_7b_lora_sft_bf16_p2_full.yaml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### model
2
+ model_name_or_path: internlm/internlm2_5-7b-chat-1m
3
+
4
+ ### method
5
+ stage: sft
6
+ do_train: true
7
+ finetuning_type: lora
8
+ lora_target: all
9
+ # quantization_bit: 4 # use 4-bit QLoRA
10
+ loraplus_lr_ratio: 16.0 # use LoRA+ with lambda=16.0
11
+ # use_unsloth: true # use UnslothAI's LoRA optimization for 2x faster training
12
+ upcast_layernorm: true
13
+
14
+ ### dataset
15
+ dataset: alpaca_mgtv_p2
16
+ template: chatml
17
+ cutoff_len: 4096
18
+ max_samples: 25000
19
+ overwrite_cache: true
20
+ preprocessing_num_workers: 16
21
+
22
+ ### output
23
+ output_dir: saves/internlm2_5_7b/lora/sft_bf16_p2_full
24
+ logging_steps: 100
25
+ save_steps: 562
26
+ plot_loss: true
27
+ overwrite_output_dir: true
28
+ # resume_from_checkpoint: true
29
+
30
+ ### train
31
+ per_device_train_batch_size: 16
32
+ gradient_accumulation_steps: 8
33
+ learning_rate: 1.0e-4
34
+ num_train_epochs: 6.0
35
+ lr_scheduler_type: cosine
36
+ warmup_ratio: 0.1
37
+ bf16: true
38
+ ddp_timeout: 180000000
39
+
40
+ ### eval
41
+ val_size: 0.1
42
+ per_device_eval_batch_size: 1
43
+ eval_strategy: steps
44
+ eval_steps: 562
45
+
46
+ report_to: wandb
47
+ run_name: internlm2_5_7b # optional
results/mgtv-results_colab_p2.csv ADDED
The diff for this file is too large to render. See raw diff
 
scripts/tune-mgtv.sh ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ BASEDIR=$(dirname "$0")
4
+ cd $BASEDIR/..
5
+ echo Current Directory:
6
+ pwd
7
+
8
+ export LOGICAL_REASONING_DATA_PATH=datasets/mgtv
9
+
10
+ export LOGICAL_REASONING_RESULTS_PATH=results/mgtv-results_p1_full.csv
11
+ export CONFIG_FILE=configs/internlm2_5_7b_lora_sft_bf16_p1_full.yaml
12
+ echo "Tuning with $CONFIG_FILE"
13
+ ./scripts/tune-lf.sh $CONFIG_FILE
14
+
15
+ export LOGICAL_REASONING_RESULTS_PATH=results/mgtv-results_p2_full.csv
16
+ export CONFIG_FILE=configs/internlm2_5_7b_lora_sft_bf16_p2_full.yaml
17
+ cho "Tuning with $CONFIG_FILE"
18
+ ./scripts/tune-lf.sh $CONFIG_FILE