Code Monkey home page Code Monkey logo

Comments (7)

einsflash avatar einsflash commented on July 21, 2024

没事了

from chatglm3.

zephyrkz avatar zephyrkz commented on July 21, 2024

你怎么解决的呀

from chatglm3.

einsflash avatar einsflash commented on July 21, 2024

我看b站别人发的,在web_demo.py或者demo2.py里最开头加个东西(适用n卡)
量化要8g显存
model = AutoModel.from_pretrained("E:\Chatglm3\chatglm3-6b", trust_remote_code=True).quantize(8).half().cuda()
不加量化要13g显存
model = AutoModel.from_pretrained("E:\Chatglm3\chatglm3-6b", trust_remote_code=True).cuda()

"E:\Chatglm3\chatglm3-6b"是下载的11个g的模型目录
https://huggingface.co/THUDM/chatglm3-6b huggingface里有模型
然后tokenizer里的目录也要改
tokenizer = AutoTokenizer.from_pretrained("E:\Chatglm3\chatglm3-6b", trust_remote_code=True)

from chatglm3.

scut-pzy avatar scut-pzy commented on July 21, 2024

我按照题主的方法试过没啥用啊,题主能具体命令也说一下吗

from chatglm3.

einsflash avatar einsflash commented on July 21, 2024

我当时看的这个视频
https://b23.tv/LRDA0vR

from chatglm3.

scut-pzy avatar scut-pzy commented on July 21, 2024

跑起来但是只要一提问,量化要19g显存,非量化23G现存,有什么头绪吗

from chatglm3.

einsflash avatar einsflash commented on July 21, 2024

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.