/ Модель

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

Контекст
1 048 576 токенов
Лицензия
MIT
Архитектура
glm5_next · dense
Базовая модель
GLM-5.3-Flash
Библиотека
mlx
Опубликована
26 авг 2026

GLM-5.3-Flash-MLX-4bit-MTP

Изображение и текст → текст13 профессий

Vontra/GLM-5.3-Flash-MLX-4bit-MTP — MLX-конверсия модели GLM-5.3-Flash от Z.ai, подготовленная для Apple Silicon.

4 391скачиваний за 30 дней10лайковвеса обновлены8 сен 2026

Бенчмарки

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

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

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

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

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

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

Это мультимодальная sparse MoE-модель архитектуры glm5_next с поддержкой текста и изображений, рассчитанная на работу с английским и китайским языками. Модель распространяется в формате MLX safetensors и сохраняет оригинальные токенизатор, chat template, мультимодальный процессор и настройки генерации.

Модель предназначена для локальной генерации текста и обработки изображений в совместимых окружениях MLX и MLX-VLM. Она использует гибридное линейное и разреженное внимание, manifold-constrained hyper-connections и встроенный блок предсказания следующего токена для speculative decoding (native MTP). Заявленный контекст составляет до 1 048 576 токенов. Квантование выполнено методом weight-only post-training quantization: основные подходящие матрицы переведены в 4-bit с group size 64, тогда как vision encoder, projector, embeddings, output head и часть служебных тензоров сохранены в исходной или совместимой точности.

К сильным сторонам относятся мультимодальность, очень длинный контекст, поддержка sparse MoE, оптимизация под Apple Silicon и существенное уменьшение размера весов по сравнению с полноточной моделью. Репозиторий занимает около 181,7 ГБ, поэтому для запуска требуется значительный объём объединённой памяти. Native MTP требует специальной интеграции GLM5 Next в runtime; проверена работа с oMLX 0.6.3rc3, MLX 0.32.0 и MLX-VLM 0.6.3 с соответствующей поддержкой. Старые или стандартные сборки без этой интеграции могут работать только без MTP либо не поддерживать модель. Приведённый тест на Apple M3 Ultra показал около 6,27 токена в секунду при отключённом MTP, но фактическая производительность зависит от нагрузки и окружения. Лицензия — MIT.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

At a glance

ItemValue
Base modelzai-org/GLM-5.3-Flash
RepositoryVontra/GLM-5.3-Flash-MLX-4bit-MTP
FormatMLX safetensors
QuantisationUniform affine 4-bit for eligible modules
Group size64
Source revision3f1971b7b5f7a528c9c4ef6212c8785298a8c24a
Source weight formatFP8 E4M3 with 128×128 block scaling
Native MTPIncluded — one matching upstream prediction layer
MTP weight precision4-bit affine for eligible matrices; source-compatible precision for norms and routing tensors
Weight tensors114160 total, including 2641 MTP tensors
Weight shards43
Download size181.694 GB / 169.215 GiB
Configured context1,048,576 tokens
Architectureglm5_next, multimodal sparse MoE

Modules that are not eligible for MLX quantisation remain at their source-compatible precision. The checkpoint preserves the upstream tokenizer, chat template, multimodal processor, generation configuration, and native MTP metadata.

Quantisation recipe

ComponentTreatment
Eligible language projections4-bit affine, group size 64
Routed experts4-bit affine for eligible expert projections; routing tensors preserved at source-compatible precision
Token embeddings and output headBF16
Vision encoder and projectorBF16, preserved from the official source
Native MTP prediction layer4-bit affine for eligible matrices; source-compatible precision for norms and routing tensors
Other non-quantisable tensorsPreserved at source-compatible precision
ConverterVontra streamed MLX affine converter using MLX 0.32.0

This is a weight-only post-training quantisation. It does not retrain or fine-tune the upstream model.

Runtime compatibility

GLM-5.3-Flash uses the new glm5_next multimodal architecture, hybrid linear and sparse attention, manifold-constrained hyper-connections, and an embedded next-token prediction layer. All four features need explicit runtime support.

Runtime pathStatus
oMLX 0.6.3rc3Validated for baseline generation; native MTP tensors recognised
MLX 0.32.0Conversion and tensor runtime
MLX-VLM 0.6.3 with GLM5 Next runtime integrationRequired for glm5_next model and vision loading
Older or stock builds without GLM5 Next MTP integrationUnsupported for native MTP

[!IMPORTANT] A runtime that can load glm5_next is not automatically able to use its embedded MTP layer. Native MTP requires the GLM5 Next-specific draft, verification, and cache-reconciliation path. If that integration is absent, keep MTP disabled or use a compatible build.

Download and use

hf download Vontra/GLM-5.3-Flash-MLX-4bit-MTP \
  --local-dir GLM-5.3-Flash-MLX-4bit-MTP

In a compatible oMLX build:

  1. Add the downloaded model directory.
  2. Keep Native MTP disabled for the currently validated serving path.
  3. Start a new conversation after changing model settings so the runtime rebuilds the model and caches.

For baseline generation without native MTP, a compatible MLX-VLM installation can use:

python -m mlx_vlm.generate \
  --model Vontra/GLM-5.3-Flash-MLX-4bit-MTP \
  --prompt "Explain how hybrid attention reduces long-context serving cost." \
  --max-tokens 512

Apple M3 Studio performance

Measured on an Apple M3 Studio with a warmed model state:

ModePrompt tokensOutput tokensDecodeModel memory
Baseline, MTP off635126.2657 tokens/s173.39 GB
Benchmark detailValue
ChipApple M3 Ultra
Unified memory256 GB
RuntimeoMLX 0.6.3rc3, MLX 0.32.0
Timed runsthree; median reported
Warm-upone 64-token greedy request discarded before measurement
Samplinggreedy decoding, temperature 0, top-p 1, top-k 0, fixed seed 6330

These figures are a local reference, not a cross-platform guarantee. Prompt shape, image input, context growth, draft acceptance, sampling, memory pressure, thermal state, and runtime revisions can materially change performance.

Native MTP status

The checkpoint contains the official matching NextN layer. A short deterministic MTP smoke test produced the exact requested output and recorded an accepted draft. Sustained testing on the current oMLX build exposed repeated speculative state reinitialisation and lower throughput than baseline decode. Native MTP is therefore preserved for compatible future runtimes but is not recommended for sustained serving on the validated build. Keep MTP disabled unless your runtime has corrected that scheduler behaviour.

Architecture

GLM-5.3-Flash is Z.ai's first natively multimodal GLM-5 model. It combines KDA linear-attention layers with periodic sparse-attention layers, a sparse mixture-of-experts feed-forward stack, manifold-constrained hyper-connections, and a native next-token prediction layer.

Architecture detailUpstream value
Parameters320B total / 18B active
Language layers45
Linear / sparse-attention layers34 / 11
Dense / sparse-MoE feed-forward layers3 / 42
Routed / active experts288 / 8, plus 1 shared expert
Hidden size4,096
Attention heads64
Vocabulary size154,880
Manifold-constrained hyper-connection width4 streams
Native MTP layers1
Vision encoder24 layers, 1,024 hidden size, 448-pixel input
Configured maximum context1,048,576 tokens

See the official model card, Z.ai overview, and GLM-5 technical report for upstream training, evaluations, intended uses, and safety guidance.

Validation

CheckResult
Config, processor, tokenizer, and chat-template files presentPassed — official tokenizer, updated chat template, processor, generation config, and MIT licence included
Safetensors index resolves every tensor to an existing shardPassed — 114,160 indexed tensors resolve exactly
All shards open and tensor headers match the indexPassed — all 43 shards open; no missing, duplicate, or unexpected tensors
Native MTP configuration and 2641 MTP tensors presentPassed — the official layer 45 NextN block is preserved and strict MTP-enabled loading succeeds
Baseline text generationPassed — three identical coherent 512-token runs and all instruction, factual, and arithmetic gates
Native-MTP text generationShort deterministic smoke passed with an accepted draft; sustained MTP is slower than baseline on this runtime
Greedy baseline/MTP output equivalenceNot claimed; sustained MTP serving is not recommended on this runtime
Vision tensor structurePassed structurally — all 347 official vision tensors are preserved; image generation was not benchmarked
Long-context generationNot claimed — configured context metadata is preserved, but no long-context generation result is reported

Validation used oMLX 0.6.3rc3, MLX 0.32.0, and MLX-VLM 0.6.3 with GLM5 Next runtime integration.

Limitations

  • Quantisation can reduce quality relative to the official checkpoint, especially on difficult reasoning, tool-use, multilingual, vision, and long-context workloads.
  • Native MTP improves speed only when draft acceptance offsets drafting and verification cost. It may be neutral or slower for unpredictable output.
  • The configured one-million-token context does not imply that every Apple-silicon system has enough memory for a full-context request.
  • Image prefill has different memory and throughput characteristics from text-only generation and is not represented by the decode benchmark above.
  • Runtime support for glm5_next and its native MTP path is evolving. Use the exact validated versions listed in this card.
  • Validate numerical behaviour, output quality, safety, and tool use on representative workloads before production deployment.

This is a community quantisation and is not an official Z.ai release.

Licence and attribution

The upstream model is released under the MIT License. The required licence text is included in this repository.

Model design, training, upstream evaluations, and documentation belong to Z.ai and the GLM-5 contributors. The MLX conversion, Apple-silicon validation, native-MTP integration work, and packaging are provided by Vontra.

If you use this model in research, cite the upstream report:

@misc{glm5team2026glm5,
  title        = {GLM-5: from Vibe Coding to Agentic Engineering},
  author       = {GLM-5-Team and others},
  year         = {2026},
  eprint       = {2602.15763},
  archivePrefix= {arXiv},
  primaryClass = {cs.LG},
  url          = {https://arxiv.org/abs/2602.15763}
}

Choose for your Mac

64GB Macs · 128GB Macs · 256GB Macs

No measured memory tier is assigned here. The collections use published M3 Studio peaks with at least 25% nominal headroom; fit on other Macs is an estimate, and full context is not guaranteed. Start with short context and one request.

Runtime and evidence

oMLX version mentioned in the existing card: 0.6.3rc3; consult its compatibility notes for whether this was tested and any required integrations. The original performance tables retain their benchmark conditions and speed figures; this documentation update adds no new test results.

Quick start and demo prompt

hf download Vontra/GLM-5.3-Flash-MLX-4bit-MTP --local-dir ./models/GLM-5.3-Flash-MLX-4bit-MTP

Add the downloaded folder to oMLX model directories, refresh the list, and follow this card's architecture and MTP compatibility requirements before loading.

Try this in a new chat with a 128-token output limit:

Explain why the sky looks blue in three short sentences.

This is a demo prompt to try, not a recorded successful run; a captured demonstration for this documentation update is not yet available.

Follow Vontra for new Apple Silicon releases and fixes.

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

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

GPU в ailist

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

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

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

Класс архитектуры
Glm5NextForConditionalGeneration
Ревизия весов
76add2a

0 моделей