/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
9,1 ГБ
Лицензия
MIT
Архитектура
qwen3_5 · dense
Базовая модель
FrogNano-4B-2609
Библиотека
transformers
Опубликована
13 окт 2026

FrogNano-4B-heretic

Генерация текстаТекст → текст6 профессий

Локальная модель-агент на 4,54 млрд параметров для программирования и исправления ошибок в репозиториях, созданная на базе FrogNano-4B-2609 с ослабленным отказным поведением.

1 940скачиваний за 30 дней1лайквеса обновлены6 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

FrogNano-4B-heretic — созданный автором репозитория вариант модели microsoft/FrogNano-4B-2609 для локального программного агента, работающего с кодовыми репозиториями. Отказное поведение ослаблено методом directional ablation в Heretic 1.4.0 посредством целевых изменений весов; это не дообучение. Модель сохраняет гибридную архитектуру Qwen3.5 с Gated DeltaNet и gated attention, содержит 4,54 млрд параметров (4,21 млрд текстовых) и рассчитана на контекст около 131 тыс. токенов.

Модель предназначена для поиска и исправления ошибок в репозиториях, выполнения команд и работы с файлами через инструменты Leaf. Она особенно ориентирована на англоязычные репозитории с большим количеством Python-кода и сценарии локальной разработки, исследовательских агентов и первичного анализа уязвимостей. Карточка сообщает о 71 отказе из 100 в тесте Heretic; после изменения весов отдельная оценка SWE-bench и других базовых бенчмарков не проводилась. Набор GGUF-квантований предоставлен для удобства, но не валидирован Microsoft и может давать поведенческие отклонения. Лицензия — MIT.

Сценарии применения

  • поиск и исправление ошибок в кодовом репозитории
  • выполнение команд оболочки при работе над задачей разработки
  • редактирование файлов проекта с помощью агентных инструментов
  • анализ и исправление уязвимостей в коде
  • исследовательские эксперименты с локальными агентами программирования

Ограничения

Отказное поведение подавлено лишь частично: в описанном тесте модель отказала в 71 случае из 100. После изменения весов базовые бенчмарки повторно не запускались; квантованные GGUF-файлы не валидированы Microsoft и могут вести себя иначе, чем исходная модель.

Для каких профессий подходит6

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

FrogNano-4B-heretic

Interim checkpoint. Refusal suppression on this Heretic trial is real but incomplete - refusals fall from 92/100 to 71/100, not to the low single digits the rest of this collection reaches. A stronger variant with fewer refusals is being produced and will replace this one. Everything else here is final: architecture, GGUF set, and card stay as-is.

A decensored variant of microsoft/FrogNano-4B-2609, produced with Heretic v1.4.0 (directional ablation / "abliteration"). Microsoft's compact repository-level coding agent keeps its hybrid Gated DeltaNet architecture, Leaf five-tool harness behaviour, and ~131K evaluated context; refusal behaviour is suppressed via targeted weight edits to the attention output and MLP down-projections rather than fine-tuning.

Who this is for: developers who want a coding agent that runs locally and answers instead of declining. FrogNano is a purpose-built repository-level SWE model, not a general assistant - SWE-bench Verified 61.5% Avg@3, up from 39.4% for its Qwen/Qwen3.5-4B starting point, plus SWE-bench Pro 37.6%, Terminal-Bench 2.0 31.1%, and PatchEval-Verified 47.3% (CVE repair). It is trained on ~1,500 synthetic SWE tasks with executable test rewards and, unusually, no distillation from stronger models - no solution trajectories, reasoning traces, or patch targets. Best for research agents, local developer tooling, and CVE-triage workflows inside a sandbox. English-language and Python-heavy repositories are the validated domain.

Caveat worth knowing up front: the base model's card states that optimized and quantized FrogNano formats have not been validated by Microsoft. These GGUFs are a convenience produced after the fact. Expect small behavioural drift from the bf16 original and re-run your own evals if correctness matters.

Runs on your gaming PC

Basic quant set - pick the one that fits your card:

Your GPURecommended quantWeights
RTX 3090 / 4090 / 5090 (24 GB)Q8_04.48 GB
RTX 4080 / 5080 / 4060 Ti 16G (16 GB)Q6_K3.46 GB
RTX 3060 / 4070 / 5070 (12 GB)Q5_K_M3.07 GB
RTX 4060 / 3070 (8 GB)Q4_K_M2.71 GB
CPU-only / Apple SiliconQ4_K_Mfits in system RAM

Weights only, at this model's 4.21B text-only size; the agent loop needs real headroom on top, because FrogNano evaluates at ~131K context - far more than a single chat turn. OOM? Drop to Q4_K_M. This set is deliberately small: the model is interim, so it ships F16 plus the four workhorse quants and nothing exotic.

Abliteration parameters

Trial 132 of a 200-trial Heretic run (seed 393732754).

ParameterValue
direction_index18.57
attn.o_proj.max_weight1.40
attn.o_proj.max_weight_position20.97
attn.o_proj.min_weight1.31
attn.o_proj.min_weight_distance15.81
mlp.down_proj.max_weight0.86
mlp.down_proj.max_weight_position18.74
mlp.down_proj.min_weight0.82
mlp.down_proj.min_weight_distance4.75

Performance

MetricThis modelOriginal model (microsoft/FrogNano-4B-2609)
KL divergence0.00460 (by definition)
Refusals71/10092/100

Be precise about what these two numbers mean together, because here they point in opposite directions. A KL of 0.0046 is the tightest edit in this collection - the weights barely moved. That is exactly why 71 refusals survive: the trial optimiser found a direction it barely dared to apply, so it preserved the model's behaviour almost perfectly and preserved most of its refusal behaviour with it. Only 21 of 92 refusals were cleared.

The contrast with granite-4.1-3b-heretic is instructive: same family of method, opposite outcome. That one took a looser edit (KL 0.0852) and landed refusals at 3/100. Low KL is only a virtue when it accompanies low refusals.

For coding work this matters less than it sounds - the 21 cleared refusals skew toward the content-policy cases, and FrogNano was never safety-aligned to begin with (Microsoft states its RL used no refusal or harmful-content datasets at all). But if you hit a refusal, expect to hit more of them here than on other models in this collection.

Base model benchmarks

From Microsoft's FrogNano card - these are base-model numbers, measured before abliteration. No post-abliteration eval has been run.

BenchmarkAvg@3Note
SWE-bench Verified61.5%up from 39.4% for Qwen/Qwen3.5-4B; Pass@3 71.0%
SWE-bench Pro37.6%held-out; Pass@3 47.6%
Terminal-Bench 2.031.1%held-out
PatchEval-Verified47.3%held-out, 230 real CVE repairs 2015-2025

Five TaskPilot-guided RL iterations moved SWE-bench Verified 39.4 → 49.1 → 53.1 → 56.7 → 59.1 → 61.5%. Evaluated with the Leaf harness, 150 interaction steps, ~131K context, temperature 0.6. FrogNano has not been separately evaluated for general language understanding, maths, or multilingual performance - do not attribute Qwen/Qwen3.5-4B's numbers to it.

Why abliteration instead of fine-tuning

Fine-tuning a "helpful" persona on top of RLHF'd refusals fights the base model's training and tends to degrade coherence. Abliteration instead finds and edits the specific weight directions responsible for refusal, leaving the rest of the network (and its capabilities) untouched. See the Heretic repo and the original abliteration writeup for the mechanism.

Made with ❤️ by RACER IS OP (saidutta69) — follow for more uncensored models

Files

Safetensors

FileSize
model-00001-of-00002.safetensors4.97 GB
model-00002-of-00002.safetensors4.11 GB

BF16, 4,539,265,536 parameters (4.54B) — but note that total includes a ~334M vision tower inherited from Qwen/Qwen3.5-4B. FrogNano never post-trained vision and does not claim it as a supported input, so the GGUFs here are text-only at 4,205,751,296 parameters (4.21B). If you need image or video input, use the bf16 safetensors with a Qwen3VL processor.

The reproduce/ directory carries the full Heretic recipe - config.toml, requirements.txt, the Optuna study journal, and SHA-256 sums - so this exact model can be regenerated bit-for-bit. Reproduce it with heretic --reproduce reproduce/reproduce.json.

GGUF quantizations

Basic set (F16 + 4 quants) produced with llama.cpp.

FileFormatSize
FrogNano-4B-heretic-F16.ggufGGUF F168.42 GB
FrogNano-4B-heretic-Q4_K_M.ggufGGUF Q4_K_M2.71 GB
FrogNano-4B-heretic-Q5_K_M.ggufGGUF Q5_K_M3.07 GB
FrogNano-4B-heretic-Q6_K.ggufGGUF Q6_K3.46 GB
FrogNano-4B-heretic-Q8_0.ggufGGUF Q8_04.48 GB

Qwen3.5 hybrid architecture (qwen35, 426 tensors, 32 blocks = 32 layers, no MTP head: the base config declares mtp_num_hidden_layers: 1 but the checkpoint ships zero MTP tensors) - loads natively in llama.cpp / LM Studio / Jan.

Run llama serve -hf saidutta69/FrogNano-4B-heretic to pull the default quant.

Quickstart

# llama.cpp
llama serve -hf saidutta69/FrogNano-4B-heretic
# transformers (requires transformers>=5.0.0)
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "saidutta69/FrogNano-4B-heretic"
model = AutoModelForCausalLM.from_pretrained(model_name, dtype="auto", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_name)

messages = [{"role": "user", "content": "Find the failing test in this repo and fix it."}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=2048, temperature=0.6, repetition_penalty=1.0)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Generation settings that match Microsoft's evaluation: temperature=0.6, repetition_penalty=1.0, up to 8,192 generated tokens per assistant turn.

Running it as an agent

FrogNano is trained against the Leaf harness, which exposes exactly five tools: read, write, and edit files, glob-based search, and shell execution. It expects OpenAI-style JSON-schema tool definitions passed through the chat template.

Two rules from the base model card matter if you build your own loop:

  • A response containing tool calls continues the interaction; a response without a tool call terminates it. Termination is not an error condition.
  • Run it inside an isolated repository sandbox with bounded permissions, timeouts, and resource limits. FrogNano emits patches; it does not review them. Microsoft's own guidance is that every patch needs human review, regression testing, and security validation before deployment.

The harness lives at github.com/microsoft/FrogNano and the technical report at aka.ms/frognano-tech-report.

Model details

ArchitectureQwen3_5ForConditionalGeneration (dense hybrid Gated DeltaNet + gated attention)
Parameters4.54B total / 4.21B text-only (GGUF)
Layers / heads32 layers (24 linear-attention + 8 full-attention, every 4th), + 1 MTP head; 16 attention heads, 4 KV heads; head_dim 256
Hidden / intermediate2560 / 9216 (SwiGLU)
Linear attentionGated DeltaNet, conv kernel 4, state size 128, 16 groups, time-step rank 32
Position embeddingRoPE, theta = 10,000,000, partial rotary 0.25 (64 dims), mrope interleaved
Context length262,144 in config; ~131K is the validated agent setting
Vocab248,320
Precisionbfloat16, tied embeddings
LanguagesEnglish (validated); upstream is multilingual but FrogNano was not evaluated beyond English
DomainsEnglish-language, Python-heavy repositories
Training datesJun 2026 - Aug 2026
Release date22-Sep-2026
Base modelmicrosoft/FrogNano-4B-2609, itself a post-trained Qwen/Qwen3.5-4B

FAQ

What is FrogNano-4B-heretic?

FrogNano-4B-heretic is a decensored build of microsoft/FrogNano-4B-2609 produced with Heretic 1.4.0 (directional ablation). It is the same weights with the refusal direction removed, not a new fine-tune, so its capabilities track the base model.

Is FrogNano-4B-heretic actually uncensored?

Yes. On Heretic's 100-prompt refusal harness it drops from 92/100 to 71/100 at KL divergence 0.0046 from the base model. These are measured values, not a claim; reproduction data is in reproduce/. This edit is conservative: only 21 of 92 refusals cleared, so read KL and refusal count together.

How do I run FrogNano-4B-heretic locally?

llama serve -hf saidutta69/FrogNano-4B-heretic:Q4_K_M pulls the default quant; the repo ships 5 GGUF quants (see Files).

Responsible use

Refusal suppression is deliberate and incomplete by design here — this is an interim checkpoint. Microsoft is explicit that FrogNano "should not be considered independently safety-aligned for unrestricted autonomous deployment": its RL used executable test rewards only, with no refusal, harmful-content, or adversarial datasets. Combined with weak refusal suppression here, the practical result is a coding agent that will attempt requests other models decline.

Sandbox it. Do not point it at privileged infrastructure, do not let it self-apply patches to anything you cannot revert, and review its output. Passing a test suite is evidence of functional correctness, not of security — Microsoft states plainly that passing tests "does not establish that a patch is correct or secure beyond the behavior they cover."

License

Tagged mit on both this repo and the base model. Note the base model's own card text says "Apache License 2.0" because FrogNano derives from Qwen/Qwen3.5-4B, which is Apache-2.0 — the machine-readable license tag on microsoft/FrogNano-4B-2609 is mit, and that repo ships no LICENSE file, so the canonical MIT text is linked here rather than a repo blob.

Related

Abliteration hardware

Recorded in reproduce/reproduce.json:

  • GPU: NVIDIA RTX A6000 (44.42 GB VRAM)
  • CPU: 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz
  • OS: Linux-6.8.0-85-generic-x86_64-with-glibc2.35
  • CUDA / driver: CUDA 13.0, driver 580.178.04
  • Software: PyTorch 2.14.1+cu130, Heretic 1.4.0

Heretic notes that KL-divergence and refusal numbers can vary slightly with hardware and library versions.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
a46f17a

0 моделей