-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Experimental environment: 3090 | ||
CUDA_VISIBLE_DEVICES=0 \ | ||
swift infer \ | ||
--ckpt_dir "output/atom-7b-chat/vx-xxx/checkpoint-xxx" \ | ||
--load_dataset_config true \ | ||
--max_new_tokens 2048 \ | ||
--temperature 0.1 \ | ||
--top_p 0.7 \ | ||
--repetition_penalty 1. \ | ||
--do_sample true \ | ||
--merge_lora false \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Experimental environment: 3090,A10,V100... | ||
# 20GB GPU memory | ||
CUDA_VISIBLE_DEVICES=0 \ | ||
swift sft \ | ||
--model_type atom-7b-chat \ | ||
--model_revision master \ | ||
--sft_type lora \ | ||
--tuner_backend peft \ | ||
--dtype AUTO \ | ||
--output_dir output \ | ||
--ddp_backend nccl \ | ||
--dataset ms-bench \ | ||
--train_dataset_sample -1 \ | ||
--num_train_epochs 3 \ | ||
--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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters