Instructions to use Tractorman/accel-lm-5M-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/accel-lm-5M-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/accel-lm-5M-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf Tractorman/accel-lm-5M-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Tractorman/accel-lm-5M-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf Tractorman/accel-lm-5M-GGUF:Q4_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/accel-lm-5M-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf Tractorman/accel-lm-5M-GGUF:Q4_0
Use Docker
docker model run hf.co/Tractorman/accel-lm-5M-GGUF:Q4_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use Tractorman/accel-lm-5M-GGUF with Ollama:
ollama run hf.co/Tractorman/accel-lm-5M-GGUF:Q4_0
- Unsloth Desktop
- Docker Model Runner
How to use Tractorman/accel-lm-5M-GGUF with Docker Model Runner:
docker model run hf.co/Tractorman/accel-lm-5M-GGUF:Q4_0
- Lemonade
How to use Tractorman/accel-lm-5M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Tractorman/accel-lm-5M-GGUF:Q4_0
Run and chat with the model
lemonade run user.accel-lm-5M-GGUF-Q4_0
List all available models
lemonade list
- Atomic Chat
accel-lm-5M (GGUF, Q8_0 and Q4_0)
A 5.35 M-parameter Llama trained from scratch by ECE382M team 2 (UT Austin, fall 2026) for the course's FPGA
benchmark: llama-server on one Arm A53 core at 300 MHz on an Ultra96, with our GEMV accelerator for Q8_0 matrices.
File
| File | Format | Size | SHA-256 |
|---|---|---|---|
accel-lm-5M-Q8_0.gguf |
Q8_0 (norms F32), chat template baked in | 5,778,944 bytes | dc51fc13441264b42d4aa1e4d921b3c2dd3c51e4c0af734df97c5fe051d9409e |
accel-lm-5M-Q4_0.gguf |
Q4_0 on every matrix, embedding and output included (llama-quantize --pure), from the same weights; no quantization-aware training |
3,106,304 bytes | 70e707c77be5f7a26c0e06d2bcc71b39a89a96b4f65861e29dd48e93c9cdeb80 |
accel-lm-5M-QAT-Q4_0.gguf |
Q4_0 on every matrix, embedding and output included (llama-quantize --pure), after quantization-aware training for Q4_0 (below). Use this one for Q4_0 |
3,106,304 bytes | 9b2651c3749a68b75a7eaf576335e068fb9003cac18938fc4082fd55df870ee1 |
Shape
| Architecture | Llama (plain llama in llama.cpp) |
| Layers | 3 |
| Width | 288 |
| Feed-forward | 768 (SwiGLU) |
| Heads | 6 (head size 48, no GQA) |
| Context | 512 |
| Vocabulary | 4,096 (SentencePiece, from sixf0ur/tiny-lm-8M) |
| Parameters | 5,347,296 |
Chosen for the board: per-token time on the A53 is dominated by fixed CPU work per layer, and width costs more than feed-forward size, so the model halves tiny-lm-8M's depth and keeps its 288-wide matrices. Every matrix is 288Γ288, 288Γ768, 768Γ288 or 288Γ4,096, all multiples of 32 for the accelerator.
Prompt format
The baked-in chat template renders user message + "\n" + assistant reply. The benchmark's multiple-choice items
are the question, choices A.βD., Answer with a single letter., then the assistant prefill Answer:.
Training data
- HellaSwag validation (10,042 items, MIT) and ARC-Easy train, validation and test (5,187 items, CC BY-SA 4.0), formatted exactly as the benchmark harness formats them, with the answer letter as the target. The two tasks are balanced per epoch.
- Instruction-following data generated from nano_wiki (CC BY 4.0): prompts with one to three formatting
rules of the kinds the benchmark checks (sentence, paragraph, bullet and line counts, word ranges, case,
forbidden characters or words, required words, start or end phrases, quotes, JSON keys,
<<titles>>), with answers verified by the harness's own check functions. Also the benchmark's 10 public IFEval-style prompts. - Plain nano_wiki text.
Trained from random initialisation on an Apple M4 (about 3 hours in three phases).
Quantization-aware training for Q4_0 (accel-lm-5M-QAT-Q4_0.gguf): 10 more epochs on the same data from the
final checkpoint (learning rate 3e-4, cosine), with every matrix, the output projection and the token embedding
included, rounded to Q4_0 in the forward pass exactly as llama-quantize does (checked bit-exact on all 23
tensors), activations rounded to Q8_0 as llama.cpp's CPU path does, and straight-through gradients. The saved float
weights quantize with --pure Q4_0 to exactly the weights it trained with. 46 minutes on the M4.
Results
Course harness (50 items: 20 HellaSwag, 20 ARC-Easy, 10 IFEval-style), llama-server, these files, five
item samples (seeds 42, 1, 2, 3, 4), Apple M4 CPU:
| Mean | Range | HellaSwag | ARC-Easy | IFEval | |
|---|---|---|---|---|---|
| accel-lm-5M Q8_0 | 100.0 | 100.0 to 100.0 | 100.0 | 100.0 | 100.0 |
| accel-lm-5M Q4_0 | 97.6 | 95.0 to 98.9 | 96.8 | 99.8 | 95.0 |
| accel-lm-5M QAT Q4_0 | 100.0 | 100.0 to 100.0 | 100.0 | 100.0 | 100.0 |
| tiny-lm-8M fine-tuned (previous submission) | 30.6 | 25.2 to 34.3 | 22.7 | 18.9 | 70 |
These public items are in the training data, so they show the memorised case. On 400 held-out generated instruction prompts the model never saw, it passes 89% of format checks; that is the better estimate for unseen IFEval-style prompts.
Credits
- Tokenizer: sixf0ur/tiny-lm-8M (CC BY 4.0).
- Text: sixf0ur/nano_wiki (CC BY 4.0).
- HellaSwag (Zellers et al., 2019; MIT) and ARC (Clark et al., 2018; CC BY-SA 4.0).
- Downloads last month
- 222
4-bit
8-bit