LLaMA-Factory-Mirror/examples/lora_single_gpu/prepare.sh

20 lines
605 B
Bash
Raw Normal View History

2024-04-02 20:07:43 +08:00
#!/bin/bash
2024-05-02 17:16:02 +08:00
# use `--tokenized_path` in training script to load data
2024-04-02 20:07:43 +08:00
2024-05-03 02:58:23 +08:00
CUDA_VISIBLE_DEVICES= llamafactory-cli train \
2024-04-02 20:07:43 +08:00
--stage sft \
--do_train \
--model_name_or_path meta-llama/Llama-2-7b-hf \
--dataset alpaca_gpt4_en,glaive_toolcall \
--dataset_dir ../../data \
--template default \
--finetuning_type lora \
--lora_target q_proj,v_proj \
--output_dir ../../saves/LLaMA2-7B/lora/sft \
--overwrite_cache \
--overwrite_output_dir \
--cutoff_len 1024 \
--preprocessing_num_workers 16 \
--max_samples 3000 \
--tokenized_path ../../saves/datasets/sft