/ Модель

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

Контекст
262 144 токена
Размер весов
118 ГБ
Лицензия
Своя лицензия
Архитектура
qwen4_exp · dense
Базовая модель
Qwen3.8-Flash-Next-oQ4e-WLSRefit-MTP
Библиотека
mlx
Опубликована
9 ноя 2026

Qwen3.8-Flash-Next-norev-oQ4e-MTP

Генерация текстаТекст → текст11 профессий
1 994скачиваний за 30 дней3лайкавеса обновлены28 ноя 2026

Описание модели

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

4-битная производная Qwen3.8-Flash-Next для генерации текста и кода с изменением весов, призванным сократить самоповторы и чрезмерно длинные ответы.

Qwen3.8-Flash-Next norev (oQ4e, MTP) — производная версия Qwen3.8-Flash-Next, подготовленная автором blazkepa. Автор удалил с половинной силой шестимерное подпространство самопересмотра непосредственно из весов, без дополнительного обучения. Модель предназначена прежде всего для генерации текста и кода; заявленная цель изменения — сократить повторные пересмотры ответа и обрывы из-за достижения лимита токенов, сохранив качество в пределах шума измерений.

В карточке указана архитектура Qwen3.8-Flash-Next семейства qwen4_exp: 48 слоёв, MoE с 512 экспертами на слой, 10 активными экспертами и одним общим экспертом, а также vision tower. Размер скрытого состояния — 2560, словарь — 248 320 токенов, нативный контекст — 262 144 токена. Репозиторий содержит 4-битные safetensors; для запуска автор описывает oMLX на Apple Silicon и рекомендует 128 ГБ памяти. Поддержка изображений не проверялась. Указана лицензия other, поэтому конкретные условия использования следует сверить с лицензией репозитория.

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

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

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

Ограничения

Проверки ограничены одной 4-битной версией, одной машиной и выборкой из 100 задач; автор отмечает, что различия точности могут быть шумом. Работа с изображениями не проверялась, а перенос изменения весов на другие квантизации не оценивался.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3.8-Flash-Next norev (oQ4e, MTP)

The same Flash-Next you already run on your Mac, minus the habit of second-guessing itself. The base model solves a task, then writes "Wait, let me reconsider…" and starts over, sometimes several times, until it runs out of tokens. It does it in both modes: in my runs 38 of 100 non-thinking answers and 33 of 100 thinking answers end at the token limit (I did not keep the thinking text, so there the loop is inferred from the counts: the edit cuts these 33 to 28 and the median answer from 18 k to 10.5 k tokens). I have used this model for coding every day for a few months now and that was the one thing that bothered me, so I removed a 6-dimensional "self-revision" subspace from the residual stream directly in the weights, at half strength, no training. On my coding benchmark the model hits the token limit 40 % less often, the typical answer is a quarter shorter and the accuracy does not go down (greedy 53 vs 51, sampled 52.0 vs 50.7, with thinking on 69 vs 63 in one run each). Everything else I could measure (HumanEval, GSM8K, MMLU, MTP draft acceptance, decode speed) stays within noise.

Code, measured directions, all per-task results and the things that did not work: github.com/blazkepa/flash-next-norev.

At a glance

ArchitectureQwen3.8-Flash-Next (qwen4_exp): 48 layers (36 Gated DeltaNet + 12 Qwen Sparse Attention, full_attention in the config), 4 residual branches (hyper-connections), PLE n-gram embeddings, vision tower
Experts512 per layer, 10 active per token + 1 shared expert, nothing pruned
Hidden / vocab / context2 560 / 248 320 / 262 144 native
What changed vs the base149 weight matrices edited (W' = W − 0.5·U(UᵀW), 6 directions); expert down_proj re-quantised 4 → 6 bit; all other tensors are copied from GBP-DE's build as they are
Speculative decodingMTP head included and edited like the backbone (its routed experts are 4-bit with down_proj now 6-bit, the rest 8-bit); works in oMLX out of the box
Visiontower untouched; not tested
QuantisationoQ4e affine: routed experts 4-bit g64 (gate/up) and 6-bit g64 (down_proj, this is the +10 GB); attention, Gated DeltaNet, embeddings, LM head and hyper-connection weights 8-bit g64; shared expert 8-bit g128; n-gram table 4-bit g32
On disk / in memory118 GB (21 shards, 51 B-parameter n-gram table included) / about 86 GB in oMLX on a 128 GB Mac (oMLX shows it as 80 GiB; the n-gram table is memory-mapped from SSD, oMLX does it automatically)
Tested withoMLX 0.7.4.dev1 (macOS app), mlx_vlm 0.7.11, MacBook Pro M5 Max 128 GB, macOS 26

Run it

oMLX on Apple Silicon, 128 GB recommended:

brew tap jundot/omlx https://github.com/jundot/omlx
brew install jundot/omlx/omlx      # or the oMLX macOS app from the releases page, that is what I use

hf download blazkepa/Qwen3.8-Flash-Next-norev-oQ4e-MTP \
  --local-dir ~/.omlx/models/blazkepa/Qwen3.8-Flash-Next-norev-oQ4e-MTP

omlx restart      # new model directories are picked up at start; the folder name is the model id

The server is OpenAI-compatible at http://localhost:8000/v1. Sampling: use the settings from the original Qwen model card (non-thinking: temperature 0.7 / top_p 0.8 / top_k 20 / presence_penalty 1.5; thinking: 1.0 / 0.95 / 20). My thinking runs used temperature 0.6 instead of 1.0, see Results. Single stream with MTP on, once warm, it decodes at 96–107 tok/s on an M5 Max.

On a 128 GB machine the model does not fit fully resident (it is 10 GB bigger than the base), so oMLX logs PLE forced to SSD ... roughly 2.5x slower than a resident load and keeps the n-gram table on disk. This is expected and all numbers for this model are measured in this mode (the base ran fully resident). Warm, I did not see the slowdown from the warning; the first pass after loading was slower (74–82 tok/s), probably because the table was still being paged in.

In-process with mlx_vlm (0.7.11 or newer) use the external-PLE view (prepare_external_ple_model from mlx_vlm.models.qwen4_exp.ple_storage), which keeps the n-gram table on disk and brings the model down to ~86 GB resident. Details in the GitHub README.

Results

All numbers are mine, measured on one machine through oMLX, against the exact base this model was built from (GBP-DE/Qwen3.8-Flash-Next-oQ4e-WLSRefit-MTP, revision 8a284d64). They are not comparable with the Qwen model card: this is a 100-task subset of LiveCodeBench release_v6 whose tasks predate the model (so possibly contaminated), mostly non-thinking, 4-bit. Only the base-vs-edited difference is the point.

LiveCodeBench, fixed 100-task subset (23 easy / 31 medium / 46 hard, contests 2025-02-15 … 04-06), non-thinking, greedy, 8 192 tokens:

pass@1hardhit token limitmedian tokenstotal tokens
base518 / 46383 863445 k
this model5312 / 46232 935373 k

Paired on tasks: +6 / −4 (sign test p = 0.75), and 5 of the 6 gains are tasks the base truncated. With sampling (temperature 0.7 / top_p 0.8 / top_k 20, 3 samples per model): base 50.7 on average (46–54), this model 52.0 (51–54), sign test p = 1.0. With Qwen's recommended presence_penalty 1.5 on top of that (2 samples per model): base 49 and 52, this model 60 and 51; answers cut at the limit 69 vs 43 of 200, median 5 196 vs 2 940 tokens, 21 % fewer tokens in total. This model's first sample (60) is the outlier: against the two base samples it is +16 / −5 and +14 / −6 on tasks, its second sample (51) is +7 / −5 and +7 / −8; pooled over tasks +17 / −8, p = 0.11, so I read the 60 as a lucky draw. One caveat: oMLX (through mlx-lm) applies the penalty only to tokens seen in the last 20 positions and the window cannot be changed per request, while Qwen's recommendation assumes the OpenAI/vLLM definition that counts every generated token. This 20-token penalty does not cure the base's loops (35 % of its answers still cut, vs 37 % without it), which is expected since a restart a few hundred tokens later is outside its window; a full-history penalty I did not test. It made the answers of both models somewhat longer and did not change the base-vs-edit comparison. So treat the accuracy as "same within noise" and the token columns as the real effect:

Answer length per task, base vs r6s05

Thinking mode, same 100 tasks, temperature 0.6 / top_p 0.95 / top_k 20 (Qwen recommends temperature 1.0, I used 0.6), 32 768 tokens, one run per model:

pass@1easy / medium / hardhit token limitmedian tokenstotal tokens
base6323 / 25 / 153318 0271.71 M
this model6923 / 28 / 182810 5331.47 M

Paired on tasks: +7 / −1 (sign test p = 0.07), and 6 of the 7 gains are tasks where the base ran into the limit. It is one sampled run per model, so the same ±4 noise applies. Thinking helps both models a lot (+12 and +16 over non-thinking), and the loop is still the main way to fail: 33 of the 37 base failures and 28 of 31 here are answers cut at 32 768 tokens, not wrong answers.

What actually changed is how often the model argues with itself. On 100 open-r1 problems that were not used for measuring the direction (the same set I used to pick the variant; in-process, greedy, 3 500 tokens), counting "Wait", "But wait", "Actually", "Hmm", "Alternatively" and "Let me reconsider / re-check / re-think" per answer:

basethis model
revision phrases per answer4.61.3
answers with at least one revision65 / 10039 / 100
answers with three or more48 / 10016 / 100
answers cut at the token limit2815
passed6866

Not zero, on purpose. At full strength the revisions almost disappear (4.5 → 0.2 per answer) and the accuracy goes down with them (LiveCodeBench 43 vs 51); my reading is that some of the "Wait"s were real self-correction, not only loops. Half strength was the best of the variants I tried (rank 1, rank 3, rank 6 at scale 1.0 and 0.5), with the differences between them inside the noise.

Does it break anything else? Same machine, greedy, non-thinking:

basethis model
HumanEval (164)156157
GSM8K (300-problem subset of test)292293
MMLU (570 questions, 10 per subject, zero-shot)500500
MTP draft acceptance, single stream89.1 %90.6 %
MTP tokens per backbone pass3.33.1
decode, single stream, MTP on, warm91–100 tok/s96–107 tok/s

The speed rows are 3 prompts each, second pass. Refusals: a handful of prompts checked by hand, no difference noticed; not measured systematically.

What was done

  1. Ran the base model over 160 earlier Flash-Next coding answers (non-thinking, generated by the oQ5e build of the same model) and recorded the residual stream at revision phrases ("Wait", "Actually", …; the first token of the phrase and one neighbouring token) versus the same number of sentence starts without a revision, 3 020 positions each. Difference of means gives one direction per layer and per residual stream.
  2. Flash-Next has four hyper-connection residual streams and the directions must be measured in the raw streams, before the mixer; with a direction measured after the mixer the edit was mechanically correct and changed nothing in behaviour. PCA over the per-stream directions keeps 6 components.
  3. For every matrix that writes into the residual stream (149 tensors: attention o_proj, GatedDeltaNet out_proj, expert and shared-expert down_proj, PLE value projection, embeddings, the MTP block included) applied W' = W − 0.5 · U(UᵀW) in the dequantised domain, then re-quantised with fresh scales.
  4. Expert down_proj are stored in 6 bit instead of 4, because with 4-bit rounding about 30 % of the removed component came back.

This is abliteration (Arditi et al., 2024) pointed at a different behaviour: they remove a refusal direction, here it is self-revision. The list of tensors that write into the stream follows orcarouter's abliteration of this architecture.

The whole edit takes about 40 seconds on this machine, rewriting the shards included. The three traps above cost me more than the method itself; they are written up in the GitHub README together with the variants that lost (full scale, rank 1 and 3).

Provenance and files

Qwen/Qwen3.8-Flash-Next (Qwen Team) → GBP-DE/Qwen3.8-Flash-Next-oQ4e-WLSRefit-MTP (importance-aware oQ4e quantisation with weighted-least-squares refit and MTP head, quantised with oMLX 0.7.3, revision 8a284d64) → this repository (weight edit, no training).

16 of the 21 shards are rewritten, the 5 n-gram table shards are byte-identical to the base at revision 8a284d64. GBP-DE has updated their repository in place since then, so the current main there is a different build than the one I measured against. ablation.json is the per-tensor report of the edit (mean relative change 0.025). checksums.sha256 covers every weight file, config.json and the index. Internally this variant is called r6s05 (rank 6, scale 0.5); you will see that name in the GitHub repo and in the result files.

Limitations

  • One quantisation, one machine, one 100-task subset. On 100 tasks ±5 is noise; read the token columns, not only pass@1.
  • No wall-clock numbers on purpose. On my 128 GB machine oMLX keeps the base fully in RAM and then runs the four benchmark streams mostly one after another, while this model has the n-gram table on SSD and gets batched. My timings (about 40 % shorter runs) mix the server mode with the model and I cannot separate the two, so I dropped them. What is comparable is the token count, 14–22 % fewer in total depending on the mode; in a controlled single-stream test the warm decode speed was the same.
  • With thinking I used temperature 0.6 where Qwen recommends 1.0. Non-thinking was measured both without and with Qwen's presence_penalty 1.5 as oMLX implements it, last 20 tokens only (2 samples each with it; it did not change the base-vs-edit comparison). A full-history penalty as in vLLM is untested.
  • The directions were measured on this exact checkpoint. They live in the 2 560-dim residual space, so they may transfer to other quantisations of the same weights, but I did not check this yet.
  • Vision untested. Refusals only spot-checked by hand.

Replication reports and failures are welcome as issues on GitHub.

References

  • Arditi et al. (2024), Refusal in Language Models Is Mediated by a Single Direction, arXiv:2406.11717. The method: a difference-of-means direction, removed from every matrix that writes into the residual stream. They remove refusal; here it is self-revision.
  • Jain et al. (2024), LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code, arXiv:2403.07974. The benchmark; the 100-task subset is described above.
  • Zhu et al. (2024), Hyper-Connections, arXiv:2409.19606. The four residual streams of Flash-Next, which is why the directions are measured per stream.

License and thanks

Qwen Community License 1.0, the license file of the original model is included unchanged. The editing code is MIT, on GitHub.

Thanks to the Qwen team for the model, to GBP-DE for the quantisation this is built on, and to the oMLX author for a runtime that made all of this possible on a laptop.

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

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

GPU в ailist

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

Нельзя запустить

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Класс архитектуры
Qwen4ExpForConditionalGeneration
Ревизия весов
8910aad

0 моделей