Skip to content

Instantly share code, notes, and snippets.

@billju
Created September 23, 2023 08:46
Show Gist options
  • Save billju/2b4cbff591113130995544d0465b7bc4 to your computer and use it in GitHub Desktop.
Save billju/2b4cbff591113130995544d0465b7bc4 to your computer and use it in GitHub Desktop.
自動訓練
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