Files
kernels/docs/source/faq.md
Daniël de Kok 6fbff7a9cb Add doc build to CI (#119)
* Add doc build to CI

* Trigger doc build

* No path scoping
2025-07-29 16:01:05 +02:00

537 B

FAQ

Why is the kernelization step needed?

In earlier versions of kernels, a layer's forward method was replaced by use_kernel_forward_from_hub and replace_kernel_forward_from_hub. The new forward would dispatch to a kernel based on the device type, whether a model was training, etc. However, this approach was fundamentally incompatible with torch.compile since it relied on data-dependent branching.

To avoid branching, we have to make dispatch decisions ahead of time, which is what the kernelize function does.