/ Модель

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

Лицензия
MIT
Архитектура
ncm · dense
Библиотека
mlx
Опубликована
29 окт 2026

NCM-TinyStories-89M-Upstream-MLX

Генерация текстаТекст → текст3 профессии
121скачиваний за 30 дней0лайковвеса обновлены8 ноя 2026

Описание модели

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

Конвертированный в MLX чекпойнт NCM от HazyResearch для генерации коротких историй на английском языке.

NCM-TinyStories-89M-Upstream-MLX — конверсия опубликованного чекпойнта Next-Concept Modeling (NCM) от HazyResearch в формат MLX safetensors для запуска на Apple Silicon. Автор репозитория выполнил перенос формата и расположения тензоров без обучения и без квантизации; исходные веса выпущены по лицензии MIT. Генератор содержит около 88,6 млн параметров и построен из 12 блоков шириной 768 с 12 головами внимания. Вместе с кодеком и словарём уровней он формирует текст в 11 последовательных вызовов: на каждом шаге параллельно предсказывается уровень дискретных латентных кодов, после чего результат уточняется от грубого к детальному.

Модель предназначена для генерации коротких синтетических историй на английском языке в стиле датасета TinyStories. Это исследовательский чекпойнт для инференса, а не чат-ассистент: он не рассчитан на следование инструкциям или продолжение произвольных промптов. Репозиторий описывает независимый порт MLX и проверки совпадения вычислений с исходной реализацией; эти проверки подтверждают корректность переноса, но не качество текста. Заявленная производительность измерена на Apple Silicon и CPU, поэтому её нельзя обобщать на другие платформы.

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

  • генерация коротких историй в стиле TinyStories
  • создание синтетических англоязычных рассказов
  • эксперименты с генерацией текста методом Next-Concept Modeling
  • запуск генерации NCM на Apple Silicon через MLX

Ограничения

Модель обучена на коротких началах историй TinyStories и не предназначена для чата, выполнения инструкций или работы с произвольными промптами. Проверки паритета подтверждают перенос вычислений, но не качество генерации; описанные замеры производительности относятся только к Apple Silicon и CPU.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

NCM-TinyStories-89M-Upstream-MLX

The released TinyStories checkpoint of Next-Concept Modeling (NCM), converted to MLX safetensors so it runs on the Apple Silicon GPU without PyTorch. NCM writes text coarse to fine: each of 11 generator calls predicts a whole level of discrete latent codes in parallel, instead of one token per call (Kumbong et al., arXiv:2610.14162).

Credit. The weights, configuration and reference PyTorch implementation are by HazyResearch (original checkpoints, code), released under the MIT license, Copyright (c) 2025 Hermann Kumbong. This repository only changes the file format and tensor layout. The conversion is lossless (float32 to float32), not quantization, and no training was done here. The MLX inference code is an independent port, ncm-mlx, not affiliated with or endorsed by HazyResearch.

The -Upstream suffix marks the authors' released weights. Models trained from scratch in this project do not carry it. Previously published as janmusic/ncm-tinystories-mlx; the old name redirects here.

At a glance

Generator88,605,707 float32 values: 12 blocks, width 768, 12 heads, block-diagonal attention, codebook-tied output heads
Codec36,434,816 float32 values: lookup encoder, GroupNorm, learned level-0 resampling, one decoder block
Level-0 unigram4,096 float32 values
Tokenizer8,192-token BPE, up to 128 token positions
Hierarchy12 levels: 1, 8, 16, 24, 32, 40, 52, 64, 76, 92, 108, 128; level 0 from the stored unigram, then 11 generator calls
Conditioningnone: unconditional generation from a one-token start prefix
Sourcehazyresearch/ncm-checkpoints revision d342ce8aaea58830eef3b8ad473664673e41f692, converted with ncm-mlx 0.2.0
Weights500.2 MB (decimal), excluding tokenizer and metadata

Quick start

pip install "ncm-mlx==0.4.0" huggingface-hub   # Apple Silicon, Python 3.12
hf download janmusic/NCM-TinyStories-89M-Upstream-MLX --local-dir ncm-tinystories-89m-upstream
python -m ncm_mlx official generate --task tinystories --weights ncm-tinystories-89m-upstream --n 2 --levels

--levels prints the decode of the accumulated latent after every level. Intermediate text can be incoherent and is not a trace of model reasoning. Sampling defaults to temperature 1.0 with the level-0 code drawn from the stored unigram. Add --cpu to run on the CPU.

To redo the conversion yourself from the original release (pinned revision, SHA-256 checked):

python -m ncm_mlx official fetch --task tinystories
python -m ncm_mlx official convert --task tinystories

What it looks like

A recorded generation of this checkpoint in MLX. The replay demo steps through all 12 recorded samples level by level.

Parity with upstream PyTorch

Upstream PyTorch 2.15 on CPU against the MLX port on mx.cpu, identical inputs (upstream code revision c702742, checkpoint revision d342ce8):

CheckResult
BPE pre-tokenization, ids, round trip (13 cases)identical
Codec embedding, max abs diff2.9e-6
Codec codes from real inputs97.4–100% per level (near-tie cascades)
Per-level logits, fp32, max abs diff0.10 at logit scale up to 853 (1.2e-4 relative)
Same, both sides in exact fp643.2e-10
Greedy generation, codes and decoded textidentical, 8/8 samples

The fp32 difference is float32 rounding, amplified by residual activations near 435 and the tied head's large |E|^2 terms; the fp64 row shows the computation is the same function. Sampled (non-greedy) outputs use MLX's random number generator, so they do not match upstream sample for sample. The converter fails on any unmapped or missing tensor and drops only the EMA training state and two derived buffers.

Speed (Apple M5 Pro, 64 GB, MLX 0.32.3)

p50 / p95 msbatch 1batch 16
MLX, Metal GPU39.8 / 40.8519 / 742
Upstream PyTorch, CPU280 / 2903,883 / 4,076

Synchronized through a host copy of the decoded tokens, on a busy desktop (GPU utilisation 0–33% around the runs, with brief higher readings). These historical rows use the eager reference path without prefix caching or compilation. They compare a Metal GPU with a CPU, not matched implementations, and do not measure an architecture-level speedup.

Honest limits

  • Inference only. No fine-tuning; nothing about the training is changed or re-audited here. Training recipe, data provenance, seeds and budget belong to HazyResearch's pinned configuration.
  • Parity is not quality. The parity tests show the port computes the same function as upstream; they say nothing about fluency or coherence. Upstream's generative-perplexity protocol is not reproduced here. Under this project's own scorer (GPT-2 large, 1,280 samples) this checkpoint scores 16.259.
  • Short synthetic stories. A model trained for short TinyStories openings; no prompts, no instruction following, no chat interface.
  • Platforms. These measurements establish Apple Silicon and CPU behaviour only. Linux CUDA setup is documented in platforms.

Files

FileContents
generator.safetensorsGenerator
codec.safetensorsCodec
inference.safetensorsLevel-0 unigram
spec.jsonPinned architecture, source file SHA-256 values and the full upstream revision
config.jsonMetadata for the Hub (it lets the Hub count downloads); not read by ncm-mlx
bpe.json8,192-token BPE tokenizer
LICENSEUpstream MIT license
assets/Banner and figures for this card

Use the model through ncm_mlx.official; it is not a Transformers AutoModelForCausalLM or mlx_lm checkpoint.

Related models

ModelWhat it isProvenance
NCM-TinyStories-87M-MLXBest NCM text model trained in this projectTrained here
AR-TinyStories-91M-MLXAutoregressive baseline for the 87M NCMTrained here
NCM-TinyStories-89M-Upstream-MLXReleased TinyStories checkpoint, converted to MLX (this model)Port, weights by HazyResearch
NCM-Sudoku-25M-Upstream-MLXReleased Sudoku checkpoints, converted to MLXPort, weights by HazyResearch
NCM-Sudoku-6.4M-MLXSmall Sudoku modelTrained here
NCM-TinyWorld-5M-MLXQuickstart model on a synthetic grammarTrained here

All of them are in the Next-Concept Modeling in MLX collection.

Citation

Cite the original method and checkpoints first. If the MLX port helped, cite the software as well.

@misc{kumbong2026ncm,
  title         = {Next-Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation},
  author        = {Hermann Kumbong and Ishan S. Khare and Iddah Mlauzi and Andrew Woen and Charles Ding and E. Kelly Buchanan and Simran Arora and Azalia Mirhoseini and Christopher R\'e},
  year          = {2026},
  eprint        = {2610.14162},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2610.14162}
}

@software{music_ncm_mlx,
  title   = {{NCM-MLX}: Next-Concept Modeling in {MLX}},
  author  = {Music, Jan},
  year    = {2026},
  version = {0.4.0},
  doi     = {10.5281/zenodo.23781233},
  note    = {Version 0.4.0: doi:10.5281/zenodo.23953482},
  url     = {https://github.com/janmus1c/ncm-mlx}
}

The software DOI 10.5281/zenodo.23781233 resolves to the latest version; 10.5281/zenodo.23953482 is version 0.4.0, the version the Quick start uses. The NCM-MLX working paper (v0.13, unreviewed) describes the port and its parity tests.

License

MIT. The weights are HazyResearch's MIT-licensed release (Copyright (c) 2025 Hermann Kumbong; see LICENSE); the MLX port is MIT. The upstream training corpus is TinyStories, synthetic short stories; it is distinct from this project's TinyWorld grammar.

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

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

GPU в ailist

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

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

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Ревизия весов
2d5f137

0 моделей