Commit aff8c809 authored by chenych's avatar chenych
Browse files

Fix bug

parent 60424c50
...@@ -56,13 +56,11 @@ LLaMA Factory是一个大语言模型训练和推理的框架,支持了魔搭 ...@@ -56,13 +56,11 @@ LLaMA Factory是一个大语言模型训练和推理的框架,支持了魔搭
> >
> 4. `deepspeed-cpu-offload-stage3`出现`RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!`错误,是deepspeed本身bug,解决办法参考官方[issuse](https://github.com/microsoft/DeepSpeed/issues/5634) > 4. `deepspeed-cpu-offload-stage3`出现`RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!`错误,是deepspeed本身bug,解决办法参考官方[issuse](https://github.com/microsoft/DeepSpeed/issues/5634)
> >
> 5. `TypeError: argument of type 'NoneType' is not iterable`错误是官方transformers版本问题,参考[issuse](https://github.com/huggingface/transformers/pull/38328),或者在`llama-factory/src/llamafactory/model/loader.py`文件第20行加入 > 5. `TypeError: argument of type 'NoneType' is not iterable`错误是官方transformers版本问题,参考[issuse](https://github.com/huggingface/transformers/pull/38328)
``` >
from transformers import modeling_utils > \*:您需要从 main 分支安装 `transformers` 并使用 `DISABLE_VERSION_CHECK=1` 来跳过版本检查。
if not hasattr(modeling_utils, "ALL_PARALLEL_STYLES") or modeling_utils.ALL_PARALLEL_STYLES is None: >
modeling_utils.ALL_PARALLEL_STYLES = ["tp", "none", "colwise", "rowwise", "colwise_rep", 'rowwise_rep'] > \*\*:您需要安装特定版本的 `transformers` 以使用该模型。
```
## 使用源码编译方式安装 ## 使用源码编译方式安装
### 环境准备 ### 环境准备
......
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