/ Модель

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

Контекст
262 144 токена
Параметры
2,6 млрд
Лицензия
Apache 2.0
Архитектура
flint · MoE
Базовая модель
flint
Библиотека
transformers
Опубликована
5 ноя 2026

flint-weight-edited

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

Модификация Flint с редактированием весов для более точного использования схем инструментов и более краткого завершения агентных рассуждений.

2 067скачиваний за 30 дней0лайковвеса обновлены12 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

flint-weight-edited — созданная автором карточки модификация весов модели RecursiveSI/flint, разработанной Recursive. Это 2,6-миллиардная причинная языковая MoE-модель для генерации текста и диалогов, представленная в формате safetensors и рассчитанная на контекст до 262 144 токенов. Версия v5 редактирует веса без градиентного дообучения и новых обучающих данных: изменения направлены на точное следование именам аргументов и инструментов из переданной схемы, более раннее завершение рассуждений и сокращение лишних вызовов разведочных инструментов.

Модель предназначена для агентной работы с кодовыми базами и инструментами, включая выполнение задач кодирования, исправление ошибок и написание тестов. В описанных автором проверках на отложенных генерациях версия v5 улучшила общий результат относительно исходного Flint; эффект зависит от набора задач, и отдельные показатели могли быть ниже, чем у предыдущей версии модификации. Это исследовательская модификация весов, а результаты README не гарантируют аналогичного качества в других сценариях. Лицензия — Apache-2.0.

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

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

Ограничения

Описанные улучшения измерены на ограниченном наборе отложенных генераций и могут различаться по задачам; в частности, запросы на создание файлов всё ещё часто приводили к предварительному исследованию репозитория. Характеристики поддерживаемых естественных языков в предоставленных данных не определены.

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

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

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

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

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

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

Открыть на Hugging Face

flint-weight-edited

A training-free, weight-edited derivative of RecursiveSI/flint. No gradient updates and no new training data were used. The weights were edited directly: find a behaviour direction or component with teacher-forced reads, edit the matrices that write it, then check with dose-response, random controls and held-out generation. The edits target two problems users reported in the Flint discussions:

  1. Tool-schema drift. The model writes the argument and tool names it learned in pre-training instead of the names in the supplied schema. Examples: path instead of Claude Code's file_path or OpenCode's filePath, and bash instead of Bash (discussions #9, #11, #12).
  2. Overthinking and runaway reasoning. <think> blocks that keep going after the answer is known, and that hit the token budget on math and code (discussions #13, #14, #18, #26).

Current version: v5 (schema_x2.5_neg0+close_b1.0+rowp9.2+xn3+plan3, 51 edits): v3 plus 16 individual routed-expert neurons and 2 shared-expert neurons switched off.

Across 1,774 paired held-out generations, v5 scores 0.801 against 0.722 for the original (p < 10⁻¹⁵). Agent-harness tool calls go from 55.1% (original), 59.1% (v3) and 65.4% (v4) to 69.7%. GSM8K goes from 62.7% to 78.5%, and v5 uses 17% fewer tokens than the original.

Architecture, tokenizer, chat template, config and the sglang kit are identical to the original. Only the values of bf16 tensors changed:

  • 22 attention-output, shared-expert or lm_head tensors;
  • the down_proj of all 256 routed experts in each of layers 37–45;
  • the down_proj of 7 more routed experts (v4, v5), where 16 input columns (neurons) are set to zero;
  • one input column (neuron) of the shared-expert down_proj in layers 40 and 47 (v5), set to zero.

The safetensors index is unchanged; edit/edit_spec.json lists every edit.

What was edited

EditTensorsOperation
Schema-copy heads ×2.5self_attn.o_proj input columns of 11 heads: L45H28, L46H31, L37H8, L37H29, L33H10, L41H28, L41H14, L37H11, L43H6, L46H23, L30H15columns × 2.5
Prior heads ablatedself_attn.o_proj columns of L44H4, L33H21, L45H26columns × 0
Thinking-closure amplificationlayers 37–45: self_attn.o_proj, mlp.shared_expert.down_proj, and every routed expert's down_proj (256 × 9)W ← W + 1.0 · u_l u_lᵀ W
Answer-mode </think> suppressionlm_head.weight row 150007 (</think>)row ← row + 9.2 · r
Explore-first neurons off (v5)mlp.shared_expert.down_proj column 967 in L47 and column 221 in L40; mlp.experts.125.down_proj column 425 in L32columns × 0
Tool-argument neurons off (v4)mlp.experts.E.down_proj input columns: L48 E77 n64, 176, 216, 237, 245, 323, 398, 484; L19 E220 n427; L25 E174 n12; L44 E88 n202; L47 E251 n102, 368; L26 E97 n87, 269, 397columns × 0

Closure direction. u_l is the unit "ready to close </think>" direction at layer l. It is the mean residual difference between positions where the model's own next token is </think> and other sentence-boundary positions in the same reasoning trace. On held-out traces it gives d′ ≈ 3.5 and 100% leave-one-out sign consistency in layers 24–45. The writers in layers 37–45 put out +u mainly when reasoning is about to end. Doubling their u-component (β = 1) makes the model close once it has reached a stopping state, without a constant push. The routed-expert part carries most of the effect: dense-only closure at the same β gave about half the GSM8K gain (v2, below).

lm_head row edit. At closure strength 1.0 the model sometimes emitted a second </think> inside its answer. The fix is one rank-1 change to the </think> output row: r = w/|w|, with |w| = 9.2.

w is a ridge fit on the edited model's final normed residual, using practice data only:

  • target −8 logit at answer positions (after </think>);
  • target 0 at the model's own closing position;
  • constrained orthogonal to the mean thinking state, so the logit is not shifted while the model is still reasoning.

The exact spec is in edit/edit_spec.json and the directions are in edit/directions.pt.

Routed-expert neurons (v4). These were found with a Jacobian lens: for 2,918 single-token decisions (368 tool-argument choices across Claude Code, OpenCode, Codex, pi/omp and 12 invented tools; 2,550 stop-or-continue choices inside the model's own reasoning), the decision token's forward pass was recomputed in fp32 with its context frozen, and logit(good) − logit(bad) was backpropagated to every attention head, shared neuron and routed-expert neuron (grad × activation, i.e. the first-order effect of zeroing that unit through all later layers). Layer-48 expert 77 was the single most harmful unit for the schema argument name in every harness. The 15 neurons switched off are the most harmful routed neurons for tool-argument decisions. Their experts are routed on 40–100% of tool-call decisions but on 0–5% of positions inside math and code reasoning, so the edit is close to tool-specific. Only practice prompts were used.

Explore-first neurons (v5). On simple requests ("Create notes/todo.txt containing …", "Run the tests with pytest"), the model often restated the task and then wrote "Let me first look at the repository …", spending its first call on ls instead of the requested action. A second lens run on 64 practice planning decisions (the token after "{task restated}. Let me": the action verb vs first) found two shared-expert neurons with very large activations exactly there: L47 n967 at about −150 and L40 n221 at about −50. Across all 2,918 corpus decisions, including math and code reasoning, their activations stay below about 10 and their attributed effect is ~0. A routed neuron, L32 E125 n425, was also found; its expert is routed on ≤5% of reasoning positions. Switching the three off moves "run" requests from 20% to 40–60% "act now" at that token. "Create file" requests still mostly explore first.

The schema heads were found by direct logit attribution of each of the 49 × 32 attention heads to the margin logit(schema name) − logit(prior name). It was measured at 80 decision points across Claude Code, OpenCode, Codex and pi/omp tool schemas.

Results

Held-out generation, 887 items × 2 decodes = 1,774 paired items

Each item was run once greedily and once sampled (T = 1.0, top-p 0.95, top-k 20, seed 11), with at most 1,024 new tokens. The original and the edited model ran in the same harness on 2× T4. Routed experts were int4 (g128) and dense tensors bf16, so the edited experts were evaluated as their int4 quantization. No item was used to select edits.

The table reports accuracy, then items only the original got right / items only v5 got right, then an exact McNemar p-value (original vs v5), then the share of outputs that hit the token cap.

KindnOriginalv3v4v5orig-only / v5-onlypHit cap (orig → v5)
GSM8K (held-out rows)4000.6270.7970.7750.78510 / 73<10⁻¹⁰0.36 → 0.16
HumanEval (held-out)2680.5410.6190.6490.62720 / 430.0050.44 → 0.32
Agent-harness tool calls (Claude Code, Codex, pi, omp, OpenCode)3500.5510.5910.6540.69718 / 69<10⁻⁷—
↳ schema-valid call3500.790.820.870.87
Agent-harness answer after a tool result1000.7600.7500.7800.7809 / 110.820.00 → 0.02
Custom, user-invented tool schemas960.8750.8330.8750.8337 / 30.34—
Generic tool selection2400.9040.9120.9210.9253 / 80.23—
No-tool questions1200.9830.9750.9670.9583 / 00.25—
Easy chat2000.9801.0001.0001.0000 / 40.13—
All1,7740.7220.7800.7960.80170 / 211<10⁻¹⁵0.15 → 0.09

Version against version on the same 1,774 items:

  • v4 against v3: 68 v3-only / 97 v4-only (p = 0.029); on agent-harness tool calls it is 6 / 28.
  • v5 against v4: 72 v4-only / 81 v5-only (p = 0.52, not significant overall); on agent-harness tool calls it is 6 / 21 (p = 0.006).

Total generated tokens fell from 595.8k (original) to 483.1k (v3), 482.7k (v4) and 491.8k (v5). Mean thinking length:

KindOriginalv3v4v5
Easy chat685 chars134 chars146 chars134 chars
GSM8K2,372 chars1,643 chars1,647 chars1,665 chars
HumanEval2,559 chars2,107 chars2,080 chars2,082 chars

The two decodes agree. Greedy goes 0.729 (original) → 0.777 (v3) → 0.793 (v4) → 0.795 (v5), and sampled 0.714 → 0.782 → 0.799 → 0.807.

Honest reading:

  • Overall. v5 is clearly better than the original. Most of the v3 gain is GSM8K and HumanEval answers that previously ran out of budget while still thinking.
    • v4 improved agent-harness tool calls by choosing the schema argument name correctly more often (pi/omp edit arguments, Codex apply_patch, Claude Code Edit).
    • v5 improves them again by running the requested command instead of exploring first. 8 of the 9 harness items v5 gained in the greedy run were "run X" requests where v4 started with ls.
  • v5 against v4. Agent-harness tool calls are significantly better; overall the difference is +0.5 points and not significant. Custom tool schemas (0.875 → 0.833, 6 vs 2 items) and HumanEval (0.649 → 0.627, 27 vs 21 items) are lower, neither significantly. Two of the three greedy custom-schema losses are a stray </think> inside an argument value.
  • GSM8K. v5 (0.785) and v4 (0.775) are slightly below v3 (0.797), not significantly.
  • Remaining tool failures. "Create this file" requests still often start with ls, and some harnesses still use bash instead of the dedicated tool (Codex apply_patch for new files, omp find). The original model does both.
  • Second </think>. 89 of the 1,774 outputs (5%) still contain a second </think> inside the answer, against 2 for the original. Most are on answer-after-tool-result, easy and GSM8K items. On those items v3 is correct as often as the original. With a reasoning parser that splits at the first </think>, the stray tag ends up in the visible content. A refit that targets these states is in progress.
  • Answer after a tool result. A few of these answers now run long (4% hit the cap, against 0%).

Teacher-forced probes

These were run for v3 (v4 and v5 change only individual neurons that are active in tool-call and tool-planning contexts). They were run on CPU, with v3 in its evaluated int4 form, on the original model's own held-out reasoning traces and on reference solutions.

MetricOriginalv1v3
log P(</think>) where the model actually stops (GSM8K traces)−0.136−0.009−0.002
P(</think>) at sentence ends in the last 40% of reasoning (GSM8K)0.0070.0470.118
Max P(second </think>) inside answers000.0001
NLL of GSM8K reference solutions1.6751.7001.718 (+2.6%)
NLL of HumanEval canonical solutions0.3820.3920.406 (+6.3%)

Schema-preference probes cover 190 sequences: Claude Code, OpenCode, Codex, pi and computer-use style schemas, plus 48 invented custom tools. The margins are logit(schema name) − logit(prior name) on held-out decision points.

ProbeOriginalv1v3
Decisions where the schema name wins (all targets)34.7%76.4%73.6%
Invented custom tools: schema name wins—100%100% (margin +15.3)
Claude Code Read → file_path vs path−10.8−2.2−2.2
Claude Code Write−3.9+1.4+0.3
OpenCode read → filePath−2.1+3.5+3.5
OpenCode write−1.1+5.1+5.8
Claude Code Bash vs bash+0.7+3.3+3.1
Control: pi read → path (schema agrees with prior)+19.8+20.3+19.8
Control: Codex shell vs bash+12.9+12.9+12.4

Claude Code Read (file_path) remains the hardest case: the margin is still negative on most decision points.

Version history (same 1,774-item evaluation)

VersionEditsAllGSM8KHumanEvalTokens
Original—0.7220.6270.541595.8k
v2heads + dense-only closure β = 1 + lm_head row0.7410.6880.567539.6k
v3heads + full closure β = 1 (incl. routed experts) + orthogonal lm_head row0.7800.7970.619483.1k
v4v3 + 15 routed-expert neurons off (tool arguments)0.7960.7750.649482.7k
v5v4 + 2 shared + 1 routed neuron off (explore-first)0.8010.7850.627491.8k

v1 (heads + closure β = 0.5) was published first. Its 1,774-item run was later found to have the routed-expert part missing, because of an evaluation-harness bug that has since been fixed. Without that part it scored 0.721.

Method and compute

  1. Probing (practice split). Directions and heads come from teacher-forced reads on the model's own traces; v4's and v5's neurons come from a Jacobian lens (fp32 recompute of each decision token, gradients to every head and neuron) over 2,918 practice decisions plus 288 practice tool-behaviour decisions.
  2. Dose sweeps. Doses were swept with random-head and random-direction controls.
  3. Selection. Versions were selected by generation on a separate 887-item held-out set. That set covers GSM8K and HumanEval, harness tool calls with multi-turn error recovery, invented custom tool schemas, generic tools, no-tool and easy prompts.

Generation ran on Kaggle T4s and the probes ran on a 4-core CPU box with an int4 working copy. The final edits were applied to the original bf16 tensors. The uploaded shards were verified byte-for-byte against the spec. The editing, evaluation and verification code and the pass ledger are kept in a separate private repository; this repository holds only the model, the edit spec and directions (edit/), and the result tables (edit/results/).

License and credit

Apache-2.0, as for the original. All credit for the model goes to RecursiveSI. This repository only changes weight values as described above. See LICENSE and sglang/NOTICE. Serve it exactly like the original; see sglang/README.md.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей