GithubHelp home page GithubHelp logo

Comments (7)

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

This is related to the context limit, you can try to extend it.

catai config --edit nano

change the nCtx to something bigger, for example 4096

export const SETTINGS_NODE_LLAMA = {
    enableLogging: false,
    nCtx: 4096,
    nParts: -1,
    seed: 0,
    f16Kv: false,
    logitsAll: false,
    vocabOnly: false,
    useMlock: false,
    embedding: false,
    useMmap: false,
    nGpuLayers: 3,
};

from catai.

ceddybi avatar ceddybi commented on June 16, 2024

@ido-pluto How do you change the config now, i have the same issue but looks like the config command was removed, how to archive the same?

from catai.

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

You can change the config via the settings button in the webui

from catai.

ceddybi avatar ceddybi commented on June 16, 2024

@ido-pluto i just editted it to this, but it ignore my changes

{
"bind": "...",
"nCtx": 10000,
"n_ctx": 10000
}

from catai.

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

There is a configuration guide in the readme, check it out.

The option you are looking for is here:
https://withcatai.github.io/node-llama-cpp/api/type-aliases/LlamaContextOptions

from catai.

ceddybi avatar ceddybi commented on June 16, 2024

@ido-pluto i just added, but now i get this error

{
"bind": "...",
"contextSize": 10000,
"batchSize": 10000
}

GGML_ASSERT: /home/runner/work/node-llama-cpp/node-llama-cpp/llama/llama.cpp/ggml-backend.c:519: data != NULL && "failed to allocate buffer"

from catai.

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

This is too large, to reset the model you can simply delete and reinstall it

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.