Git Product home page Git Product logo

Comments (8)

1049451037 avatar 1049451037 commented on July 23, 2024 2

是的,不过hf也是可以正常用的,只是需要降级一下transformers库。

我试着降级还是不能用还是这个错误 AttributeError: module 'transformers_modules.hf.modeling_chatglm' has no attribute 'ChatGLMForConditionalGenerationWithImage'. Did you mean: 'ChatGLMForConditionalGeneration'?

那应该就是你的代码没下载全,visuaglm-6b的代码里是有ChatGLMForConditionalGenerationWithImage这个类的。你试着在你的代码里搜一下:https://huggingface.co/THUDM/visualglm-6b/blob/main/modeling_chatglm.py#L1341

from visualglm-6b.

1049451037 avatar 1049451037 commented on July 23, 2024

hf版本的visualglm已经比较久没人维护了,建议用老版本的transformers试一下:

pip install transformers==4.31

from visualglm-6b.

w9931125 avatar w9931125 commented on July 23, 2024

hf版本的visualglm已经比较久没人维护了,建议用老版本的transformers试一下:

pip install transformers==4.31

好吧 ,现在只有git上这个普通版本吗?比如说后缀没有_hf的py文件

from visualglm-6b.

1049451037 avatar 1049451037 commented on July 23, 2024

是的,不过hf也是可以正常用的,只是需要降级一下transformers库。

from visualglm-6b.

w9931125 avatar w9931125 commented on July 23, 2024

是的,不过hf也是可以正常用的,只是需要降级一下transformers库。

我试着降级还是不能用还是这个错误
AttributeError: module 'transformers_modules.hf.modeling_chatglm' has no attribute 'ChatGLMForConditionalGenerationWithImage'. Did you mean: 'ChatGLMForConditionalGeneration'?

from visualglm-6b.

w9931125 avatar w9931125 commented on July 23, 2024

或者 您还知道有什么其他的图片大模型吗

from visualglm-6b.

1049451037 avatar 1049451037 commented on July 23, 2024

或者 您还知道有什么其他的图片大模型吗

可以试一下CogVLM:https://github.com/THUDM/CogVLM

不过开源版本暂时不支持中文。

from visualglm-6b.

w9931125 avatar w9931125 commented on July 23, 2024

是的,不过hf也是可以正常用的,只是需要降级一下transformers库。

我试着降级还是不能用还是这个错误 AttributeError: module 'transformers_modules.hf.modeling_chatglm' has no attribute 'ChatGLMForConditionalGenerationWithImage'. Did you mean: 'ChatGLMForConditionalGeneration'?

那应该就是你的代码没下载全,visuaglm-6b的代码里是有ChatGLMForConditionalGenerationWithImage这个类的。你试着在你的代码里搜一下:https://huggingface.co/THUDM/visualglm-6b/blob/main/modeling_chatglm.py#L1341

是的 我又重新检查了一下 非常感谢您

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.