/ Модель

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

Контекст
262 144 токена
Параметры
634 млн
Лицензия
Apache 2.0
Архитектура
ryno · dense
Базовая модель
Qwen3.5-0.8B
Библиотека
transformers
Опубликована
25 ноя 2026

Ryno-0.8B

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

Ryno-0.8B — дообученная на базе Qwen3.5 компактная языковая модель для генерации текста и задач рассуждения с поддержкой обработки длинного контекста через специальный runtime.

161скачиваний за 30 дней0лайковвеса обновлены26 ноя 2026

Бенчмарки

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

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

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

  • furylogic/novel-mcq

    accuracy · выше — лучше

    Результат

    78,8

    Hugging Face Eval Results

    Отчёт автораревизия не подтверждена

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

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

Ryno-0.8B — компактная языковая модель FuryLogic Labs на базе Qwen3.5-0.8B, дообученная для генерации текста и диалогового решения задач. В карточке указано 634,4 млн параметров, а в README — 805,6 млн; модель использует собственную плотную архитектуру Ryno и загружает код через Transformers с параметром trust_remote_code=True.

Модель предназначена прежде всего для задач рассуждения с выбором ответа и обработки длинного контекста. DBAttention хранит ключи и значения внимания во внешней базе данных, что позволяет заявлять контекст до 2 млн токенов при явном использовании специального runtime; нативный контекст составляет 262 144 токена. Модель принимает и выдаёт текст. Поддержка изображений и видео не заявлена: соответствующие тензоры в файле не используются.

Среди особенностей — архитектурные дополнения DBAttention, SublayerNets и MuonClip. В выпущенных весах мосты SublayerNets неактивны, а стандартный model.generate() не включает DBAttention автоматически. README отмечает слабый свободный диалог, регрессию на банковской классификации banking77 и ограниченную оценку точности DBAttention. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Ryno banner

Ryno‑0.8B — an LLM whose attention keeps its memory in a database

Ryno is a 0.8 B‑parameter language model built on a Qwen3.5 trunk and post‑trained with three additions we designed: DBAttention (K/V state in a database, fetched inside attention), SublayerNets (nested residual sublayers) and MuonClip (Muon + QK‑Clip; no Adam on any matrix parameter).

parameters805.6 M · one model.safetensors, 1.37 GB fp16, 1013 tensors
trunkQwen3.5‑0.8B: 25 blocks (18 gated‑DeltaNet + 6 attention), d=1024, ffn=3584, 8 q / 2 kv heads, head_dim 256, vocab 248 320, tied head
context262 144 native · 2 000 000 with DBAttention
KV cachenone in the model — rows live in a store you point at
peak VRAM1.94 GB fp16

The two papers behind this model

Both are published as citable preprints on Zenodo. Two separate DOIs, one per paper.

#PaperDOIPDF in this repo
1DBAttention — Database-Backed Attention with External Key-Value Memory for Persistent, Near-Unbounded Context Inference10.5281/zenodo.24529787papers/DBAttention-preprint-v1.0.pdf
2SublayerNets — What Depth Buys When Parameters Are Held Fixed10.5281/zenodo.24530110papers/SublayerNets-preprint-v1.0.pdf

BibTeX for both is in the Citation section below, and in papers/DBATTENTION.bib and papers/SUBLYERNETS.bib.

Note :

"Training used the MuonClip optimizer (Kimi AI / Moonshot AI), which combines Muon with QK-Clip for attention-logit stability."

What is DBAttention, why, and how

What. Normally a transformer keeps every past key and value in GPU memory, and that buffer grows with the conversation until it hits the card's limit. In Ryno the attention block writes its K/V rows to a database and reads back the rows it needs, inside the attention computation. The model holds no KV cache.

Why. Context stops being a VRAM problem and becomes a storage‑and‑bandwidth problem. Also, a stored KV row is reusable across requests and across sessions.

How — one attention block, end to end:

DBAttention flow

Two policies, chosen when you enable it:

policyfetchuse it when
window=Nonethe whole stored history of that layerexact attention, storage‑bandwidth bound
window=Nonly the last N tokensstreaming chat, unbounded conversation

Measured (RynoSor‑0.8B weights, one 8 GB device, int8 rows, chunk 256):

tokensVRAM, model‑resident KVVRAM, DBAttentionstoreargmax vs nativeprefill tok/s
5121.61 GB1.56 GB3.5 MBidentical1 313 → 3 012
4 0963.04 GB1.68 GB27.2 MBidentical3 251 → 3 057
4 096, window=1024—1.58 GB27.2 MBidentical3 471
8 192OOM1.61 GB54.1 MBno reference3 457

Two more measured facts that people usually get wrong:

  • one shared database for all layers does not save space — six per‑layer stores and one store with (session, layer, block) keys both take 168.5 MB for 40 000 rows. Sharing saves operations, not bytes.
  • only 6 of 25 blocks need rows at all; the 18 gated‑DeltaNet blocks carry a constant‑size recurrent state. 2 M tokens = 49.2 GB fp16 / ≈17.7 GB int8, not 204 GB.

What are SublayerNets, why, and how

What. Each block's update is computed by a small stack of sublayers rather than one linear map. Depth 2 means two nested residual refinements of the same update.

Why. More representational depth per parameter: 811 K extra parameters, measured 0.97 % loss shift from depth 1 → 2.

How — the bridge is tanh(bg) · (x·W_b)·W_u:

SublayerNets flow

A finding we publish because it bit us: with bg = 0 the bridge is dead by construction — ∂L/∂W_b = ∂L/∂W_u = 0 because the gradient is multiplied by tanh(0). Our earlier checkpoint measured CE(on) − CE(off) = 0.0000 nats exactly. bridge_init is now non‑zero; the released weights predate that fix, so the sublayer bridges here are inert rather than harmful.


Run it

pip install -r requirements.txt

# 1. the model, with DBAttention and a store you choose
python db_attention_demo.py --tokens 2048
python db_attention_demo.py --tokens 20000 --window 4096   # bounded working set

# 2. the benchmark behind the table below
python bench/run_benchmark.py --model . --max-new 96

Does transformers load it?

Yes — with trust_remote_code=True. Everything is declared in config.json (model_type: ryno, auto_map → configuration_ryno / modeling_ryno), so the standard entry points work:

import torch
from transformers import AutoConfig, AutoModel, AutoTokenizer

cfg   = AutoConfig.from_pretrained("FuryLogic-Labs/Ryno-0.8B", trust_remote_code=True)
model = AutoModel.from_pretrained("FuryLogic-Labs/Ryno-0.8B", trust_remote_code=True,
                                 config=cfg, torch_dtype=torch.float16)
tok   = AutoTokenizer.from_pretrained("FuryLogic-Labs/Ryno-0.8B", trust_remote_code=True)

What is not automatic: model.generate() from a stock transformers pipeline will not route K/V through the store — DBAttention is our runtime, not a HF Cache subclass. Enable it explicitly and use our decode loop:

model.enable_db_attention(path=".ryno-db/serve.db", max_tokens=2_000_000, window=None)
print(model.chat("What is the capital of France?", max_new_tokens=64))
print(model.db_stats())     # {'enabled': True, 'tokens': ..., 'cap': 2000000, 'db_mb': ...}
model.disable_db_attention()   # back to the native in-VRAM path

ingest(text) prefills long context straight into the store in 512‑token chunks, so you can read a document far larger than VRAM and then query it.

SublayerNets

The runtime can also load and apply SublayerNets — each block runs twice, the second time blended per token by a router gate, plus a bridge that re-injects the block input:

print(model.sublayer_stats())     # what the checkpoint carries
model.enable_sublayers()          # depth 2; pass depth=3 for deeper stacks
model.disable_sublayers()         # back to one pass per block

What the released checkpoint contains, stated precisely: 24 bridge pairs with gate tanh(bg) = 0 and router rw = 0, rb = −3, i.e. a constant gate of 0.047 with no bridge contribution. Enabling them therefore perturbs logits by max |Δ| = 0.086 without changing the top token — they were never trained, so they are shipped for a future retrain, not as a working mechanism. A checkpoint trained with bridge_init > 0 moves the output for real (live: True in sublayer_stats()).

Text results

80 novel multiple‑choice items (12 each math / physics / chemistry / science / code, 20 banking77), scored by generation with a 96‑token budget:

modelmathphysicschemistrysciencecodebanking77total
frozen trunk, no adapters00171788026.2 %
Ryno‑0.8B929292671005078.8 %

Health vs the frozen trunk: CE 2.370 nats (PPL 10.69), KL 0.114 nats, entropy ratio 0.96, top‑1 agreement 82.9 %. An earlier run collapsed (KL 23.17, agreement 1.3 %) and answered "D" to everything — the anchor exists because of that.

Limitations

  • Vision is ongoing development. Image/video understanding is not claimed here; the file contains vision tensors for future work and they are not used.
  • SublayerNet bridges are inert in these weights (see above) — a training‑time fix, not active in this release.
  • banking77 regressed from the trunk's 80 % to 50 %; our supervised data is maths‑shaped.
  • Chat is weak. Training was multiple‑choice reasoning, so small talk drifts and identity questions should be answered from a system prompt, not the weights.
  • DBAttention limits: parity is measured as greedy argmax and max |Δlogit| (≤ 0.20 with int8 rows), not full KL. Single‑token decode latency with the store in the loop is not yet measured.

Files

config.json · model.safetensors · configuration_ryno.py · modeling_ryno.py · tokenizer.json (+ config, special tokens) · generation_config.json · db_attention_demo.py · bench/ · ryno/ (runtime: kv_db.py, db.py, qwen35.py, …) · ARCH.md · banner.jpg · CITATION.cff · papers/ (both preprints as PDF)

Citation

@misc{mahir2026dbattention,
  title        = {DBAttention: Database-Backed Attention with External Key-Value
                  Memory for Persistent, Near-Unbounded Context Inference},
  author       = {Mahir, Irfan},
  year         = {2026},
  month        = nov,
  publisher    = {Zenodo},
  organization = {FuryLogic Labs, Dhaka, Bangladesh},
  doi          = {10.5281/zenodo.24529787},
  url          = {https://doi.org/10.5281/zenodo.24529787},
  note         = {Preprint v1.0}
}

@misc{mahir2026sublayernets,
  title        = {SublayerNets: What Depth Buys When Parameters Are Held Fixed},
  author       = {Mahir, Irfan},
  year         = {2026},
  month        = nov,
  publisher    = {Zenodo},
  organization = {FuryLogic Labs, Dhaka, Bangladesh},
  doi          = {10.5281/zenodo.24530110},
  url          = {https://doi.org/10.5281/zenodo.24530110},
  note         = {Preprint v1.0}
}

@misc{ryno2026,
  title  = {Ryno-0.8B: an LLM with database-backed attention},
  author = {FuryLogic Labs},
  year   = {2026},
  note   = {Dhaka, Bangladesh. furylogic.com}
}

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

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

0 моделей