Overview
A TPU implementation of the DSA attention path, developed as the foundation for a GLM-5.3 port.
Problem
Long-context model ports require attention kernels that preserve reference behavior while remaining operational at substantially longer sequence lengths.
Approach
The implementation is validated against the reference at the bit level before being exercised across progressively longer contexts.
Results & current status
- The current implementation is bit-exact against the reference through 8K tokens.
- It runs through 256K tokens.
- The kernel underpins an ongoing GLM-5.3 port, now running on TPU v4.
Technical details
The project combines JAX/Pallas kernel work, attention validation, long-context execution, and TPU numerical debugging.
Reproducibility
The implementation remains under active development. A reproducible release will follow once interfaces and validation coverage are stable.