/ Модель

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

Контекст
2 048 токенов
Параметры
729 млн
Лицензия
Apache 2.0
Архитектура
metallm · dense
Библиотека
transformers
Опубликована
31 авг 2026

metallum-550m

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

Компактная модель Home Brewed Labs для технического продолжения текста и экспериментов с ML, LLM и retrieval.

149скачиваний за 30 дней2лайкавеса обновлены31 авг 2026

Бенчмарки

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

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

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

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

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

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

Metallum-550M — компактная языковая модель Home Brewed Labs для экспериментов в области ML и инженерии LLM. Это самостоятельно обученная с нуля decoder-only модель семейства MetaLLM: 550,3 млн параметров, 28 слоёв, группированное внимание, нормализация QK и чередующиеся слои NoPE. Модель принимает текстовые продолжения и инструкции, но не имеет шаблона чата. Контекст — 2 048 токенов; веса опубликованы в формате safetensors, библиотека загрузки — Transformers. Для загрузки требуется включить custom code.

Модель обучалась на коде, научных текстах по машинному обучению и синтетических технических данных, а затем дообучалась на примерах поиска, инструкций и задачах ReST-EM. Она предназначена для технического продолжения текста, ML/PyTorch-экспериментов, исследования retrieval-механизмов и воспроизведения раннего поколения Metallum. Это архивный исследовательский артефакт, а не универсальный чат-бот: возможны фактические ошибки, качество общего программирования слабое, а результаты внутренних оценок учитывались при выборе чекпойнта. Генерация медленнее из-за отсутствия KV-кэша; пакетный инференс с маскированием padding не оценивался. Лицензия на опубликованные веса и код — Apache-2.0; она не распространяется на лицензии исходных обучающих данных.

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

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

Ограничения

Это не универсальный чат-бот и модель не прошла выравнивание по предпочтениям или безопасности; технические ответы могут содержать ошибки, а общее программирование даётся слабо. Контекст ограничен 2 048 токенами, KV-кэш отсутствует, а внутренние результаты оценки учитывались при выборе чекпойнта.

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

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

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

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

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

Открыть на Hugging Face

Metallum-550M

Metallum-550M is the historical first-generation ML/LLM-engineering specialist from Home Brewed Labs. The project was developed under the codename MetaLLM-V3 and predates Metallum-1B. It is being released as a reproducibility and archival artifact, not as a replacement for Metallum-1B.

The model is a 550.3M-parameter decoder-only language model pretrained from random initialization on one RTX 5090, followed by retrieval SFT, capability/instruction SFT, and one bounded ReST-EM code round. It is deliberately narrow: use it for ML-engineering experiments, technical continuation, and retrieval research—not as a general chatbot.

Loading

This is a custom architecture. trust_remote_code=True is required because stock Llama implementations omit its QK normalization and interleaved NoPE layers.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "HomeBrewedLabs/metallum-550m"
device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.bfloat16 if device == "cuda" else torch.float32

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    torch_dtype=dtype,
).to(device).eval()

prompt = "Explain why QK normalization can stabilize attention training."
inputs = tokenizer(prompt, return_tensors="pt").to(device)

with torch.no_grad():
    output = model.generate(
        **inputs,
        max_new_tokens=160,
        do_sample=True,
        temperature=0.6,
        top_k=40,
    )

print(tokenizer.decode(output[0], skip_special_tokens=True))

There is no chat template. Supply a plain-text continuation or instruction prompt. The bundled inference shim has no KV cache, so generation recomputes the prefix at every step and is slower than similarly sized models with cached decoding. For production use, pin a repository revision and inspect the bundled Python files before enabling remote code.

Architecture

  • 28 decoder layers
  • hidden size 1,280
  • grouped-query attention: 20 query heads / 10 key-value heads
  • SwiGLU, intermediate size 3,456
  • RMSNorm pre-normalization and per-head QK normalization
  • RoPE with theta 500,000, computed through the model's fidelity-preserving path
  • no positional encoding in every fourth layer (interleaved NoPE retrieval layers)
  • tied 32,000-token byte-level BPE embeddings
  • native context length 2,048 tokens
  • bfloat16 weights

The precise parameter count is 550,251,264.

Training

Pretraining ran for 4.0B tokens. Its stable sampling pack contains 2.272B packed tokens: 1.351B code (59.5%), 866.7M ML-arXiv text (38.2%), and 54.4M synthetic technical text (2.4%). The final 10% used an 880.9M-token quality-decay pack containing ML-arXiv text, higher-scored ML code, and synthetic technical text. Pack counts include intentional resampling and are not counts of unique source text.

Post-training added synthetic retrieval examples, teacher-derived instruction examples, and execution-verified in-domain ReST-EM examples with retrieval and capability replay.

Training sources include code obtained through the BigCode the-stack-dedup corpus, arXiv-derived ML papers, and synthetic/teacher-derived material. Source-code and paper licenses vary upstream. The Apache-2.0 license in this repository covers the released weights and code; it does not relicense upstream training data. See NOTICE for the provenance disclosure.

Evaluation

The following results belong to the exact released checkpoint, ckpt_500m_v3_restem_r1/sft_step_000250.pt:

CapabilityEvaluationResult
ML knowledge250-question cloze MCQ, normalized accuracy0.416
Answer-letter bindingSame 250 questions, MCF format0.236
In-domain ML codeInternal 40-task executable suite, pass@110/40 (0.250)
RetrievalRULER-style suite at 1,024 and 2,048 tokens88/90 (0.978)
RetrievalSynthetic needle suite778/800 (0.973)
Passkey subsetSynthetic needle suite499/500 (0.998)
Key-value subsetSynthetic needle suite279/300 (0.930)
General codeMBPP, pass@80.000

On the same internal cloze harness, the campaign recorded 0.280 for Qwen2.5-1.5B and 0.312 for SmolLM2-1.7B. These comparisons are narrow, in-domain measurements—not general model rankings.

All listed internal suites were used during development and checkpoint selection, so the results are selection-aware. This lineage did not receive the later sealed-holdout protocol used for Metallum-1B. Treat the numbers as reproducibility records rather than untouched final estimates.

Intended use

Suitable uses include:

  • studying small domain-specialist language models;
  • ML/PyTorch technical continuation and scaffolding;
  • experiments with NoPE retrieval layers and QK normalization;
  • reproducing the first Metallum generation.

Out of scope: general factual QA, general-purpose coding, autonomous code execution, safety-critical decisions, or deployment as an aligned assistant.

Limitations

  • This is not a general chatbot and has no preference or safety alignment.
  • Free generation is fluent but can make local factual errors; verify technical claims.
  • Knowledge measured through cloze scoring does not transfer reliably to answer-letter output.
  • General coding is weak; the measured MBPP result is 0% pass@8.
  • The native context window is 2,048 tokens. Retrieval results above do not establish behavior beyond that window.
  • The inference shim does not implement a KV cache.
  • attention_mask is accepted for API compatibility but padding-aware batched inference was not part of the released evaluation path. Prefer unpadded single-example inference or equal-length batches.

Relationship to Metallum-1B

Metallum-550M is an earlier, independently trained checkpoint. Metallum-1B is the maintained successor with a larger corpus, a separate evaluation record, a sealed final holdout, and a constrained-decoding serving wrapper. The two repositories do not share weights.

License and citation

Weights and repository code are released under Apache-2.0. Training data retains its upstream terms; see NOTICE.

@misc{homebrewedlabs2026metallum550m,
  title        = {Metallum-550M},
  author       = {{Home Brewed Labs}},
  year         = {2026},
  howpublished = {Hugging Face model repository},
  url          = {https://huggingface.co/HomeBrewedLabs/metallum-550m}
}

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

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

GPU в ailist

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

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

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

Класс архитектуры
MetaLLMForCausalLM
Ревизия весов
9838be8

0 моделей