Skip to content

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

Get it in Zero1LLM

Then open Explore in the app and search for:

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.

VersionFile sizeFileSHA-256
IQ2_M1.59 GBTiiny_OpenFrogNano-4B-IQ2_M.gguf
Q2_K1.73 GBTiiny_OpenFrogNano-4B-Q2_K.gguf
IQ3_XXS1.91 GBTiiny_OpenFrogNano-4B-IQ3_XXS.gguf
Q3_K_S1.97 GBTiiny_OpenFrogNano-4B-Q3_K_S.gguf
IQ3_XS1.98 GBTiiny_OpenFrogNano-4B-IQ3_XS.gguf
Q3_K_M2.08 GBTiiny_OpenFrogNano-4B-Q3_K_M.gguf
Q3_K_L2.18 GBTiiny_OpenFrogNano-4B-Q3_K_L.gguf
IQ3_M2.27 GBTiiny_OpenFrogNano-4B-IQ3_M.gguf
Show all 22 versions
VersionFile sizeFileSHA-256
IQ4_XS2.43 GBTiiny_OpenFrogNano-4B-IQ4_XS.gguf
Q4_K_S2.55 GBTiiny_OpenFrogNano-4B-Q4_K_S.gguf
Q4_02.63 GBTiiny_OpenFrogNano-4B-Q4_0.gguf
IQ4_NL2.72 GBTiiny_OpenFrogNano-4B-IQ4_NL.gguf
Q4_K_M2.74 GBTiiny_OpenFrogNano-4B-Q4_K_M.gguf
Q4_12.84 GBTiiny_OpenFrogNano-4B-Q4_1.gguf
Q4_K_L2.91 GBTiiny_OpenFrogNano-4B-Q4_K_L.gguf
Q5_K_S3.09 GBTiiny_OpenFrogNano-4B-Q5_K_S.gguf
Q5_K_M3.29 GBTiiny_OpenFrogNano-4B-Q5_K_M.gguf
Q6_K_S3.54 GBTiiny_OpenFrogNano-4B-Q6_K_S.gguf
Q6_K3.69 GBTiiny_OpenFrogNano-4B-Q6_K.gguf
Q6_K_L3.85 GBTiiny_OpenFrogNano-4B-Q6_K_L.gguf
Q8_04.48 GBTiiny_OpenFrogNano-4B-Q8_0.gguf
BF168.42 GBTiiny_OpenFrogNano-4B-bf16.gguf

Vision add-on (needed to read images): mmproj-Tiiny_OpenFrogNano-4B-f16.gguf, 672.4 MB

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)

OpenFrogNano-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,926 rollouts across 642 tasks), improving +19.68 pp over Qwen/Qwen3.5-4B (31.93%, 615 / 1,926) and surpassing FrogNano-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 with Tiiny/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)

ModelRL RoundsSynthesized TasksTasksRolloutsPassedavg@3Gain vs. Base
Qwen/Qwen3.5-4B (Base)0—6421,92661531.93%—
microsoft/FrogNano-4B-2609 (same harness)5~1,5006421,92694849.22%+17.29 pp
Tiiny/OpenFrogNano-4B (Ours)37946421,92699451.61%+19.68 pp (+2.39 vs. FrogNano)

SWE-bench Verified (500 Tasks, avg@3)

ModelParamsRL RoundsSynth. TasksValid Tasksavg@3 (Native)avg@3 (Full-500)Gain vs. Base
Qwen/Qwen3.5-4B (Base)4B0—500 / 50040.73%40.73%—
Tiiny/OpenFrogNano-4B-Round0 (step100)4B1194498 / 50051.41%51.20%+10.68 pp
Tiiny/OpenFrogNano-4B-Round1 (step200)4B2494 cum.497 / 50057.61%57.33%+16.88 pp
Tiiny/OpenFrogNano-4B (round2-step70)4B3794 cum.500 / 50061.33%61.33%+20.60 pp
Ref: microsoft/FrogNano-4B-2609 (reported Leaf harness)*4B5~1,500500 / 50061.5%61.5%+22.1 pp (vs. 39.4%)
Ref: microsoft/FrogNano-4B-2609 (same harness)*4B5~1,500499 / 50057.98%57.87%+17.25 pp
Larger Ref: openai/gpt-oss-120b (official card)**120B MoE——500 / 50062.4%62.4%—
Larger Ref: Qwen/Qwen3.5-35B-A3B (official card)**35B-A3B——500 / 50069.2%69.2%—
Larger Ref: Qwen/Qwen3.5-27B (official card)**27B——500 / 50072.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).

StageCheckpointInit FromTasksContext / TurnsPresence PenaltyTruncation RewardSteps (Selected)Verified 500 (avg@3)
Round 0OpenFrogNano-4B-Round0Qwen3.5-4B19464K / 75t0.0Strict 0.0120 (step 100)51.41%
Round 1OpenFrogNano-4B-Round1Round 030064K / 75t0.0Strict 0.0200 (step 200)57.61%
Round 2OpenFrogNano-4BRound 130096K / 150t0.0Strict 0.0121 (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,072 context, 8,192 max tokens/turn, 150 max turns, temperature = 0.6).


Technical Notes & Limitations

  • No MTP head: The 15 Multi-Token Prediction (mtp.*) tensors from Qwen3.5-4B were 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-4B and 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.