Text Generation
Transformers
Safetensors
GGUF
English
llama
thox
thox-ai
thox-llm
edge-ai
on-device
from-scratch
text-generation-inference
Instructions to use Thox-ai/thox-micro-125m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Thox-ai/thox-micro-125m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Thox-ai/thox-micro-125m")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Thox-ai/thox-micro-125m") model = AutoModelForCausalLM.from_pretrained("Thox-ai/thox-micro-125m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Thox-ai/thox-micro-125m 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:Q4_K_M # Run inference directly in the terminal: llama cli -hf Thox-ai/thox-micro-125m: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/thox-micro-125m:Q4_K_M # Run inference directly in the terminal: llama cli -hf Thox-ai/thox-micro-125m:Q4_K_M
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/thox-micro-125m:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Thox-ai/thox-micro-125m:Q4_K_M
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/thox-micro-125m:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Thox-ai/thox-micro-125m:Q4_K_M
Use Docker
docker model run hf.co/Thox-ai/thox-micro-125m:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Thox-ai/thox-micro-125m 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" # 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/thox-micro-125m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Thox-ai/thox-micro-125m:Q4_K_M
- SGLang
How to use Thox-ai/thox-micro-125m 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" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thox-ai/thox-micro-125m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thox-ai/thox-micro-125m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use Thox-ai/thox-micro-125m with Ollama:
ollama run hf.co/Thox-ai/thox-micro-125m:Q4_K_M
- Unsloth Studio
How to use Thox-ai/thox-micro-125m 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/thox-micro-125m 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/thox-micro-125m 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/thox-micro-125m to start chatting
- Docker Model Runner
How to use Thox-ai/thox-micro-125m with Docker Model Runner:
docker model run hf.co/Thox-ai/thox-micro-125m:Q4_K_M
- Lemonade
How to use Thox-ai/thox-micro-125m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Thox-ai/thox-micro-125m:Q4_K_M
Run and chat with the model
lemonade run user.thox-micro-125m-Q4_K_M
List all available models
lemonade list
- Atomic Chat
| # Modelfile for ThoxMicro-125M on Ollama. | |
| # Build: ollama create thox-ai/thox-micro -f Modelfile | |
| # Push: ollama push thox-ai/thox-micro | |
| # Pull: ollama pull thox-ai/thox-micro | |
| # Run: ollama run thox-ai/thox-micro "the THOX agent fleet is" | |
| # | |
| # Requires: thox-micro-125m.q4_k_m.gguf (or another quant) sitting next to this Modelfile. | |
| # Default points at Q4_K_M (~80 MB). Override FROM to use Q5_K_M, Q8_0, or F16. | |
| FROM ./thox-micro-125m.q4_k_m.gguf | |
| # THOX-tuned generation defaults. Conservative for a 125M base model that | |
| # is NOT instruction-tuned. Override at runtime with `ollama run --temp ...`. | |
| PARAMETER temperature 0.7 | |
| PARAMETER top_p 0.9 | |
| PARAMETER top_k 40 | |
| PARAMETER repeat_penalty 1.1 | |
| PARAMETER num_ctx 1024 | |
| PARAMETER num_predict 128 | |
| PARAMETER stop "<|endoftext|>" | |
| PARAMETER stop "</s>" | |
| # This model is a pretrained base, not a chat model. We do not ship a chat | |
| # template, on purpose. Wrap with your own system prompt at runtime if you | |
| # want chat behavior; for raw next-token use, leave TEMPLATE off. | |
| TEMPLATE """{{ .Prompt }}""" | |
| SYSTEM """ThoxMicro-125M is a pretrained base model from Thox.ai. It has no instruction tuning. Treat the prompt as the start of a document and the response as the continuation.""" | |
| # Provenance and licensing surfaced inside `ollama show`. | |
| LICENSE """Apache-2.0 | |
| Copyright 2026 Thox.ai LLC | |
| Inventors: Craig Ross and Phamy Xaypanya | |
| THOX IP-017 | |
| Source: https://huggingface.co/thox-ai/thox-micro-125m | |
| Training pipeline: https://github.com/ttracx/thox-llm | |
| """ | |
| MESSAGE system You are reading a pretrained base model. It can complete the prompt but it does not chat. | |