/ Модель

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

Лицензия
MIT
Библиотека
mlx
Опубликована
29 окт 2026

ncm-mlx-tinyworld

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

Экспериментальная компактная реализация Next-Concept Modeling для генерации коротких предложений на искусственном языке TinyWorld.

167скачиваний за 30 дней0лайковвеса обновлены30 окт 2026

Бенчмарки

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

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

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

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

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

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

janmusic/ncm-mlx-tinyworld — экспериментальная реализация Next-Concept Modeling на базе MLX, разработанная независимо от авторов метода Kumbong et al. Модель включает генератор на 5 млн параметров, многомасштабный residual-VQ-кодек на 1,3 млн параметров и авторегрессионную символьную базовую модель на 4,8 млн параметров. Компоненты сохранены в формате safetensors с весами float32; для работы требуется Apple Silicon или Linux с MLX CUDA.

Генератор создаёт предложения на искусственном языке TinyWorld в шесть шагов с грубого уровня к детальному, без последовательной генерации каждого символа. Набор содержит короткие шаблонные фразы вроде «ann sees two red cats.»; модель не принимает пользовательский промпт и не предназначена для открытого текста или следования инструкциям. Кодек точно восстанавливает отложенные предложения, однако генератор уступает сопоставимой авторегрессионной базовой модели по доле грамматически допустимых фраз.

Модель подходит для изучения Next-Concept Modeling и воспроизведения небольших экспериментов по генерации текста на синтетическом языке. Лицензия — MIT. Реализация независимая и несовместима с официальными чекпойнтами NCM.

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

  • эксперименты с генерацией текста по методу Next-Concept Modeling
  • сравнение пошаговой генерации с авторегрессионной моделью
  • генерация коротких фраз по грамматике TinyWorld
  • изучение residual-VQ-кодека для символьных последовательностей

Ограничения

Модель обучена только на небольшом синтетическом языке, не поддерживает промпты и следование инструкциям; её качество на естественном тексте неизвестно. Генератор уступает равной по размеру авторегрессионной базовой модели по доле допустимых предложений и требует GPU-окружения с MLX.

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

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

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

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

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

Открыть на Hugging Face

ncm-mlx-tinyworld

A 5.0M-parameter next-concept generator, a 1.3M-parameter multiscale residual-VQ codec, and a same-size autoregressive baseline (4.8M), all trained on TinyWorld: a synthetic language of 15,360 sentences like ann sees two red cats. (32 characters). The generator writes a sentence in 6 coarse-to-fine steps (1, 2, 4, 8, 16, 32 code positions, one forward pass each) plus one codec decode, instead of 32 sequential character steps. These are the quickstart weights of ncm-mlx, an independent MLX implementation of Next-Concept Modeling (arXiv:2610.14162).

Method by Kumbong et al.; this is an independent implementation, not affiliated with Stanford/HazyResearch, and not compatible with official checkpoints.

Files

FileContentsSize
codec.safetensors, codec.jsonCodec (6 levels) and tokenizer5.2 MB
generator.safetensors, generator.jsonNext-concept generator (best validation step 1,500 of 3,000)19.9 MB
ar.safetensors, ar.jsonCharacter-level autoregressive baseline, same width and depth19.0 MB
config.jsonRun config (configs/toy-grammar-12k.json in the repository)

These are the toy-grammar-12k artifacts (experiment E1), the run behind the README numbers.

Architecture

The character tokenizer pads to 32 positions. The codec uses a contextual transformer encoder, LayerNorm, six residual VQ levels and a transformer decoder; these settings differ from later lookup-encoder Sudoku recipes. The generator uses block-diagonal attention and has no user prompt conditioning. Files store float32 safetensors. Model-value counts above describe the saved components; matching generator size does not match the additional codec's cost.

Results

Experiment E1 on an Apple M5 Pro (64 GB, macOS 26.5, MLX 0.32.3) with other GPU services running. Validity is graded by the TinyWorld parser; 2 x 512 samples per temperature.

NCM generatorAR baseline + KV cache
Valid sentences, T = 1.089.8%98.6%
Valid sentences, T = 0.795.8%99.8%
Number agreement when well-formed99.8%100%
Valid and not in training set, T = 1.016.3%23.5%
Model calls per sequence6 + 1 decode32
Latency p50, batch 1 / 16 / 2564.5 / 5.8 / 37.8 ms30.5* / 22.9 / 49.8 ms

Codec: 100% of held-out sentences rebuilt exactly, 100% codebook use at every level (codec and generator quality are separate numbers). *The AR batch-1 p50 was 19.8 ms in an otherwise identical earlier run; small-batch timings depend on GPU load.

Training

Codec 52 s, generator 266 s (3,000 steps, best-validation checkpoint), AR baseline 134 s, on the hardware above. Training data: 12,000 generated sentences; 1,000 validation; 2,360 never seen. Total about 5.5 minutes with mise run train.

Reproduce

Needs an Apple Silicon Mac (or Linux with MLX CUDA) and uv. The CLI reads weights from artifacts/toy-grammar-12k/ (the out_dir of configs/toy-grammar-12k.json, which is also the CLI's default config).

git clone https://github.com/janmus1c/ncm-mlx.git && cd ncm-mlx
uv sync --locked --python 3.12  # Apple Silicon; Linux NVIDIA: add --group cuda
uvx --from huggingface-hub hf download janmusic/ncm-mlx-tinyworld --local-dir artifacts/toy-grammar-12k
uv run python -m ncm_mlx demo --config configs/toy-grammar-12k.json --n 3   # level-by-level samples
uv run python -m ncm_mlx eval --config configs/toy-grammar-12k.json        # quality metrics (JSON)
uv run python -m ncm_mlx baseline --config configs/toy-grammar-12k.json --bench   # uses ar.safetensors

The commands need a GPU (Metal or CUDA); CPU is only used for the repository's exactness tests. Sampling temperature, seed and top-k are CLI options.

Limitations

  • A synthetic, tiny language: no open-domain text, no prompts, no instruction following. Quality on real text is unknown.
  • At this size the NCM generator is less accurate than the equal-size AR baseline (about 9 points lower validity at T = 1.0). Errors are mostly local spelling slips (ret fox); the sentence-wide agreement rule is almost always kept. The latency advantage varies with GPU contention, and neither sampler is compiled.
  • The upstream paper's 10-31x speedups compare NCM with diffusion language models on GPUs; nothing here claims a speedup over large LLMs.
  • Weights are incompatible with the released NCM checkpoints. fp32 matmuls on Metal are reduced precision (about 1e-3 relative error).

Credit and scope

The method, Next-Concept Modeling, is by Kumbong et al. (arXiv:2610.14162). This is an independent MLX implementation, not affiliated with Stanford or HazyResearch, and the weights are not compatible with the official NCM checkpoints. No upstream code or checkpoints were used.

Citation

@software{music_ncm_mlx_2026,
  title  = {ncm-mlx: an independent MLX implementation of Next-Concept Modeling},
  author = {Music, Jan},
  year   = {2026},
  doi    = {10.5281/zenodo.23620792},
  url    = {https://github.com/janmus1c/ncm-mlx}
}

@misc{music_ncm_mlx_paper_2026,
  title        = {Independent MLX implementation of Next-Concept Modeling: working paper (unreviewed)},
  author       = {Music, Jan},
  year         = {2026},
  doi          = {10.5281/zenodo.23686842},
  howpublished = {Zenodo}
}

@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}
}

Links: GitHub · documentation · software DOI · working paper DOI (not peer reviewed). Code and these weights are MIT licensed.

Start with the recorded official-checkpoint demo or collection. That demo uses released HazyResearch weights, not these TinyWorld weights.

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

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

GPU в ailist

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

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

MLX-модели работают только на Apple Silicon.

Ревизия весов
2415617

0 моделей