使用 Llama 3 进行微调
Francesca Donadoni
Curriculum Manager, DataCamp










TorchTune 配方:

pip3 install torchtune
列出可用配方
tune ls
!在 IPython 中使用
!tune ls
!tune ls
RECIPE CONFIG
full_finetune_single_device llama3/8B_full_single_device
llama3_1/8B_full_single_device
llama3_2/1B_full_single_device
llama3_2/3B_full_single_device
full_finetune_distributed llama3/8B_full
llama3_1/8B_full
llama3_2/1B_full
...
--config + 配置运行微调
tune run full_finetune_single_device --config \
llama3_1/8B_lora_single_device
参数 device=cpu 或 device=cuda
epochs=<int>(<int> 为 0 或正整数)使用 Llama 3 进行微调