For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
smallm_preshuffle_b
def smallm_preshuffle_b[b_type: DType, *, k_static: Int, warps_per_block: Int = Int(8)](dst: Pointer[Scalar[b_type], MutAnyOrigin], src: Pointer[Scalar[b_type], ImmutAnyOrigin], n: Int, ctx: DeviceContext)
Launches the one-shot weight preshuffle (run at weight-load time).
Constraints:
n % 16 == 0 and k_static % (warps_per_block * 32) == 0; both
also bind the paired matmul.