Vox Mens 2B — Lightweight Laptop Model for Vox Functions, Tables & Tests
Vox Mens 2B is trained for vox-lang (release check: passed).

Diagram (2B): three-layer editor-to-compiler cutaway stack — your editor prompt flows through the lightweight 2B local model and down into the Vox compiler to produce a working .vox function and @test block with low memory overhead.
| Model | Held-out pass@1 (2B) | Weights (2B) | License | Live Demo |
|---|---|---|---|---|
| Vox Mens 2B | 0/52 (0.0%) → 39/52 (75.0%) | Standalone Safetensors + PEFT | apache-2.0 | Open 2B Playground |
What it does
Vox Mens 2B 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 2B 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 2B is a compact local coder that runs smoothly alongside your editor and browser on Windows, Linux, or Mac laptops and entry-level GPUs. Pick 2B when you want quick, low-memory help drafting single Vox functions, database tables, and self-contained unit tests. Drop to 0.8B when memory is tight, or move up to 4B and 9B when a single file connects tables, backend handlers, and interactive web views. Measured QLoRA peak memory during the 2B run was 22537 MiB (run_summary).
Use it
Query Vox Mens 2B 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-2b:auto", # or "brbrainerd/vox-mens-qwen3.5-2b:featherless-ai"
messages=[{"role": "user", "content": "Write a Vox table and query for open tasks."}],
)
print(resp.choices[0].message.content)
Run Vox Mens 2B locally with Ollama or serve high-throughput batches via vLLM:
ollama run hf.co/brbrainerd/vox-mens-qwen3.5-2b
vllm serve brbrainerd/vox-mens-qwen3.5-2b
Download the BLAKE3-verified Vox Mens 2B 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-2b --output-dir mens/runs/qwen3.5-2b
vox mens serve --model mens/runs/qwen3.5-2b --port 11435
Load Vox Mens 2B directly with transformers using enable_thinking=False:
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("brbrainerd/vox-mens-qwen3.5-2b")
model = AutoModelForCausalLM.from_pretrained("brbrainerd/vox-mens-qwen3.5-2b", 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 2B LoRA weights (subfolder="peft") onto Qwen/Qwen3.5-2B:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-2B", dtype="auto", device_map="auto")
model = PeftModel.from_pretrained(base, "brbrainerd/vox-mens-qwen3.5-2b", subfolder="peft")
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3.5-2B")
This request sends the user turn of held-out item humaneval_vox_041_nth_prime to the 2B 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: Return the nth prime number (1-indexed). nth_prime(1) = 2, nth_prime(2) = 3, nth_prime(3) = 5."
}
],
"max_tokens": 1024,
"temperature": 0.0
}
JSON
Compiler-verified Vox Mens 2B output recorded on held-out task humaneval_vox_041_nth_prime under qwen3_non_thinking_codegen_v1:
fn is_prime(n: int) to bool {
if n < 2 { return false }
if n == 2 { return true }
if n % 2 == 0 { return false }
let mut i = 3
while i * i <= n {
if n % i == 0 { return false }
i = i + 2
}
return true
}
fn count_primes_up_to(n: int) to int {
let mut count = 0
let mut i = 2
while i <= n {
if is_prime(i) { count = count + 1 }
i = i + 1
}
return count
}
fn nth_prime(n: int) to int {
if n == 1 { return 2 }
let total = count_primes_up_to(n)
if total < n { return n }
return total
}
Vox and Python
Beginners can write and run their first full-stack .vox file alongside Vox Mens 2B in under a minute, or call brbrainerd/vox-mens-qwen3.5-2b from Python and Rust.
Try Vox in 60 seconds (2B)
Vox keeps your schema, backend queries, mutations, and helpers in one compiler-checked file so Vox Mens 2B 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 2B 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 2B 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-2b (locally or via Hugging Face Router) through vox_actor_runtime::llm::llm_chat:
export HF_CHAT_MODEL="brbrainerd/vox-mens-qwen3.5-2b"
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-2b:
let mens_specialist = resolve_huggingface_router("brbrainerd/vox-mens-qwen3.5-2b");
Use 2B from Python
Call brbrainerd/vox-mens-qwen3.5-2b 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-2b: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 2B 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 2B using OpenAPI:
vox emit openapi src/main.vox --out dist/openapi.json
openapi-python-client generate --path dist/openapi.json
Examples
For 2B, the examples are 2 held-out tasks Vox Mens 2B fixes over the base model; of 52 items it fixes 39 and breaks 0.
Fixed test_smoke
write a test named `smoke` that calls `add(1, 2)` and asserts the result equals 3
Unadapted 2B base on test_smoke: does not parse (count 4).
@test
fn smoke() to Unit {
let x = add(1, 2)
assert(x == 3)
}
@pure
@test
fn add(a: int, b: int) to int {
return a + b
}
@pure
@test
fn smoke() to Unit {
let x = add(1, 2)
assert(x == 3)
}
Vox Mens 2B on test_smoke: passes.
fn add(a: int, b: int) to int {
return a + b
}
@test
fn smoke() to Unit {
let result = add(1, 2)
assert(result is 3)
}
Fixed humaneval_vox_042_reverse_list
Return a new list with the elements in reverse order.
Unadapted 2B base on humaneval_vox_042_reverse_list: does not parse (count 1).
import list
let xs = [1, 2, 3]
let reversed = xs.reversed()
return reversed
Vox Mens 2B on humaneval_vox_042_reverse_list: passes.
fn reverse_list(xs: list[int]) to list[int] {
let mut out: list[int] = []
for x in xs {
out.push(x)
}
let mut i: int = out.len() - 1
while i >= 0 {
out.remove_at(i)
i = i - 1
}
return out
}
Results
How to read 2B results: Held-out pass@1 measures how often 2B writes valid, compiling .vox code on unseen tasks on the first try; collateral accuracy checks that Vox fine-tuning did not hurt 2B's general math or reasoning (a p-value below 0.05 flags a statistically real drop).
| Result for 2B | Held-out pass@1 | Collateral accuracy | McNemar p-value |
|---|---|---|---|
| Base 2B | 0/52 (0.0%) | — | — |
| Vox Mens 2B | 39/52 (75.0%) | — | — |
| gsm8k_think, 128 items, 2B (base then Vox Mens) | — | 0.594 then 0.539 | 0.1553 |
| math500_think, 128 items, 2B (base then Vox Mens) | — | 0.203 then 0.336 | 0.9983 |
| vox_think, 128 items, 2B (base then Vox Mens) | — | 0.273 then 0.406 | 0.9937 |
The 2B rows compare the unadapted base checkpoint with Vox Mens 2B 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 2B is gate_receipt.json.
How 2B fits into the Vox Mens spokes
| Spoke (2B) | Status (2B) | What was tested & why it routes this way (2B) |
|---|---|---|
vox-lang (2B) | Published adapter | Vox Mens 2B adapter passed compiler and reasoning checks and serves .vox coding. |
harness (2B) | Uses base model (gate held adapter) | The unadapted 2B base handles multi-turn tool calling until a fine-tuned adapter beats it by a statistically clear margin. |
rust (2B) | Uses base model (gate held adapter) | The unadapted 2B base handles standalone Rust coding until a fine-tuned adapter beats it on live compile-and-test checks. |
For 2B, our quality gate only ships a specialist adapter when it clearly beats the base model on live tests, so unadapted 2B weights stay active for harness and rust until an adapter proves a real gain.
Training (2B)
Vox Mens 2B fine-tunes base pin Qwen/Qwen3.5-2B@15852e8c16360a2fea060d615a32b45270f8a8fc over 926 optimizer steps (7766130 tokens), ended with a final loss (EMA) of 0.1299, a mean train loss of 0.2016 and a last-epoch validation loss of 0.2131; the 2B run took 6h 19m and peaked at 22537 MiB from Vox commit 9db0bca49 (shared settings: docs page).
Files (2B)
The 2B repository holds the standalone merged checkpoint (config.json, model.safetensors, 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.