Skip to content

qbalsdon/llama-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llama-node

A nodejs llamba cpp terminal client. Based off of node-llama-cpp

Requirements

  • nodeenv - A node virtual environment
  • node v21.7.0 - I was using 18 and it just wouldn't work

Running

Installation

The ./setup.sh script:

  • Creates a virtual environment
  • Creates a models folder
  • Downloads a model (big file!)

Execution

The ./go script:

  • Starts the virtual environment
  • Runs the nodejs server
  • Exits the virtual environment on completion

Termination

You can use the [quit] command from the prompt or simply terminate the process.

Future work

  • Allow files to be loaded.
# [load path] prompt
# Example
[load path\to\file.txt] Summarize this file
  • Also allow [load ...] to download web pages

Dynamic models

  • Let the user choose from the models from the models folder at run time
  • Allow users to download models from the

About

A nodejs llamba cpp terminal client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published