FlagAI icon indicating copy to clipboard operation
FlagAI copied to clipboard

Aquila-chat :bash dist_trigger_docker.sh 调优 aquila-7b,报错:ImportError: numpy.core.multiarray failed to import

Open dage0127 opened this issue 2 years ago • 1 comments

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 from torch._C import * ImportError: numpy.core.multiarray failed to import

Information

  • [X] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [X] An officially supported task in the examples folder (such as T5/AltCLIP, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

  1. conda create -n gpt python=3.8
  2. conda activate gpt
  3. pip install -U flagai -i https://pypi.tuna.tsinghua.edu.cn/simple
  4. git clone https://github.com/FlagAI-Open/FlagAI.git
  5. python setup.py install
  6. 参考 https://github.com/FlagAI-Open/FlagAI/blob/master/examples/Aquila/README.md 步骤操作,包括下载模型,安装依赖等
  7. cd ~/fly/FlagAI/examples/Aquila/Aquila-chat
  8. vi hostfile
  9. bash dist_trigger_docker.sh hostfile Aquila-chat.yaml aquila-7b aquila_sft
  10. tail checkpoints_out/aquila_sft/2023062018/Aquila-chat.yaml.log.txt

Expected behavior

定位错误,解决问题,能正常运行调优。

dage0127 avatar Jun 21 '23 03:06 dage0127

您直接import torch和numpy是ok的吗,然后我用的torch版本是1.13.0+cu117

BAAI-OpenPlatform avatar Jun 25 '23 01:06 BAAI-OpenPlatform