Giter Club home page Giter Club logo

Comments (7)

CheaSim avatar CheaSim commented on May 18, 2024

请问一下transformers和pytorch_lightning的版本,以及模型文件是否成功下载。

from promptkg.

Roger-Ni avatar Roger-Ni commented on May 18, 2024

transformers==4.15.0 pytorch_lighting==1.6.0 .模型文件的话,我看knnkge.sh文件中写的是model_name_or_path="bert-base-uncased",就认为应该是下载bert的模型,我就下载到了如下图所示的目录下。
截图 2023-11-10 14-41-01
然后bert-base-uncased文件夹下的文件应该也是齐全的(如下图所示)
截图 2023-11-10 14-42-12

from promptkg.

CheaSim avatar CheaSim commented on May 18, 2024

请把transformers 版本和requirements.txt 保持一致。

transformers==4.6.0

from promptkg.

zxlzr avatar zxlzr commented on May 18, 2024

请问您的问题是否已解决

from promptkg.

Roger-Ni avatar Roger-Ni commented on May 18, 2024

我把transformers和pytorch_lighting都配置成了rquirements中的版本,但是运行时,还是会出现如下错误。
截图 2023-11-24 18-12-48

from promptkg.

CheaSim avatar CheaSim commented on May 18, 2024

这个貌似是transformers版本的问题,麻烦您使用python3.8 并且transformers更新到4.6.0.
请先执行

pip install -r requirements.txt

再运行我们的脚本~

from promptkg.

zxlzr avatar zxlzr commented on May 18, 2024

请问您的问题是否已解决?

from promptkg.

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.