perf(qwen_vl): profile the residual decode falloff on M5 Max at 64 and 2048 prompt tokens
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- machine-learning, performance
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 505
- Fork
- 81
- Merge medio
- 14h 2m
- PR unite (30g)
- 448
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lablup/mlxcel
-
area:core priority:high status:ready type:security
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
priority:medium status:ready type:security
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
area:models modeltype:text priority:medium status:in-progress type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
I maintainer di solito rispondono entro 1 giorno
-
area:models priority:low status:ready type:test
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
area:models modeltype:omni priority:medium status:ready type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di lablup/mlxcel
Issue simili
-
area:ui effort:medium enhancement P7 source:agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Read a requested CodeRabbit PR review's findings with `coderabbit pullrequest --show-threads`Apertadocumentation priority: low tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
nledford/Ladderback#1823 ·
I maintainer di solito rispondono entro 1 giorno
-
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)Forse già presa @ealwanlee l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
psmux/psmux-plugins#47 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
I maintainer di solito rispondono entro 1 giorno