perf(qwen_vl): profile the residual decode falloff on M5 Max at 64 and 2048 prompt tokens
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
调研方向
Build the project with cargo build --release --features metal,accelerate, then run scripts/capture_m5_metal_trace.sh or use Instruments on an M5 Max at 64- and 2048-token prompts. Record per-kernel timings under docs/benchmark_results/ and link the new profile from docs/benchmark_results/model_tests_m5max.md, attributing the residual per-token cost with numbers, especially whether it comes from KV-read growth.
由索引模型根据 Issue 内容生成。
描述
Refs #1686
Background
This is the one #1686 acceptance criterion that cannot run on the CUDA host where the rest was finished: "A profile at 64 and at 2048 prompt tokens on qwen2.5-vl-3b-4bit attributes the extra per-token cost to these specific code paths rather than asserting it, and is recorded under docs/benchmark_results/."
The three #1686 changes have landed: repeat_kv removed from qwen2_vl, qwen3_vl, and qwen3_vl_moe; mask skipped at seq_len 1; MRoPE cos/sin built once per forward (qwen3 hoist in PR #3545). Commit 5946fa58 recorded the M5 Max curve, in its message only: 169.83 / 170.71 / 163.45 / 155.77 tok/s at 64 / 128 / 512 / 2048 (falloff 8.3%, was 40.3%). mlx-lm falls 9 to 11%.
Task
On an M5 Max, cargo build --release --features metal,accelerate, then profile decode at prompt 64 and 2048 with scripts/capture_m5_metal_trace.sh or Instruments. Attribute where per-token cost grows with context. If the residual is structural (KV read growth), say so with the numbers.
Acceptance Criteria
- A profile record with per-kernel timings at both lengths exists under
docs/benchmark_results/. -
docs/benchmark_results/model_tests_m5max.mdlinks to it.
- 主要语言
- Rust
- 星标
- 505
- 派生
- 81
- 平均合并
- 14 小时 2 分钟
- 30 天内合并 PR
- 448
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
lablup/mlxcel 的其他 Issue
-
area:core priority:high status:ready type:security
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
priority:medium status:ready type:security
难度 4/5 3-5 天 新手友好度 45/100
维护者通常 1 天内回复
-
area:models modeltype:text priority:medium status:in-progress type:bug
难度 4/5 3-5 天 新手友好度 57/100
维护者通常 1 天内回复
-
area:models priority:low status:ready type:test
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
area:models modeltype:omni priority:medium status:ready type:bug
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
相似的 Issue
-
area:ui effort:medium enhancement P7 source:agent
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
marketing
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
documentation priority: low tech-debt
难度 2/5 1-3 小时 新手友好度 64/100
nledford/Ladderback#1823 ·
维护者通常 1 天内回复
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)可能已有人在做 @ealwanlee 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
psmux/psmux-plugins#47 ·
-
bug
难度 2/5 1-3 小时 新手友好度 87/100
维护者通常 1 天内回复