Instructions to use Tractorman/tiny-lm-8M-Q8_0-GGUF 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 Tractorman/tiny-lm-8M-Q8_0-GGUF 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 Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0
Use Docker
docker model run hf.co/Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use Tractorman/tiny-lm-8M-Q8_0-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tractorman/tiny-lm-8M-Q8_0-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tractorman/tiny-lm-8M-Q8_0-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0
- Ollama
How to use Tractorman/tiny-lm-8M-Q8_0-GGUF with Ollama:
ollama run hf.co/Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use Tractorman/tiny-lm-8M-Q8_0-GGUF with Docker Model Runner:
docker model run hf.co/Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0
- Lemonade
How to use Tractorman/tiny-lm-8M-Q8_0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Tractorman/tiny-lm-8M-Q8_0-GGUF:Q8_0
Run and chat with the model
lemonade run user.tiny-lm-8M-Q8_0-GGUF-Q8_0
List all available models
lemonade list
- Atomic Chat
tiny-lm-8M GGUF (original and instruction-tuned; Q8_0 and Q4_0)
GGUFs of sixf0ur/tiny-lm-8M (commit
e9b3815b72efdc9e97c17e292121b641e200d58c) for llama.cpp, quantized to Q8_0 (and the instruction-tuned one also to Q4_0). Made for a university SoC
design project (ECE382M, UT Austin), where it runs on an FPGA accelerator for Q8_0 matrix-vector products.
Credit and license: the base model, its weights and tokenizer are by sixf0ur, under CC BY 4.0. The fine-tune also uses text from sixf0ur/nano_wiki (CC BY 4.0).
| File | What it is | Size | SHA-256 |
|---|---|---|---|
tiny-lm-8M-Q8_0.gguf |
The original model, converted; 256-token context, no chat template | 8,960,448 bytes | d2227b07595c0129be6066c0f6c6b552357d5c2a80c308ee8d2eb4af4a4b8733 |
tiny-lm-8M-ft-Q8_0.gguf |
Instruction-tuned: follows simple formatting instructions; 512-token context; plain-text chat template | 8,960,128 bytes | ac0e48a60ae9bf4a8a9f27333d140a37612411be5e0293b334e175353c38c470 |
tiny-lm-8M-ft-Q4_0.gguf |
The same instruction-tuned model in Q4_0, quantized from its f32 weights (not from the Q8_0 file). Every matrix is Q4_0, output.weight and token_embd.weight included (--output-tensor-type q4_0); the norms stay f32 |
4,794,496 bytes | 1387254ca7a3e88608c6b0d6993c0467909ba44bfcec9ac283e29f8dc6da6155 |
The instruction-tuned file
A full fine-tune of all 8.4 M parameters, 2 epochs, on:
- 33,000 synthetic instruction examples generated for this: an instruction about a topic with one or
two formatting rules (exact sentence, paragraph, bullet or line counts; word ranges; lowercase or
uppercase; no commas; forbidden or required words; a given start or end; quotes; JSON with given keys;
a
<<title>>; per-line patterns), answered with sentences from that topic's nano_wiki article and transformed to follow the rules. Every response was checked automatically against its rules. - About 4,000 plain-text chunks of nano_wiki, to keep it fluent and to train the 512-token context.
The chat template renders the conversation as plain text (the user's message, a newline, then the reply), the format it was trained on.
It is still an 8 M model: it follows the form of an instruction, but what it writes is often wrong or loosely related to the question. It has little world knowledge.
Q4_0 against Q8_0
On the course benchmark (50 items: HellaSwag, ARC-Easy, IFEval-style; x86 llama-server, five item samples, seeds 42, 1, 2, 3, 4):
| File | Mean | Range | HellaSwag | ARC-Easy | IFEval |
|---|---|---|---|---|---|
tiny-lm-8M-ft-Q8_0.gguf |
30.6 | 25.2 to 34.3 | 22.7 | 18.9 | 70 |
tiny-lm-8M-ft-Q4_0.gguf |
28.3 | 22.9 to 31.3 | 22.4 | 18.3 | 60 |
Q4_0 loses most on the instruction-following part. It is 46% smaller.
- Downloads last month
- 317
4-bit
8-bit
Model tree for Tractorman/tiny-lm-8M-Q8_0-GGUF
Base model
sixf0ur/tiny-lm-8M