Instructions to use Thox-ai/ThoxEdge-RustCoder-0.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Thox-ai/ThoxEdge-RustCoder-0.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Thox-ai/ThoxEdge-RustCoder-0.5B") 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/ThoxEdge-RustCoder-0.5B") model = AutoModelForCausalLM.from_pretrained("Thox-ai/ThoxEdge-RustCoder-0.5B", 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/ThoxEdge-RustCoder-0.5B 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/ThoxEdge-RustCoder-0.5B:Q8_0 # Run inference directly in the terminal: llama cli -hf Thox-ai/ThoxEdge-RustCoder-0.5B: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/ThoxEdge-RustCoder-0.5B:Q8_0 # Run inference directly in the terminal: llama cli -hf Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_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 Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_0
Use Docker
docker model run hf.co/Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use Thox-ai/ThoxEdge-RustCoder-0.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Thox-ai/ThoxEdge-RustCoder-0.5B" # 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/ThoxEdge-RustCoder-0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_0
- SGLang
How to use Thox-ai/ThoxEdge-RustCoder-0.5B 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/ThoxEdge-RustCoder-0.5B" \ --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/ThoxEdge-RustCoder-0.5B", "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/ThoxEdge-RustCoder-0.5B" \ --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/ThoxEdge-RustCoder-0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Thox-ai/ThoxEdge-RustCoder-0.5B with Ollama:
ollama run hf.co/Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_0
- Unsloth Desktop
- Pi
How to use Thox-ai/ThoxEdge-RustCoder-0.5B 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/ThoxEdge-RustCoder-0.5B:Q8_0
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Thox-ai/ThoxEdge-RustCoder-0.5B with Docker Model Runner:
docker model run hf.co/Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_0
- Lemonade
How to use Thox-ai/ThoxEdge-RustCoder-0.5B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_0
Run and chat with the model
lemonade run user.ThoxEdge-RustCoder-0.5B-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use Thox-ai/ThoxEdge-RustCoder-0.5B 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/ThoxEdge-RustCoder-0.5B:Q8_0
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:9931/v1 hermes config set model.default Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Thox-ai/ThoxEdge-RustCoder-0.5B 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/ThoxEdge-RustCoder-0.5B:Q8_0
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:9931/v1 \ --custom-model-id "Thox-ai/ThoxEdge-RustCoder-0.5B:Q8_0" \ --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"
ThoxEdge-RustCoder-0.5B
Rust Completion Model — a Rust-leaning fine-tune trained by THOX.ai on a public Apache-2.0 Rust code corpus (74,606 filtered code-producing examples): a LoRA fine-tune (rank 32), merged into the base weights
MultiPL-E HumanEval-Rust: 28.21% chat mode vs 25.64% base (156 problems, executed) · 0.5B fine-tune · Safetensors + GGUF in repo
Your AI. Your Data. Your Rules.™
Status: PUBLISHED. A Rust-leaning fine-tune trained by THOX on a public Apache-2.0 Rust code corpus (74,606 filtered code-producing examples): a rank-32 LoRA fine-tune, merged into the base weights. MultiPL-E HumanEval-Rust measured at 28.21% chat mode vs 25.64% base (156 problems, executed) — full results under Evaluation. See Files for exactly what this repo contains.
This model is free. The hardware built to run it is on Kickstarter until Thu Nov 26, 9:00 AM CT. ThoxEdge is the edge model line for the THOX device family, built for local work on devices like ThoxAir and ThoxMini. THOX is all-or-nothing: if the goal is not reached by the deadline, nothing is charged and nothing ships. Try the virtual devices first at https://thox.ai/#demo-callout-home_lineup then back it here: Back THOX on Kickstarter Your AI. Your Data. Your Rules.™
Summary
ThoxEdge-RustCoder-0.5B is a Rust-leaning fine-tune trained by THOX.ai on a public Apache-2.0 Rust code corpus (74,606 filtered code-producing examples): a LoRA fine-tune (rank 32), merged into the base weights. It serves cheap Rust completion in ThoxRoute's lowest tier. It is a 0.5B model and is not a strong Rust coder; the numbers below are a same-harness delta measurement, nothing more. It is a hosted/desktop model: its GGUF ladder spans only about 260 MB because a large share of its parameters sit in an embedding that does not quantize down, so it does not fit THOX's smallest devices.
Highlights
- THOX fine-tune: a LoRA fine-tune (rank 32), merged into the base weights.
- This repo ships safetensors plus a GGUF build (
ThoxEdge-RustCoder-0.5B-q8_0.gguf, Q8_0); it is also published on Ollama asthox-ai/thoxedge-rustcoder-0.5b(ollama run thox-ai/thoxedge-rustcoder-0.5b):bash hf download Thox-ai/ThoxEdge-RustCoder-0.5B --local-dir ./ThoxEdge-RustCoder-0.5B
Specifications
| Base model | Qwen/Qwen2.5-Coder-0.5B-Instruct |
| Parameters | 0.5B |
| Formats | Safetensors weights + GGUF (ThoxEdge-RustCoder-0.5B-q8_0.gguf, Q8_0) |
| Training | LoRA fine-tune (rank 32), merged into the base weights |
| License | Apache-2.0. The THOX fine-tune and additions in this repo are covered under Apache-2.0; the training corpus is also Apache-2.0. See the license text for terms. |
| This repository contains | Full weights and tokenizer in this repo |
Files
| File | Size | SHA-256 |
|---|---|---|
model.safetensors |
988,097,824 B | bbb25d81022f1243f48cdd143c83f249ef2ca18ec8eef301803786402c5fec47 |
ThoxEdge-RustCoder-0.5B-q8_0.gguf |
531,675,904 B | d501d8d45ede70c8217287e03474e5b40835a1a20873e979934fb95571e54a1b |
tokenizer.json |
11,421,892 B | 3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8 |
chat_template.jinja / .gitattributes / config.json / tokenizer_config.json / generation_config.json |
— | Supporting files (see repo) |
Run it
This repo ships safetensors plus a GGUF build (ThoxEdge-RustCoder-0.5B-q8_0.gguf, Q8_0), and it is also published on Ollama as thox-ai/thoxedge-rustcoder-0.5b (ollama run thox-ai/thoxedge-rustcoder-0.5b):
hf download Thox-ai/ThoxEdge-RustCoder-0.5B --local-dir ./ThoxEdge-RustCoder-0.5B
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Thox-ai/ThoxEdge-RustCoder-0.5B")
model = AutoModelForCausalLM.from_pretrained("Thox-ai/ThoxEdge-RustCoder-0.5B")
Prompting matters. Ask for a complete function body in plain terms, for example "Write the complete body of the Rust function below." Do not prompt with "Complete the Rust code. Output only the missing code." — that phrasing matches training rows whose targets are short fragments, and this checkpoint answers it with a fragment (measured 2.56% where the recommended wording scores 28.21%).
Platforms
| Platform / device | Run path |
|---|---|
| Hugging Face | Download the builds listed under Files from this repo (see Run it) |
| Ollama | ollama run thox-ai/thoxedge-rustcoder-0.5b |
Intended use
- Cheap Rust code completion on hosts, inside the THOX stack.
- Out of scope: medical, legal, financial, safety-critical, or other high-stakes decisions without human review; unattended control of physical devices without a confirmation step.
Training data and procedure
THOX fine-tune of Qwen/Qwen2.5-Coder-0.5B-Instruct. The corpus and procedure are described in this card as published at release (see Summary and Evaluation); no training beyond what this card describes is claimed for this repository.
Evaluation
MultiPL-E HumanEval-Rust, 156 problems, executed (each generation is compiled and its assertions run), greedy decoding, both models scored in the same job:
| Model | Completion mode | Chat mode |
|---|---|---|
| Base model | 21.15% (33/156) | 25.64% (40/156) |
| ThoxEdge-RustCoder-0.5B | 25.64% (40/156) | 28.21% (44/156) |
| Delta | +4.49 pp | +2.57 pp |
The noise floor of this harness is about ±1 problem (±0.64 pp); both deltas clear it, and anything under about 1.5 pp should be treated as a tie. Assembly is deliberately generous (a body-only or whole-function answer passes if either works), so these numbers are not comparable to published MultiPL-E leaderboards; the delta between the rows is the measurement. No THOX GATE49 result is published for this model.
Limitations
- It fails roughly seven of every ten HumanEval-Rust problems (28.21% pass@1 in its best mode).
- A training-renderer defect placed auxiliary output fields inside the code fence in about half the rows of three training categories; it caused no measured regression, and this checkpoint retains the prompt sensitivity described above.
- Not sized for THOX's smallest devices (see summary).
License
Apache-2.0. The THOX fine-tune and additions in this repo are covered under Apache-2.0; the training corpus is also Apache-2.0. See the license text for terms.
THOX.ai — Your AI. Your Data. Your Rules.™
Provenance
Published by THOX.ai as Thox-ai/ThoxEdge-RustCoder-0.5B. Upstream base: Qwen/Qwen2.5-Coder-0.5B-Instruct. 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.
Citation
@misc{thoxai2026thoxedgerustcoder05b,
title={ThoxEdge-RustCoder-0.5B},
author={THOX.ai},
year={2026},
url={https://huggingface.co/Thox-ai/ThoxEdge-RustCoder-0.5B}
}
- Downloads last month
- 1,577
Model tree for Thox-ai/ThoxEdge-RustCoder-0.5B
Base model
Qwen/Qwen2.5-0.5B