Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zhougaofeng
internlm2-math-7B
Commits
0713ba1a
Commit
0713ba1a
authored
Jun 11, 2024
by
zhougaofeng
Browse files
Upload New File
parent
77d22308
Pipeline
#1099
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
finetune/single_node.sh
finetune/single_node.sh
+13
-0
No files found.
finetune/single_node.sh
0 → 100644
View file @
0713ba1a
#!/bin/bash
export
HIP_VISIBLE_DEVICES
=
6
python src/train.py
\
--stage
sft
--do_train
\
--model_name_or_path
/home/practice/internlm2-math-7b
\
--dataset
alpaca_en_demo
--template
intern2
--finetuning_type
lora
--lora_target
q_proj,v_proj
\
--output_dir
saves/intern2/lora/sft
\
--overwrite_output_dir
\
--overwrite_cache
--per_device_train_batch_size
2
--gradient_accumulation_steps
32
--lr_scheduler_type
cosine
\
--logging_steps
10
--save_steps
1000
--learning_rate
1e-4
--num_train_epochs
3.0
--plot_loss
--fp16
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment