@@ -62,34 +62,40 @@ pip install .
6262```
6363
6464## Run SFT and Inference
65+ Performace: full(nice) > lora > qlora
66+ Training GPU memory: qlora(low,3090) > lora > full(2* A100)
6567``` bash
6668# Clone the repository and enter the code directory.
6769git clone https://github.com/modelscope/swift.git
6870cd swift/examples/pytorch/llm
6971
70- # sft lora and infer qwen-7b, Requires 27GB VRAM.
71- # If you want to push weights into modelscope hub during training, you need to set '--push_to_hub true'
72+ # sft lora and infer qwen-7b-chat, Requires 27GB GPU memory.
73+ # You can save GPU memory by setting `--gradient_checkpointing true`, but this will slightly decrease the training speed.
74+ # If you want to push weights into modelscope hub during training, you need to set '--push_to_hub true'.
75+ # Recommended experimental environment: A100
7276bash scripts/qwen_7b_chat/lora/sft.sh
7377bash scripts/qwen_7b_chat/lora/infer.sh
7478
75- # sft(lora+ddp) and infer qwen-7b, Requires 4 *27GB VRAM .
79+ # sft(lora+ddp) and infer qwen-7b-chat , Requires 2 *27GB GPU memory .
7680bash scripts/qwen_7b_chat/lora_ddp/sft.sh
7781bash scripts/qwen_7b_chat/lora_ddp/infer.sh
7882
79- # sft(qlora) and infer qwen-7b, Requires 20GB VRAM .
83+ # sft(qlora) and infer qwen-7b-chat , Requires 13GB GPU memory .
8084# If you want to use quantification, you need to `pip install bitsandbytes -U`
85+ # Recommended experimental environment: 3090
8186bash scripts/qwen_7b_chat/qlora/sft.sh
8287bash scripts/qwen_7b_chat/qlora/infer.sh
8388
84- # sft(qlora+ddp) and infer qwen-7b, Requires 4*20GB VRAM .
89+ # sft(qlora+ddp) and infer qwen-7b-chat , Requires 2*13GB GPU memory .
8590bash scripts/qwen_7b_chat/qlora_ddp/sft.sh
8691bash scripts/qwen_7b_chat/qlora_ddp/infer.sh
8792
88- # sft(full) and infer qwen-7b, Requires 95GB VRAM.
93+ # sft(full) and infer qwen-7b-chat, Requires 100GB GPU memory.
94+ # Recommended experimental environment: A100
8995bash scripts/qwen_7b_chat/full/sft.sh
9096bash scripts/qwen_7b_chat/full/infer.sh
9197
92- # For more scripts, please see `scripts/` folder
98+ # For more scripts, please see `scripts/` folder.
9399```
94100
95101## Extend Datasets
0 commit comments