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
ModelZoo
GLM-4V_pytorch
Commits
1bfbcff0
Commit
1bfbcff0
authored
Jun 13, 2024
by
wanglch
Browse files
Initial commit
parents
Pipeline
#1204
canceled with stages
Changes
707
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
497 additions
and
0 deletions
+497
-0
swift-main/examples/pytorch/llm/scripts/qwen_14b_chat_int8/qlora/infer.sh
...les/pytorch/llm/scripts/qwen_14b_chat_int8/qlora/infer.sh
+12
-0
swift-main/examples/pytorch/llm/scripts/qwen_14b_chat_int8/qlora/sft.sh
...mples/pytorch/llm/scripts/qwen_14b_chat_int8/qlora/sft.sh
+32
-0
swift-main/examples/pytorch/llm/scripts/qwen_14b_chat_int8/qlora_ddp_ds/infer.sh
...orch/llm/scripts/qwen_14b_chat_int8/qlora_ddp_ds/infer.sh
+13
-0
swift-main/examples/pytorch/llm/scripts/qwen_14b_chat_int8/qlora_ddp_ds/sft.sh
...ytorch/llm/scripts/qwen_14b_chat_int8/qlora_ddp_ds/sft.sh
+40
-0
swift-main/examples/pytorch/llm/scripts/qwen_1_8b_chat/full/infer.sh
...examples/pytorch/llm/scripts/qwen_1_8b_chat/full/infer.sh
+12
-0
swift-main/examples/pytorch/llm/scripts/qwen_1_8b_chat/full/sft.sh
...n/examples/pytorch/llm/scripts/qwen_1_8b_chat/full/sft.sh
+29
-0
swift-main/examples/pytorch/llm/scripts/qwen_1_8b_chat/full_ddp/infer.sh
...ples/pytorch/llm/scripts/qwen_1_8b_chat/full_ddp/infer.sh
+12
-0
swift-main/examples/pytorch/llm/scripts/qwen_1_8b_chat/full_ddp/sft.sh
...amples/pytorch/llm/scripts/qwen_1_8b_chat/full_ddp/sft.sh
+36
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_ddp_zero3/infer.sh
...pytorch/llm/scripts/qwen_72b_chat/lora_ddp_zero3/infer.sh
+13
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_ddp_zero3/sft.sh
...s/pytorch/llm/scripts/qwen_72b_chat/lora_ddp_zero3/sft.sh
+38
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_mp/infer.sh
...amples/pytorch/llm/scripts/qwen_72b_chat/lora_mp/infer.sh
+13
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_mp/sft.sh
...examples/pytorch/llm/scripts/qwen_72b_chat/lora_mp/sft.sh
+33
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_mp_ddp/infer.sh
...es/pytorch/llm/scripts/qwen_72b_chat/lora_mp_ddp/infer.sh
+13
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_mp_ddp/sft.sh
...ples/pytorch/llm/scripts/qwen_72b_chat/lora_mp_ddp/sft.sh
+39
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/qlora/infer.sh
...examples/pytorch/llm/scripts/qwen_72b_chat/qlora/infer.sh
+13
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/qlora/sft.sh
...n/examples/pytorch/llm/scripts/qwen_72b_chat/qlora/sft.sh
+36
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat_int4/qlora_ddp_ds/infer.sh
...orch/llm/scripts/qwen_72b_chat_int4/qlora_ddp_ds/infer.sh
+13
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat_int4/qlora_ddp_ds/sft.sh
...ytorch/llm/scripts/qwen_72b_chat_int4/qlora_ddp_ds/sft.sh
+46
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat_int8/qlora_ddp_ds/infer.sh
...orch/llm/scripts/qwen_72b_chat_int8/qlora_ddp_ds/infer.sh
+13
-0
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat_int8/qlora_ddp_ds/sft.sh
...ytorch/llm/scripts/qwen_72b_chat_int8/qlora_ddp_ds/sft.sh
+41
-0
No files found.
Too many changes to show.
To preserve performance only
707 of 707+
files are displayed.
Plain diff
Email patch
swift-main/examples/pytorch/llm/scripts/qwen_14b_chat_int8/qlora/infer.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: V100, A10, 3090
CUDA_VISIBLE_DEVICES
=
0
\
swift infer
\
--ckpt_dir
"output/qwen-14b-chat-int8/vx-xxx/checkpoint-xxx"
\
--load_dataset_config
true
\
--use_flash_attn
false
\
--max_new_tokens
2048
\
--temperature
0.1
\
--top_p
0.7
\
--repetition_penalty
1.
\
--do_sample
true
\
--merge_lora
false
\
swift-main/examples/pytorch/llm/scripts/qwen_14b_chat_int8/qlora/sft.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: V100, A10, 3090
# 20GB GPU memory
CUDA_VISIBLE_DEVICES
=
0
\
swift sft
\
--model_id_or_path
qwen/Qwen-14B-Chat-Int8
\
--model_revision
master
\
--sft_type
lora
\
--tuner_backend
peft
\
--template_type
AUTO
\
--dtype
fp16
\
--output_dir
output
\
--dataset
blossom-math-zh
\
--train_dataset_sample
-1
\
--num_train_epochs
1
\
--max_length
2048
\
--check_dataset_strategy
warning
\
--lora_rank
8
\
--lora_alpha
32
\
--lora_dropout_p
0.05
\
--lora_target_modules
ALL
\
--gradient_checkpointing
true
\
--batch_size
1
\
--weight_decay
0.1
\
--learning_rate
1e-4
\
--gradient_accumulation_steps
16
\
--max_grad_norm
0.5
\
--warmup_ratio
0.03
\
--eval_steps
100
\
--save_steps
100
\
--save_total_limit
2
\
--logging_steps
10
\
--use_flash_attn
false
\
swift-main/examples/pytorch/llm/scripts/qwen_14b_chat_int8/qlora_ddp_ds/infer.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: V100, A10, 3090
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0
\
python llm_infer.py
\
--ckpt_dir
"output/qwen-14b-chat-int8/vx-xxx/checkpoint-xxx"
\
--load_dataset_config
true
\
--use_flash_attn
false
\
--max_new_tokens
2048
\
--temperature
0.7
\
--top_p
0.7
\
--repetition_penalty
1.
\
--do_sample
true
\
--merge_lora
false
\
swift-main/examples/pytorch/llm/scripts/qwen_14b_chat_int8/qlora_ddp_ds/sft.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 2 * A10
# 2 * 20GB GPU memory
nproc_per_node
=
2
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0,1
\
torchrun
\
--nproc_per_node
=
$nproc_per_node
\
--master_port
29500
\
llm_sft.py
\
--model_id_or_path
qwen/Qwen-14B-Chat-Int8
\
--model_revision
master
\
--sft_type
lora
\
--tuner_backend
peft
\
--template_type
AUTO
\
--dtype
fp16
\
--output_dir
output
\
--ddp_backend
nccl
\
--dataset
lawyer-llama-zh
\
--train_dataset_sample
-1
\
--num_train_epochs
1
\
--max_length
2048
\
--check_dataset_strategy
warning
\
--lora_rank
8
\
--lora_alpha
32
\
--lora_dropout_p
0.05
\
--lora_target_modules
ALL
\
--gradient_checkpointing
true
\
--batch_size
1
\
--weight_decay
0.1
\
--learning_rate
1e-4
\
--gradient_accumulation_steps
$(
expr
16 /
$nproc_per_node
)
\
--max_grad_norm
0.5
\
--warmup_ratio
0.03
\
--eval_steps
100
\
--save_steps
100
\
--save_total_limit
2
\
--logging_steps
10
\
--use_flash_attn
false
\
--deepspeed
default-zero2
\
swift-main/examples/pytorch/llm/scripts/qwen_1_8b_chat/full/infer.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: A10
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0
\
python llm_infer.py
\
--ckpt_dir
"output/qwen-1_8b-chat/vx-xxx/checkpoint-xxx"
\
--load_dataset_config
true
\
--use_flash_attn
false
\
--max_new_tokens
2048
\
--temperature
0.1
\
--top_p
0.7
\
--repetition_penalty
1.
\
--do_sample
true
\
swift-main/examples/pytorch/llm/scripts/qwen_1_8b_chat/full/sft.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: A10
# 20GB GPU memory
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0
\
python llm_sft.py
\
--model_id_or_path
qwen/Qwen-1_8B-Chat
\
--model_revision
master
\
--sft_type
full
\
--template_type
AUTO
\
--dtype
AUTO
\
--output_dir
output
\
--dataset
cmnli-mini-zh
\
--train_dataset_sample
-1
\
--num_train_epochs
1
\
--max_length
2048
\
--check_dataset_strategy
warning
\
--gradient_checkpointing
true
\
--batch_size
1
\
--weight_decay
0.1
\
--learning_rate
1e-5
\
--gradient_accumulation_steps
16
\
--max_grad_norm
0.5
\
--warmup_ratio
0.03
\
--eval_steps
100
\
--save_steps
100
\
--save_only_model
true
\
--save_total_limit
2
\
--logging_steps
10
\
--use_flash_attn
false
\
swift-main/examples/pytorch/llm/scripts/qwen_1_8b_chat/full_ddp/infer.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 3090
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0
\
python llm_infer.py
\
--ckpt_dir
"output/qwen-1_8b-chat/vx-xxx/checkpoint-xxx"
\
--load_dataset_config
true
\
--use_flash_attn
false
\
--max_new_tokens
2048
\
--temperature
0.1
\
--top_p
0.7
\
--repetition_penalty
1.
\
--do_sample
true
\
swift-main/examples/pytorch/llm/scripts/qwen_1_8b_chat/full_ddp/sft.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 2 * 3090
# 2 * 24GB GPU memory
nproc_per_node
=
2
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0,1
\
torchrun
\
--nproc_per_node
=
$nproc_per_node
\
--master_port
29500
\
llm_sft.py
\
--model_id_or_path
qwen/Qwen-1_8B-Chat
\
--model_revision
master
\
--sft_type
full
\
--template_type
AUTO
\
--dtype
AUTO
\
--output_dir
output
\
--ddp_backend
nccl
\
--dataset
jd-sentiment-zh
\
--train_dataset_sample
-1
\
--val_dataset_sample
1000
\
--num_train_epochs
1
\
--max_length
2048
\
--check_dataset_strategy
warning
\
--gradient_checkpointing
true
\
--batch_size
1
\
--weight_decay
0.1
\
--learning_rate
1e-5
\
--gradient_accumulation_steps
$(
expr
16 /
$nproc_per_node
)
\
--max_grad_norm
0.5
\
--warmup_ratio
0.03
\
--eval_steps
100
\
--save_steps
100
\
--save_only_model
true
\
--save_total_limit
2
\
--logging_steps
10
\
--use_flash_attn
false
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_ddp_zero3/infer.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 2 * A100
CUDA_VISIBLE_DEVICES
=
0,1
\
swift infer
\
--ckpt_dir
"output/qwen-72b-chat/vx-xxx/checkpoint-xxx"
\
--load_dataset_config
true
\
--use_flash_attn
true
\
--max_new_tokens
2048
\
--temperature
0.3
\
--top_p
0.7
\
--repetition_penalty
1.
\
--do_sample
true
\
--merge_lora
false
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_ddp_zero3/sft.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 4 * A100
# 4 * 55GB GPU memory
nproc_per_node
=
4
CUDA_VISIBLE_DEVICES
=
0,1,2,3
\
NPROC_PER_NODE
=
$nproc_per_node
\
MASTER_PORT
=
29500
\
swift sft
\
--model_id_or_path
qwen/Qwen-72B-Chat
\
--model_revision
master
\
--sft_type
lora
\
--tuner_backend
peft
\
--template_type
AUTO
\
--dtype
AUTO
\
--output_dir
output
\
--ddp_backend
nccl
\
--dataset
blossom-math-zh
\
--train_dataset_sample
-1
\
--num_train_epochs
5
\
--max_length
2048
\
--check_dataset_strategy
warning
\
--lora_rank
8
\
--lora_alpha
32
\
--lora_dropout_p
0.05
\
--lora_target_modules
ALL
\
--gradient_checkpointing
true
\
--batch_size
1
\
--weight_decay
0.1
\
--learning_rate
1e-4
\
--gradient_accumulation_steps
$(
expr
16 /
$nproc_per_node
)
\
--max_grad_norm
0.5
\
--warmup_ratio
0.03
\
--eval_steps
100
\
--save_steps
100
\
--save_total_limit
2
\
--logging_steps
10
\
--use_flash_attn
true
\
--deepspeed
default-zero3
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_mp/infer.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 2 * A100
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0,1
\
python llm_infer.py
\
--ckpt_dir
"output/qwen-72b-chat/vx-xxx/checkpoint-xxx"
\
--load_dataset_config
true
\
--use_flash_attn
true
\
--max_new_tokens
2048
\
--temperature
0.3
\
--top_p
0.7
\
--repetition_penalty
1.
\
--do_sample
true
\
--merge_lora
false
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_mp/sft.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 2 * A100
# 2 * 75GB GPU memory
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0,1
\
python llm_sft.py
\
--model_id_or_path
qwen/Qwen-72B-Chat
\
--model_revision
master
\
--sft_type
lora
\
--tuner_backend
peft
\
--template_type
AUTO
\
--dtype
AUTO
\
--output_dir
output
\
--dataset
leetcode-python-en
\
--train_dataset_sample
-1
\
--num_train_epochs
1
\
--max_length
2048
\
--check_dataset_strategy
warning
\
--lora_rank
8
\
--lora_alpha
32
\
--lora_dropout_p
0.05
\
--lora_target_modules
DEFAULT
\
--gradient_checkpointing
true
\
--batch_size
1
\
--weight_decay
0.1
\
--learning_rate
1e-4
\
--gradient_accumulation_steps
16
\
--max_grad_norm
0.5
\
--warmup_ratio
0.03
\
--eval_steps
100
\
--save_steps
100
\
--save_total_limit
2
\
--logging_steps
10
\
--use_flash_attn
true
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_mp_ddp/infer.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 2 * A100
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0,1
\
python llm_infer.py
\
--ckpt_dir
"output/qwen-72b-chat/vx-xxx/checkpoint-xxx"
\
--load_dataset_config
true
\
--use_flash_attn
true
\
--max_new_tokens
2048
\
--temperature
0.3
\
--top_p
0.7
\
--repetition_penalty
1.
\
--do_sample
true
\
--merge_lora
false
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/lora_mp_ddp/sft.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 4 * A100
# 4 * 75GB GPU memory
nproc_per_node
=
2
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0,1,2,3
\
torchrun
\
--nproc_per_node
=
$nproc_per_node
\
--master_port
29500
\
llm_sft.py
\
--model_id_or_path
qwen/Qwen-72B-Chat
\
--model_revision
master
\
--sft_type
lora
\
--tuner_backend
peft
\
--template_type
AUTO
\
--dtype
AUTO
\
--output_dir
output
\
--ddp_backend
nccl
\
--dataset
blossom-math-zh
\
--train_dataset_sample
-1
\
--num_train_epochs
1
\
--max_length
2048
\
--check_dataset_strategy
warning
\
--lora_rank
8
\
--lora_alpha
32
\
--lora_dropout_p
0.05
\
--lora_target_modules
DEFAULT
\
--gradient_checkpointing
true
\
--batch_size
1
\
--weight_decay
0.1
\
--learning_rate
1e-4
\
--gradient_accumulation_steps
$(
expr
16 /
$nproc_per_node
)
\
--max_grad_norm
0.5
\
--warmup_ratio
0.03
\
--eval_steps
100
\
--save_steps
100
\
--save_total_limit
2
\
--logging_steps
10
\
--use_flash_attn
true
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/qlora/infer.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: A100
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0
\
python llm_infer.py
\
--ckpt_dir
"output/qwen-72b-chat/vx-xxx/checkpoint-xxx"
\
--load_dataset_config
true
\
--use_flash_attn
true
\
--max_new_tokens
2048
\
--temperature
0.3
\
--top_p
0.7
\
--repetition_penalty
1.
\
--do_sample
true
\
--merge_lora
false
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat/qlora/sft.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: A100
# 45GB GPU memory
# Recommended to use `qwen_72b_chat_int4`
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0
\
python llm_sft.py
\
--model_id_or_path
qwen/Qwen-72B-Chat
\
--model_revision
master
\
--sft_type
lora
\
--tuner_backend
peft
\
--template_type
AUTO
\
--dtype
AUTO
\
--output_dir
output
\
--dataset
blossom-math-zh
\
--train_dataset_sample
20000
\
--num_train_epochs
1
\
--max_length
2048
\
--check_dataset_strategy
warning
\
--quantization_bit
4
\
--bnb_4bit_comp_dtype
AUTO
\
--lora_rank
8
\
--lora_alpha
32
\
--lora_dropout_p
0.05
\
--lora_target_modules
DEFAULT
\
--gradient_checkpointing
true
\
--batch_size
1
\
--weight_decay
0.1
\
--learning_rate
1e-4
\
--gradient_accumulation_steps
16
\
--max_grad_norm
0.5
\
--warmup_ratio
0.03
\
--eval_steps
100
\
--save_steps
100
\
--save_total_limit
2
\
--logging_steps
10
\
--use_flash_attn
true
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat_int4/qlora_ddp_ds/infer.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: A100
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0
\
python llm_infer.py
\
--ckpt_dir
"output/qwen-72b-chat-int4/vx_xxx/checkpoint-xxx"
\
--load_dataset_config
true
\
--use_flash_attn
true
\
--max_new_tokens
2048
\
--temperature
0.1
\
--top_p
0.7
\
--repetition_penalty
1.
\
--do_sample
true
\
--merge_lora
false
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat_int4/qlora_ddp_ds/sft.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 2 * A100
# 2 * 67GB GPU memory
nproc_per_node
=
2
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0,1
\
torchrun
\
--nproc_per_node
=
$nproc_per_node
\
--master_port
29500
\
llm_sft.py
\
--model_id_or_path
qwen/Qwen-72B-Chat-Int4
\
--model_revision
master
\
--sft_type
lora
\
--tuner_backend
peft
\
--template_type
AUTO
\
--dtype
AUTO
\
--output_dir
output
\
--ddp_backend
nccl
\
--dataset
damo-agent-mini-zh
\
--train_dataset_sample
20000
\
--num_train_epochs
1
\
--max_length
4096
\
--check_dataset_strategy
warning
\
--lora_rank
8
\
--lora_alpha
32
\
--lora_dropout_p
0.05
\
--lora_target_modules
DEFAULT
\
--gradient_checkpointing
true
\
--batch_size
1
\
--weight_decay
0.1
\
--learning_rate
1e-4
\
--gradient_accumulation_steps
$(
expr
16 /
$nproc_per_node
)
\
--max_grad_norm
0.5
\
--warmup_ratio
0.03
\
--eval_steps
100
\
--save_steps
100
\
--save_total_limit
2
\
--logging_steps
10
\
--use_flash_attn
true
\
--push_to_hub
false
\
--push_hub_strategy
end
\
--hub_model_id
qwen-72b-chat-int4-qlora
\
--hub_private_repo
true
\
--hub_token
'your-sdk-token'
\
--deepspeed
default-zero2
\
--tuner_backend
peft
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat_int8/qlora_ddp_ds/infer.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 2 * A100
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0,1
\
python llm_infer.py
\
--ckpt_dir
"output/qwen-72b-chat-int8/vx-xxx/checkpoint-xxx"
\
--load_dataset_config
true
\
--use_flash_attn
true
\
--max_new_tokens
2048
\
--temperature
0.1
\
--top_p
0.7
\
--repetition_penalty
1.
\
--do_sample
true
\
--merge_lora
false
\
swift-main/examples/pytorch/llm/scripts/qwen_72b_chat_int8/qlora_ddp_ds/sft.sh
0 → 100644
View file @
1bfbcff0
# Experimental environment: 2 * A100
# 2 * 80GB GPU memory
nproc_per_node
=
2
PYTHONPATH
=
../../..
\
CUDA_VISIBLE_DEVICES
=
0,1
\
torchrun
\
--nproc_per_node
=
$nproc_per_node
\
--master_port
29500
\
llm_sft.py
\
--model_type
qwen-72b-chat-int8
\
--model_revision
master
\
--sft_type
lora
\
--tuner_backend
peft
\
--template_type
AUTO
\
--dtype
AUTO
\
--output_dir
output
\
--ddp_backend
nccl
\
--dataset
codefuse-python-en
\
--train_dataset_sample
-1
\
--num_train_epochs
1
\
--max_length
1024
\
--truncation_strategy
delete
\
--check_dataset_strategy
warning
\
--lora_rank
8
\
--lora_alpha
32
\
--lora_dropout_p
0.05
\
--lora_target_modules
DEFAULT
\
--gradient_checkpointing
true
\
--batch_size
1
\
--weight_decay
0.1
\
--learning_rate
1e-4
\
--gradient_accumulation_steps
$(
expr
16 /
$nproc_per_node
)
\
--max_grad_norm
0.5
\
--warmup_ratio
0.03
\
--eval_steps
100
\
--save_steps
100
\
--save_total_limit
2
\
--logging_steps
10
\
--use_flash_attn
true
\
--deepspeed
default-zero2
\
Prev
1
…
20
21
22
23
24
25
26
27
28
…
36
Next
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