You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cuda : a gemm input is converted to F16 for every mat-mul that reads it #126
A prompt batch through the F16 gemm path converts the F32 input of every mat-mul to F16, also when the mat-muls of a layer read the same input: Q / K / V, gate / up, and the four projections of a delta net layer (attn_qkv, ssm_alpha, ssm_beta, attn_gate).
Kernel trace of Ornith 1.5 9B Q4_K_M at ubatch 512 on an RX 7900 XT (rocprofv3): 245 gemms per batch, 490 convert_unary_cont_vec4 launches (input and output of each), 18.2 us each, 8.9 ms of 160 ms kernel time. About 120 of the 245 input conversions repeat the conversion of the mat-mul before.
Activity