Tiiny
OpenFrogNano-4B
A 4.2B model by Tiiny that uses tools such as web search, can think before answering and reads images.
Tools Thinking Vision- Downloads
- 3,620 downloads last month
- Likes
- 0 likes
- Uploaded
- Uploaded 5 Dec 2026
Overview
From Tiiny/OpenFrogNano-4B- Parameters
- 4,539,265,536 (4.5B)
- Context length
- 262,144 tokens
- Architecture
- qwen35
- Task
- text-generation
- Licence
- apache-2.0
- Released
- 3 Dec 2026
- Last updated
- 6 Dec 2026
This is bartowski's upload of Tiiny/OpenFrogNano-4B, which is based on Qwen/Qwen3.5-4B.
Languages listed in the model card
- English
Tools
Uses tools, so web search and the browser work best with it.
Thinking
Can think step by step before it answers.
Vision
Reads images: photos, screenshots, scanned pages.
Each version is the same model stored at a different precision: smaller files use less memory and lose a little quality.
| Version | File size | File | SHA-256 |
|---|---|---|---|
| IQ2_M | 1.59 GB | Tiiny_OpenFrogNano-4B-IQ2_M.gguf | |
| Q2_K | 1.73 GB | Tiiny_OpenFrogNano-4B-Q2_K.gguf | |
| IQ3_XXS | 1.91 GB | Tiiny_OpenFrogNano-4B-IQ3_XXS.gguf | |
| Q3_K_S | 1.97 GB | Tiiny_OpenFrogNano-4B-Q3_K_S.gguf | |
| IQ3_XS | 1.98 GB | Tiiny_OpenFrogNano-4B-IQ3_XS.gguf | |
| Q3_K_M | 2.08 GB | Tiiny_OpenFrogNano-4B-Q3_K_M.gguf | |
| Q3_K_L | 2.18 GB | Tiiny_OpenFrogNano-4B-Q3_K_L.gguf | |
| IQ3_M | 2.27 GB | Tiiny_OpenFrogNano-4B-IQ3_M.gguf |
Show all 22 versionsHide the other versions
| Version | File size | File | SHA-256 |
|---|---|---|---|
| IQ4_XS | 2.43 GB | Tiiny_OpenFrogNano-4B-IQ4_XS.gguf | |
| Q4_K_S | 2.55 GB | Tiiny_OpenFrogNano-4B-Q4_K_S.gguf | |
| Q4_0 | 2.63 GB | Tiiny_OpenFrogNano-4B-Q4_0.gguf | |
| IQ4_NL | 2.72 GB | Tiiny_OpenFrogNano-4B-IQ4_NL.gguf | |
| Q4_K_M | 2.74 GB | Tiiny_OpenFrogNano-4B-Q4_K_M.gguf | |
| Q4_1 | 2.84 GB | Tiiny_OpenFrogNano-4B-Q4_1.gguf | |
| Q4_K_L | 2.91 GB | Tiiny_OpenFrogNano-4B-Q4_K_L.gguf | |
| Q5_K_S | 3.09 GB | Tiiny_OpenFrogNano-4B-Q5_K_S.gguf | |
| Q5_K_M | 3.29 GB | Tiiny_OpenFrogNano-4B-Q5_K_M.gguf | |
| Q6_K_S | 3.54 GB | Tiiny_OpenFrogNano-4B-Q6_K_S.gguf | |
| Q6_K | 3.69 GB | Tiiny_OpenFrogNano-4B-Q6_K.gguf | |
| Q6_K_L | 3.85 GB | Tiiny_OpenFrogNano-4B-Q6_K_L.gguf | |
| Q8_0 | 4.48 GB | Tiiny_OpenFrogNano-4B-Q8_0.gguf | |
| BF16 | 8.42 GB | Tiiny_OpenFrogNano-4B-bf16.gguf |
Vision add-on (needed to read images): mmproj-Tiiny_OpenFrogNano-4B-f16.gguf, 672.4 MB
Architecture
From config.json in Tiiny/OpenFrogNano-4B- Model class
- Qwen3_5ForConditionalGeneration
- Model type
- qwen3_5_text
- Layers
- 32
- Hidden size
- 2560
- Attention heads
- 16
- Key/value heads
- 4
- Vocabulary
- 248,320
- Context length
- 262,144 tokens
- Weights
- bfloat16
- Vision encoder
- Included (vision_config)
Model card
From README.md in Tiiny/OpenFrogNano-4BOpenFrogNano-4B
An Open-Source 4B Coding Agent Trained with Pure Multi-Round RL on 794 Synthesized SWE Tasks
Disclaimer: OpenFrogNano is an independent open-source reproduction of FrogNano-4B by Tiiny AI, initialized from
Qwen/Qwen3.5-4B. It is not affiliated with or endorsed by Microsoft or the official FrogNano team.
Highlights
- Pure RL, zero teacher distillation: Post-trained exclusively with executable-test reinforcement learning from
Qwen/Qwen3.5-4B—no SFT or trajectory distillation from stronger teacher models. - Outperforms Base & FrogNano on SWE-bench Pro V2: Achieves 51.61%
avg@3(994 / 1,926rollouts across 642 tasks), improving +19.68 pp overQwen/Qwen3.5-4B(31.93%,615 / 1,926) and surpassingFrogNano-4B-2609(49.22%,948 / 1,926) by +2.39 pp under the same evaluation harness. - High sample efficiency on SWE-bench Verified: Using 3 RL rounds and only 794 synthesized SWE tasks (roughly half the ~1,500 tasks and 5 rounds of official FrogNano), OpenFrogNano-4B boosts SWE-bench Verified (500 tasks,
avg@3) from 40.73% → 61.33% (+20.60 pp / +50.6% relative gain). - Full-trajectory open release: We release all three sequential round checkpoints (
Round 0→Round 1→Round 2) together withTiiny/OpenFrogNano-Tasks(all 794 executable tasks with hidden test patches & grading metadata) and the full training recipe.
Benchmark Results
All evaluations below use Qwen3.5's native tool-calling format inside isolated Docker sandboxes (131,072 max context, 8,192 max tokens/turn, up to 150 turns, temperature = 0.6, seed = 42, truncated rollouts scored as 0) unless noted otherwise.
SWE-bench Pro V2 (642 Tasks, avg@3)
| Model | RL Rounds | Synthesized Tasks | Tasks | Rollouts | Passed | avg@3 | Gain vs. Base |
|---|---|---|---|---|---|---|---|
Qwen/Qwen3.5-4B (Base) | 0 | — | 642 | 1,926 | 615 | 31.93% | — |
microsoft/FrogNano-4B-2609 (same harness) | 5 | ~1,500 | 642 | 1,926 | 948 | 49.22% | +17.29 pp |
Tiiny/OpenFrogNano-4B (Ours) | 3 | 794 | 642 | 1,926 | 994 | 51.61% | +19.68 pp (+2.39 vs. FrogNano) |
SWE-bench Verified (500 Tasks, avg@3)
| Model | Params | RL Rounds | Synth. Tasks | Valid Tasks | avg@3 (Native) | avg@3 (Full-500) | Gain vs. Base |
|---|---|---|---|---|---|---|---|
Qwen/Qwen3.5-4B (Base) | 4B | 0 | — | 500 / 500 | 40.73% | 40.73% | — |
Tiiny/OpenFrogNano-4B-Round0 (step100) | 4B | 1 | 194 | 498 / 500 | 51.41% | 51.20% | +10.68 pp |
Tiiny/OpenFrogNano-4B-Round1 (step200) | 4B | 2 | 494 cum. | 497 / 500 | 57.61% | 57.33% | +16.88 pp |
Tiiny/OpenFrogNano-4B (round2-step70) | 4B | 3 | 794 cum. | 500 / 500 | 61.33% | 61.33% | +20.60 pp |
Ref: microsoft/FrogNano-4B-2609 (reported Leaf harness)* | 4B | 5 | ~1,500 | 500 / 500 | 61.5% | 61.5% | +22.1 pp (vs. 39.4%) |
Ref: microsoft/FrogNano-4B-2609 (same harness)* | 4B | 5 | ~1,500 | 499 / 500 | 57.98% | 57.87% | +17.25 pp |
Larger Ref: openai/gpt-oss-120b (official card)** | 120B MoE | — | — | 500 / 500 | 62.4% | 62.4% | — |
Larger Ref: Qwen/Qwen3.5-35B-A3B (official card)** | 35B-A3B | — | — | 500 / 500 | 69.2% | 69.2% | — |
Larger Ref: Qwen/Qwen3.5-27B (official card)** | 27B | — | — | 500 / 500 | 72.4% | 72.4% | — |
*Harness note: Official FrogNano-4B-2609 was trained and reported under its native Leaf harness (where base Qwen3.5-4B scores 39.4% and FrogNano reaches 61.5%). On Verified-500, OpenFrogNano-4B completed 1,500/1,500 valid rollouts with 0 excluded tasks, 3.8% truncation rate, and 28.6K mean response tokens.**Larger open-weight reference scores are taken directly from their respective official Model Cards under their native evaluation scaffolds: openai/gpt-oss-120b reports 62.4% at high reasoning effort (cited as 62.0% in Qwen3.5's table), Qwen/Qwen3.5-35B-A3B reports 69.2%, and Qwen/Qwen3.5-27B reports 72.4%.
Model Family & 3-Round Training Recipe
OpenFrogNano-4B is trained in three sequential rounds with asynchronous partial-rollout DPPO ($\delta = 0.2$, $C = 3.0$) and GRPO group-relative advantage ($\epsilon = 10^{-6}$, $\beta_{\text{KL}} = 0$, 32 prompts × 8 rollouts = 256 trajectories/step, Adam lr = 1e-6 constant, BF16 compute / FP32 master weights, frozen vision encoder).
| Stage | Checkpoint | Init From | Tasks | Context / Turns | Presence Penalty | Truncation Reward | Steps (Selected) | Verified 500 (avg@3) |
|---|---|---|---|---|---|---|---|---|
| Round 0 | OpenFrogNano-4B-Round0 | Qwen3.5-4B | 194 | 64K / 75t | 0.0 | Strict 0.0 | 120 (step 100) | 51.41% |
| Round 1 | OpenFrogNano-4B-Round1 | Round 0 | 300 | 64K / 75t | 0.0 | Strict 0.0 | 200 (step 200) | 57.61% |
| Round 2 | OpenFrogNano-4B | Round 1 | 300 | 96K / 150t | 0.0 | Strict 0.0 | 121 (step 70) | 61.33% |
Training dynamics (370 cumulative RL steps): Across all three rounds, training uses binary outcome rewards (zero_reward_on_truncation, no presence penalty). Across Round 0 (steps 0–100), Verified-200 truncation drops rapidly from 28.4% to 7.1% while avg@3 rises +12.6 pp. Rotating to 300 unseen tasks in Round 1 (steps 100–300) breaks training-set saturation and keeps truncation near 2%. In Round 2 (steps 300–370), expanding context/turns to 96K / 150t enables deeper multi-turn reasoning: mean response length stretches to a 31.5K peak (13.4% truncation) at step 50 with Verified-200 temporarily dipping (60.17% at step 30 → 58.00% at step 50 → 57.33% at step 60), before the zero-truncation reward pulls truncation back down to 3.5% (29.1K mean tokens) and lifts step 70 to 61.98% on Verified-200 (61.33% on full Verified-500). (Round 2 steps 30, 50, and 60 were re-evaluated offline on the identical Verified-200 benchmark after an online evaluation container outage.)
Quick Start
Serving with vLLM
vllm serve Tiiny/OpenFrogNano-4B \
--dtype bfloat16 \
--max-model-len 131072
Serving with SGLang
python -m sglang.launch_server \
--model-path Tiiny/OpenFrogNano-4B \
--dtype bfloat16 \
--context-length 131072
Inference with Transformers
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
model_id = "Tiiny/OpenFrogNano-4B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "user", "content": "Explain why Python's asyncio.Lock should not be shared across different event loops."}
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
inputs = tokenizer([prompt], return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=1024,
temperature=0.6,
top_p=1.0,
do_sample=True,
)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
Agentic SWE tip: To reproduce benchmark performance on repository-level issues, run the model inside an isolated Docker sandbox with Qwen3.5's native tool-calling format (
131,072context,8,192max tokens/turn,150max turns,temperature = 0.6).
Technical Notes & Limitations
- No MTP head: The 15 Multi-Token Prediction (
mtp.*) tensors fromQwen3.5-4Bwere not exported during RL training (text_config.mtp_num_hidden_layers = 0). Standard inference works out of the box without MTP speculative decoding. - Vision encoder frozen: Visual encoder weights are inherited bit-for-bit from
Qwen/Qwen3.5-4Band were not post-trained or evaluated on multimodal tasks. - Domain focus: Post-training focused primarily on English, Python-heavy repository debugging and patch generation; performance may vary under different agent scaffolds or non-Python languages.
- Safety & review: Candidate patches generated by the model should always be executed in an isolated sandbox and reviewed by a human developer before merging or deploying.
License & Citation
Released under the Apache-2.0 license, inheriting the upstream license of Qwen/Qwen3.5-4B.
@article{zhang2026openfrognano,
title = {OpenFrogNano: Training 4B Coding Agents via Loop RL},
author = {Zhang, Shuhuai and Song, Yixin and Mi, Zeyu},
year = {2026},
note = {Tiiny AI Technical Report},
url = {https://huggingface.co/Tiiny/OpenFrogNano-4B}
}
On Hugging Face
Everything on this page comes from these pages and is refreshed every few hours; Hugging Face always has the latest.