Model guide
TinyLlama 1.1B Chat v1.0
TinyLlama 1.1B Chat is a compact checkpoint for learning how local chat works or maintaining an existing TinyLlama experiment. Its short context and small size call for brief, tightly specified prompts. Compare it with another small instruction model before choosing it for document summaries or factual assistance.
At a glance
- Parameters
- 1.1B
- Accepts
- Text
- Returns
- Text
- Published context limit
- 2,048 tokens
- Model format
- Safetensors · GGUF
- Software and download hosts
- Ollama. Follow the exact setup below; this list does not establish support for every format, input type or software version.
- Suggested compression
- Q4_K_M
- Model-weight download
- Q4_K_M weights · 0.67 GBTheBloke (community conversion)tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf
- Languages
- English
- License
- Apache-2.0
Will it fit?
TinyLlama 1.1B Chat v1.0 · Q4_K_M download. Fit depends on your computer, the app you run it in and the conversation length you need.
Check on your computerBest for
- Label a short list of objects as fruit or tools.
Choose something else when
- Use a different checkpoint for a long conversation. The published window is 2,048 tokens.
First setup
Check a representative task
Keep the first task short enough to inspect completely.
Classify each item as fruit or tool. Return one line per item and no introduction: apple; hammer; pear.
Check the result: Apple and pear are fruit; hammer is a tool. An unrelated continuation or repeated prompt is a failure of this small instruction task.
This creates a 2,048-token copy of tinyllama:1.1b-chat-v1-q4_K_M named tinyllama-1-1b-chat-v1-short-context. Save the following as a file named Modelfile in your working folder:
FROM tinyllama:1.1b-chat-v1-q4_K_M
PARAMETER num_ctx 2048
Then run these commands from that folder:
ollama pull tinyllama:1.1b-chat-v1-q4_K_M
ollama create tinyllama-1-1b-chat-v1-short-context -f ./Modelfile
ollama run tinyllama-1-1b-chat-v1-short-context
Run the task check. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.
The recorded Ollama package is Q4_K_M: 0.67 GB of model weights. Use Ollama 0.40.18 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.
See Ollama context settings and the Modelfile instructions.
Run ollama run tinyllama:1.1b-chat-q4_K_M.
Open LM Studio’s Discover tab, search for TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF, and download tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf (Q4_K_M, 0.67 GB). See the download files. Select the file in Chat, set context to 2,048, then load it. Run the task check. If it will not load, open LM Studio Model Will Not Load.
Open a terminal in the extracted llama.cpp release folder. On Windows, replace ./llama-server below with .\llama-server.exe:
./llama-server -hf TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF -hff tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf -c 2048 --host 127.0.0.1 --port 8080
The server downloads the selected model. Wait for the model to load, then open http://127.0.0.1:8080 in your browser. Run the task check and inspect the result against its acceptance criteria. Keep the server terminal open; press Ctrl+C there to stop the server. The file list identifies the exact download. If the command fails: Unknown architecture? Update the runner. Allocation failed? Retry with less context or a smaller weight file.
Load the model, start a fresh chat and time your usual prompt. Record time until the first useful word and time until the full answer. Note the processor, context and output length when comparing another run.
