全部執行1
完整的已核准速度測試歷史。
31B · Gemma
33.4
tok/s
M5 Pro 48GB
mlx · int4
596 ms
2K · 5 個月前
顯示全部執行詳情
模型
jdfelo/gemma-4-31B-v2-MLX-4bit
顯示名稱
gemma-4-31B-v2-MLX-4bit
基礎模型
—
修訂版本
main
系列
Gemma
參數
31B
啟用參數
—
MoE
否
輸出
33.4 tok/s
預填充
251 tok/s
總計
—
TTFT
596 ms
峰值 VRAM
34.2GB
功耗
—
硬體成本
—
提示詞 token
149
輸出 token
400
預填充 token
—
上下文長度
2K
批次大小
1
硬體類別
UNIFIED
硬體
M5 Pro 48GB
GPU 插槽
—
GPU 數量
1
VRAM
—
晶片廠商
Apple
晶片系列
M5
晶片型號
M5 Pro
統一記憶體
48GB
NPU TOPS
—
CPU
—
RAM
—
作業系統
macOS
功率
—
引擎
mlx
引擎版本
mlx-vlm 0.6.3 / mlx 0.32.0.dev20260702+e9463bb (qmv_wide)
量化
int4
後端
metal
張量平行
—
管線平行
—
GPU 層數
—
拆分模式
—
KV 快取 dtype
—
KV 快取大小
—
前綴快取
—
注意力後端
—
Flash Attention
—
分塊預填充
—
預填充分塊
—
連續批次處理
—
CPU 卸載
—
CPU 層數
—
RoPE 縮放
—
RoPE 縮放比例
—
YaRN 擴展因子
—
引擎量化
—
SGLang 量化
—
GPU 顯存使用率
—
最大執行序列數
—
排程器延遲
—
平行數
—
並行數
—
推測解碼
是
推測方法
mtp
推測模型
mlx-community/gemma-4-31B-it-assistant-bf16
推測草稿模型
mlx-community/gemma-4-31B-it-assistant-bf16
推測 token
4
推測 n-gram
—
推測草稿 TP
—
推測草稿視窗
—
啟用 MTP
是
MTP 草稿層數
4
溫度
—
Top P
—
Top K
—
Min P
—
重複懲罰
—
Mirostat
—
指令
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)
額外參數
--draft-model mlx-community/gemma-4-31B-it-assistant-bf16 --draft-kind mtp --draft-block-size 4
備註
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.
回應
—
提交時間
2026年7月3日 晚上8:57
最後編輯
—
| 模型 | 硬體 | 引擎 | tok/s 輸出 | 預填充 | tok/s 總計 | TTFT | 深度 | 分享 |
|---|---|---|---|---|---|---|---|---|
| gemma-4-31B-v2-MLX-4bit 31B · Gemma | M5 Pro 48GB | mlxint4 | 33.4 | 251 | — | 596 ms | — | |
顯示 gemma-4-31B-v2-MLX-4bit 的全部詳情模型 jdfelo/gemma-4-31B-v2-MLX-4bit 顯示名稱 gemma-4-31B-v2-MLX-4bit 基礎模型 — 修訂版本 main 系列 Gemma 參數 31B 啟用參數 — MoE 否 輸出 33.4 tok/s 預填充 251 tok/s 總計 — TTFT 596 ms 峰值 VRAM 34.2GB 功耗 — 硬體成本 — 提示詞 token 149 輸出 token 400 預填充 token — 上下文長度 2K 批次大小 1 硬體類別 UNIFIED 硬體 M5 Pro 48GB GPU 插槽 — GPU 數量 1 VRAM — 晶片廠商 Apple 晶片系列 M5 晶片型號 M5 Pro 統一記憶體 48GB NPU TOPS — CPU — RAM — 作業系統 macOS 功率 — 引擎 mlx 引擎版本 mlx-vlm 0.6.3 / mlx 0.32.0.dev20260702+e9463bb (qmv_wide) 量化 int4 後端 metal 張量平行 — 管線平行 — GPU 層數 — 拆分模式 — KV 快取 dtype — KV 快取大小 — 前綴快取 — 注意力後端 — Flash Attention — 分塊預填充 — 預填充分塊 — 連續批次處理 — CPU 卸載 — CPU 層數 — RoPE 縮放 — RoPE 縮放比例 — YaRN 擴展因子 — 引擎量化 — SGLang 量化 — GPU 顯存使用率 — 最大執行序列數 — 排程器延遲 — 平行數 — 並行數 — 推測解碼 是 推測方法 mtp 推測模型 mlx-community/gemma-4-31B-it-assistant-bf16 推測草稿模型 mlx-community/gemma-4-31B-it-assistant-bf16 推測 token 4 推測 n-gram — 推測草稿 TP — 推測草稿視窗 — 啟用 MTP 是 MTP 草稿層數 4 溫度 — Top P — Top K — Min P — 重複懲罰 — Mirostat — 指令 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) 額外參數 --draft-model mlx-community/gemma-4-31B-it-assistant-bf16 --draft-kind mtp --draft-block-size 4 備註 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. 回應 — 提交時間 2026年7月3日 晚上8:57 最後編輯 — | ||||||||
