第一版:
- nvidia-smi
- git clone https://github.com/hiyouga/LLaMA-Factory.git
-
cd LLaMA-Factory/
-
llamafactory-cli train examples/train_lora/llama3_lora_sft.yaml
-
pip install --upgrade huggingface_hub
-
llamafactory-cli webui
-
llamafactory-cli webui --share
-
llamafactory-cli train examples/train_lora/llama3_lora_sft.yaml
-
huggingface-cli login
-
git lfs instsll
-
sudo apt install git-lfs
-
llamafactory-cli train examples/train_lora/llama3_lora_sft.yaml
-
nvidia-smi
-
pip list
-
pip install transformers==4.36.2
-
llamafactory-cli train examples/train_lora/llama3_lora_sft.yaml
-
pip install transformers==4.41.2
-
llamafactory-cli train examples/train_lora/llama3_lora_sft.yaml
-
pip uninstall torch torchvision torchaudio
-
coda create -n llm python==3.10.6
-
conda create -n llm python==3.10.6
-
pip install -e ".[torch,metrics]"
-
llamafactory-cli train examples/train_lora/llama3_lora_sft.yaml
第二版:
nvidia-smi
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh
source .bashrc
python --version
ls
sh Miniconda3-latest-Linux-x86_64.sh
source .bashrc
git clone https://github.com/hiyouga/LLaMA-Factory.git
conda create -n llm python==3.10.6
conda activate llm
cd LLaMA-Factory/
pip install -e ".[torch,metrics]"
pip install --upgrade huggingface_hub
huggingface-cli login
llamafactory-cli train examples/train_lora/llama3_lora_sft.yaml
sudo apt install git-lfs
git clone https://huggingface.co/meta-llama/Meta-Llama-3-8B