TLDRocket
Sign in

Developer Tools

292 summarised stories about Developer Tools, each linking back to the original source. Browse all topics →

Thursday, 11 June 2026

Profiling in PyTorch (Part 2): From nn.Linear to a Fused MLP

Hugging Face Blog 1 month ago

PyTorch's profiler traces show that nn.Linear uses an optimized cuBLAS kernel (addmm) that folds bias addition into the matrix multiplication via an epilogue, eliminating the need for a separate add kernel. When torch.compile optimizes a single Linear layer, it removes only CPU dispatch overhead by pre-computing strides at compile time—the GPU kernel remains identical. In a three-layer MLP with GeGLU activation, the forward pass launches exactly five GPU kernels: three GEMMs for the linear projections plus one each for GeLU and element-wise multiplication.

How an astrophysicist uses Codex to help simulate black holes

OpenAI Blog 1 month ago

Chi-kwan Chan, an astrophysicist, uses OpenAI's Codex to develop simulations that model black hole behavior and test predictions from Einstein's general relativity. Codex accelerates the code-writing process for complex computational physics models that would otherwise require substantial manual development time. This approach enables faster iteration on black hole simulations, allowing researchers to explore extreme physics scenarios more efficiently.