Git Product home page Git Product logo

Comments (3)

kenryu42 avatar kenryu42 commented on May 29, 2024 4

Unfortunately, this did not work for me in M1.

When you first run nxp dalai llama, it clones the llama.cpp repo to your home directory.

You need to remove the llama.cpp folder for the virtualenv solution to work.

from dalai.

woozyking avatar woozyking commented on May 29, 2024 2

Unfortunately, this did not work for me in M1.

@mrafaeldie12 Not sure how you mean by not work. I was able to get past at least the installation by leveraging pipenv:

% pipenv --python 3.10
% pipenv run npx dalai llama

This will force the Dalai constructor to "inherit" from the virtualenv initiated by pipenv, effectively also bypassing the need for the following commented by @alexthehurst:

Thanks for the tip! On macOS, this didn't work for me until I patched cli.js to call new Dalai('~/dalai-venv-py310').install(... instead of calling the constructor with no args. Dalai looks for Python and Pip at this path.

I'm leaving this to download and will confirm if the inference actually runs on M1 later when I get back

downloading

Edit (2023-Mar-14):

Confirmed that the inference works (but quite slow and unreliable) on an M1 machine

from dalai.

alexthehurst avatar alexthehurst commented on May 29, 2024

Thanks for the tip! On macOS, this didn't work for me until I patched cli.js to call new Dalai('~/dalai-venv-py310').install(... instead of calling the constructor with no args. Dalai looks for Python and Pip at this path.

from dalai.

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.