Story teller (llama2.c)
A tiny language model that tells stories (llama2.c)
Install (after adding the repository):
apt-get install llama2c
| Version | 0.0.20240529-1maemo2 |
|---|---|
| Size | 1225 kB download, 1688 kB installed |
| Section | user/games |
| Maintainer | elPytel |
| Upstream | https://github.com/karpathy/llama2.c |
| Depends | libc6 (>= 2.5), curl |
Description
llama2.c is Karpathy's inference engine for the Llama 2 architecture, one C file without dependencies. With the small TinyStories models it continues a few first words into a children's story: stories15M (15 million weights) runs at about 3 tokens per second on the N900.
llama-story asks for the first words of the story. The model of 61 MB is downloaded once to ~/llama2c on request; the tiny stories260K (1 MB) is in the package. llama2c is the engine itself (llama2c model.bin -i "Once upon a time"), llama2c-q8 reads int8 quantized models.
A model has to fit in RAM: bigger ones (stories42M, 167 MB) read the flash for every token and take half a minute per token.
Upstream: https://github.com/karpathy/llama2.c