pytorch - 💡(How to fix) Fix Does torch.compile support zero dimensions?

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

[rank0]: RuntimeError: PassManager::run failed error. I tried enabling torch compile logs but apart from spamming 1M lines of text, I don't see anything more relevant as an error.

Code Example

torch.compile(compile_mode='default', compile_dynamic=None, compile_fullgraph=True,compile_backend='inductor')
RAW_BUFFERClick to expand / collapse

Hi,

I am compiling a model with

torch.compile(compile_mode='default', compile_dynamic=None, compile_fullgraph=True,compile_backend='inductor')

But it seems to fail with all of a sudden with [rank0]: RuntimeError: PassManager::run failed error.

I tried enabling torch compile logs but apart from spamming 1M lines of text, I don't see anything more relevant as an error.

The only thing I can think about is that I have pieces of my model I can disable from flags. When that happens, they produce tensors of dimensions (Batch, 0) (on purpose, so that the code is a bit easier to follow).

Could this be a problem for triton?

cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @aakhundov @coconutruben @jataylo

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

pytorch - 💡(How to fix) Fix Does torch.compile support zero dimensions?