/ Модель

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

Контекст
262 144 токена
Параметры
7,2 млрд
Размер весов
18,3 ГБ
Лицензия
Apache 2.0
Архитектура
allgdn · dense
Базовая модель
Cyber-9B-Qwen
Библиотека
transformers
Опубликована
12 окт 2026

Cyber-9B-Qwen-AllGDN-Engram

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

Экспериментальная 7,2-миллиардная разговорная модель с рекуррентными Gated DeltaNet-слоями и памятью n-грамм для генерации текста без KV-кэша.

264скачиваний за 30 дней2лайкавеса обновлены13 окт 2026

Бенчмарки

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

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

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

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

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

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

Экспериментальная разговорная языковая модель summerAIO/Cyber-9B-Qwen-AllGDN-Engram, созданная на основе дообученной Cyber-9B-Qwen и распространяемая под лицензией Apache-2.0. Модель содержит 7,2 млрд параметров и построена на архитектуре AllGDN: все 32 слоя используют рекуррентные Gated DeltaNet вместо полных Attention-слоёв. Модули Engram с хешированным поиском 2- и 3-грамм дополняют языковую модель и помогают восстанавливать точные фрагменты. Для генерации не требуется KV-кэш; заявлен контекст до 262 144 токенов.

Модель предназначена для диалогов и генерации текста. В описанных тестах она набрала в среднем 62,21% на семи задачах — ниже исходной Qwen3.5-9B; результаты получены на небольших выборках и не показывают качество на длинном контексте. Разработчики отмечают слабее точное обращение к далёкому контексту, счёт и перечисления, а также склонность к повторам. Дообучение было небольшим экспериментом: 1 000 шагов с длиной последовательности 256. Исходные веса происходят из Q4_0 GGUF и были деквантизированы в BF16, поэтому эффективная точность ограничена исходной квантизацией. Для загрузки требуется trust_remote_code=True; модель наследует неконтролируемое поведение базовой донастройки.

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

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

Ограничения

В тестах качество ниже исходной Qwen3.5-9B; точное обращение к далёкому контексту, счёт и перечисления слабее, возможны повторы. Оценка длинного контекста, скорости и потребления памяти не проводилась, а эффективная точность ограничена исходными Q4_0-весами.

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

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

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

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

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

Открыть на Hugging Face

⚡ Cyber-9B-Qwen · ALL-GDN ⚡

Zero Attention. Constant Memory. N-gram Recall.

arch attn mem engram params bench

An experimental model that removes the remaining Attention layers from the Qwen3.5 hybrid architecture,converting all 32 layers into linear recurrent layers.


🧬 What is this?

summerMC/Cyber-9B-Qwen is a Qwen3.5-9B-based hybrid model consisting of 24 Gated DeltaNet (GDN) layers and 8 full Attention layers.

This experimental variant replaces all 8 full Attention layers with Gated DeltaNet layers, then distills the resulting attention-free model using the original model as its teacher.

To compensate for the loss of exact recall, it also integrates a DeepSeek Engram-inspired hashed n-gram lookup table—essentially an internal cheat sheet for the model.

OriginalALL-GDN
Gated DeltaNet layers2432
Full Attention layers80
KV cacheGrows with context lengthNone (fixed-size recurrent state)
Inference memoryO(L)O(1)
N-gram memory–Engram × 2 layers

📊 Benchmarks

Measured with lm-eval 0.4.13, 0-shot, BF16, 200 questions per task. Three models were evaluated under identical settings (the task hash, few-shot count, seed and configuration of the three result files all match).

LabelModel
QwenQwen/Qwen3.5-9B (official)
DefiantDavidAU/Qwen3.5-9B-The-Defiant-Fable-...-MTP
CybersummerMC/Cyber-9B-Qwen-AllGDN-Engram (this model)

Accuracy (%)

TaskQwenDefiantCyber (this model)Cyber − Qwen
ARC-Challenge52.556.049.0-3.5
ARC-Easy79.081.076.0-3.0
HellaSwag57.057.053.0-4.0
PIQA80.579.578.5-2.0
WinoGrande73.070.067.0-6.0
BoolQ89.588.581.5-8.0
OpenBookQA32.533.030.5-2.0
Simple average (7 tasks)66.2966.4362.21-4.07
  • This model reaches 62.21%, i.e. -4.07 points and 93.86% of the official Qwen3.5-9B average (66.29%), while using no full-Attention layers and no KV cache.
  • Reference — mixed-normalization average (5 tasks with acc_norm + 2 tasks with acc): Qwen 70.57%, Defiant 71.07%, Cyber 67.50%.
  • The gap is largest on BoolQ (-8.0) and WinoGrande (-6.0), and smallest on PIQA and OpenBookQA (-2.0).

How to read these numbers

  • Small sample. With 200 questions per task, the sampling noise of a single task score is several points (roughly ±7 points at a 95% interval near 50% accuracy). Per-task gaps of 2–4 points should not be treated as significant. All seven tasks are lower than Qwen, but a proper significance check needs paired, per-question results, which are not included here.
  • No single-factor attribution. The difference cannot be attributed to ALL-GDN or Engram individually; no ablation was run.
  • Not covered by this evaluation: inference speed, KV-cache / memory measurements, long-context performance, and the amount of additional training.
  • The simple average is an unweighted mean over the 7 tasks, not a standardized aggregate score.

🏗️ Architecture

flowchart LR
    T[tokens] --> E[Embedding]
    E --> L1[GDN ×1]
    L1 --> EG1{{Engram<br/>2/3-gram lookup}}
    EG1 --> L2[GDN ×14]
    L2 --> EG2{{Engram<br/>2/3-gram lookup}}
    EG2 --> L3[GDN ×17]
    L3 --> H[LM Head]
    T -. hash .-> EG1
    T -. hash .-> EG2
    classDef gdn fill:#0b1a2a,stroke:#00e5ff,color:#e0f7ff
    classDef eng fill:#2a1a00,stroke:#ffb300,color:#fff3d6
    class L1,L2,L3 gdn
    class EG1,EG2 eng

Engram Module

tokens ──► hash(t-1,t) / hash(t-2,t-1,t) × 4 heads ──► table lookup (2·4·65,536 slots × 128d)
                                                             │
hidden ──► RMSNorm ─┐                                   key / value proj
                    └──── context gate σ(⟨h, k⟩/√d) ◄──────┘
                                   │
                         gate · v ──► short depthwise conv ──► + residual
  • The output projection is zero-initialized, ensuring that adding the module initially leaves the original model's behavior unchanged.
  • During generation, the previous two tokens are buffered to maintain continuous n-gram lookup across decoding steps.

🔬 Distillation

Stage A — Layer-wise Distillation

The inputs and outputs of the original Attention layers are recorded, and the replacement GDN layers are trained to imitate them using normalized mean squared error (NMSE).

Each replacement GDN layer is initialized by copying the weights from the preceding GDN layer.

Stage B — End-to-End Distillation

The original Attention-based model serves as the teacher, using a top-64 KL divergence + 0.1 × cross-entropy objective.

Only the 8 newly introduced GDN layers and the Engram modules are trained. All other parameters remain frozen.

StageLoss ↓
🎓 Teacher (original model)1.811
💥 Immediately after Attention removal3.959
🔧 After Stage A1.953
⚡ After Stage B (ALL-GDN + Engram)1.826

The model recovers to within +0.015 loss of the original teacher.

Layer37111519232731
NMSE0.0520.4250.4060.4270.2750.3030.2480.166

🚀 Quickstart

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "summerMC/Cyber-9B-Qwen-AllGDN-Engram"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(
    repo, dtype=torch.bfloat16, device_map="cuda", trust_remote_code=True
)  # Automatically loads Engram as well

msgs = [{"role": "user", "content": "Briefly explain the four seasons in Japan."}]
x = tok.apply_chat_template(
    msgs,
    add_generation_prompt=True,
    return_tensors="pt",
    return_dict=True,
    enable_thinking=False
)["input_ids"].to(model.device)

y = model.generate(
    x,
    attention_mask=torch.ones_like(x),
    max_new_tokens=300,
    do_sample=True,
    temperature=0.7,
    top_p=0.9,
    repetition_penalty=1.1
)

print(tok.decode(y[0, x.shape[1]:], skip_special_tokens=True))

⚠️ trust_remote_code=True is required. The bundled modeling_allgdn.py implements generation with zero Attention layers and enables the integrated Engram modules.

💡 For faster inference:

pip install flash-linear-attention causal-conv1d

With trust_remote_code=True, the included modeling_allgdn.py is loaded automatically, allowing generate() to work with an entirely attention-free architecture.


⚠️ Limitations

  • The original weights come from a Q4_0 GGUF model. They were dequantized to bf16, so the effective precision remains limited by the original 4-bit quantization.
  • Accuracy is lower than the official Qwen3.5-9B. On the 7-task, 0-shot benchmark above, the average is 62.21% vs. 66.29% (-4.07 points); all seven tasks score lower, with the largest gaps on BoolQ and WinoGrande. The evaluation uses only 200 questions per task, so small per-task differences are within sampling noise.
  • Exact long-range referencing is weaker. Removing Attention entirely comes at a cost: counting, consistency in enumeration, and avoiding repetitive output are noticeably worse than in the original model.
  • Distillation was a small-scale experiment, consisting of 1,000 training steps with a sequence length of 256. Long-context performance, inference speed and memory use have not yet been evaluated.
  • The model inherits the characteristics of its base fine-tune, including its uncensored behavior. Use at your own risk.

📦 Files

FileDescription
model-*.safetensorsMain ALL-GDN model weights (bf16)
engram.safetensors / engram_config.jsonEngram lookup tables and configuration
modeling_allgdn.pyCustom model implementation (trust_remote_code)
model-engram.safetensorsEngram weights (automatically loaded with the main model)
engram.pyLegacy loader (retained for compatibility)
trained_gdn.safetensorsWeights of the 8 newly trained GDN layers only (delta weights)

🙏 Credits

Qwen team (Qwen3.5 / Gated DeltaNet) · DeepSeek (Engram) · DavidAU / summerMC (base fine-tune) · flash-linear-attention · llama.cpp / gguf

// attention is all you need — until it isn't.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
AllGDNForCausalLM
Ревизия весов
4aa32fa

0 моделей