Commit e0fd56eb authored by chenych's avatar chenych
Browse files

Update README

parent d9254821
...@@ -105,11 +105,18 @@ pip install transformers==4.53.2 ...@@ -105,11 +105,18 @@ pip install transformers==4.53.2
## 训练 ## 训练
### Llama Factory 微调方法(推荐) ### Llama Factory 微调方法(推荐)
根据[LLaMA-Factory](https://developer.sourcefind.cn/codes/OpenDAS/llama-factory)仓库指引安装好llama-factory后,请检查下transformers版本,如果版本不等于4.53.2,需要重新安装`pip install transformers==4.53.2`
因为transformers版本与[LLaMA-Factory](https://developer.sourcefind.cn/codes/OpenDAS/llama-factory)版本不一致,启动训练前需要先增加环境变量来跳过版本检查,环境变量如下: 因为transformers版本与[LLaMA-Factory](https://developer.sourcefind.cn/codes/OpenDAS/llama-factory)版本不一致,启动训练前需要先增加环境变量来跳过版本检查,环境变量如下:
``` ```
export DISABLE_VERSION_CHECK=1 export DISABLE_VERSION_CHECK=1
``` ```
Tips:
单卡微调请注释掉yaml文件中的`deepspeed`参数
#### 全参微调 #### 全参微调
SFT训练脚本示例,参考`llama-factory/train_full`下对应yaml文件。 SFT训练脚本示例,参考`llama-factory/train_full`下对应yaml文件。
......
...@@ -16,7 +16,7 @@ if __name__ == "__main__": ...@@ -16,7 +16,7 @@ if __name__ == "__main__":
"content": [ "content": [
{ {
"type": "image", "type": "image",
"url": "doc/Grayscale_8bits_palette_sample_image.png" "url": "../doc/Grayscale_8bits_palette_sample_image.png"
}, },
{ {
"type": "text", "type": "text",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment