/ Модель

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

Контекст
512 токенов
Лицензия
Apache 2.0
Архитектура
cosmicfish_hrm · dense
Опубликована
29 мая 2026

CosmicFish-HRM

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

Компактная англоязычная причинная языковая модель с иерархическим рекуррентным модулем, адаптирующим глубину рассуждения при генерации текста.

71скачиваний за 30 дней3лайкавеса обновлены12 авг 2026

Бенчмарки

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

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

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

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

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

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

CosmicFish-HRM — компактная причинная языковая модель на 82,77 млн параметров, разработанная Mistyoz AI в Хайдарабаде. Она предназначена для генерации текста и изучения адаптивного вычисления при рассуждении: иерархический рекуррентный модуль (HRM) чередует высокоуровневые и низкоуровневые циклы, а обученная голова остановки выбирает глубину обработки каждого входа. Архитектура также использует сгруппированное внимание с запросами (GQA), RoPE, SwiGLU и RMSNorm.

Модель принимает текст и генерирует продолжение. В README приведены результаты нулевого обучения на HellaSwag, PIQA и WinoGrande; авторы отмечают, что её основной вклад — адаптивное распределение вычислений, а не превосходство в точности над более крупными базовыми моделями. Для работы используется собственная архитектура с кодом модели в репозитории. Карточка указывает лицензию Apache-2.0.

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

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

Ограничения

В приведённых тестах нулевого обучения модель уступает GPT-2 Small и OPT-125M по большинству указанных метрик; README описывает её как компактную модель, основная ценность которой — адаптивное распределение вычислений. Для загрузки требуется поддержка нестандартной архитектуры из репозитория.

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

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

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

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

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

Открыть на Hugging Face

CosmicFish-HRM

Paper: CosmicFish-HRM: Adaptive Reasoning via Hierarchical Recurrent Mechanisms in Compact Language Models

GitHub: MistyozAI/CosmicFish-HRM

CosmicFish-HRM is a compact 82.77M parameter causal language model built around a Hierarchical Reasoning Module (HRM) that dynamically allocates reasoning compute during inference. Rather than applying a fixed number of forward-pass layers to every input, the model iterates through high-level and low-level reasoning cycles and uses a learned halting head to decide when to stop. Harder inputs trigger deeper reasoning trajectories while simpler ones halt early.

Built at Mistyoz AI, Hyderabad.


Architecture

Architecture

Input Blocks (Transformer) -> HRM Core (H + L levels, variable steps) -> Output Blocks (Transformer) -> LM Head

The HRM core maintains two interacting recurrent states operating at different abstraction levels. The high-level module captures slower, more abstract reasoning while the low-level module handles finer-grained local computation. After each reasoning step a lightweight halting head decides whether to continue or stop, conditioned on the mean-pooled high-level state.

Key components:

  • Grouped-Query Attention (GQA) with 8 query heads and 4 KV heads
  • Rotary Positional Embeddings (RoPE)
  • SwiGLU feedforward layers
  • RMSNorm (pre-norm for I/O blocks, post-norm inside HRM)
  • Learned halt/continue Q-head controlling per-input reasoning depth
  • Step penalty in the training loss encouraging efficient halting

Model Specs

ParameterValue
Total parameters82.77M
Embedding dimension448
Vocabulary size50,304
Context length512
Input transformer layers6
Output transformer layers6
HRM H-layers4
HRM L-layers4
Max HRM steps16
Attention heads8 (4 KV, GQA)

Evaluation

Zero-shot benchmark results:

ModelHellaSwagPIQAWinoGrande
CosmicFish-HRM (82M)26.258.150.7
GPT-2 Small (117M)29.762.550.7
OPT-125M30.662.652.9
Pythia-160M29.462.152.8

At compact scale a portion of the parameter budget is allocated to the HRM reasoning infrastructure rather than raw language modeling capacity, which accounts for the gap versus fixed-depth baselines of similar size. The paper argues this tradeoff becomes more favorable as model scale increases.

Adaptive Reasoning Behavior

The primary contribution of CosmicFish-HRM is not benchmark accuracy but adaptive compute allocation. The model uses different numbers of reasoning steps depending on input complexity:

PromptMean HRM Steps
"The capital of France is"2.78
"Photosynthesis is the process by which plants"4.77
"If all roses are flowers and some flowers fade quickly..."7.03
"A bat and a ball cost $1.10 in total..."8.40

Average steps across benchmarks stay well below the 16-step maximum, with high variance across samples, confirming the halting mechanism is input-sensitive rather than collapsing to a fixed depth.

BenchmarkMean StepsStd Dev
HellaSwag3.036.26
PIQA1.875.13
WinoGrande0.953.78
Overall2.685.95

Usage

This model uses a custom architecture. The model code is included in this repo as modeling_hrm_cosmicfish.py.

Standalone chat script (downloads automatically):

pip install torch safetensors huggingface-hub transformers termcolor
python chat.py

Load manually:

import torch
import json
import tiktoken
from safetensors.torch import load_file
from huggingface_hub import snapshot_download
from modeling_hrm_cosmicfish import HRMCosmicFish, HRMCosmicFishConfig

cache_dir = snapshot_download("MistyozAI/CosmicFish-HRM")

with open(f"{cache_dir}/config.json") as f:
    cfg = json.load(f)

config = HRMCosmicFishConfig(
    vocab_size=cfg["vocab_size"],
    n_embd=cfg["n_embd"],
    block_size=cfg["block_size"],
    n_head=cfg["n_head"],
    n_kv_head=cfg["n_kv_head"],
    n_input_layers=cfg["n_input_layers"],
    n_output_layers=cfg["n_output_layers"],
    hrm_H_layers=cfg["hrm_H_layers"],
    hrm_L_layers=cfg["hrm_L_layers"],
    hrm_H_cycles=cfg["hrm_H_cycles"],
    hrm_L_cycles=cfg["hrm_L_cycles"],
    hrm_max_steps=cfg["hrm_max_steps"],
    dropout=0.0,
)

state_dict = load_file(f"{cache_dir}/model.safetensors")
model = HRMCosmicFish(config)
model.load_state_dict(state_dict)
model.eval()

tokenizer = tiktoken.get_encoding("gpt2")
prompt = "Artificial intelligence is"
tokens = tokenizer.encode(prompt)
idx = torch.tensor(tokens, dtype=torch.long).unsqueeze(0)

with torch.no_grad():
    output = model.generate(idx, max_new_tokens=100, temperature=0.7, top_k=40)

print(tokenizer.decode(output[0].tolist()))

Mistyoz AI, Hyderabad

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

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

GPU в ailist

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

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

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

Класс архитектуры
HRMCosmicFish
Ревизия весов
22e65a2

0 моделей