Repository navigation
Replies: 4 comments 2 replies
|
Thanks for writing this up @Geramy, I hope it will set us up for success and good communications in getting these patches merged. |
0 replies
|
Shouldn't 1-5 be one PR? i.e. it introduces a HIP profiler? |
2 replies
|
@Geramy Thanks a lot for your help! These profiling updates have provided tremendous insights on guiding our model optimization effort. Hopefully fellow community developers will also find them useful. |
0 replies
|
An continuation discussion 2 of 6 - @jimw567 @jeremyfowers @am17an |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
AMD PR Set 1 of 6 — Review and Summarization
Johannes, below is a group of related patches from AMD intended to optimize a set of high-priority models on the ROCm backend.
I've grouped these together — from a larger set of 25 patches — to hopefully make your job easier in reviewing them, and I've provided a short summary for each.
These PR numbers (
#33,#48, etc.) refer to the AMD team's downstream fork atAMD-Ecosystem/llama.cpp, where this work landed first; the goal is to bring it upstream in reviewable batches.This first group is tooling: it improves per-op profiling and roofline (bandwidth vs. compute) accounting on the HIP/ROCm backend.
It's all off-by-default and HIP-specific, so it has no effect on other backends or on a default build.
1. Instrumentation and Profiling PRs (Roofline) — HIP-Specific
GGML_HIP_ROOFLINEand at runtime withGGML_ROOFLINE_OUT=<path.json>. This is the base the rest of the group builds on.(byte count, storage id, source id)so the consumer owns the exclusion policy. Fixes double-counting of KV-cache writes.experts_usedper launch so the consumer stops over-counting MoE HBM traffic — it was producing impossible readings prior.#33profiler intollama-mtmd-cliso the VLM report is prefill-only (vision encode + text prompt), warmup excluded.We have noticed that in the past some PRs for profiling hooks have been rejected, so we'd like your guidance on the best way to proceed with this subject of PR.
Discussions:
AMD PR Set 1 of 6 — Tooling and Profiling modifications and additions
AMD PR Set 2 of 6 — MMQ and MoE - MatMul Optimizations
AMD PR Set 3 of 6 — Flash Attention Optimization RDNA3.5
AMD PR Set 4 of 6 Matvec and Fusion Decode Optimizations
AMD PR Set 5 of 6 — GEMM Prefill Weight Optimizations
AMD PR Set 6 of 6 - Layout and Concurrency Optimizations
All reactions