GithubHelp home page GithubHelp logo

Comments (7)

ido-pluto avatar ido-pluto commented on June 19, 2024

Are you trying to configure CatAI only to use some CPU/GPU cores?
In general llama.cpp is the actual engine behind the scenes, you can configure with CatAI how many CPU/GPU cores and memory the model uses.

You can configure CatAI like this:

  1. open the settings tab:
    image

  2. Add custom settings, which you can find here: https://withcatai.github.io/node-llama-cpp/types/LlamaModelOptions.html

  3. Restart CatAI
    image

from catai.

schrummy14 avatar schrummy14 commented on June 19, 2024

Hello,

I am trying to get the model to utilize all of the cpu/gpu that I have available...
Looking at the utilization, node is using 6 cores (of 16) and ~13% of a v100 gpu.
image
image

I have tried altering some of the settings but I wasn't able to see a difference.
By chance is it because of the model that I am using?
vicuna-7b-v1.5-q4_1

Thank you.

from catai.

ido-pluto avatar ido-pluto commented on June 19, 2024

Yes, this may be related. The binding of node-llama-cpp has some bugs with the configuration.
This binding allows you to use ggmlV3 (legacy format).

The recommended format is gguf (node-llama-cpp-v2),
If you want to utilize more VRAM you should use a bigger model, such as

  • llama-2-13b-chat-limarp-v2-merged-q3_k_s
  • phind-codellama-34b-q3_k_s

You can check this page for more models: https://huggingface.co/TheBloke

Most GGUF models are supported, you can install a custom model by coping the model link to catai install

image

The more parameter the model the more resources it utilizes, so this model (70B) https://huggingface.co/TheBloke/ARIA-70B-V2-GGUF

Can be pretty heavy.

If a model split into files like https://huggingface.co/TheBloke/Falcon-180B-GGUF/tree/main
You can install it like this:

canai install model-part-a.gguf,model-part-b.gguf

I have not tried this method yet, so if there is a problem feel free to report it :)

from catai.

schrummy14 avatar schrummy14 commented on June 19, 2024

Ok. I'll continue to look into it.
For the gif that is in the documentation, would you be able to tell me what model was used and about how long the answer took to generate? I feel that what I am seeing is slower than what is to be expected.
Thank you again.

from catai.

ido-pluto avatar ido-pluto commented on June 19, 2024

This git was generated from screen recording in mac pro m1. llama.cpp has spesifict optimization for mac silicon.
If I remember right this was from vicuna-13b-v1.5-q4_1 (but older version of the model).
I will soon update the models index to support vicuna with GGUF (gguf have more optimizations).

Are your cuda working when the model generating tokens?

from catai.

ido-pluto avatar ido-pluto commented on June 19, 2024

I uploaded new models, in my Mac token/s is faster than in the gif, I use vicuna-7b-16k-q4_k_s

Screen.Recording.2023-09-21.at.12.02.31.mov

from catai.

schrummy14 avatar schrummy14 commented on June 19, 2024

Thank you.
I'll need to go back and see what is happening on my side as it is much slower than what you are showing.
I'll close this out.
Thank you again.

from catai.

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.