GithubHelp home page GithubHelp logo

Comments (3)

PCKxin avatar PCKxin commented on May 23, 2024

Mac端需要等后续ollama方案
也可以自己试着将模型导入ollama

我的是M1MAX 修改一下使用终端运行的代码可以用cpu跑 但是会很慢(20分钟也没蹦出一个字就关了)

from llama3-chinese-chat.

taozhiyuai avatar taozhiyuai commented on May 23, 2024

ollama , lm studio都没有问题

from llama3-chinese-chat.

jiyzhang avatar jiyzhang commented on May 23, 2024

在M1 Mac上尝试使用了MPS,监控也可以看到GPU的使用情况,但推理速度并不快
修改 deploy/web_streamlit_for_instruct_v*.py, 将其中的 v.cuda()改成
device = torch.device("mps" if torch.backends.mps.is_available() else "cpu")
v.to(device)
以及注释掉
torch.cuda.empty_cache()

from llama3-chinese-chat.

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.