iree: [compiler] Llama 8b fp8 fails to compile
What happened?
Llama 8b fp8 compile hangs for > 6 hours on shark-ai nightly, since 3.4.0rc20250401 IREE version at commit 884a518b22589dde31650f6c407a72469b961b58.
Steps to reproduce your issue
- Get mlir - https://gist.github.com/archana-ramalingam/914480309ec6c4660338b02b84b37b95
- Build IREE at 884a518b22589dde31650f6c407a72469b961b58
- Compile:
../iree-build/tools/iree-compile fp8.mlir \
--iree-hal-target-device=hip \
--iree-hip-target=gfx942 \
-o=fp8.vmfb \
--iree-opt-level=O3 \
--iree-hal-indirect-command-buffers=true \
--iree-stream-resource-memory-model=discrete \
--iree-hal-memoization=true
- Compile hangs without progress.
What component(s) does this issue relate to?
Compiler
Version information
884a518b22589dde31650f6c407a72469b961b58
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 32 (32 by maintainers)
Commits related to this issue
- [sharktank] Xfail hanging fp8 nightly CIs (#1255) fp8 compile is hanging for hours and has other compile errors in previous IREE versions. Filed issue for hanging issue [here](https://github.com/iree... — committed to nod-ai/shark-ai by archana-ramalingam 2 years ago
- [BlockDynamicDimensions] Add tensor bubbling patterns (#20588) Allows bubbling collapse/expand shape ops to better propagate blocked dynamic dimensions. Half of the fix for https://github.com/iree-o... — committed to iree-org/iree by IanWood1 2 years ago
- [BlockDynamicDimensions] Add tensor bubbling patterns (#20588) Allows bubbling collapse/expand shape ops to better propagate blocked dynamic dimensions. Half of the fix for https://github.com/iree-o... — committed to KyleHerndon/iree by IanWood1 2 years ago
@MaheshRavishankar the mismatch was I originally was compiling with the following command and hit the above listed error
Using the commands from @pashu123 /the original issue, I was also able to compile without error
In triaging which of the added flags I was missing that reconciled the error, I found it was this one.
@IanWood1 Could you try this patch: https://github.com/iree-org/iree/pull/20585/files
@IanWood1 try to add that pattern to the pass and see if it helps. If it does I’ll land it
@hanhanW no this isn’t expected. It was probably introduced after forming dispatches, I’ll see if I can track down where It came from
@kuhar can you take a look. I am away today.