速度测试模型基准评测租用报告硬件解码计算器组织ProAPI文档提交
语言
Actual Computer — Every computer, one endpoint
jdfelo

JD

@jdfelo · 2026 年加入

全部运行1

完整的已批准速度测试历史。

硬件

M5 Pro 48GB

引擎

mlx · int4

TTFT

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日 20:57

最后编辑

—

模型硬件引擎tok/s 输出预填充tok/s 总计TTFT深度分享
gemma-4-31B-v2-MLX-4bit

31B · Gemma

M5 Pro 48GB
mlxint433.4251—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日 20:57

最后编辑

—