Instructions to use deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized with 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 deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M # Run inference directly in the terminal: llama cli -hf deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M # Run inference directly in the terminal: llama cli -hf deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized: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 deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized: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 deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M
Use Docker
docker model run hf.co/deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M
- Ollama
How to use deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized with Ollama:
ollama run hf.co/deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized with Docker Model Runner:
docker model run hf.co/deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M
- Lemonade
How to use deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M
Run and chat with the model
lemonade run user.TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized-Q4_K_M
List all available models
lemonade list
- Atomic Chat
π¦ TinyLlama 1.1B Chat β GGUF (Imatrix Quantized)
A GGUF imatrix-quantized build of TinyLlama/TinyLlama-1.1B-Chat-v1.0, optimized for fast, private, on-device inference on Apple Silicon and other consumer hardware.
π Optimized with an Importance Matrix (imatrix). Unlike standard quantizations that calibrate on random data, this build was processed with a dense text corpus (The Adventures of Sherlock Holmes) to compute a high-fidelity Importance Matrix. This preserves the model's most influential weights, yielding lower perplexity and better reasoning than plain K-quants at the same bit width.
β¨ Why this build
- Runs fully offline / on-device β no data ever leaves the machine. Useful where privacy, data residency or regulatory constraints rule out cloud APIs.
- Small footprint β ~700 MB at 4-bit; runs comfortably on a laptop.
- Imatrix-calibrated β better quality retention than standard K-quants.
- Apple Silicon friendly β built and tested for Metal /
llama.cppon macOS, and portable to Linux and Windows.
π¦ Available Files
| Filename | Quant Type | Size | Use Case |
|---|---|---|---|
TinyLlama-1.1B-Chat-v1.0-Q4_K_M.gguf |
Q4_K_M | ~700 MB | π Recommended. Best balance of speed and quality. |
π οΈ How to Use
Option 1 β llama.cpp (command line)
# Point -m at the downloaded .gguf file
./llama-cli -m TinyLlama-1.1B-Chat-v1.0-Q4_K_M.gguf \
-p "Hello, how are you?" \
-n 400 -e
Or pull it directly from the Hub:
llama-cli -hf deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M
Option 2 β llama-cpp-python
# pip install llama-cpp-python
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized",
filename="TinyLlama-1.1B-Chat-v1.0-Q4_K_M.gguf",
)
llm.create_chat_completion(
messages=[{"role": "user", "content": "What is the capital of France?"}]
)
Option 3 β Ollama
ollama run hf.co/deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized:Q4_K_M
Option 4 β LM Studio / Jan
Search for deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized inside the app and download the Q4_K_M file.
π¬ Prompt format
TinyLlama-Chat uses the Zephyr-style chat template:
<|system|>
You are a helpful assistant.</s>
<|user|>
{your message}</s>
<|assistant|>
π Model details
- Base model: TinyLlama/TinyLlama-1.1B-Chat-v1.0
- Parameters: 1.1B
- Architecture: Llama
- Quantization: Q4_K_M (4-bit) with importance matrix
- Format: GGUF (for
llama.cppand compatible runtimes) - License: Apache-2.0 (inherited from the base model)
β οΈ Limitations
This is a 1.1B-parameter model. It is well suited to lightweight, on-device and edge use cases, fast prototyping and privacy-sensitive settings, but it is not comparable to larger models on complex reasoning, factual accuracy or long-context tasks. Outputs should be reviewed before use in any high-stakes setting.
π Citation
If you use this model, please cite:
@misc{salmeron_tinyllama_imatrix,
author = {Salmeron, Jose L.},
title = {TinyLlama 1.1B Chat GGUF (Imatrix Quantized)},
year = {2026},
publisher = {Hugging Face},
doi = {10.57967/hf/7849},
url = {https://huggingface.co/deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized}
}
- Downloads last month
- 52
4-bit
Model tree for deepsky-ia/TinyLlama-1.1B-Chat-v1.0-GGUF-MacQuantized
Base model
TinyLlama/TinyLlama-1.1B-Chat-v1.0