Code Monkey home page Code Monkey logo

Comments (3)

iimez avatar iimez commented on September 25, 2024

Hello!

If you wanna work on the bindings make sure you follow the instructions here https://github.com/nomic-ai/gpt4all/tree/main/gpt4all-bindings/typescript#build-from-source

  • Check if you ran git submodule update --init --recursive and that gpt4all-backend/llama.cpp-mainline exists.
  • Then run npm run build:backend to build it and create the necessary artifacts in runtime
  • Finally run node scripts/prebuild.js to build the bindings.

Then it should run. Maybe we can simplify the build sometime.

from gpt4all.

mohaurammala avatar mohaurammala commented on September 25, 2024

Creating LLModel: {
llmOptions: {
model_name: 'orca-mini-3b-gguf2-q4_0.gguf',
model_path: '/Users/mohaurammala/.cache/gpt4all',
library_path: '/Users/mohaurammala/Documents/Dev-Work/DevOps/Gesh1/gpt4all/gpt4all-bindings/typescript/src',
device: 'gpu',
nCtx: 2048,
ngl: 100
},
modelConfig: {
systemPrompt: '### System:\n' +
'You are an AI assistant that follows instruction extremely well. Help as much as you can.',
promptTemplate: '### User:\n%1\n\n### Response:\n',
order: 'n',
md5sum: '0e769317b90ac30d6e09486d61fefa26',
name: 'Mini Orca (Small)',
filename: 'orca-mini-3b-gguf2-q4_0.gguf',
filesize: '1979946720',
requires: '2.5.0',
ramrequired: '4',
parameters: '3 billion',
quant: 'q4_0',
type: 'OpenLLaMa',
description: 'Small version of new model with novel dataset

  • Very fast responses
  • Instruction based
  • Explain tuned datasets
  • Orca Research Paper dataset construction approaches
  • Cannot be used commercially
',
url: 'https://gpt4all.io/models/gguf/orca-mini-3b-gguf2-q4_0.gguf',
path: '/Users/mohaurammala/.cache/gpt4all/orca-mini-3b-gguf2-q4_0.gguf'
}
}
/Users/mohaurammala/Documents/Dev-Work/DevOps/Gesh1/gpt4all/gpt4all-bindings/typescript/src/gpt4all.js:77
const llmodel = new LLModel(llmOptions);
^

Error: Could not find any implementations for build variant: default
at loadModel (/Users/mohaurammala/Documents/Dev-Work/DevOps/Gesh1/gpt4all/gpt4all-bindings/typescript/src/gpt4all.js:77:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///Users/mohaurammala/Documents/Dev-Work/DevOps/Gesh1/gpt4all/gpt4all-bindings/typescript/src/index.mjs:3:15

Followed the instruction at https://github.com/nomic-ai/gpt4all/tree/main/gpt4all-bindings/typescript#build-from-source and got the same error

from gpt4all.

vuthanhtrung2010 avatar vuthanhtrung2010 commented on September 25, 2024

Hello!

If you wanna work on the bindings make sure you follow the instructions here https://github.com/nomic-ai/gpt4all/tree/main/gpt4all-bindings/typescript#build-from-source

  • Check if you ran git submodule update --init --recursive and that gpt4all-backend/llama.cpp-mainline exists.
  • Then run npm run build:backend to build it and create the necessary artifacts in runtime
  • Finally run node scripts/prebuild.js to build the bindings.

Then it should run. Maybe we can simplify the build sometime.

Fixed. Thanks

from gpt4all.

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.