Uji kecepatanModelTolok UkurSewaLaporanHardwareKalkulator decodeOrganisasiProDokumen APIKirim
Bahasa
Actual Computer — Every computer, one endpoint

Uji kecepatan

gemma-4-31B-v2-MLX-4bit

M5 Pro 48GB · mlx · mlx-vlm 0.6.3 / mlx 0.32.0.dev20260702+e9463bb (qmv_wide) · int4

jdfeloMasyarakat3 Jul 2026

Decode

33.4tok/s

Prefill

251tok/s

Waktu ke token pertama

596ms

Total

—

VRAM puncak

34,2GB

Panjang konteks

2K

Kedalaman KV

—

Ukuran batch

1

Konsumsi daya

—

Verifikasi

Belum terverifikasi — hasil eksperimental

Run terverifikasi memakai prompt uji standar dan mencatat cukup data untuk memeriksa hasilnya.

Luncurkan perintah

python3 -m mlx_vlm server --host 127.0.0.1 --port 8080 --model ~/.cache/hf-vlm4 --draft-model mlx-community/gemma-4-31B-it-assistant-bf16 --draft-kind mtp --draft-block-size 4   # + patch_mlx_vlm_fast_verify.py (adds gemma4 speculative_argmax_from_hidden); mlx built from git main for the qmv_wide M>=2 kernel (PR #3764)

Theoretical memory ceiling

Can't estimate a ceiling for speculative decoding runs unless the run reports how many draft tokens were accepted.

Hardware

Kepingan
M5 Pro
Ingatan
48 GB
OS
macOS

Engine

Engine
mlx
Versi
mlx-vlm 0.6.3 / mlx 0.32.0.dev20260702+e9463bb (qmv_wide)
Quant
int4
Bagian belakang
metal
Dekode spesifikasi
aktif
MTP
aktif

Jalankan konfigurasi

Konteks
Token 2.048
Ukuran kumpulan
1
Token yang cepat
149
Isi awal tok/s
250.7 tok/s
Token keluaran
400
Catatan
Gemma 4 31B (abliterated v2), 4-bit affine gs64 decoder; vision tower + embed/lm_head bf16 per config. MLX MTP speculative decoding via mlx-vlm, official gemma-4-31B-it-assistant drafter, draft-block-size 4 (optimum on this build). Measured on M5 Pro 48GB, macOS 26.5, greedy temp 0. tokSOut = median of 4 timed iterations (range 32.8-35.5), decode throughput over the inter-token window (completion_tokens / (t_last-t_first)) from the OpenAI-compatible stream; ~250-tok code workload, exact usage.completion_tokens. Drafter acceptance ~69.8%, ~3.09 accepted tok/round. Byte-identical to dense greedy (fast-verify patch adds the missing gemma4 speculative_argmax_from_hidden hook: one batched norm->lm_head->softcap over K+1 positions). Speedup vs dense 4-bit (~15 tok/s, ~94% of the 276 GB/s measured-bandwidth ceiling) ~2.2x. peakVramGb is process phys_footprint_peak and includes MLX's Metal buffer cache growing under a 36GB wired limit; true resident weights+drafter+KV ~= 18-20GB (steady footprint 26.5GB). wheel: mlx qmv_wide (PR #3764) built from git main; without it b3 tops out ~24.6 tok/s. Model repo public; base jdfelo/gemma-4-31B-v2 is gated.

Bukti terekam

Hash prompt (SHA-256)
—
Sampel prompt—
Sampel output—

Run lain dari model ini di hardware ini

Belum ada run lain yang disetujui untuk model ini di hardware ini.