Created
September 23, 2023 08:46
-
-
Save billju/2b4cbff591113130995544d0465b7bc4 to your computer and use it in GitHub Desktop.
自動訓練
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
autotrain llm --train \ | |
--data-path data \ | |
--epochs 3 \ | |
--block-size 1024 \ | |
--gradient-accumulation 4 \ | |
--logging_steps 500 \ | |
--lora-alpha 32 \ | |
--lora-dropout 0.05 \ | |
--lora-r 8 \ | |
--lr 2e-4 \ | |
--merge-adapter \ | |
--model TinyPixel/Llama-2-7B-bf16-sharded \ | |
--project-name lora \ | |
--text-column text \ | |
--train-batch-size 4 \ | |
--trainer sft \ | |
--use-int4 \ | |
--use-peft \ | |
--warmup-ratio 0.1 \ | |
--weight-decay 0.01 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment