Vox Mens 4B — Everyday Local Model for Full-Stack Vox Files
Vox Mens 4B is trained for vox-lang (release check: passed).

Diagram (4B): central hub-and-spoke orchestrator switchboard — one shared 4B base model swaps in specialist adapters like vox-lang for full-stack .vox files (tables, handlers, UI) while routing tool calling and Rust through quality gates.
| Model | Held-out pass@1 (4B) | Weights (4B) | License | Live Demo |
|---|---|---|---|---|
| Vox Mens 4B | 1/52 (1.9%) → 42/52 (80.8%) | Standalone Safetensors + PEFT | apache-2.0 | Open 4B Playground |
What it does
Vox Mens 4B writes and fixes Vox (.vox), a full-stack language where one file defines database tables, backend queries and mutations, web UI components, and workflows that compile to Rust and TypeScript. Because Vox is newer than mainstream languages, general-purpose AI models often guess Rust or TypeScript syntax that fails to compile; Vox Mens 4B is fine-tuned on verified .vox examples so you can generate and repair Vox locally on Windows, Linux, or Mac (Ollama, vLLM, Python, or vox mens serve) or through Hugging Face Inference Providers without paying large cloud API rates on every prompt.
Why this size
Vox Mens 4B is the practical everyday default for developer laptops and desktops with a modest GPU or comfortable system memory. Pick 4B to write and repair complete full-stack Vox files — database tables, backend queries and mutations, and reactive web views — while keeping turnaround fast. Step down to 2B on lighter machines, move up to 9B or 27B for intricate multi-step logic, and let a large cloud model handle broad system design. Measured QLoRA peak memory during the 4B run was 42708 MiB (run_summary).
Use it
Query Vox Mens 4B immediately over Hugging Face Inference Providers (:auto or :featherless-ai) with any OpenAI-compatible client:
from openai import OpenAI
client = OpenAI(base_url="https://router.huggingface.co/v1", api_key="$HF_TOKEN")
resp = client.chat.completions.create(
model="brbrainerd/vox-mens-qwen3.5-4b:auto", # or "brbrainerd/vox-mens-qwen3.5-4b:featherless-ai"
messages=[{"role": "user", "content": "Write a Vox table and query for open tasks."}],
)
print(resp.choices[0].message.content)
Run Vox Mens 4B locally with Ollama or serve high-throughput batches via vLLM:
ollama run hf.co/brbrainerd/vox-mens-qwen3.5-4b
vllm serve brbrainerd/vox-mens-qwen3.5-4b
Download the BLAKE3-verified Vox Mens 4B standalone checkpoint (hf_sync_manifest.json, or pull files directly from the Files tab) and serve it natively via vox mens serve:
vox mens hub download --repo brbrainerd/vox-mens-qwen3.5-4b --output-dir mens/runs/qwen3.5-4b
vox mens serve --model mens/runs/qwen3.5-4b --port 11435
Load Vox Mens 4B directly with transformers using enable_thinking=False:
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("brbrainerd/vox-mens-qwen3.5-4b")
model = AutoModelForCausalLM.from_pretrained("brbrainerd/vox-mens-qwen3.5-4b", dtype="auto", device_map="auto")
prompt = tok.apply_chat_template(
[{"role": "user", "content": "Write a Vox hello-world function."}],
tokenize=False,
add_generation_prompt=True,
enable_thinking=False,
)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=256)
print(tok.decode(out[0], skip_special_tokens=True))
Or mount the lightweight Vox Mens 4B LoRA weights (subfolder="peft") onto Qwen/Qwen3.5-4B:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-4B", dtype="auto", device_map="auto")
model = PeftModel.from_pretrained(base, "brbrainerd/vox-mens-qwen3.5-4b", subfolder="peft")
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3.5-4B")
This request sends the user turn of held-out item humaneval_vox_049_merge_sorted to the 4B server, which applies its codegen lane to it.
curl -s http://127.0.0.1:11435/v1/chat/completions -H 'Content-Type: application/json' -d @- <<'JSON'
{
"lane": "codegen",
"messages": [
{
"role": "user",
"content": "Write a Vox program that: Given two lists of integers already sorted in non-decreasing order, return a merged list also in non-decreasing order."
}
],
"max_tokens": 1024,
"temperature": 0.0
}
JSON
Compiler-verified Vox Mens 4B output recorded on held-out task humaneval_vox_049_merge_sorted under qwen3_non_thinking_codegen_v1:
fn merge_sorted(a: list[int], b: list[int]) to list[int] {
let mut out: list[int] = []
let mut i: int = 0
let mut j: int = 0
while i < a.len() and j < b.len() {
let av: int = a[i].unwrap()
let bv: int = b[j].unwrap()
if av <= bv {
out.push(av)
i = i + 1
} else {
out.push(bv)
j = j + 1
}
}
while i < a.len() { out.push(a[i].unwrap())
i = i + 1 }
while j < b.len() { out.push(b[j].unwrap())
j = j + 1 }
return out
}
Vox and Python
Beginners can write and run their first full-stack .vox file alongside Vox Mens 4B in under a minute, or call brbrainerd/vox-mens-qwen3.5-4b from Python and Rust.
Try Vox in 60 seconds (4B)
Vox keeps your schema, backend queries, mutations, and helpers in one compiler-checked file so Vox Mens 4B can edit an entire feature coherently:
table Note {
title: str
done: bool
}
query list_notes() to Result[list[Note], str] {
return db.Note.all()
}
mutation add_note(title: str) to Result[int, str] {
return db.Note.insert({ title: title, done: false })
}
fn format_status(done: bool) to str {
if done { return "done" }
return "open"
}
Type-check and execute your program locally while Vox Mens 4B assists in the same workspace:
vox check main.vox
vox run --interp main.vox
vox llm prompt "Add an archive mutation to main.vox"
Use 4B from Vox and Rust
Because even 27B is smaller than massive commercial cloud models, Vox projects commonly use a large cloud model for high-level planning while routing .vox file generation and vox check fixes to brbrainerd/vox-mens-qwen3.5-4b (locally or via Hugging Face Router) through vox_actor_runtime::llm::llm_chat:
export HF_CHAT_MODEL="brbrainerd/vox-mens-qwen3.5-4b"
export HF_TOKEN="hf_your_token_here"
export VOX_POPULI_LOCAL_OLLAMA_URL="http://127.0.0.1:11435"
use vox_actor_runtime::inference_env::resolve_huggingface_router;
use vox_actor_runtime::model_resolution::{RouteResolutionInput, resolve_chat_provider_route};
// Keep ambiguous cross-repo planning on your frontier cloud route, and delegate
// .vox handlers, tests, and `vox check` repair loops to brbrainerd/vox-mens-qwen3.5-4b:
let mens_specialist = resolve_huggingface_router("brbrainerd/vox-mens-qwen3.5-4b");
Use 4B from Python
Call brbrainerd/vox-mens-qwen3.5-4b with the standard openai Python SDK through Hugging Face Inference Providers or a local vox mens serve endpoint:
import os
from openai import OpenAI
# Cloud inference via Hugging Face Router (:auto selects the fastest available host)
client = OpenAI(
base_url="https://router.huggingface.co/v1",
api_key=os.environ["HF_TOKEN"],
)
# Or target your local machine after running `vox mens serve`:
# client = OpenAI(base_url="http://127.0.0.1:11435/v1", api_key="local")
reply = client.chat.completions.create(
model="brbrainerd/vox-mens-qwen3.5-4b:auto",
messages=[{"role": "user", "content": "Write a Vox query that returns open Note rows."}],
)
print(reply.choices[0].message.content)
Manage Python dependencies inside a Vox project for Vox Mens 4B using [python] in Vox.toml and vox py:
# Vox.toml
[python]
version = "3.12"
packages = ["openai", "transformers", "peft"]
vox py sync
vox py doctor
vox py bind openai
Generate a typed Python client from a Vox service API built with Vox Mens 4B using OpenAPI:
vox emit openapi src/main.vox --out dist/openapi.json
openapi-python-client generate --path dist/openapi.json
Examples
For 4B, the examples are 2 held-out tasks Vox Mens 4B fixes over the base model; of 52 items it fixes 41 and breaks 0.
Fixed humaneval_vox_041_nth_prime
Return the nth prime number (1-indexed). nth_prime(1) = 2, nth_prime(2) = 3, nth_prime(3) = 5.
Unadapted 4B base on humaneval_vox_041_nth_prime: does not parse (count 11).
type Prime { p: int }
type Result[T] = | Ok(T) | Err(str)
fn is_prime(n: int) to Result[bool] {
if n < 2 { return Err("n must be >= 2") }
let mut d = 2
while d * d <= n {
if n % d == 0 { return Err("not prime") }
d = d + 1
}
return Ok(true)
}
fn nth_prime(n: int) to Result[int] {
if n < 1 { return Err("n must be >= 1") }
let mut count = 0
let mut candidate = 2
let mut primes: list[Prime] = list[Prime]()
while count < n {
let res = is_prime(candidate)
match res {
Ok(true) => {
count = count + 1
// ... [29 more lines omitted; full output in evidence/]
Vox Mens 4B on humaneval_vox_041_nth_prime: passes.
fn is_prime(n: int) to bool {
if n < 2 {
return false
}
let mut d: int = 2
while d * d <= n {
if n % d == 0 {
return false
}
d = d + 1
}
return true
}
fn nth_prime(n: int) to int {
let mut count: int = 0
let mut candidate: int = 2
while count < n {
if is_prime(candidate) {
count = count + 1
}
candidate = candidate + 1
}
return candidate - 1
}
Fixed humaneval_vox_069_binary_search
Search for target in a sorted list xs using binary search.
Return the index of target if found, or -1 if not found.
Unadapted 4B base on humaneval_vox_069_binary_search: does not parse (count 5).
type BinarySearchResult { index: int, found: bool }
fn binary_search(xs: list[int], target: int) to Result[int, BinarySearchResult] {
let n = xs.len()
let left = 0
let right = n - 1
let result: BinarySearchResult = { index: -1, found: false }
while left <= right {
let mid = (left + right) / 2
let mid_val = xs[mid].unwrap()
if mid_val == target {
result.index = mid
result.found = true
return Result(result, None)
} else if mid_val < target {
left = mid + 1
} else {
right = mid - 1
}
}
return Result(result, None)
// ... [12 more lines omitted; full output in evidence/]
Vox Mens 4B on humaneval_vox_069_binary_search: passes.
fn binary_search(xs: list[int], target: int) to int {
let n: int = xs.len()
let mut left: int = 0
let mut right: int = n - 1
while left <= right {
let mid: int = left + (right - left) / 2
let probe: int = xs[mid].unwrap()
if probe == target {
return mid
} else if probe < target {
left = mid + 1
} else {
right = mid - 1
}
}
return -1
}
Results
How to read 4B results: Held-out pass@1 measures how often 4B writes valid, compiling .vox code on unseen tasks on the first try; collateral accuracy checks that Vox fine-tuning did not hurt 4B's general math or reasoning (a p-value below 0.05 flags a statistically real drop).
| Result for 4B | Held-out pass@1 | Collateral accuracy | McNemar p-value |
|---|---|---|---|
| Base 4B | 1/52 (1.9%) | — | — |
| Vox Mens 4B | 42/52 (80.8%) | — | — |
| gsm8k_think, 128 items, 4B (base then Vox Mens) | — | 0.719 then 0.812 | 0.9919 |
| math500_think, 128 items, 4B (base then Vox Mens) | — | 0.336 then 0.523 | 1.0000 |
| vox_think, 128 items, 4B (base then Vox Mens) | — | 0.609 then 0.672 | 0.9283 |
The 4B rows compare the unadapted base checkpoint with Vox Mens 4B on identical items, and a slice p-value below 0.05 would mean the model lost ground on that slice.
The release gate record for 4B is gate_receipt.json.
How 4B fits into the Vox Mens spokes
| Spoke (4B) | Status (4B) | What was tested & why it routes this way (4B) |
|---|---|---|
vox-lang (4B) | Published adapter | Vox Mens 4B adapter passed compiler and reasoning checks and serves .vox coding. |
harness (4B) | Uses base model (gate held adapter) | The unadapted 4B base solves 54/72 (75.0%) of multi-turn tool tasks; the fine-tuned adapter (55/72, 76.4%) is held until it beats the base model by a statistically clear margin. |
rust (4B) | Uses base model (gate held adapter) | The unadapted 4B base solves 20/40 (50.0%) of standalone Rust coding tasks; the fine-tuned adapter (16/40, 40.0%) scored lower on compile-and-test checks, so the quality gate keeps routing to the base model. |
For 4B, our quality gate only ships a specialist adapter when it clearly beats the base model on live tests, so unadapted 4B weights stay active for harness and rust until an adapter proves a real gain.
Training (4B)
Vox Mens 4B fine-tunes base pin Qwen/Qwen3.5-4B@851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a over 926 optimizer steps (7766130 tokens), ended with a final loss (EMA) of 0.1290, a mean train loss of 0.1847 and a last-epoch validation loss of 0.1909; the 4B run took 15h 59m and peaked at 42708 MiB from Vox commit 9db0bca49 (shared settings: docs page).
Files (4B)
The 4B repository holds the standalone merged checkpoint (config.json, model-00001-of-00002.safetensors, model-00002-of-00002.safetensors, model.safetensors.index.json, tokenizer.json, tokenizer_config.json) built by vox mens merge-qlora, exported PEFT adapter files under peft/, raw candle_qlora_adapter.safetensors, tokenizer and chat_template.jinja, .eval_results/vox_mens_eval.yaml, external_serving_handoff_v1.json, training and gate manifests and records, evidence/, and hf_sync_manifest.json with the BLAKE3 hash of every file.
This card is generated by vox mens hub sync; the ladder index lists the other sizes and how the cards are made is on the docs page.