ltx23_nf4_quantize

Quantize a tensor to NF4

Description

Quantize a tensor to NF4

Usage

ltx23_nf4_quantize(x)

Arguments

  • x: Float tensor (any shape; total elements must be a multiple of 128, i.e. two 64-element blocks - always true for the LTX linears).

Value

List with packed (uint8, two indices per byte) and absmax (float32, one per 64-element block).