← All packages

Story teller (llama2.c)

llama2c 0.0.20240529-1maemo2 · games

A tiny language model that tells stories (llama2.c)

Install (after adding the repository):
apt-get install llama2c

Download .deb Install file for the N900

On the phone: download the install file and open it, the Application Manager offers the package. It needs curl and apt-transport-curl first, see Software setup.

Version0.0.20240529-1maemo2
Size1225 kB download, 1688 kB installed
Sectionuser/games
MaintainerelPytel
Upstreamhttps://github.com/karpathy/llama2.c
Dependslibc6 (>= 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