Instructions to use Thox-ai/ThoxKey-9M-role 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 Thox-ai/ThoxKey-9M-role 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/ThoxKey-9M-role:Q8_0 # Run inference directly in the terminal: llama cli -hf Thox-ai/ThoxKey-9M-role:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Thox-ai/ThoxKey-9M-role:Q8_0 # Run inference directly in the terminal: llama cli -hf Thox-ai/ThoxKey-9M-role:Q8_0
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 Thox-ai/ThoxKey-9M-role:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf Thox-ai/ThoxKey-9M-role:Q8_0
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 Thox-ai/ThoxKey-9M-role:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Thox-ai/ThoxKey-9M-role:Q8_0
Use Docker
docker model run hf.co/Thox-ai/ThoxKey-9M-role:Q8_0
- LM Studio
- Jan
- vLLM
How to use Thox-ai/ThoxKey-9M-role with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Thox-ai/ThoxKey-9M-role" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thox-ai/ThoxKey-9M-role", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Thox-ai/ThoxKey-9M-role:Q8_0
- Ollama
How to use Thox-ai/ThoxKey-9M-role with Ollama:
ollama run hf.co/Thox-ai/ThoxKey-9M-role:Q8_0
- Unsloth Studio
How to use Thox-ai/ThoxKey-9M-role with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Thox-ai/ThoxKey-9M-role to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Thox-ai/ThoxKey-9M-role to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Thox-ai/ThoxKey-9M-role to start chatting
- Docker Model Runner
How to use Thox-ai/ThoxKey-9M-role with Docker Model Runner:
docker model run hf.co/Thox-ai/ThoxKey-9M-role:Q8_0
- Lemonade
How to use Thox-ai/ThoxKey-9M-role with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Thox-ai/ThoxKey-9M-role:Q8_0
Run and chat with the model
lemonade run user.ThoxKey-9M-role-Q8_0
List all available models
lemonade list
- Atomic Chat
ThoxKey-9M-role β canonical ThoxKey device model
This is the model baked into the ESP32-S3 firmware. 8,917,248 params, BitNet
b1.58 ternary ({-1, 0, +1} weights, int8 activations β W1.58A8).
Lineage β verified, not assumed
Fine-tuned from Thox-ai/ThoxMicro-1bit-9M,
a THOX model trained from scratch on TinyStories. There is no external base β
the ternary pretrain is ours.
Precisely: training initialised from the 9M pretrain checkpoint
(micro-9m-ternary/best.pt, 393M tokens), and the ThoxMicro-1bit-9M repo
publishes that same run as GGUF. The repo holds no .pt, which is why the
init_from in configs/ternary/thoxkey-9m-role.yaml points at the local
checkpoint rather than the Hub path β same weights, different container.
A previous internal proposal listed
slvDev/esp32-aias a base. That was wrong and is retracted. It is a GitHub repository (github.com/slvDev/esp32-ai, MIT), not a Hugging Face model, so it could never be an HFbase_modelβ and no THOX model was trained from it. The shipping ThoxKey model is this one.
What it does
Handles local device commands, names itself when asked, and defers everything else rather than inventing it. It holds no company facts by design β at 8.9M params (23.5% of it the embedding) there is no capacity for a fact table, and training one in is how larger models in this family learned to fabricate.
| prompt | answer |
|---|---|
| who are you | I am ThoxKey, a THOX model running locally on the key. |
| do you send my data anywhere | No. I run on the key. Nothing leaves it. |
| who funded thox | (defers β no company facts in the corpus) |
Zero fabrications on held-out company-fact prompts.
Files
| file | use |
|---|---|
thoxkey-9m-role.tern1 |
the firmware artifact β TERN1, ESP32-S3 micro runtime |
thoxkey-9m-role-TQ1_0.gguf |
llama.cpp ternary |
thoxkey-9m-role-Q8_0.gguf |
llama.cpp / Ollama host validation |
Ollama cannot load ternary GGUF (TQ1_0/TQ2_0/I2_S) β
tensor size overflow. Use Q8_0 on a host; TQ1_0/TERN1 are the device artifacts.
Device budget: 3.80 MB weights, 8.00 MB resident, ~15.9 tok/s at PSRAM 60.7 MB/s. ESP32-S3 N16R8: fits.
Ship-then-test: not measured on target silicon. Trained on a local RTX 4060 Ti at $0.
- Downloads last month
- -
1-bit
2-bit
8-bit
Model tree for Thox-ai/ThoxKey-9M-role
Base model
Thox-ai/ThoxMicro-1bit-9M