pytorch / torchdynamo

A Python-level JIT compiler designed to make unmodified PyTorch programs faster.
BSD 3-Clause "New" or "Revised" License
1.01k stars 124 forks source link

torch._inductor.lowering: [WARNING] using triton random, expect difference from eager #2042

Closed vgoklani closed 1 year ago

vgoklani commented 1 year ago

🐛 Describe the bug

Can someone please explain what this error means:

torch._inductor.lowering: [WARNING] using triton random, expect difference from eager

thanks

Error logs

No response

Minified repro

No response

jansel commented 1 year ago

TorchInductor (backend for torch.compile) uses a different random number generator than non-torch.compile pytorch (eager mode).

It is safe to ignore that message and perhaps we should even lower it to an INFO. It was mainly useful for correctness internal testing.