How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf navthings/lilchat:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf navthings/lilchat:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf navthings/lilchat:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf navthings/lilchat:Q4_K_M
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf navthings/lilchat:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf navthings/lilchat:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf navthings/lilchat:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf navthings/lilchat:Q4_K_M
Use Docker
docker model run hf.co/navthings/lilchat:Q4_K_M
Quick Links

lilchat

lilbase (297m params, trained from scratch) finetuned into a chat model on smol-smoltalk.

it follows the chat format, answers in full sentences, stops when its done, and does lists and code blocks. it does not know things. expect confident wrong answers on facts and maths, and weak memory across turns.

run it

ollama run navthings/lilchat

or try it in your browser: https://navthings.github.io/playground/

files

file size notes
model.safetensors + config + tokenizer 1.19gb transformers LlamaForCausalLM, chat template included
lilchat-q8_0.gguf 379mb
lilchat-q4_k_m.gguf 274mb smallest

prompt format

llama-2 style, with </s> (id 2) as the start token and after every assistant reply:

</s>[INST] hi [/INST] Hello! How can I help you today?</s>[INST] next message [/INST]

system prompts go in <<SYS>>\n...\n<</SYS>>\n\n before the first [INST].

finetune

full sft in mlx on a macbook air, 1,136 steps of 32k tokens (~37m tokens, about 12% of smol-smoltalk), loss only on assistant turns. held-out loss 1.337 vs 2.230 for lilbase on the same data.

temperature 0.4 works best. greedy decoding loops, keep some temperature.

code

https://github.com/navthings/sprout (sft/)

Downloads last month
284
Safetensors
Model size
0.3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for navthings/lilchat

Quantized
(1)
this model

Dataset used to train navthings/lilchat