Skip to content

FlashQLA v0.1.4

Latest

Choose a tag to compare

@Starmys Starmys released this 25 Nov 15:14

FlashQLA v0.1.4

πŸš€ Highlights

  • FP32 / TF32x3 cross-partition correction by @Erix025 β€” the inter-card h0 / dht fold now reads the gathered (h, M) buffers through slot maps (no unpack/reindex materialised), and picks FP32 or 3-pass TF32 correction at runtime from a wave-aware heuristic.

  • Dual CP on SM120 / SM121 by @caijiqq β€” combined inter- + intra-card CP for forward and backward on consumer Blackwell, via a new aggregate_card_state / aggregate_m pair.

  • ZigZag inter-card CP layout by @jundaf2 β€” rank r can own chunks r and 2Β·cpβˆ’1βˆ’r of each document, matching the placement the attention layers use, with no TileLang kernel changes.

πŸ› οΈ Additional Improvements

  • Faster KKT solve β€” 8Γ—8 diagonal-block substitution with merged FP16 MMA and an FP32 recursion, shared by Hopper and Blackwell; follows FlashInfer's blockwise inverse, reimplemented independently in TileLang.
  • Explicit warmup β€” flash_qla.warmup(...) precompiles every static-arg combination into the TileLang JIT cache.
  • Simpler CP API β€” build_cp_context enables inter/intra by default, takes zigzag=, and its context is reused across ..._fwd / ..._bwd; prepare_varlen_metadata can precompute it for CUDA-graph-safe reuse.
  • SM120 fixes β€” block_DV=64 and a __threadfence_block to stop nvcc hoisting g_exp_shared (@Silhouette-my, #55); the backward barrier now orders the dV store before K reuses dqkv_shared.
  • AutoCP β€” SM90/SM100 coefficients refitted for the new kernels, new sm120.csv, benchmark cases moved to the Qwen3.8 mix.
  • Tech Report β€” added the tech report for Auto-CP and Dual-CP details.

πŸ“Š Benchmarks

πŸ™ Acknowledgements

Special thanks to @Erix025, @minatoyukinaa, @caijiqq, @jundaf2 and @Silhouette-my for their contributions, and to all community members for their valuable feedback. We welcome your continued participation through issues and pull requests.