News for hackers. Stuff that matters.
Re:Decorator JITs: Python as a DSL by Scene_Cast2 on Monday February 03, 2025 @10:34AM (#42919195)
If this is the way forward, I'd love for a better developer experience.

I'm currently wrangling with pytorch.compile (flex attention doesn't like bias terms - see issues 145869 and 144511 if curious). As much as I love speed and optimization, JIT (at least the pytorch flavor) currently has weird return types that break VS Code's intellisense, weird stack traces, limitations around printing, and random issues like the bias term, and limitations such as not supporting sparsity.

Speaking of pytorch JIT workflows - what's a nice way of having a flag to turn off compilation?

Re:Decorator JITs: Python as a DSL by dleeftink on Monday February 03, 2025 @11:12AM (#42919681)
> random issues like the bias term

I'd like to know more about this!

Re:Decorator JITs: Python as a DSL by Scene_Cast2 on Monday February 03, 2025 @02:45PM (#42922016)
Re:Decorator JITs: Python as a DSL by singhrac on Monday February 03, 2025 @03:20PM (#42922477)
You can decorate a function with @torch.compiler.disable() to disable a specific function (and anything further down the call stack).