Giter VIP home page Giter VIP logo

Comments (15)

MikeDean2367 avatar MikeDean2367 commented on May 18, 2024 1

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

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

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

from knowlm.

zxlzr avatar zxlzr commented on May 18, 2024 1

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

from knowlm.

kevinyee628 avatar kevinyee628 commented on May 18, 2024

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

from knowlm.

kevinyee628 avatar kevinyee628 commented on May 18, 2024

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

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

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

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

from knowlm.

kevinyee628 avatar kevinyee628 commented on May 18, 2024

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配置了环境,但是还是会出现如上情况

from knowlm.

MikeDean2367 avatar MikeDean2367 commented on May 18, 2024

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

from knowlm.

kevinyee628 avatar kevinyee628 commented on May 18, 2024

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

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

from knowlm.

MikeDean2367 avatar MikeDean2367 commented on May 18, 2024

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

from knowlm.

kevinyee628 avatar kevinyee628 commented on May 18, 2024

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

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

from knowlm.

MikeDean2367 avatar MikeDean2367 commented on May 18, 2024

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

from knowlm.

MikeDean2367 avatar MikeDean2367 commented on May 18, 2024

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

from knowlm.

kevinyee628 avatar kevinyee628 commented on May 18, 2024

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

好的,收到,我尝试一下

from knowlm.

zxlzr avatar zxlzr commented on May 18, 2024

请问您的问题解决了吗

from knowlm.

kevinyee628 avatar kevinyee628 commented on May 18, 2024

请问您的问题解决了吗

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

from knowlm.

zxlzr avatar zxlzr commented on May 18, 2024

您的问题解决了吗

from knowlm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.