/ Модель

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

Контекст
202 752 токена
Параметры
4,1 млрд
Размер весов
60,6 ГБ
Лицензия
Apache 2.0
Архитектура
rwkv07i_moe · dense
Библиотека
transformers
Опубликована
11 мар 2026

RWKV-GLM-4.7-Flash-exp

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

Экспериментальная дистиллированная модель на базе GLM-4.7-Flash для генерации текста и диалогов с архитектурой RWKV-7 и встроенным путём внимания TICA.

203скачиваний за 30 дней6лайковвеса обновлены18 мар 2026

Бенчмарки

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

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

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

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

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

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

RWKV-GLM-4.7-Flash-exp — экспериментальная альфа-модель OpenMOSE, полученная дистилляцией GLM-4.7-Flash с помощью методики RADLADS. В ней 47 слоёв RWKV-7: в 20 слоях к блокам добавлен компактный путь причинного внимания TICA, остальные используют линейное внимание RWKV-7. Число параметров — 4,1 млрд, заявленная длина контекста — 202 752 токена; модель распространяется в формате safetensors и рассчитана на генерацию текста и диалог.

Модель предназначена для экспериментов с линейным вниманием и генерацией текста, сохраняя часть возможностей исходной GLM-4.7-Flash. В карточке указаны английский, китайский и японский языки. Лицензия — Apache-2.0.

Это альфа-релиз, не готовый к промышленному применению: качество дистилляции может различаться между задачами, а возможности исходной модели могут быть ухудшены. Работа с контекстом длиннее 32 000 токенов не прошла всестороннюю проверку; для запуска требуется trust_remote_code=True.

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

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

Ограничения

Это альфа-релиз, не готовый к промышленному применению; качество дистилляции и сохранность возможностей исходной модели различаются по задачам. Контекст длиннее 32 000 токенов не прошёл всестороннюю проверку, а для запуска требуется trust_remote_code=True.

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

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

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

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

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

Открыть на Hugging Face

OpenMOSE/RWKV-GLM-4.7-Flash-exp

PrimeRWKV: Not a Hybrid — A Fusion. it's P20-E27 cores

Overview

RWKV-GLM-4.7-Flash-exp is an alpha-stage experimental model that converts GLM-4.7-Flash into a fully linear-attention-dominant architecture using the RADLADS distillation methodology. Every single layer runs RWKV-7 — there are no standalone self-attention layers.

This model introduces PrimeRWKV, a new architectural paradigm consisting of two layer types:

Layer TypeCountDescription
PrimeRWKV20 layersRWKV-7 + TICA (Tiny Infused Causal Attention)
EfficientRWKV27 layersPure RWKV-7 linear attention

All 47 layers are RWKV-7 layers. No exceptions.

TICA: Tiny Infused Causal Attention

Unlike conventional hybrid architectures that alternate between linear and full attention layers (e.g., Jamba, Griffin, Zamba), TICA (Tiny Infused Causal Attention) takes a fundamentally different approach: attention is infused directly within an RWKV-7 block as a lightweight gated auxiliary path, rather than occupying its own layer.

Key properties:

  • NoPE (No Positional Encoding): The RWKV-7 decay mechanism handles positional information; TICA relies solely on the causal mask.
  • Few-Head GQA: 4 query heads / 2 KV heads with head dimension 128 — extremely compact.
  • QK-Norm: RMSNorm on Q and K for training stability without positional encodings.
  • LoRA-Gated Output: A learned sigmoid gate controls how much TICA contributes, allowing the model to modulate attention strength per-token.
  • Zero-Initialized Output Projection: TICA starts with zero contribution and gradually learns its role during distillation, preserving the RWKV backbone's learned representations.
  • SDPA-Compatible: Directly uses F.scaled_dot_product_attention, enabling FlashAttention dispatch with no custom kernels.
  • Independent Path Addition (Pattern B): TICA output is added after the RWKV output projection, keeping gradient flows independent.

The result: TICA supplements RWKV-7's linear attention where full-context retrieval matters, without replacing it. Pure RWKV-7 handles the bulk of computation; TICA provides surgical precision where needed.

TICA Layer Placement

TICA is applied to 20 of 47 layers, concentrated in the model's mid-to-late layers where precise token recall is most critical:

Layers with TICA: [0,7,12,16,21,25,29,32,35,36,37,38,39,40,41,42,43,44,45,46]

Architecture Details

Total Parameters:     30B (MoE)
Hidden Size:          2048
Num Layers:           47
Attention Heads:      40
KV Heads:             40
Head Dim:             128 (hidden_size / num_heads)
Intermediate Size:    10240 (dense) / 1536 (MoE per expert)
MoE Experts:          64 routed + 1 shared, top-4 selection
Vocab Size:           154,880
Max Context:          202,752 tokens
Dtype:                bfloat16

TICA Configuration

TICA Heads:           4 query / 2 KV (GQA)
TICA Head Dim:        128
TICA Total Q Dim:     512
TICA Total KV Dim:    256
Params per TICA:      ~3.6M
Total TICA Overhead:  ~80M (20 layers × 3.6M)

RWKV-7 LoRA Ranks

Decay (w):            512
ICLR / Alpha (a):     256
Gate (g):             384

MoE Configuration

Architecture:         RWKV07IMoEForCausalLM
Routing Method:       noaux_tc
Routed Experts:       64
Shared Experts:       1
Experts per Token:    4
Routing Scale:        1.8
Dense Layers:         1 (first layer)
Next-Token Predict:   1 layer

How It Differs from Conventional Hybrids

Conventional HybridPrimeRWKV (This Model)
Layer compositionAlternating Attention / Linear layersAll layers are RWKV-7
Attention roleFull independent layerTiny auxiliary path inside RWKV block
KV cache growthFull-dimension KV for attention layers256-dim KV only in 20/47 layers
Identity at initAttention layers active from startTICA zero-init, learns contribution
Design philosophyTwo architectures coexistingOne architecture with infused capability

This is not hybridization. This is fusion.

Conventional hybrids treat attention and linear layers as separate entities that take turns. PrimeRWKV with TICA dissolves the boundary — attention capability is infused into the linear attention backbone itself, creating something that is neither purely linear nor a traditional hybrid, but a unified architecture where RWKV-7 and causal attention operate as a single integrated mechanism.

Base Model & Distillation

  • Base Model: GLM-4.7-Flash
  • Distillation Method: Based on RADLADS (by SmerkyG), a multi-stage distillation pipeline that converts transformer attention layers into RWKV-7 linear attention while preserving model quality.
  • Stage 1: Hidden state MSE alignment (layer-by-layer representation matching)
  • Stage 2: KL divergence logit distillation (output distribution matching)

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained(
    "OpenMOSE/RWKV-GLM-4.7-Flash-exp",
    trust_remote_code=True,
    torch_dtype="bfloat16",
    device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained(
    "OpenMOSE/RWKV-GLM-4.7-Flash-exp",
    trust_remote_code=True,
)

messages = [{"role": "user", "content": "Explain the concept of linear attention."}]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True)
inputs = inputs.to(model.device)

outputs = model.generate(inputs, max_new_tokens=512, temperature=0.7, top_p=0.9)
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))

Limitations

  • Alpha release — not production-ready. Expect rough edges.
  • Distillation quality varies across tasks; some capabilities of the original GLM-4.7-Flash may be degraded.
  • Long-context performance (>32K) has not been extensively validated.
  • Custom code (trust_remote_code=True) is required.

Acknowledgments

This work would not have been possible without the generous support and contributions of the following:

featherless.ai — for providing the computing resources that made this research possible. Their support has been invaluable, and we are deeply grateful.

SmerkyG — author of the RADLADS distillation methodology and a key technical advisor throughout this project. His guidance on distillation strategy, training stability, and architectural decisions has been instrumental.

The RWKV Community — for ongoing discussions, feedback, and the shared vision of making efficient architectures practical.

License

This model is released under the Apache 2.0 License, following the base model's licensing terms.

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

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

GPU в ailist

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

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

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

Класс архитектуры
RWKV07IMoEForCausalLM
Ревизия весов
68d21e0

0 моделей