Giter Site home page Giter Site logo

jellydn / gpt4all-cli Goto Github PK

View Code? Open in Web Editor NEW
33.0 4.0 6.0 529 KB

By utilizing GPT4All-CLI, developers can effortlessly tap into the power of GPT4All and LLaMa without delving into the library's intricacies. Simply install the CLI tool, and you're prepared to explore the fascinating world of large language models directly from your command line!

License: MIT License

JavaScript 40.85% TypeScript 59.15%
cli gpt4all llama gpt4all-ts

gpt4all-cli's Introduction

Welcome to gpt4all-cli ๐Ÿ‘‹

Version Downloads/week LicensePrerequisite Twitter: jellydn

A CLI tool built on top of gpt4all-ts

IT Man - Tech #35 - Unlock the Power of AI: GPT4All #GPT-3.5-Turbo & #LLaMa [Vietnamese]

Intro

GPT4All-CLI is a robust command-line interface tool designed to harness the remarkable capabilities of GPT4All within the TypeScript ecosystem. It is constructed atop the GPT4All-TS library.

The GPT4All-TS library is a TypeScript adaptation of the GPT4All project, which provides code, data, and demonstrations based on the LLaMa large language model with approximately 800k GPT-3.5-Turbo Generations ๐Ÿ˜ฒ. Inspired by the GPT4All project, GPT4All-TS strives to extend its functionalities and make them accessible to TypeScript and JavaScript developers.

By utilizing GPT4All-CLI, developers can effortlessly tap into the power of GPT4All and LLaMa without delving into the library's intricacies. Simply install the CLI tool, and you're prepared to explore the fascinating world of large language models directly from your command line!

Usage

  npx gpt4all-cli@latest

Display help for command

โฏ npx gpt4all-cli@latest -h
Usage: gpt4all [options]

GPT4all CLI

Options:
  -V, --version        output the version number
  -m, --model <value>  Choose a model (default: gpt4all-lora-quantized) (default: "")
  -r, --reset          Reset the model by deleting the ~/.nomic folder (default: false)
  -h, --help           Display help for command

https://gyazo.com/15617a4d46884092c0286ec6c0d014d9.gif https://gyazo.com/3308c5da3ed189cc53f875cc5747d6be.gif

Learning Resources

Author

๐Ÿ‘ค Dung Huynh

Show your support

kofi paypal buymeacoffee

Give a โญ๏ธ if this project helped you!

gpt4all-cli's People

Contributors

jellydn avatar renovate[bot] avatar srnightmare09 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gpt4all-cli's Issues

Issue when selecting model

Describe the bug

idk here's the full error:

(VoxNovel) drew@drew-System-Product-Name:~$ npx gpt4all-cli@latest
โ„น Welcome to the GPT4all CLI! 3:39:48 PM

โœ” Choose a model (default: gpt4all-lora-quantized):
gpt4all-lora-unfiltered-quantized
[3:39:50 PM] โ— Initialize and download gpt4all-lora-unfiltered-quantized model .
โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0% | ETA: 0s | 0/100
[3:39:50 PM] ERROR ENOENT: no such file or directory, open '/home/drew/.nomic'

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 100% | ETA: NULLs | NaN/100node:event6
throw er; // Unhandled 'error' event
^

HTTPError: Response code 404 (Not Found)
at Request._onResponseBase (file:///home/drew/.npm/_npx/27661af4ada6ed12/no)
at Request._onResponse (file:///home/drew/.npm/_npx/27661af4ada6ed12/node_m)
at ClientRequest. (file:///home/drew/.npm/_npx/27661af4ada6ed12/)
at Object.onceWrapper (node:events:633:26)
at ClientRequest.emit (node:events:530:35)
at HTTPParser.parserOnIncomingClient (node:_http_client:698:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:540:22)
at TLSSocket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:559:12)
Emitted 'error' event at:
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:{
input: undefined,
code: 'ERR_NON_2XX_3XX_RESPONSE',
timings: {
start: 1712691590280,
socket: 1712691590281,
lookup: 1712691590284,
connect: 1712691590301,
secureConnect: 1712691590322,
upload: 1712691590323,
response: 1712691590509,
end: 1712691590538,
error: undefined,
abort: undefined,
phases: {
wait: 1,
dns: 3,
tcp: 17,
tls: 21,
request: 1,
firstByte: 186,
download: 29,
total: 258
}
},
options: Options {
_unixOptions: undefined,
_internals: {
request: undefined,
agent: { http: undefined, https: undefined, http2: undefined },
h2session: undefined,
decompress: true,
timeout: {
connect: undefined,
lookup: undefined,
read: undefined,
request: undefined,
response: undefined,
secureConnect: undefined,
send: undefined,
socket: undefined
},
prefixUrl: '',
body: undefined,
form: undefined,
json: undefined,
cookieJar: undefined,
ignoreInvalidCookies: false,
searchParams: undefined,
dnsLookup: undefined,
dnsCache: undefined,
context: {},
hooks: {
init: [],
beforeRequest: [],
beforeError: [],
beforeRedirect: [],
beforeRetry: [],
afterResponse: []
},
followRedirect: true,
maxRedirects: 10,
cache: undefined,
throwHttpErrors: true,
username: '',
password: '',
http2: false,
allowGetBody: false,
headers: {
'user-agent': 'got (https://github.com/sindresorhus/got)',
'accept-encoding': 'gzip, deflate, br'
},
methodRewriting: false,
dnsLookupIpVersion: undefined,
parseJson: [Function: parse],
stringifyJson: [Function: stringify],
retry: {
limit: 2,
methods: [ 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' ],
statusCodes: [
408, 413, 429, 500,
502, 503, 504, 521,
522, 524
],
errorCodes: [
'ETIMEDOUT',
'ECONNRESET',
'EADDRINUSE',
'ECONNREFUSED',
'EPIPE',
'ENOTFOUND',
'ENETUNREACH',
'EAI_AGAIN'
],
maxRetryAfter: undefined,
calculateDelay: [Function: calculateDelay],
backoffLimit: Infinity,
noise: 100
},
localAddress: undefined,
method: 'GET',
createConnection: undefined,
cacheOptions: {
shared: undefined,
cacheHeuristic: undefined,
immutableMinTimeToLive: undefined,
ignoreCargoCult: undefined
},
https: {
alpnProtocols: undefined,
rejectUnauthorized: undefined,
checkServerIdentity: undefined,
certificateAuthority: undefined,
key: undefined,
certificate: undefined,
passphrase: undefined,
pfx: undefined,
ciphers: undefined,
honorCipherOrder: undefined,
minVersion: undefined,
maxVersion: undefined,
signatureAlgorithms: undefined,
tlsSessionLifetime: undefined,
dhparam: undefined,
ecdhCurve: undefined,
certificateRevocationLists: undefined
},
encoding: undefined,
resolveBodyOnly: false,
isStream: true,
responseType: 'text',
url: URL {},
pagination: {
transform: [Function: transform],
paginate: [Function: paginate],
filter: [Function: filter],
shouldContinue: [Function: shouldContinue],
countLimit: Infinity,
backoff: 0,
requestLimit: 10000,
stackAllItems: false
},
setHost: true,
maxHeaderSize: undefined,
signal: undefined,
enableUnixSockets: false
},
_merging: false,
_init: [ { isStream: true } ]
}
}

Node.js v20.12.1
(VoxNovel) drew@drew-System-Product-Name:~$

Reproduction

idk just installed gpt4all and then ran your "npx gpt4all-cli@latest" command

System Info

(VoxNovel) drew@drew-System-Product-Name:~$ npx envinfo --system --binaries --bs
Need to install the following packages:
[email protected]
Ok to proceed? (y) y

  System:
    OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    Memory: 27.73 GB / 31.26 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.12.1 - /usr/bin/node
    npm: 10.5.0 - /usr/bin/npm
  Browsers:
    Chrome: 122.0.6261.128
    Chromium: 123.0.6312.86

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): lock file maintenance

Detected dependencies

github-actions
.github/workflows/todo.yml
  • actions/checkout v4
npm
package.json
  • commander 12.0.0
  • consola 3.2.3
  • debug 4.3.4
  • gpt4all-ts-client 0.3.0
  • ora 8.0.1
  • prettier 3.2.5
  • @skypack/package-check 0.2.2
  • @total-typescript/shoehorn 0.1.2
  • @types/debug 4.1.12
  • @types/node 20.12.7
  • @types/prettier 3.0.0
  • @vitest/coverage-c8 0.33.0
  • @vitest/ui 1.5.0
  • tsup 8.0.2
  • tsx 4.7.2
  • typescript 5.4.5
  • vitest 1.5.0
  • node >=16.20.0

  • Check this box to trigger a request for Renovate to run again on this repository

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.