Giter VIP home page Giter VIP logo

Comments (6)

winnerahao avatar winnerahao commented on May 28, 2024

https://pypi.org/project/SwissArmyTransformer/0.3.6/#files 源码安装就好了,5月17发布的。。。pip还没更新吧

from visualglm-6b.

Sleepychord avatar Sleepychord commented on May 28, 2024

包名是SwissArmyTransformer,而不是sat。只是该库import的时候是用sat,这两个名字可能不同。
这个Run pip install sat是Huggingface transformers的提示,是错误的,但是我没法改。
请使用pypi源(而非tuna,它更新太慢)安装最新版本的SwissArmyTransformer。

from visualglm-6b.

ImGoodBai avatar ImGoodBai commented on May 28, 2024

https://pypi.org/project/SwissArmyTransformer/0.3.6/#files

手动下载源码安装,搞定了。

from visualglm-6b.

xiaohujecky avatar xiaohujecky commented on May 28, 2024

VisualGLM-6B/model/blip2.py", line 4, in
from SwissArmyTransformer.model import ViTModel, BaseModel
ImportError: cannot import name 'ViTModel' from 'SwissArmyTransformer.model'
还是会有错误,有人遇到了吗

from visualglm-6b.

1049451037 avatar 1049451037 commented on May 28, 2024

@xiaohujecky 代码里是from sat.model import ViTModel,为什么你的报错是from SwissArmyTransformer呢?

from visualglm-6b.

Sleepychord avatar Sleepychord commented on May 28, 2024

@xiaohujecky 可能是版本不对,pip show SwissArmyTransformer 看看版本是不是0.3.6不是的话,要重新装,请用标准或者阿里云pip镜像装。

from visualglm-6b.

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.