CodeGeeX icon indicating copy to clipboard operation
CodeGeeX copied to clipboard

推理过程中报错

Open uloveqian2021 opened this issue 2 years ago • 4 comments

您好,执行“bash ./scripts/test_inference_quantized.sh 0 ./tests/test_prompt.txt”, 请问这个怎么处理呢 File "/opt/conda/envs/python38/lib/python3.8/site-packages/codegeex-1.0-py3.8.egg/codegeex/kernels/init.py", line 15, in init raise RuntimeError("File %s not found in %s" % (filename, RESOURCE_PACKAGE_NAME)) RuntimeError: File quantization.fatbin not found in codegeex.kernels

uloveqian2021 avatar Apr 07 '23 11:04 uloveqian2021

您好,执行“bash ./scripts/test_inference_quantized.sh 0 ./tests/test_prompt.txt”, 请问这个怎么处理呢 File "/opt/conda/envs/python38/lib/python3.8/site-packages/codegeex-1.0-py3.8.egg/codegeex/kernels/init.py", line 15, in init raise RuntimeError("File %s not found in %s" % (filename, RESOURCE_PACKAGE_NAME)) RuntimeError: File quantization.fatbin not found in codegeex.kernels

我也是这个问题,请问你解决了吗

ccly1996 avatar Apr 25 '23 03:04 ccly1996

+1 楼主解决了吗

sun1122 avatar May 11 '23 13:05 sun1122

+1 楼主解决了吗?

StarrickLiu avatar May 17 '23 13:05 StarrickLiu

解决了,注意readme文档,需要使用 pip install -e ./ 来安装

在使用pip安装Python包时,可以使用-e选项来安装一个软件包作为可编辑的模式。这通常用于开发环境中,当您希望修改Python包的源代码时,可以使用此选项。

使用-e选项安装Python包时,pip会创建一个符号链接(或者是Windows上的Junction)指向您本地文件系统中的软件包目录,而不是复制软件包文件到Python解释器的site-packages目录中。 这意味着您对软件包所做的任何更改都将立即反映在您的Python安装中。

例如,下面的命令安装了名为mypackage的Python包,并将其安装为可编辑模式:

pip install -e /path/to/mypackage 这将在/path/to/mypackage目录中创建一个符号链接,并使您能够在其中进行编辑,并使更改立即生效。

StarrickLiu avatar May 17 '23 13:05 StarrickLiu