helmsman-4b
v2 (2026-11-26) — retrained on "a subset of me". This version was re-distilled on 420 grounded pairs generated from my OWN content: my writing, case studies, the universe/sky engine, my design standards, real coding patterns, and my skills library — so it answers in my voice about my work (design · code · creative · craft), not a generic doc set. Trained QLoRA on Qwen3-4B (r=16, 3 epochs, MPS), merged. Honest note: evaluated with an LLM-judge on a held-out split. HONEST eval note: on a narrow factual A/B (same questions + judge) v2 scored ~2.9/5 vs the older v1's ~3.9/5 — the v1 questions overlap its own training, and v2 trades a little of that sharp factual recall for much BROADER coverage of my world (design, coding patterns, creative work, my skills), which is the point: a subset of ME, not a narrow doc-QA head. It's a living model — I keep re-distilling it, and the goal each cycle is to raise both breadth AND the score.
My own merged, fine-tuned 4B model built on Qwen/Qwen3-4B-Instruct-2507 —
a small, local, personal model I train on my own work and reuse across my
projects. Think of it as a subset of me: distilled to know my domains (the
universe/sky engine I built, my writing and case studies, my craft) and answer
grounded in them. Trained with QLoRA, merged into the base weights, shipped
standalone (full safetensors + a Q4_K_M GGUF) — no adapter at load time.
It is actively used and kept improving — re-distilled from a growing corpus of my real content (see the recipe below). Unhosted was its first use case (a local-inference daemon), not its definition; that app is parked, but the model is mine and ongoing.
Honesty note (2026-09-26): an earlier version of this card described the repo as a LoRA adapter. It is not — the LoRA was merged and this repo ships the full merged model (
model.safetensors, ~8 GB) and a quantized GGUF.library_nameand the load examples below reflect that.
TL;DR
- Base:
Qwen/Qwen3-4B-Instruct-2507(4B params, 262K context) - Method: QLoRA (r=16, α=32) SFT → merged into the base (this repo is the merge)
- Formats:
model.safetensors(fp16, transformers) ·helmsman-4b-Q4_K_M.gguf(llama.cpp / Ollama) - Training data: 305 synthetic (prompt, response) pairs, teacher = Claude (Opus-class)
- Hardware / time: Apple Silicon, bf16, ~30 min/run
- License: AGPL-3.0-or-later (inherits the base model's terms + the daemon's)
What it's good at
Answering questions grounded in the document set it was distilled on — a focused, on-device specialist that runs fast in 4-bit on a laptop.
What it's NOT for
- Open-ended chat unrelated to the training documents — here it is no better than the base model.
- Tool use / function calling — it was not trained for it.
- Anything safety-critical. This is a distillation: the teacher's failure modes and any defects in its outputs carry through.
Use it
Transformers (fp16 safetensors):
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
mid = "sinhaankur/helmsman-4b"
tok = AutoTokenizer.from_pretrained(mid)
model = AutoModelForCausalLM.from_pretrained(mid, torch_dtype=torch.float16, device_map="auto")
msgs = [{"role": "user", "content": "Summarise the key points of the document."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=512, temperature=0.7, top_p=0.8, top_k=20)
print(tok.decode(out[0][ids.shape[-1]:], skip_special_tokens=True))
Ollama (Q4_K_M GGUF, ~2.5 GB — runs on a laptop):
Important — use the template below. This is a Qwen3-Instruct (non-thinking) model. Ollama's default qwen3 template opens a
<think>block the Instruct base was never trained to fill, so the model emits an end-token immediately and returns an empty reply. TheTEMPLATEhere ends the prompt atassistant\n(matching the model's ownchat_template.jinja) so it answers normally. The repo also shipstemplate+paramsfiles, so a directollama run hf.co/...picks them up automatically.
# Modelfile — note the TEMPLATE (fixes empty replies on the Instruct base)
cat > Modelfile <<'MF'
FROM ./helmsman-4b-Q4_K_M.gguf
TEMPLATE """{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{- range .Messages }}{{- if eq .Role "user" }}<|im_start|>user
{{ .Content }}<|im_end|>
{{ else if eq .Role "assistant" }}<|im_start|>assistant
{{ .Content }}<|im_end|>
{{ end }}{{- end }}<|im_start|>assistant
"""
PARAMETER stop <|im_start|>
PARAMETER stop <|im_end|>
PARAMETER temperature 0.7
PARAMETER top_p 0.8
PARAMETER top_k 20
MF
ollama create helmsman-4b -f Modelfile
ollama run helmsman-4b "Summarise the key points of the document."
# …or pull straight from the Hub (template + params ship in the repo):
ollama run hf.co/sinhaankur/helmsman-4b:Q4_K_M "What are you?"
llama.cpp:
llama-cli -hf sinhaankur/helmsman-4b:Q4_K_M -p "Summarise the key points of the document."
Training recipe (how it was made)
- Synthetic data —
gen_data.pygenerated 305 (prompt, response) pairs against a Claude (Opus-class) teacher, one chat-completion per source document. - SFT — 3 epochs, lr 2e-4, effective batch 16, cosine schedule, 5% warmup.
- QLoRA — base in 4-bit NF4, compute dtype bf16, double quantization; LoRA on all attention + MLP projections; then merged into the base and exported to GGUF.
- Seed
42for reproducibility.
The
gen_data.py/train.pyrecipe lives in the Unhosted distillation project (unhosted-ai); the rawtrain.jsonlis not shipped in this repo (an earlier card claimed it was — corrected here).
Evaluation
| Metric | This model |
|---|---|
| LLM-as-judge (0–46) | 32.5 / 46 |
| Normalized | 71% |
Eval set: 46 held-out prompts generated with a different seed than training, so the trainer never saw them. This measures in-distribution grounded QA only — see "What it's NOT for" for the honest limits.