/ Модель

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

Контекст
2 048 токенов
Параметры
39,4 млн
Лицензия
cc
Архитектура
moa_metric · dense
Библиотека
transformers
Опубликована
9 мар 2026

Discovery

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

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

1 287скачиваний за 30 дней0лайковвеса обновлены27 ноя 2026

Бенчмарки

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

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

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

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

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

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

DiscoverLM-70M-Base — авторская причинная языковая модель Roy C из Convergent Intelligence LLC, построенная на плотной архитектуре Mixture-of-Attentions (MoA). В ней вместо стандартного dot-product attention используется расстояние Махаланобиса с регуляризацией неравенства треугольника; также заявлены маршрутизация между несколькими путями внимания, BlackHoleRoPE и трёхветвевой HyperFFN. README указывает 70 млн параметров, тогда как метаданные репозитория сообщают 39,4 млн; размер модели в источниках расходится. Метаданные указывают контекст 2048 токенов и формат safetensors.

Модель предназначена для генерации текста, включая ответы на инструкции, математические задачи и многошаговые рассуждения. В README её характеризуют как proof of concept: обучение проведено на малом объёме данных без отложенной оценки, поэтому качество обобщения не подтверждено и вероятно переобучение. Модель обучалась на английских данных; поддержка других языков не заявлена. Лицензия в метаданных указана как CC, без уточнения варианта.

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

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

Ограничения

Обучение проведено всего на 262 тыс. токенов без отложенной оценки, поэтому обобщение не проверено и вероятно переобучение. README сообщает о расхождении размера с метаданными: 70 млн параметров в карточке и 39,4 млн в метаданных.

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

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

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

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

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

Открыть на Hugging Face

DiscoverLM-70M-Base

A 70M parameter causal language model built on the Mixture-of-Attentions (MoA) architecture — distance-based metric attention that respects the triangle inequality by construction, not approximation.

Every attention head operates in a proper metric space. The geometry is enforced, not hoped for.

What Makes This Different

Standard transformers compute attention as a dot product: Q·Kᵀ. This has no geometric meaning — it's a bilinear form, not a distance. Two tokens can be "close" by dot product while violating basic metric properties.

MoA replaces this with negative squared distance under a learned diagonal Mahalanobis metric, then enforces the triangle inequality through a regularizer over random triples sampled during training. The result: attention weights reflect actual geometric proximity in a space where d(a,c) ≤ d(a,b) + d(b,c) holds.

This isn't a constraint that fights the model. It's structure the model uses.

Architecture

Input → Token Embedding (48K vocab, custom tokenizer)
  │
  ▼
┌──────────────────────────────────────────────────┐
│              MoA Block × 4                       │
│                                                  │
│  ┌─────────┐ ┌──────────┐ ┌────────┐ ┌────────┐ │
│  │  Local   │ │  Global  │ │Channel │ │  MQA   │ │
│  │  Conv    │ │  Metric  │ │  Mix   │ │ Metric │ │
│  │         │ │ (64 heads)│ │        │ │(64 Q)  │ │
│  └────┬────┘ └────┬─────┘ └───┬────┘ └───┬────┘ │
│       └──────┬────┴───────────┴───────────┘      │
│              ▼                                   │
│     Feature Gates + Token Router (top-2)         │
│              ▼                                   │
│        Residual + DropPath                       │
└──────────────────────┬───────────────────────────┘
                       ▼
         HyperFFN (SwiGLU + CausalConv + LowRank)
                       ▼
                   LayerNorm
                       ▼
┌──────────────────────────────────────────────────┐
│            MoA Language Model Head               │
│  (same 4-path mixture → SwiGLU → tied vocab)    │
└──────────────────────┬───────────────────────────┘
                       ▼
                 Logits (48,000)

Core Components

Metric Attention. Queries attend to keys via learned Mahalanobis distance. Each of 64 heads has an 8-dimensional head space with its own diagonal scaling, learnable ball origin, and adaptive radius for sparse pruning. Pairs outside the ball are masked before softmax.

Mixture-of-Attentions Routing. Four parallel paths per token — local depthwise convolution, full multi-head metric attention, gated channel mixing, and multi-query metric attention. A learned router selects top-2 paths per token position. Feature gates scale each path's output before mixing.

BlackHoleRoPE. Rotary position encoding with learned phase perturbations from a compact Fourier basis. Q/K rotations stay unitary. V amplitudes get bounded energy gating clamped to [0.5, 2.0] with optional discrepancy-state modulation.

HyperFFN. Three-branch feedforward: SwiGLU channel MLP, causal depthwise separable convolution, and gated low-rank bottleneck — routed per-token with top-2 sparse selection.

MoA LM Head. The vocabulary projection runs its own mixture-of-attentions (32 heads, head_dim=16) before projecting to logits through a SwiGLU transform. Weight-tied to the input embedding.

Parameter Budget

ComponentParameters%
Token embedding (tied)24.6M35.5%
MoA blocks × 428.9M41.8%
HyperFFN (shared)4.2M6.1%
MoA LM head10.8M15.6%
RoPE + norms0.6M0.9%
Total69.1M

vs Standard Transformers

TransformerMoA
Attention scoringDot product (Q·Kᵀ)Negative Mahalanobis distance
Geometric guaranteeNoneTriangle inequality regularized
Position encodingRoPEBlackHoleRoPE (learned phase + bounded V energy)
Attention sparsityCausal mask onlyBall pruning + top-k routing
Head combinationConcatenationPer-token routed mixture of 4 path types
FFNSingle MLP3-branch routed (SwiGLU + CausalConv + LowRank)
LM headLinear projectionFull MoA mixture → SwiGLU → tied projection

Training

Data

DatasetDomain
Opus-4.6-Reasoning-3000x-filteredMulti-step reasoning
UltraData-MathMathematical problem solving
alpaca-cleanedGeneral instruction following

Usage

from transformers import AutoTokenizer
from MoA import MoAMetricLM, MoAMetricConfig

tokenizer = AutoTokenizer.from_pretrained("reaperdoesntknow/DiscoverLM-70M")
model = MoAMetricLM.from_pretrained("reaperdoesntknow/DiscoverLM-70M")

inputs = tokenizer("The triangle inequality guarantees that", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Chat Format

The tokenizer includes built-in special tokens for structured generation:

TokenRole
<|system|>System prompt boundary
<|user|>User turn boundary
<|assistant|>Assistant turn boundary
<|think|>Internal reasoning start
<|reasoning|>Reasoning chain marker
<|bos|>Beginning of sequence
<|eos|>End of sequence
<|pad|>Padding
# Chat-style prompting
prompt = "<|system|>You are DiscoverLM, a small language model with metric attention.<|user|>What is the triangle inequality?<|assistant|><|think|><|reasoning|>"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)

Mathematical Foundation

The metric attention mechanism is grounded in the Discrepancy Calculus (DISC), a measure-theoretic framework for singularity analysis developed by the author. The triangle inequality regularizer enforces that the learned attention geometry satisfies d(a,c) ≤ d(a,b) + d(b,c) across sampled triples, ensuring the distance function used for attention scoring is a proper metric — not merely a similarity function.

The ball pruning mechanism (learnable per-head origins and radii) creates adaptive sparse attention patterns that emerge from the geometry itself rather than from fixed masking heuristics.

BlackHoleRoPE extends standard rotary position encoding with learned phase perturbations synthesized from a Fourier basis, maintaining the unitary property on Q/K while adding bounded amplitude modulation on V — ensuring position-dependent energy gating stays within Lyapunov-stable bounds.

Lineage

This architecture derives from research in metric-native neural computation:

  • DISC — Discrepancy Calculus: measure-theoretic singularity analysis (CIx, 2025)
  • MoA — Mixture-of-Attentions with triangle inequality enforcement
  • BlackHoleRoPE — Learned rotary position encoding with bounded energy gating

Limitations

  • Trained on 262K tokens — the architecture works, but this is a proof-of-concept scale. Generalization to unseen distributions is not yet validated.
  • No eval split was used; training metrics only.
  • 8 epochs over 64 batches means the model has seen each example multiple times. Overfitting is likely at this data scale.
  • fp32 training only — bf16/fp16 behavior untested.

Citation

@misc{CILLC2026discoverLM,
  author = {Convergent Intelligence LLC: Research Division},
  title = {DiscoverLM-70M: Metric-Attention Mixture of Attentions with Triangle Inequality Enforcement},
  year = {2026},
  publisher = {HuggingFace},
  url = {https://huggingface.co/reaperdoesntknow/DiscoverLM-70M}
}

Author

Roy C — Convergent Intelligence LLC

HuggingFace: reaperdoesntknow


Convergent Intelligence Portfolio

Part of the Discover Series by Convergent Intelligence LLC: Research Division

Related Models

ModelDownloadsFormat
Discovered55HF
DiscoverLM-70M107HF

Top Models from Our Lab

ModelDownloads
Qwen3-1.7B-Thinking-Distil501
LFM2.5-1.2B-Distilled-SFT342
Qwen3-1.7B-Coder-Distilled-SFT302
Qwen3-0.6B-Distilled-30B-A3B-Thinking-SFT-GGUF203
Qwen3-1.7B-Coder-Distilled-SFT-GGUF194

Total Portfolio: 41 models | 2,781 total downloads

Last updated: 2026-03-28 12:56 UTC


From the Convergent Intelligence Portfolio

DistilQwen Collection — Our only BF16 series. Proof-weighted distillation from Qwen3-30B-A3B → 1.7B and 0.6B on H100. Three teacher variants (Instruct, Thinking, Coder), nine models, 2,788 combined downloads. The rest of the portfolio proves structure beats scale on CPU. This collection shows what happens when you give the methodology real hardware.

Top model: Qwen3-1.7B-Coder-Distilled-SFT — 508 downloads

Full methodology: Structure Over Scale (DOI: 10.57967/hf/8165)

Convergent Intelligence LLC: Research Division

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

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

GPU в ailist

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

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

Архитектура moa_metric неизвестна transformers в образе рантайма.

Класс архитектуры
MoAMetricLM
Ревизия весов
0b82c75

0 моделей