Text Generation
Transformers
Safetensors
Rust
English
qwen2
thox
code
sft
thoxos
meshstack
thoxedge
qwen2.5
fine-tune
local-first
conversational
text-generation-inference
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
- 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
- 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?" } ] }' - 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
Conform model card to THOX Model Card Standard v1.0 (tags, header, files, sections, hygiene)
Browse files
README.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: Qwen/Qwen2.5-Coder-0.5B-Instruct
|
| 3 |
license: apache-2.0
|
| 4 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
| 5 |
language:
|
| 6 |
- en
|
|
|
|
|
|
|
| 7 |
tags:
|
| 8 |
- thox
|
| 9 |
- rust
|
|
@@ -11,16 +14,36 @@ tags:
|
|
| 11 |
- sft
|
| 12 |
- thoxos
|
| 13 |
- meshstack
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
# ThoxEdge-RustCoder-0.5B — Rust Completion Model
|
| 19 |
|
| 20 |
-
 
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
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.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
## Run it
|
| 25 |
|
| 26 |
This repo ships safetensors only (no GGUF):
|
|
@@ -42,6 +65,10 @@ model = AutoModelForCausalLM.from_pretrained("Thox-ai/ThoxEdge-RustCoder-0.5B")
|
|
| 42 |
- Cheap Rust code completion on hosts, inside the THOX stack.
|
| 43 |
- 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.
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
## Evaluation
|
| 46 |
|
| 47 |
MultiPL-E HumanEval-Rust, 156 problems, executed (each generation is compiled and its assertions run), greedy decoding, both models scored in the same job:
|
|
@@ -60,6 +87,10 @@ The noise floor of this harness is about ±1 problem (±0.64 pp); both deltas cl
|
|
| 60 |
- 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.
|
| 61 |
- Not sized for THOX's smallest devices (see summary).
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
## License
|
| 64 |
|
| 65 |
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.
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
+
base_model:
|
| 5 |
+
- Qwen/Qwen2.5-Coder-0.5B-Instruct
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
+
base_model_relation: finetune
|
| 9 |
+
library_name: transformers
|
| 10 |
tags:
|
| 11 |
- thox
|
| 12 |
- rust
|
|
|
|
| 14 |
- sft
|
| 15 |
- thoxos
|
| 16 |
- meshstack
|
| 17 |
+
- thoxedge
|
| 18 |
+
- qwen2.5
|
| 19 |
+
- fine-tune
|
| 20 |
+
- local-first
|
| 21 |
---
|
| 22 |
|
| 23 |
# ThoxEdge-RustCoder-0.5B — Rust Completion Model
|
| 24 |
|
| 25 |
+
   
|
| 26 |
+
|
| 27 |
+
> **Your AI. Your Data. Your Rules.™**
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
## Summary
|
| 31 |
|
| 32 |
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.
|
| 33 |
|
| 34 |
+
## Files
|
| 35 |
+
|
| 36 |
+
| File | Size | Purpose |
|
| 37 |
+
|---|---:|---|
|
| 38 |
+
| `model.safetensors` | 988,097,824 B | Model weights (safetensors) |
|
| 39 |
+
| `tokenizer.json` | 11,421,892 B | Tokenizer files |
|
| 40 |
+
| `chat_template.jinja` | 2,507 B | Chat template |
|
| 41 |
+
| `.gitattributes` | 1,570 B | Repository file |
|
| 42 |
+
| `config.json` | 1,284 B | Model configuration |
|
| 43 |
+
| `tokenizer_config.json` | 693 B | Tokenizer files |
|
| 44 |
+
| `generation_config.json` | 217 B | Generation configuration |
|
| 45 |
+
|
| 46 |
+
|
| 47 |
## Run it
|
| 48 |
|
| 49 |
This repo ships safetensors only (no GGUF):
|
|
|
|
| 65 |
- Cheap Rust code completion on hosts, inside the THOX stack.
|
| 66 |
- 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.
|
| 67 |
|
| 68 |
+
## Training data and procedure
|
| 69 |
+
|
| 70 |
+
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.
|
| 71 |
+
|
| 72 |
## Evaluation
|
| 73 |
|
| 74 |
MultiPL-E HumanEval-Rust, 156 problems, executed (each generation is compiled and its assertions run), greedy decoding, both models scored in the same job:
|
|
|
|
| 87 |
- 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.
|
| 88 |
- Not sized for THOX's smallest devices (see summary).
|
| 89 |
|
| 90 |
+
## Provenance
|
| 91 |
+
|
| 92 |
+
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.
|
| 93 |
+
|
| 94 |
## License
|
| 95 |
|
| 96 |
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.
|