Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm error on gpt-llama.cpp #44

Open
C0deXG opened this issue May 12, 2023 · 4 comments
Open

npm error on gpt-llama.cpp #44

C0deXG opened this issue May 12, 2023 · 4 comments

Comments

@C0deXG
Copy link

C0deXG commented May 12, 2023

npm install ─╯

[email protected] postinstall
npm run updateengines && cd InferenceEngine/embeddings/all-mpnet-base-v2 && python -m pip install -r requirements.txt

[email protected] updateengines
git submodule foreach git pull

sh: python: command not found
npm ERR! code 127
npm ERR! path /Users/khederyusuf/Desktop/llama.cpp/gpt-llama.cpp
npm ERR! command failed
npm ERR! command sh -c npm run updateengines && cd InferenceEngine/embeddings/all-mpnet-base-v2 && python -m pip install -r requirements.txt

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/khederyusuf/.npm/_logs/2023-05-12T10_55_36_676Z-debug-0.log

@OfficiallyMelon
Copy link

install Python

@alexl83
Copy link

alexl83 commented May 13, 2023

npm.log
I have installed a specific conda environment - still npm install doesn't work - I think it's spawning an uninitialized shell for install

log attached
npm.log

(llama.cpp) ┌──(alex㉿moppio)-[~/AI/llama.cpp/gpt-llama.cpp]
└─$ npm clean-install

> [email protected] postinstall
> npm run update-engines && cd InferenceEngine/embeddings/all-mpnet-base-v2 && python -m pip install -r requirements.txt


> [email protected] update-engines
> git submodule foreach git pull &&  npm run ggml-build


> [email protected] ggml-build
> cd InferenceEngine/completion/ggml && mkdir -p build && cd build && cmake .. && make clean && make

CMake Warning:
  Ignoring extra path from command line:

   ".."


CMake Error: The source directory "/home/alex/AI/llama.cpp/gpt-llama.cpp/InferenceEngine/completion/ggml" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
npm ERR! code 1
npm ERR! path /home/alex/AI/llama.cpp/gpt-llama.cpp
npm ERR! command failed
npm ERR! command sh -c -- npm run update-engines && cd InferenceEngine/embeddings/all-mpnet-base-v2 && python -m pip install -r requirements.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alex/.npm/_logs/2023-05-13T16_42_02_551Z-debug-0.log
                                                                                                                                                                                               
(llama.cpp) ┌──(alex㉿moppio)-[~/AI/llama.cpp/gpt-llama.cpp]

It worked in conda until last update: can you please have a look at it?

@keldenl
Copy link
Owner

keldenl commented May 13, 2023

Sorry lots of changes that I should've probably decoupled -- please pull again, all the new inference stuff should be decoupled from npm install now

@alexl83
Copy link

alexl83 commented May 14, 2023

It's working now, thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants