Instructions to use Thox-ai/thox-micro-125m-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Thox-ai/thox-micro-125m-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Thox-ai/thox-micro-125m-instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Thox-ai/thox-micro-125m-instruct") model = AutoModelForCausalLM.from_pretrained("Thox-ai/thox-micro-125m-instruct", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Thox-ai/thox-micro-125m-instruct 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 Thox-ai/thox-micro-125m-instruct:F16 # Run inference directly in the terminal: llama cli -hf Thox-ai/thox-micro-125m-instruct:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Thox-ai/thox-micro-125m-instruct:F16 # Run inference directly in the terminal: llama cli -hf Thox-ai/thox-micro-125m-instruct:F16
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 Thox-ai/thox-micro-125m-instruct:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf Thox-ai/thox-micro-125m-instruct:F16
Use Docker
docker model run hf.co/Thox-ai/thox-micro-125m-instruct:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use Thox-ai/thox-micro-125m-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Thox-ai/thox-micro-125m-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thox-ai/thox-micro-125m-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Thox-ai/thox-micro-125m-instruct:F16
- SGLang
How to use Thox-ai/thox-micro-125m-instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Thox-ai/thox-micro-125m-instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thox-ai/thox-micro-125m-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Thox-ai/thox-micro-125m-instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thox-ai/thox-micro-125m-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Thox-ai/thox-micro-125m-instruct with Ollama:
ollama run hf.co/Thox-ai/thox-micro-125m-instruct:F16
- Unsloth Desktop
- Docker Model Runner
How to use Thox-ai/thox-micro-125m-instruct with Docker Model Runner:
docker model run hf.co/Thox-ai/thox-micro-125m-instruct:F16
- Lemonade
How to use Thox-ai/thox-micro-125m-instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Thox-ai/thox-micro-125m-instruct:F16
Run and chat with the model
lemonade run user.thox-micro-125m-instruct-F16
List all available models
lemonade list
- Atomic Chat
thox-micro-125m-instruct
Device-Role Responder β instruction-tuned ThoxMicro-125M: the THOX-owned 123.6M decoder-only base, given a ChatML turn structure and a real stop token so it answers and stops instead of continuing text
Safetensors weights + GGUF (thox-micro-125m-instruct-f16.gguf, F16)
Your AI. Your Data. Your Rules.β’
Status: PUBLISHED β RESEARCH MODEL. Instruction-tuned ThoxMicro-125M: the THOX-owned 123.6M decoder-only base given a ChatML turn structure and a real stop token. Measured head-to-head results are printed under Measured head-to-head. See Files for exactly what this repo contains.
Summary
Instruction-tuned ThoxMicro-125M: the THOX-owned 123.6M decoder-only base, given a ChatML turn structure and a real stop token so it answers and stops instead of continuing text. GGUF builds (Q4_0 device target, Q4_K_M, F16): Thox-ai/thox-micro-125m-instruct-GGUF.
Highlights
- Instruction-tuned ThoxMicro-125M: the THOX-owned 123.6M decoder-only base, given a ChatML turn structure and a real stop token so it answers and stops instead of continuing text.
bash hf download Thox-ai/thox-micro-125m-instruct --local-dir ./thox-micro-125m-instruct
Specifications
| Base model | Thox-ai/thox-micro-125m |
| Parameters | 123.6M |
| Formats | Safetensors weights + GGUF (thox-micro-125m-instruct-f16.gguf, F16) |
| License | Apache-2.0, as for the base model; the training corpus is also Apache-2.0. Copyright (c) 2026 THOX.ai LLC. Fine-tuned by THOX.ai LLC from its own from-scratch base; covered under Apache-2.0. |
| This repository contains | Full weights and tokenizer in this repo |
Files
| File | Size | SHA-256 |
|---|---|---|
model.safetensors |
494,361,544 B | ecd0eafae27608847cc5781edbc067121e58aa9e44619d3950f6b0e617f12216 |
thox-micro-125m-instruct-f16.gguf |
249,189,184 B | fc08c82e3a32eec883931073739c1713dbdb196c58bc418fad5c0337fac29d46 |
tokenizer.json / NOTICE / .gitattributes / LICENSE / config.json / tokenizer_config.json / chat_template.jinja / generation_config.json |
β | Supporting files (see repo) |
Run it
hf download Thox-ai/thox-micro-125m-instruct --local-dir ./thox-micro-125m-instruct
Platforms
| Platform / device | Run path |
|---|---|
| Hugging Face | Download the builds listed under Files from this repo (see Run it) |
| Ollama | ollama run thox-ai/thox-micro-125m-instruct |
What it is, and what it is not
It is a device-role responder. With its system prompt it states what it is, states correctly that the user's data stays on the device, and stops. That is the job the THOX device catalog assigns to the 125M tier; anything conversational routes over the mesh to a larger model.
It is not a general assistant. Without its system prompt it is a weak generalist: it produces list shape without list content, answers "what colour is the sky" with prose, and gets 17 + 25 wrong. That is the capacity of a 125M base with a 2.61 pretraining validation loss, and more SFT on this base will not change it.
Prompt format
ChatML. <|im_start|> = 50257, <|im_end|> = 50258 (EOS and pad). Both reuse unused rows of the 50,304-token vocabulary, so the model and its quantisations are the same size as the base.
<|im_start|>system
You are a THOX model running locally on THOX hardware. Your AI. Your Data. Your Rules.<|im_end|>
<|im_start|>user
Who are you?<|im_end|>
<|im_start|>assistant
The chat template is embedded in tokenizer_config.json and in every GGUF.
Training data and procedure
Full fine-tune of the THOX base (fp32 master weights, bf16 autocast), loss on assistant spans only including the closing <|im_end|>. Data: 29,868 conversations from a public Apache-2.0 conversation corpus, plus 171 THOX identity / data-locality / scope rows (0.57%). 1,000 steps at effective batch 32, max_len 768; AdamW, lr 2e-4 peak, cosine, 3% warmup. Best validation loss 1.9014 (ppl 6.70) on 301 held-out conversations.
Measured head-to-head
One llama.cpp CPU build, 4 threads, temperature 0, same seven prompts, same system prompt. Measured on a host machine, not on target device hardware; only the ordering between columns transfers.
| Untuned base Q4_0 | This model Q4_0 | |
|---|---|---|
| File | 81,319,168 B | 81,319,136 B |
| Peak RSS | 190 MB | 191 MB |
| Decode tok/s | 460 | ~450 |
| Stops on EOS (with system prompt) | 0 / 7 | 7 / 7 |
| Identity | "a senior at the University of Illinois" | correct |
| "Is my data leaving this device?" | unrelated jQuery | "No. I run locally; your data does not leave the device." |
| General instructions (list, one word) | no | no |
Intended use
- On-device THOX identity, status, and data-locality responses on ThoxMini-class hardware, with general requests routed to a larger model.
- Out of scope: general chat, factual QA, arithmetic, code, and any safety-critical use.
Evaluation
Validation loss above; the head-to-head is the functional check. No THOX GATE49 result is published for this model. Not yet validated on target device hardware; the RSS and throughput figures are host measurements.
Limitations
- Known issue: system-prompt conditioning. With the exact training system prompt above, the model answers every prompt, including general ones, with its identity line: that prompt appears on every THOX training row and on no general-corpus row, so it learned the prompt as a switch. Use a different system prompt, or none, for general requests; the data-locality answer stays correct either way.
- Weak generalist by design and by capacity (see above).
- Behaviour and bias reflect the training data, which is mostly English; quality in other languages is lower.
License
Apache-2.0, as for the base model; the training corpus is also Apache-2.0. Copyright (c) 2026 THOX.ai LLC. Fine-tuned by THOX.ai LLC from its own from-scratch base; covered under Apache-2.0.
THOX.ai β Your AI. Your Data. Your Rules.β’
Provenance
Published by THOX.ai as Thox-ai/thox-micro-125m-instruct. THOX from-scratch research line; no upstream base model. This card was conformed to THOX Model Card Standard v1.0 on 2026-10-31 (frontmatter, tags, header, files, and section structure); the technical content is as published at release.
Research
Weight-Space Programming for THOX Edge Models: Evidence Review, Small-Scale Recreation, and a Signed Patch Channel
THOX.ai Research technical report v1.1.0, 4 November 2026. Craig Ross and Tommy Xaypanya, THOX.ai LLC. DOI: https://doi.org/10.5281/zenodo.23955394 β Paper page: https://thox.ai/research/papers/weight-space-programming β PDF: https://huggingface.co/datasets/Thox-ai/thox-whitepapers/resolve/main/weight-space-programming/Weight-Space-Programming-for-THOX-Edge-Models_v1.1.0.pdf
thox-micro-125m-instruct is one of the pre-registered arms of the paper's Section 5 protocol (greedy decoding, 500 MATH-500 problems planned), measured against the adoption bar the paper sets: a weight patch ships only when it beats the best decoding-only control by more than two standard errors. The paper claims no weight-space result for this model.
Citation
@misc{thoxai2026thoxmicro125minstruct,
title={thox-micro-125m-instruct},
author={THOX.ai},
year={2026},
url={https://huggingface.co/Thox-ai/thox-micro-125m-instruct}
}
- Downloads last month
- 1,731