perf(qwen_vl): profile the residual decode falloff on M5 Max at 64 and 2048 prompt tokens
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 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分
- マージ済み PR(30日)
- 448
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
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 ·
-
Link Checker Reportオープンautomated issue report
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
ratatui/awesome-ratatui#598 ·
メンテナーはふだん 1 日以内に返信
-
release
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
github/gh-aw-mcpg#17603 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
C-Bug S-Needs-Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bevyengine/bevy#26718 ·
メンテナーはふだん 2 日以内に返信