# PyTorch details TLX.ops kernels for workload-specific GPU tuning

Published 2026-12-01 · AI.info Team · AI.info

> TLX.ops collects architecture-specific GPU kernels for operations including matrix multiplication, attention and normalization. PyTorch reports up to 1.4 times speedup over vendor libraries for the demonstrated matrix multiplication kernels.

TLX.ops brings architecture-specific GPU kernels into a reusable library for operations ranging from matrix multiplication to attention and normalization. In a December 1 post, [PyTorch](https://pytorch.org/blog/tlx-ops-bridging-kernel-research-and-real-world-performance/) reported that the demonstrated matrix multiplication kernels achieved up to 1.4 times the speed of vendor libraries cuBLAS and hipBLASLt.

The catalog covers general matrix multiplication, or GEMM, including low-precision and grouped variants, as well as mixture-of-experts, normalization and fused operations. The project validates correctness, performance and compilation time against lists of tensor shapes derived from real-world workloads.

## One interface, hardware-specific kernels

For machine-learning engineers, the library exposes operations such as matrix multiplication through a common interface. The FBTriton documentation says TLX.ops infers the architecture from the input tensors and dispatches the operation to the corresponding registered implementation.

Kernel engineers can use the code as a starting point for variants or contribute implementations. The documentation distinguishes kernels implemented today from selections for the rest of the catalog; the latter should not be read as a list of completed implementations.

PyTorch also describes plans to keep the source code structurally consistent for agents that write kernels. A separate effort called TLX-agents is to be covered in a future post.

## Tuning for shapes and hardware

The PyTorch post walks through five kernels: four GEMMs and a LayerNorm, targeting [NVIDIA](https://ai.info/companies/nvidia) Hopper and Blackwell and AMD MI300x and MI350x GPUs. The examples show how implementations change with hardware capabilities and the dimensions of a workload.

For a 2-CTA FP16 matrix multiplication with dimensions 1024×12800×1152 on Blackwell, asynchronous completion signaling reduced NCU-measured duration by 2.2%, the authors report. Cluster launch control scheduling contributed another 2.1% reduction relative to its immediate baseline.

In the workload discussed in the post, 38% of shapes had fewer 128×128 output tiles than streaming multiprocessors, and most had a K dimension of at least 100,000. The post describes dividing that dimension into ranges to create more independent work, then using a second kernel to accumulate partial results in a fixed order without atomic reductions.

For AMD's MI350x, the post describes an MXFP8 GEMM kernel that divides eight waves into two groups of four. Their alternating memory and computation stages are arranged so one group's memory operations can overlap the other's matrix operations.

## Results depend on the operation

FBTriton also documents a fused operation for linear weight and bias gradients, with BF16 measurements on a B200 GPU. Its comparison times the complete output pair against an unfused PyTorch 2 baseline, with compilation and autotuning performed before timing.

The documentation reports that the fused TLX implementation was slower than the best tested baseline for two of the four listed shapes. For the largest listed shape, it reports a 1.13-times speedup in that comparison; the result is separate from the GEMM speedup highlighted in the PyTorch post.

## Sources

1. Original source · Blog post [PyTorch](https://pytorch.org/blog/tlx-ops-bridging-kernel-research-and-real-world-performance/) “TLX.ops: Bridging Kernel Research and Real-World Performance” pytorch.org

Other pages read

2. [FBTriton](https://facebookexperimental.github.io/triton/website/tlx-ops.html) “High-performance kernels” facebookexperimental.github.io

## Related stories

- [PyTorch workflow runs robot policies with TensorRT without PyTorch](https://ai.info/news/pytorch-executorch-tensorrt-robot-policies)
- [Eole starts reselling SoftBank GPU services under partnership](https://ai.info/news/eole-softbank-ai-data-center-gpu-resale)
- [Hugging Face reports faster Inkling 2 Mini inference on one GPU](https://ai.info/news/hugging-face-inkling-2-mini-single-gpu-inference)
- [Caistro says Poros fine-tunes a 72B model on a 16 GB Mac](https://ai.info/news/poros-72b-fine-tuning-consumer-hardware)
- [NVIDIA targets materials-calculation bottlenecks with Daviator](https://ai.info/news/nvidia-daviator-gpu-bottlenecks-materials-calculations)

## Explore

[More articles](https://ai.info/news)

---

Canonical: https://ai.info/news/pytorch-tlx-ops-gpu-kernel-tuning
