linear_attention#

Modules

modelopt.torch.kernels.quantization.linear_attention.decode

Fused FP32 token/replay training recurrence with state checkpoint recomputation.

modelopt.torch.kernels.quantization.linear_attention.int8

Signed narrow-range INT8 QDQ for recurrent-state tiles.

Linear-attention kernels for quantization.

fla_chunk_delta_h.py and fla_chunk_gated_delta_rule.py are adapted copies of the chunked GatedDeltaNet kernels of flash-linear-attention (fla.ops.common.chunk_delta_h and fla.ops.gated_delta_rule.chunk) that can fake-quantize the recurrent state carried between chunks to FP8 (state_qdq). They still import the surrounding fla operators, so fla-core==0.5.1 and Triton must be installed to use them. This package initializer does not import the kernels, so importing it needs neither.