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

Does not work on ubuntu 22.04 & node 20 #52

Closed
Temtaime opened this issue Oct 25, 2023 · 10 comments · Fixed by #53 or #59
Closed

Does not work on ubuntu 22.04 & node 20 #52

Temtaime opened this issue Oct 25, 2023 · 10 comments · Fixed by #53 or #59
Labels

Comments

@Temtaime
Copy link

Please refer to the troubleshooting before opening an issue. You might find the solution there.

Describe the bug
Followed instructions, when catai up is used it only opens a page for 1 time, then process exits.

Screenshots

$ catai up
CatAI client on http://127.0.0.1:3000
New connection
$ echo $?
0

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser [e.g. chrome, safari] Chrome
  • CatAI version [e.g. 0.3.10] (catai --version) 3.0.0
  • Node.js version [e.g 19] (node --version) 20
@Temtaime Temtaime added the bug Something isn't working label Oct 25, 2023
@ido-pluto
Copy link
Collaborator

It happened before when I did not have enough RAM for the model to run.
Which model do you try to run?
How many GB of memory do you have?
What is the CPU of your computer?

@ido-pluto ido-pluto mentioned this issue Oct 26, 2023
4 tasks
@Temtaime
Copy link
Author

Temtaime commented Oct 26, 2023

I have 64gb ram, tried wizard-vicuna-30b-uncensored-q4_k_s, cpu is ryzen 5900x.

@ido-pluto
Copy link
Collaborator

Do other models work for you?

Try this:

# cd to catai directory
cd `where catai | rev | cut -c10- | rev`/lib/node_modules/catai/

# update node-llama-cpp to the latest version
npm i node-llama-cpp@latest

If it also does not work, we can try to recompile it:

npx node-llama-cpp download

After that tell me if it works, I want to check the issue more deeply :)

@github-actions
Copy link

🎉 This issue has been resolved in version 3.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Temtaime
Copy link
Author

Hello

npm i node-llama-cpp@latest executed without errors, but it still was not working

After recompiling with npx node-llama-cpp download it started to work, thanks !

@0xGoenka
Copy link

0xGoenka commented Nov 2, 2023

Not working on Ubuntu 22.04.3 LTS and node 18

@0xGoenka
Copy link

0xGoenka commented Nov 2, 2023

image

@ido-pluto
Copy link
Collaborator

On it, I think the cpp binaries for AMD do not work properly

Copy link

🎉 This issue has been resolved in version 3.1.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ido-pluto
Copy link
Collaborator

You can fix this issue, by using catai beta and rebuilding the binaries

npm i -g catai@beta
catai cpp

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

Successfully merging a pull request may close this issue.

3 participants