Skip to content

v0.6.1

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 20:03
· 11 commits to main since this release
d753aa9

What's Changed

  • [Attn] Add optional FP32 output to parallel attention by @yzhangcs in #1581
  • [Fix] Avoid misaligned score loads in GLA chunk output by @yzhangcs in #1582
  • [Docs] Require representative test cases by @yzhangcs in #1587
  • [Fix] Keep momentum delta rule chunk masks stable for small mu by @arcusbuilds in #1583
  • [Ops] Add Triton-Ascend backend for Wall attention by @wangzhao-11a in #1529
  • [Test] Pass attention_mask in cache guard tests by @zhiyuan1i in #1596
  • [Fix] Read the pre-decay state in naive_recurrent_comba by @flyingdoubleG in #1577
  • [Fix] Honor indexed recurrent KDA state storage by @ZenAlexa in #1414
  • [Fix] Keep MesaNet backward accurate for small upstream gradients by @Zhubaoheng in #1410
  • [Perf] Reduce over the lengths to find the longest packed sequence by @Windyskr in #1532
  • [Attn] Support KV-cache decoding in stick-breaking attention by @harshithkantamneni in #1412
  • [Fix] Preserve RWKV7 addcmul batch stride across segments by @taking-lying-flat in #1559
  • [Perf] Avoid zero-filling dense recurrent KDA outputs by @ZenAlexa in #1416
  • [Perf] Tune recurrent KDA value tiling by @ZenAlexa in #1415
  • [Perf] Reuse CyFA clock totals instead of extra reductions by @0515wlx in #1595
  • [Fix] Reject float32 in the TileLang attention backend (fwd+bwd) by @maxli0182 in #1591
  • [Perf] Select MoBA gate chunks without a strided top-k by @Windyskr in #1601
  • [Model] Add MemoryAttention by @Joluck in #1603
  • [Fix] Restore zigzag CP states before DPLR backward recomputation by @taking-lying-flat in #1576
  • [Ops] Add Triton-Ascend backend for gated Oja rule fused recurrent by @zhudada0120 in #1489
  • [Fix] Avoid fp16-overflow NaNs in TTT fused-chunk eta gradient by @siyudong-syd in #1597
  • [Fix] Stabilize saturated KDA gate gradients by @zhiyuan1i in #1607
  • [Fix] Support CyFA FP32 backward on SM100 by @bbrianxiao in #1600
  • [Ops] Add Triadic Gated DeltaNet reference implementation by @ischencheng in #1406
  • [GKA] Add Gated KalmaNet op, layer, and model by @elvisnunez7 in #1421
  • [Perf] Use BV=16 in the GDN fused_recurrent forward on Hopper by @Rockyeast in #1609
  • [Fix] Size the default beta of Comba, gated Oja and precond GDN recurrent ops by value heads by @Rockyeast in #1610
  • [Perf] Bucket L2Norm autotuning by powers of two of the row count by @eilamc14 in #1615
  • [Fix] Size the default beta of the GDN fused_recurrent op by value heads by @flyingdoubleG in #1618
  • [Fix] Reject GVA inputs in chunk_gated_oja_rule by @flyingdoubleG in #1619
  • [Fix] Walk the forward's chunks in the DeltaFormer backward when T is not a multiple of C by @flyingdoubleG in #1620
  • [Test] Pass test_based inputs in the layout the ops take and check every dtype by @flyingdoubleG in #1621
  • [Fix] Read the last valid row's normalizer for the final ABC state by @flyingdoubleG in #1627
  • [Fix] Allow single-layer RWKV-7 models by @flyingdoubleG in #1629
  • [Model] Add Gated Slot Attention 2 (GSA2) with the Oja2 operator by @ReyJerry in #1403
  • [Refactor] Register attention backends with per-entry selection policies by @yzhangcs in #1633
  • [Docs] Guide Gluon kernel execution design by @yzhangcs in #1641
  • [Refactor] Register delta-rule backends directly by @yzhangcs in #1632
  • [Ops] Add naive HC references and formulation by @yzhangcs in #1642
  • [Perf] Use BV=16 in the KDA fused_recurrent forward on Hopper by @Rockyeast in #1624
  • [Refactor] Register shared and GLA backend stages directly by @yzhangcs in #1534
  • [Perf] Use BV=16 in the Comba, DeltaNet and preconditioned GDN fused_recurrent forwards on Hopper by @Rockyeast in #1635
  • [Fix] Keep LongConvolution causal when seq_len is shorter than max_len by @flyingdoubleG in #1626
  • [Refactor] Register KDA backend stages directly by @yzhangcs in #1636
  • [Ops] Add fused HC primitives for iHC and mHC by @yzhangcs in #1519
  • [Refactor] Register GDN2 backend stages directly by @yzhangcs in #1637
  • [Fix] Handle RWKV7 expanded value width by @taking-lying-flat in #1604
  • [Fix] Correct PaTH dV base stride by @taking-lying-flat in #1612
  • [Test] Focus dispatch tests on backend contracts by @yzhangcs in #1644
  • [Refactor] Simplify Ascend KDA recurrent state and launch handling by @yzhangcs in #1646
  • [Fix] Use unit KDA gate scale when A_log is omitted by @yzhangcs in #1442
  • [Ops] Add triton-ascend backend for Precond KDA kernels by @zhudada0120 in #1541
  • [Test] Fix long conv test failures on Ascend from negative unfold dim by @zhudada0120 in #1647
  • [CI] Cache KDA benchmarks and A2 pytest kernels by @FightingZhen in #1599
  • [Test] Cover token_shift cache initialization by @fleeb83 in #1420
  • [Ops] Add Triton-Ascend backend for TTT kernel by @zhudada0120 in #1553
  • [CP] Add KDA context parallel on NPU by @2313247981 in #1558
  • [Perf] Eliminate log-linear level transfers and parallelize recurrent work by @ZenAlexa in #1413
  • [Conv] Add dynamic short convolution by @yzhangcs in #1671
  • [Module] Add GroupLinear for independent feature projections by @yzhangcs in #1682
  • [CI] Select affected module tests for Ascend PRs by @yzhangcs in #1685
  • [Refactor] Add Standard and AttnRes residual modules by @feiyunzhang in #1645
  • [Refactor] Migrate additional 10 models to FLAModel by @feiyunzhang in #1666
  • [Perf] Avoid CyFA fused backward spills on SM8x by @0515wlx in #1592
  • [Fix] Avoid int32 overflow in causal_conv1d channel offsets by @wade-twelvelabs in #1659
  • [Fix] Require Triton 3.5 for the Gluon backend so fla imports on Triton 3.4 by @andrewliu2001 in #1664
  • [Docs] Fix recurrent GDN example call signatures by @hutiehua-1 in #1584
  • [Fix] Replace make_block_ptr in Ascend kernels with explicit offsets by @sunyi0505 in #1424
  • [CI] Extend context-parallel support on triton-ascend by @zheliuyu in #1708
  • [CI] Replace automatic accelerator pipelines with agent-selected tests by @zhiyuan1i in #1716
  • [Fix] Backpropagate the final and initial states in chunk_hgrn by @flyingdoubleG in #1630
  • [Fix] Honor fuse_norm in Samba, MoM, and LogLinearMamba2 by @feiyunzhang in #1715
  • [CI] Run Ascend A2 tests in parallel by @sunyi0505 in #1719
  • [Docs] Add software health index badge by @Nayjest in #1520
  • [Ops] Add FP32-to-BF16 stochastic rounding by @yzhangcs in #1722
  • [CI] Allow the scripts suite on Ascend A2 by @zhiyuan1i in #1723
  • [Ops] Add Triton-Ascend backend support for momentum delta rule by @TecJesh in #1491
  • [Fix] Keep fla importable on Triton 3.4 (PyTorch 2.8) by @fleeb83 in #1662
  • [Perf] Avoid clearing overwritten fused KL outputs by @ZenAlexa in #1717
  • [Ops] Add GDN-2 Ascend WY recompute and compiler compatibility (stack 1/4) by @hazelduan in #1606
  • [Fix] Pin fwd_h num_warps=2 on Blackwell to avoid ungated miscompile by @YYuJLiu in #1658
  • [Ops] Add chunk kernels for Triadic Gated DeltaNet by @ischencheng in #1625
  • [Fix] Keep MoM tokens in time order within each memory by @flyingdoubleG in #1628
  • [Perf] Optimize Ascend preconditioned GDN kernels by @sunyi0505 in #1718
  • [Fix] Bound CyFA FP32 fused backward tile on GPUs below A100 shared memory by @andrewliu2001 in #1639
  • [Ops] Align chunk state outputs for GLA, GDN and KDA by @yzhangcs in #1731
  • [CI] Add H100 runner cache maintenance by @zhiyuan1i in #1741
  • [GSA] Support value-first recurrent states by @yzhangcs in #1743
  • [Fix] Correct inverted SKIP_TEST_CHUNK_VARLEN skipif conditions in rwkv7 and path_attn tests by @fla-agent-reviewer[bot] in #1744
  • [CI] Add an Ascend 950 workflow by @zheliuyu in #1738
  • [Ops] Add Triadic KDA reference implementation by @GouBuliya in #1746
  • [Ops] Add Triton-Ascend backend for Parallax by @zhudada0120 in #1709
  • [Modules] Add zero-centered weights to RMSNorm by @flyingdoubleG in #1699
  • [CI] Run verified simple_gla, cache, and GDP tests on Ascend A2 by @zheliuyu in #1779
  • [Perf] Improve chunk_kda performance on Ascend NPU by @Ginray in #1707
  • [CI] Expand targeted A5 test catalog by @zhiyuan1i in #1799
  • [CI] Run 13 NPU-verified ops kernels on Ascend A2 by @zhudada0120 in #1798
  • [Fix] Keep the chunked ATK final state in FP32 by @a9lim in #1579
  • [CI] Expand 950 coverage from the validated A2 baseline by @zqwenn in #1806
  • [Fix] Rearrange dy to 3D in causal_conv1d_bwd when x.ndim > 3 by @shatianming5 in #1661
  • [Fix] Exclude padded lanes from LayerNorm activation quantization by @taking-lying-flat in #1668
  • [Attention] Support partial rotary embeddings and an output projection bias by @flyingdoubleG in #1686
  • [GDN] Add inplace_final_state to fused_recurrent_gated_delta_rule_fwd by @andrewliu2001 in #1623
  • [Fix] Keep matmul tanh finite for saturated inputs by @wsj040303 in #1782
  • [Fix] Reject non-headwise beta in chunk Gated DeltaNet by @ZenAlexa in #1791
  • [Fix] Synchronize HGRN chunk carries across warps by @wsj040303 in #1803
  • [Test] Bound memory for the long CUDA KDA context-parallel reference by @ylwang0701 in #1824
  • [Test] Add KDA collinear-key L2Norm stress and fused varlen training tests by @Skystellan in #1828
  • [CI] Run remaining agent CI targets and dispatch legs after a failure by @fla-agent-reviewer[bot] in #1835
  • [Fix] Bucket layernorm autotune NB key by powers of two by @fla-agent-reviewer[bot] in #1800
  • [Fix] Reject >3D inputs in forward for the mix causal-conv1d backend by @fla-agent-reviewer[bot] in #1745
  • [CI] switch Ascend CI images to Huawei Cloud SWR by @sunyi0505 in #1841
  • [Fix] Apply NSA compression delta once by @taking-lying-flat in #1613
  • [Fix] Preserve vector beta gradients in recurrent Delta Rule by @taking-lying-flat in #1655
  • [Fix] Correct prepare_sequence_ids for zero-length sequences by @YuvrajSinghBhadoria2 in #1837
  • [Fix] Mask the g_gamma decay past the end of a partial chunk by @flyingdoubleG in #1631
  • [Perf] Compose CP transition matrices in row strips for K > 64 by @NuojCheng in #1752
  • [Misc] Recommend Triton 3.9.0 on Hopper and Blackwell by @zhiyuan1i in #1850
  • [Perf] Reuse chunk metadata for graph-capturable state allocation by @ZenAlexa in #1418
  • [Fix] Evaluate normalizer in FP32 to prevent float16 gradient overflow (#1765) by @shotsan in #1849
  • [Perf] One-line change: skip zero-filling o in chunk_gla_fwd_o_gk for non-varlen calls (~2.5 % faster chunk forward) by @yekerr in #1825
  • [Fix] Preserve the autocast output dtype in biased GroupLinear by @Ruihan11 in #1847
  • [Perf] Reuse L2Norm autotuning across packed row counts by @Aphelios183 in #1795
  • [Fix] Validate GVA head counts in recurrent GDN by @Ruihan11 in #1851
  • [CP] Enable GDN2 context-parallel tests on Ascend by @hazelduan in #1740
  • [Fix] Return per-batch RWKV7 channel state by @taking-lying-flat in #1648
  • [Fix] Cast b_h and b_dh to fp32 before summing into b_dg_last in chunk_o by @onezero-harmony in #1853
  • [Fix] Preserve KDA graph gradients across calls and replays by @taking-lying-flat in #1854
  • [Perf] Stop parallel DeltaFormer from re-tuning for every new sequence length by @Windyskr in #1650
  • [Perf] Stop chunk_abc from recompiling for every new sequence length by @Windyskr in #1856
  • [Perf] Tune BK/BV block sizes in KDA recompute_w_u_fwd_kda_kernel by @yzhangcs in #1857
  • [Perf] Stop the NSA backward from recompiling for every new block count by @Windyskr in #1858
  • [Fix] Bound CyFA recurrent readout cache lifetime by @taking-lying-flat in #1860
  • [Fix] Preserve sequence boundaries in intra-card CP pre-scan by @taking-lying-flat in #1667
  • [Fix] Upcast low-precision reductions to fp32 in chunk GKA solve kernels by @Hilbert0Ron0Anjou in #1863
  • [Ops] Add Triton Ascend backend support for GKA by @sunyi0505 in #1840
  • [Perf] Reuse log-linear backward compilation across chunk counts by @YYuJLiu in #1864
  • [Perf] Skip empty tiles in packed log-linear backward by @YYuJLiu in #1866
  • [Perf] Add 8-warp autotune and in-place dh update in chunk_gated_delta_rule_bwd_dhu by @yzhangcs in #1861
  • [Perf] Use BK=64 and deduplicate safe_gate diagonal in chunk_kda_bwd_intra by @yzhangcs in #1869
  • [Perf] Add disable_recompute to chunk GDN by @Ruihan11 in #1872
  • [Fix] Fit fp32 keys wider than 128 in the GDN backward on Ampere by @Windyskr in #1873
  • [Fix] Stop the CyFA backward from faulting on A100 with 16-bit packed inputs by @Windyskr in #1862
  • [Fix] Preserve FP32 numerator and denominator before Based normalization by @shotsan in #1839
  • [Fix] Keep all ranks in the KDA CP benchmark profiling loop by @ylwang0701 in #1823
  • [Fix] Prevent fp16 gradient underflow and -inf NaN in FusedKLDivLoss by @Hilbert0Ron0Anjou in #1867
  • [Fix] Mark parallel_simple_gla returned attn as non-differentiable by @KitKyoD in #1818
  • [Fix] Avoid NaN gradients from Wall attention query tails by @taking-lying-flat in #1657
  • [Perf] Use implicit adjoint WY in chunk_kda_bwd_wy_dqkg_fused by @yzhangcs in #1870
  • [Perf] Reuse gated norm compilation across row buckets by @wangzhxg in #1852
  • [Perf] Give back the GPU memory that autotune candidates leave reserved by @Windyskr in #1868
  • [Perf] Interleave gate decay and widen BV/warp autotuning in chunk_gated_delta_rule_fwd_h by @yzhangcs in #1875
  • [Perf] Lift the ptxas register cap from three backward kernels by @Windyskr in #1874
  • [Perf] Lift the ptxas register cap from the log-linear dq/dg backward by @Windyskr in #1881
  • [Perf] Unify 3D/4D chunk gate cumsum and fuse backward by @yzhangcs in #1880
  • [Perf] Add recursive block doubling and precision options to solve_tril by @yzhangcs in #1889
  • [Fix] Preserve saved gradients across repeated backward in FusedKLDivLoss by @archidoge0 in #1883
  • [Perf] Reduce temporary allocations in Based backward by @galleonli in #1876
  • [Perf] Lift the ptxas register cap from the MesaNet kv intra backward by @Windyskr in #1887
  • [Fix] Pass self.bias in BitLinear.forward by @archidoge0 in #1900
  • [Fix] Default inplace=False in channel_mixing_rwkv7 to avoid mutating inputs in backward by @archidoge0 in #1899
  • [Fix] adaptation of Causal Conv1D for the Ascend 950DT platform by @hidooonWuu in #1754
  • [Fix] Include packaging in fla-core base dependencies by @yzhangcs in #1902
  • [Docs] Clarify naming restraint and Triton kernel conventions by @yzhangcs in #1903
  • [Docs] Document FLA_FLASH_QLA and drop stale fla/utils.py ruff ignore by @yzhangcs in #1905
  • [Fix] Scope setup.py packages to fla and expose tilelang/conv1d extras on fla-core by @yzhangcs in #1906
  • [Fix] Preserve FP32 range in the FP16 GKA Frobenius estimate by @fla-agent-reviewer[bot] in #1891
  • [Fix] Keep linear attention numerator in float32 before normalization by @fla-agent-reviewer[bot] in #1892
  • [Fix] Restore ops exports, parallel delta rule import, and FlashQLA signature by @yzhangcs in #1908
  • [Ops] Rename stickbreaking_attn_decoding to parallel_stickbreaking_attn_decoding by @yzhangcs in #1909
  • [Fix] Use canonical fla.modules.norm imports in fla.ops by @yzhangcs in #1910
  • [Fix] Move pad_input and unpad_input to fla.ops.utils for fla-core by @yzhangcs in #1907
  • [Perf] Use hierarchical 32x32 kernels for KDA forward intra-chunk solve by @yzhangcs in #1885
  • [KDA] Widen state product to fp32 in fused WY backward gate gradient by @seanbell in #1815
  • [Fix] Preserve past_key_values in generation for transformers >= 5.24 by @yzhangcs in #1914
  • [Fix] Do not remap CPU fallback device to CUDA without CUDA by @Ganto12 in #1886
  • [Docs] Move health badge to Installation and unify flat-square style by @yzhangcs in #1917
  • [Perf] Stop masked cached decoding from syncing the host once per sequence by @Windyskr in #1859
  • [Test] Trim redundant generation cache test cases from #1914 by @yzhangcs in #1920
  • [Fix] Guard autotune do_bench forwarding on Triton 3.3 by @yzhangcs in #1919
  • [Perf] Update dq, dk, dg in-place in chunk_kda_bwd_intra by @yzhangcs in #1912
  • [CI] Add split-package compatibility workflow and bidirectional fla.ops import checks by @yzhangcs in #1915
  • [Refactor] Remove legacy 0.5.2 fla.modules aliases and migrate internal imports by @yzhangcs in #1922
  • [CP] Fix int32 pointer overflows, Blackwell warp guard, and graph/CPU-index forwarding by @yzhangcs in #1911
  • [Perf] Unify [64, BV] state accumulators for state_v_first in chunk_delta_h by @yzhangcs in #1921
  • [Perf] Eliminate b_dw and b_A @ b_dw via dvb reuse in KDA WY backward by @yzhangcs in #1913
  • [Fix] Preserve group index across row chunks in Ascend GroupNorm by @yzhangcs in #1918
  • [Perf] Merge non-safe diagonal loop and fuse dq/dk cast in chunk_kda_bwd_intra by @yzhangcs in #1924
  • [Fix] Use autotune_cache_kwargs in fused HC Triton kernels by @yzhangcs in #1929
  • [CI] Harden release workflow, migrate PEP 639 license, and fix split-package smoke test by @yzhangcs in #1925
  • [Fix] Guard Blackwell autotune num_warps in chunk_delta_h, CP, GDN2, and Precond KDA backward by @yzhangcs in #1926
  • [Fix] Allocate dg with g.dtype in layer_norm_gated_bwd by @yzhangcs in #1930
  • [Fix] Resize MemoryAttention m_proj in resize_token_embeddings by @yzhangcs in #1933
  • [Fix] Mask graph-padding rows in Ascend chunk_gate_cumsum_bwd by @yzhangcs in #1931
  • [Refactor] Align MemoryAttention implementation and tests with FLA conventions by @yzhangcs in #1934
  • [Fix] Exclude pre-Ampere GPUs from bf16x3 dot precision by @yzhangcs in #1927
  • [Fix] Avoid overwriting hidden_states in-place in fused_addcmul_rwkv7 backward by @archidoge0 in #1898
  • [Bug] Preserve MoM convolution cache on short continuations by @Ruihan11 in #1879
  • [Perf] Fuse GDN WY+dqkwg backward and optimize forward kkt_solve by @yzhangcs in #1932
  • [Fix] Ascend varlen bwd grid windowing mis-indexes packed chunk state rows by @fla-agent-reviewer[bot] in #1834
  • [CI] Automate release PR publishing and enforce version guards by @yzhangcs in #1938
  • [Perf] Split safe_gate kernel and reorder loops in chunk_kda_bwd_intra by @yzhangcs in #1937
  • [Test] Trim redundant cases in KDA, GDN, and recent regression tests by @yzhangcs in #1935
  • [Fix] Support maskless cached decoding in ForgettingAttention by @fla-agent-reviewer[bot] in #1941
  • [Perf] Stop the fused HC kernels from re-tuning for every new token count by @Windyskr in #1649
  • [Perf] Avoid CyFA QKV weight packing during single-token inference by @taking-lying-flat in #1888
  • [Fix] Prune racing Hopper wgmma configs in fused GDN backward when V > BV by @fla-agent-reviewer[bot] in #1943
  • [Fix] Avoid global dv reload and restore wgmma pipeline in KDA WY backward when V > BV by @fla-agent-reviewer[bot] in #1944
  • [Perf] Avoid host index transfers when saving zigzag CP states by @tang-t21 in #1680
  • [Fix] Preserve fp32 decay-gradient cancellation by @ZenAlexa in #1822
  • [GDN] Support graph capture for the varlen chunk forward by @shreygupta2809 in #1936
  • [Fix] Preserve FP32 numerator and denominator before ReBased normalization by @fla-agent-reviewer[bot] in #1843
  • [Perf] Restore Blackwell num_warps in chunk_delta_h and CP backward and version-gate forward guards by @yzhangcs in #1940
  • [Fix] Support Triton 3.9 async loads in AttnRes Gluon by @rardz in #1948
  • [Test] Normalize reference q and k in fp32 in KDA tests by @yzhangcs in #1949
  • [Refactor] Organize KDA chunk kernels by forward/backward stage by @yzhangcs in #1951
  • [Refactor] Organize Gated DeltaNet chunk kernels by forward/backward stage by @yzhangcs in #1953
  • [Refactor] Organize Gated DeltaProduct chunk kernels by forward/backward stage by @yzhangcs in #1954
  • [Refactor] Organize GDN-2 chunk kernels by forward/backward stage by @yzhangcs in #1955
  • [Fix] stabilize tied-gate gradients in fp16 small-key test by @sunyi0505 in #1958
  • [Ops] Support out= and inplace_final_state in fused_recurrent decode ops by @zhiyuan1i in #1808
  • [Perf] Add shape-aware chunk kernel fusions for KDA by @yzhangcs in #1947
  • [FLA] Release v0.6.1 by @yzhangcs in #1950

New Contributors

Full Changelog: v0.6.0...v0.6.1