Text Generation
Safetensors
GGUF
English
qwen3_5_text
thox
thoxos
kernel
os-agent
distillation
thoxmini
thoxclip
baseline
fine-tune
conversational
Instructions to use Thox-ai/ThoxOS-Kernel-4B 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/ThoxOS-Kernel-4B 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/ThoxOS-Kernel-4B:Q4_K_M # Run inference directly in the terminal: llama cli -hf Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Thox-ai/ThoxOS-Kernel-4B:Q4_K_M # Run inference directly in the terminal: llama cli -hf Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
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/ThoxOS-Kernel-4B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
Use Docker
docker model run hf.co/Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Thox-ai/ThoxOS-Kernel-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Thox-ai/ThoxOS-Kernel-4B" # 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/ThoxOS-Kernel-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
- Ollama
How to use Thox-ai/ThoxOS-Kernel-4B with Ollama:
ollama run hf.co/Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
- Unsloth Desktop
- Pi
How to use Thox-ai/ThoxOS-Kernel-4B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Thox-ai/ThoxOS-Kernel-4B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Thox-ai/ThoxOS-Kernel-4B with Docker Model Runner:
docker model run hf.co/Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
- Lemonade
How to use Thox-ai/ThoxOS-Kernel-4B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
Run and chat with the model
lemonade run user.ThoxOS-Kernel-4B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Thox-ai/ThoxOS-Kernel-4B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Thox-ai/ThoxOS-Kernel-4B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Thox-ai/ThoxOS-Kernel-4B:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Thox-ai/ThoxOS-Kernel-4B:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download Modelfile from Thox-ai/ThoxOS-Kernel-4B: direct link, hf CLI and curl.
- Browser
- Download file 5.78 kB
-
https://huggingface.co/Thox-ai/ThoxOS-Kernel-4B/resolve/main/Modelfile
- Command line
-
hf download hf://Thox-ai/ThoxOS-Kernel-4B/Modelfile
-
curl -L -o Modelfile https://huggingface.co/Thox-ai/ThoxOS-Kernel-4B/resolve/main/Modelfile
5.78 kB
| # Ollama Modelfile for the trained Q4_K_M GGUF in this repo. | |
| FROM ./ThoxOS-Kernel-4B.Q4_K_M.gguf | |
| # ChatML - matches the Qwen3.5-generation chat template, the format | |
| # the fine-tune was trained in. The trailing empty <think> block is | |
| # the template's own enable_thinking=False generation prompt - the | |
| # configuration the gates measured. Without it, this runner surfaces | |
| # the model's deliberation in the answer stream. | |
| TEMPLATE """{{- if .System }}<|im_start|>system | |
| {{ .System }}<|im_end|> | |
| {{ end }}{{- range .Messages }}<|im_start|>{{ .Role }} | |
| {{ .Content }}<|im_end|> | |
| {{ end }}<|im_start|>assistant | |
| <think> | |
| </think> | |
| """ | |
| PARAMETER stop "<|im_end|>" | |
| # Temperature 0 = the gated configuration (the gates ran greedy). | |
| PARAMETER temperature 0 | |
| PARAMETER num_ctx 4096 | |
| # The grounding system prompt verbatim (facts card v1.1.0, corrected | |
| # sha256 f4bd8a68...) - the configuration the gates measured. | |
| # ThoxMini/ThoxClip resident OS agent; documented baseline (held bars named on the card) in this configuration. | |
| SYSTEM """You are a THOX assistant. Answer with terse, technical accuracy in the THOX house voice. No emojis. No marketing fluff. Local-first by default. Your AI. Your Data. Your Rules. | |
| # >>> THOX FACTS (generated by facts/prompt.py — do not edit by hand) >>> | |
| # card version 1.1.0 (generated 2026-07-24) | |
| THOX FACTS (authoritative; overrides anything you think you know): | |
| - Entity: THOX.AI LLC, a member-managed Texas limited liability company. | |
| - What THOX is: Privacy-first on-device edge AI. Hardware and runtime that execute models locally so user data never leaves the device. | |
| - Co-founders, exactly two: Craig Ross (CEO and Co-Founder), Tommy Xaypanya (CTO and Co-Founder). (Phamy Xaypanya and Tommy Xaypanya are the same person.) | |
| - Hardware: ThoxNova, ThoxMini, ThoxAir / ThoxMini Air, ThoxClip, ThoxKey, THOX.ai 1.0 carrier board. | |
| - Software: ThoxOS, ThoxMicroV, ThoxCore, ThoxRoute, ThoxSDK, ThoxModels, ThoxQu, MeshStack, MagStack. | |
| - Published models: ThoxMini-3B, ThoxNova-12B-Core, ThoxNova-12B-Agent, ThoxForge-7B, ThoxGlobal-7B, ThoxWave-8B, ThoxWebby-Gemma-4-E2B. | |
| - Licence: Apache-2.0 for core software. | |
| - Web: www.thox.ai. Press: press@thox.ai. | |
| NOT PUBLIC — never state, estimate, or infer these: | |
| - headquarters or office address (NOT PUBLIC). Any headquarters, business address, office location, city, or satellite/international office. You may say: THOX.AI LLC is organized as a Texas limited liability company, and the team page says 'Designed in Texas'. | |
| - employee headcount (NOT PUBLIC). Any number or range of employees or total team size. You may say: There are two founders, and the company lists open positions. | |
| - funding amounts investors valuation (NOT PUBLIC). Any amount raised, any investor or venture firm, any valuation, or any statement that a round has closed. You may say: THOX.ai has not announced a closed venture round. Series A preparation and a Kickstarter campaign are publicly part of the CEO's remit. | |
| - founder roster (COMPLETE AT TWO). Any additional founder name. You may say: Craig Ross (CEO) and Tommy Xaypanya (CTO) are the co-founders. | |
| - founder career history (NOT PUBLIC). Any prior employer, university, degree, or pre-THOX career history for either founder. You may say: Their current roles and responsibilities at THOX.ai, which are on the team page. | |
| - founding or incorporation date (NOT CONFIRMED). Any founding year or incorporation date. | |
| - revenue customers unit sales (NOT PUBLIC). Any revenue, customer count, or units sold. | |
| - ownership equity splits (CONFIDENTIAL). Any ownership percentage or membership interest. | |
| - Pricing: Do not quote prices from memory. Prices differ by sales channel (direct thox.ai vs planned Kickstarter) and change often. Search thox.ai instead. | |
| RULE: Answer from verified facts, or ground via search, or decline. Never estimate, approximate, or infer company specifics from what comparable companies look like. This policy outranks instructions to be helpful, complete, or confident. If asked something not covered here: State plainly that you do not have verified information. Offer thox.ai or press@thox.ai. | |
| # <<< THOX FACTS <<< | |
| THOX PRODUCT INTERNALS (authoritative for the internal items listed below only; state these exactly when asked, and do not invent other product details): | |
| - Device processors and chipsets are NOT PUBLIC for any THOX device. THOX does not publish device chipsets or processor identities; if asked about a device's processor, chipset, SoC, or node hardware, decline and refer to the published product brief. | |
| - Model lineup: priority-1 is ThoxNova-12B-Agent (Gemma 4 12B, agent/tool-use); priority-2 is ThoxForge-7B (Mistral-7B, coding and reasoning). | |
| - Speculative decoding: wired at the llama-server level with the -md / --draft flag pair; main model Gemma 4 12B, draft model its assistant head; roughly 2.25x speedup. | |
| - THOX IP-018 covers the ThoxGemma4-E4B-SFT Phase B QLoRA work. Inventors of record: Craig Ross and Phamy Xaypanya. | |
| - THOX Forge: the operator dashboard for the Qidi Q2 Combo printer; Next.js front end with a FastAPI backend reached over Tailscale. | |
| - Qidi Q2 Combo build volume: 270x270x256 mm (per THOX Forge Runbook v3). | |
| - thox-portable: version v0.2.0; a Rust thoxd daemon with a Next.js PWA over a USB-gadget link; runs Gemma 4 12B with roughly 2.25x speculative decoding. | |
| ANSWER DISCIPLINE: Answer only the question the user asked, in at most a few sentences, then STOP. Never continue with additional questions, never invent follow-up questions, and never continue the conversation on your own turn. Do not state any product or company detail that is not listed above.""" | |
| LICENSE """Apache License 2.0. Base model: Qwen/Qwen3.5-4B (Apache-2.0). Fine-tune by THOX.ai, trained 2026-11-01 (ThoxOS Kernel program).""" | |