y0sif/Arcwright-v4-Combined
Viewer • Updated • 1.12k • 20
Arcwright is a Gemma 4 E4B-it model fine-tuned for modern Rust web and AI frameworks: Leptos, Axum, and Rig.
On RustWebBench-15, Arcwright scores 6.87 / 10 overall — beating not only its base model (Gemma 4 E4B, 5.00) but also:
| Rank | Model | Leptos | Axum | Rig | Overall |
|---|---|---|---|---|---|
| 1 | Arcwright | 8.40 | 8.28 | 3.92 | 6.87 |
| 2 | Claude Haiku | 7.16 | 8.04 | 5.00 | 6.73 |
| 3 | Gemma 4 26B-A4B | 7.72 | 8.20 | 3.84 | 6.59 |
| 4 | Gemini | 6.96 | 7.40 | 3.52 | 5.96 |
| 5 | Qwen3-Coder 30B-A3B | 7.36 | 6.20 | 3.68 | 5.75 |
| 6 | Gemma 4 E4B-it (base) | 5.24 | 6.84 | 2.92 | 5.00 |
| 7 | Qwen3 8B | 5.52 | 5.28 | 3.08 | 4.63 |
| 8 | Qwen2.5-Coder 7B | 4.28 | 4.68 | 1.64 | 3.53 |
All models evaluated on the same 15 prompts (5 per crate), judged on 5 dimensions (1-10): correctness, completeness, idiomatic, crate_knowledge, explanation.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"y0sif/Arcwright", torch_dtype="auto", device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("y0sif/Arcwright")
msgs = [{"role": "user", "content": [
{"type": "text", "text": "Write a Leptos counter component with increment/decrement buttons."}
]}]
inputs = tokenizer.apply_chat_template(
msgs, tokenize=True, add_generation_prompt=True, return_tensors="pt"
).to(model.device)
out = model.generate(inputs, max_new_tokens=1024)
print(tokenizer.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))
A lightweight LoRA-only version is available at y0sif/Arcwright-LoRA — apply on top of unsloth/gemma-4-E4B-it.
unsloth/gemma-4-E4B-it (4-bit)y0sif/Arcwright-v4-Combined — 1,007 train / 109 testexamples/ + 43 compile-passing supplements)cargo check compile verification. Only entries passing all three gates make it into training.Three prior training runs (v1-v3) all regressed vs base. v4 fixed the root causes:
cargo check. No hallucinated APIs.Training data, eval prompts, judge rubric, and scripts: y0sif/OxideCoder.
Inherits Gemma Terms of Use from the base model.