Code Monkey home page Code Monkey logo

Comments (4)

jediwolf avatar jediwolf commented on June 20, 2024 2

升级transformers到最新,问题解决,4.30.2根本不能用

from chatglm3.

jeremysong88 avatar jeremysong88 commented on June 20, 2024

@jediwolf 👍 描述正确,我将transformers升级到 transformers==4.34.1 后运行正常

from chatglm3.

WWeellkkiinn avatar WWeellkkiinn commented on June 20, 2024

@jediwolf 完全正确,使用pip install --upgrade transformers更新后完美解决问题

from chatglm3.

changzheng169 avatar changzheng169 commented on June 20, 2024

@WWeellkkiinn 为什么我将transformers升级到最新后还是不能用
Successfully installed huggingface-hub-0.20.1 tokenizers-0.15.0 transformers-4.36.2
(chatglm3) star@star-S8030GM2NE:~/ChatGLM3/basic_demo$ streamlit run web_demo_streamlit.py

2023-12-20 21:45:07.062 Uncaught app exception
Traceback (most recent call last):
File "/home/star/.local/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
exec(code, module.dict)
File "/home/star/ChatGLM3/basic_demo/web_demo_streamlit.py", line 16, in
from transformers import AutoModel, AutoTokenizer
ModuleNotFoundError: No module named 'transformers'

from chatglm3.

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.