Files
The merged model in bf16 safetensors (two shards, 9.3 GB), with the base model's tokenizer, processor files and chat template. The LoRA touched the language model only; the vision tower is the base model's, unchanged, and Javi was never trained or evaluated on images.
Run it
Javi was trained and evaluated with thinking off. Send "chat_template_kwargs": {"enable_thinking": false} with each request, and use a low temperature (0.2, top-p 0.8, top-k 20) so tool calls stay well formed.
vLLM
vllm serve jvr0x/Javi0.3-4B --max-model-len 131072 \ --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder
Add --language-model-only to skip the vision tower and save memory.
SGLang
python -m sglang.launch_server --model-path jvr0x/Javi0.3-4B --context-length 131072 \ --reasoning-parser qwen3 --tool-call-parser qwen3_coder
Then point any OpenAI-compatible agent at the server. Javi is built for agents with tools (web search, page fetch, a shell). In a plain chat with no tools it answers from what it knows and tells you when a question needs a lookup.
Transformers
from transformers import AutoModelForImageTextToText, AutoProcessor model_id = "jvr0x/Javi0.3-4B"processor = AutoProcessor.from_pretrained(model_id)model = AutoModelForImageTextToText.from_pretrained(model_id, dtype="auto", device_map="auto") tools = [{"type": "function", "function": { "name": "web_search", "description": "Search the web.", "parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}}]messages = [{"role": "user", "content": [{"type": "text", "text": "What's the latest stable Rust release?"}]}] inputs = processor.apply_chat_template(messages, tools=tools, add_generation_prompt=True, enable_thinking=False, tokenize=True, return_dict=True, return_tensors="pt").to(model.device)out = model.generate(**inputs, max_new_tokens=512, do_sample=True, temperature=0.2, top_p=0.8, top_k=20)print(processor.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
With a search tool available it should answer with a web_search call rather than a version from memory; run the tool, append the result as a tool message, and generate again.
Results
Eval v3: 175 held-out questions, each run 3 times inside real client formats (grok, omp, opencode, a bare OpenAI format and a plain chat) with tools: web search (frozen cache and pinned date, so runs compare), page fetches, and a sandboxed shell over small code projects. Some questions force tool failures. Two judges grade every answer, DeepSeek-V4.1-Flash and MiMo-V2.6-Flash. Core pass means grounded (2/2), honest (2/2), the task at least partly solved, and no https:// link that no tool returned (checked from the transcript, not by the judge). The eval ran the Q8_0 GGUF of these weights.
Table with columns: Core pass, Base Qwen3.5-4B, Javi0.2-4B, Javi0.3-4B| Core pass | Base Qwen3.5-4B | Javi0.2-4B | Javi0.3-4B |
|---|
| Both judges | 0.45 | 0.17 | 0.50 |
| DeepSeek-V4.1-Flash | 0.50 | 0.21 | 0.64 |
| MiMo-V2.6-Flash | 0.39 | 0.13 | 0.36 |
Against the base model, Javi0.3-4B is ahead by 0.05, but the 95% interval is -0.01 to +0.11: ahead, not proven. The judges split: DeepSeek has Javi ahead by 0.14 (+0.07 to +0.20), MiMo has the base 0.03 ahead, within noise. Against Javi0.2 it gains 0.33.
Behavior, counted from all 525 transcripts:
Table with columns: Base Qwen3.5-4B, Javi0.2-4B, Javi0.3-4B | Base Qwen3.5-4B | Javi0.2-4B | Javi0.3-4B |
|---|
| Finished | 90% | 99% | 98% |
| Answered a time-sensitive question without a tool | 22% | 1% | 0% |
Cited a link no tool returned, with or without https:// | 1.7% | 53% | 1.1% |
| Repeated an identical call | 11% | 2% |
Held-out failures: 24 more questions whose failures are types it never trained on (429 rate limits, timeouts), 3 runs each.
Table with columns: Base Qwen3.5-4B, Javi0.2-4B, Javi0.3-4B | Base Qwen3.5-4B | Javi0.2-4B | Javi0.3-4B |
|---|
| Core pass | 0.57 | 0.02 | 0.51 |
| Recovered | 89% | 72% | 88% |
Cited a link no tool returned, with or without https:// | 0% | 89% | 0% |
By category (core pass, Javi0.3-4B vs base): ahead where Javi's habits matter (every route broken 0.52 vs 0.11, lookups 0.43 vs 0.28, undated questions 0.47 vs 0.19, conflicting sources 0.40 vs 0.26, false premises 0.27 vs 0.15); behind on code (0.46 vs 0.67), reasoning puzzles (0.82 vs 0.96) and recovery questions (0.41 vs 0.52).
How it was made
Teacher inside the harness. GLM-5.3-Flash answered seed questions inside each client's exact format (system prompts of 15-25k tokens, 10-27 tools) with real tools: web search through a local SearXNG, page fetches, and a Docker sandbox. Its working rules were in the teacher's prompt only: reason from first principles, look up anything time-sensitive, diagnose a failed call before the next one, prefer a new search or a link from earlier results over a URL typed from memory, and when everything fails still give a labeled best answer and name where to check. Training rows keep the client's own prompt, so the student learns the behavior, not the instructions.
Data. Javi0.2's rows with made-up links removed, plus three rounds of recovery practice on 480 questions, each round giving every question a different failure and client: the first search or page fetch fails once (blocked, empty, 403, 404) or, from the second round on, keeps failing for a third of them (offline, a route blocked for good).
Filters. DeepSeek-V4.1-Flash judged every episode. Code checks dropped anything unfinished, any time-sensitive answer without a tool, repeated calls, links no tool returned (with or without https://), and any call after a failure that didn't say what failed. A recovery stayed only if a different route worked, or if two routes failed and the answer stopped honestly. Recoveries where a URL typed from memory just got lucky were dropped.
Two rewrite passes by the teacher. First concise: every answer over 500 characters rewritten answer-first, keeping only facts a tool returned, with sources named instead of linked (median answer 703 → 364 characters). Then de-hedge: disclaimers removed from math, code and settled facts (hedged answers 46% → 17%, median answer 289 characters). A rewrite was kept only if it was shorter, had no URL, changed no code block and added no number.
Training: LoRA SFT with Unsloth on 1,253 rows.
Table with columns: Setting, Value| Setting | Value |
|---|
| Method | LoRA on the bf16 base |
| Rank / alpha / dropout | 16 / 16 / 0 |
| Target modules | q, k, v, o, gate, up, down |
| Epochs / steps | 1 / 313 |
| Effective batch | 4 (1 × 4 grad accum) |
| Learning rate | 1e-4, linear decay, 3 warmup steps |
| Max sequence length | 73,728 tokens |
| Loss on | the first reply to each user message, every final answer, and the turn right after each failed tool call |
| Hardware / time |
Merge: the adapter was merged into the bf16 base with Unsloth.
The story of every round, including each way it broke along the way, is in the Javi0.3 article on X.
Limitations
- Recovery on the main eval is 58% (base: 92%). After a failure it often fetches a page directly instead of searching again, and about half of those fetches fail.
- Its lead over base Qwen3.5-4B is within noise, and it is weaker on code and reasoning puzzles.
- Hedging is not perfect. 27% of answers carry an "unverified" hedge; on stable questions, where none is needed, 5% still do.
- Images: the vision tower is untouched and untested with Javi's training.
- It's a 4B model. It can still get facts wrong.
- It's built for agent clients with tools. Without tools it can't look anything up.
- The judges are LLMs, not people, and they disagree on some answers (Cohen's kappa 0.56).
- Trained mostly on English.
What's next
Javi0.4: recovery data built search-first from the start, and a bigger eval that can resolve small gaps.
License
Apache 2.0, inherited from Qwen3.5-4B.