Aquila-chat :bash dist_trigger_docker.sh 调优 aquila-7b,报错:ImportError: numpy.core.multiarray failed to import
System Info
flagai 1.7.3 torch 1.13.1 numpy 1.22.4
numpy:1.15,1.19,1.22 都报同样错误
操作系统:ubuntu 18.04 Conda create python 3.8.16环境
错误信息:
(gpt) llm@ht-PowerEdge-R740:/home/haitaiwork/fly/FlagAI/examples/Aquila/Aquila-chat$ tail /home/haitaiwork/fly/FlagAI/examples/Aquila/Aquila-chat/checkpoints_out/aquila_sft/2023062108/Aquila-chat.yaml.log.txt
awk: line 1: runaway string constant "172.28.0.1 ...
awk: line 1: runaway string constant "172.28.0.1 ...
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
import(pkg_name)
File "/usr/local/lib/python3.6/dist-packages/torch/init.py", line 190, in
Information
- [X] The official example scripts
- [ ] My own modified scripts
Tasks
- [X] An officially supported task in the
examplesfolder (such as T5/AltCLIP, ...) - [ ] My own task or dataset (give details below)
Reproduction
- conda create -n gpt python=3.8
- conda activate gpt
- pip install -U flagai -i https://pypi.tuna.tsinghua.edu.cn/simple
- git clone https://github.com/FlagAI-Open/FlagAI.git
- python setup.py install
- 参考 https://github.com/FlagAI-Open/FlagAI/blob/master/examples/Aquila/README.md 步骤操作,包括下载模型,安装依赖等
- cd ~/fly/FlagAI/examples/Aquila/Aquila-chat
- vi hostfile
- bash dist_trigger_docker.sh hostfile Aquila-chat.yaml aquila-7b aquila_sft
- tail checkpoints_out/aquila_sft/2023062018/Aquila-chat.yaml.log.txt
Expected behavior
定位错误,解决问题,能正常运行调优。
您直接import torch和numpy是ok的吗,然后我用的torch版本是1.13.0+cu117