Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在复现信息抽取时遇到的报错 #33

Closed
kevinyee628 opened this issue Jul 3, 2023 · 15 comments
Closed

在复现信息抽取时遇到的报错 #33

kevinyee628 opened this issue Jul 3, 2023 · 15 comments
Labels
question Further information is requested

Comments

@kevinyee628
Copy link

您好,我在复现信息抽取时遇到了报错,不知道是不是我环境的问题
KNOW

@kevinyee628
Copy link
Author

好像是./zhixi下面权重的问题,我再尝试解决一下: )

@MikeDean2367
Copy link
Collaborator

MikeDean2367 commented Jul 3, 2023

您好,欢迎您的关注,请根据下面的步骤来解决:

  1. 请确保您 已经合并权重 得到zhixi且已经 下载LoRA权重
  2. 根据您的报错信息,请尝试使用zhixilora绝对路径 来传入到命令行

如果上述都不能解决,请告知我 :)

@kevinyee628
Copy link
Author

您好,欢迎您的关注,请根据下面的步骤来解决:

  1. 请确保您 已经合并权重 得到zhixi且已经 下载LoRA权重
  2. 根据您的报错信息,请尝试使用zhixilora绝对路径 来传入到命令行

如果上述都不能解决,请告知我 :)

好的,谢谢!已经定位到错误,合并权重的问题

@zxlzr
Copy link
Contributor

zxlzr commented Jul 4, 2023

您好,您也可以检查下md5码

@zxlzr zxlzr added the question Further information is requested label Jul 4, 2023
@kevinyee628
Copy link
Author

python tools/weight_diff.py recover --path_raw ./llama-13b-hf --path_diff ./zhixi-13b-diff --path_tuned ./zhixi
File "tools/weight_diff.py", line 26
path_raw: str, path_tuned: str, path_diff: str, device="cpu", # "cuda" or "cpu"
^
SyntaxError: invalid syntax
您好,我在合并权重的时候遇到了这样的问题,重新按照readme配置了环境,但是还是会出现如上情况

@MikeDean2367
Copy link
Collaborator

您好,您是否修改过weight_diff.py文件呢,我这边测试正常的,方便提供一下您的weight_diff.py文件吗?

@kevinyee628
Copy link
Author

您好,您是否修改过weight_diff.py文件呢,我这边测试正常的,方便提供一下您的weight_diff.py文件吗?

您好,我没有修改过'weight_diff.py',报错后我从仓库中复制了一份代码,但是还是不行
weight_diff.txt

@MikeDean2367
Copy link
Collaborator

是一开始执行的时候马上就报这个错误吗?可以把完整的错误分享一下吗,这个错误是说python语法问题,我这边一切正常。

@kevinyee628
Copy link
Author

是一开始执行的时候马上就报这个错误吗?可以把完整的错误分享一下吗,这个错误是说python语法问题,我这边一切正常。

嗯嗯,是的,上面那个就是完整的错误 ,一开始执行的时候就报这个错误了,会不会是我python版本的问题,我的python版本是3.9.6

@MikeDean2367
Copy link
Collaborator

你好,我重新配置了一下环境,使用python=3.9.6进行,一切也都是正常的。

@MikeDean2367
Copy link
Collaborator

您可以尝试一下把make_diff函数删除,观察是否会报错

@kevinyee628
Copy link
Author

您可以尝试一下把make_diff函数删除,观察是否会报错

好的,收到,我尝试一下

@zxlzr
Copy link
Contributor

zxlzr commented Jul 8, 2023

请问您的问题解决了吗

@kevinyee628
Copy link
Author

请问您的问题解决了吗

还没,可能是我的环境有问题,今天刚刚重新排查问题

@zxlzr
Copy link
Contributor

zxlzr commented Jul 26, 2023

您的问题解决了吗

@zxlzr zxlzr closed this as completed Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants