Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 601 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 601 Bytes

Llama2.c port to JavaScript

This is a JavaScript version of the popular llama2.c library by Andrej Karpathy.

Place the model file (e.g. stories15M.bin) into the directory.

wget https://huggingface.co/karpathy/tinyllamas/resolve/main/stories15M.bin

Then run the LLM.

> node src/main.js stories15M.bin -i "Tell me a story "

The repo is not yet on npm, byt if you prefer to run from outside of the repo you can install it globally via npm

> npm install -g .
> llamajs stories15M.bin -i "Tell me a story "

License

MIT