MCPcopy Create free account
hub / github.com/antirez/ds4 / routed_expert_row_bytes

Function routed_expert_row_bytes

ds4.c:3243–3246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3241static void dsv4_fp8_kv_quantize_row_inplace_cpu(float *x, uint32_t head_dim, uint32_t n_rot) {
3242 const uint32_t n_nope = head_dim - n_rot;
3243 for (uint32_t off = 0; off < n_nope; off += 64) {
3244 float amax = 0.0f;
3245 for (uint32_t i = 0; i < 64; i++) {
3246 const float av = fabsf(x[off + i]);
3247 if (av > amax) amax = av;
3248 }
3249

Calls 2

ds4_dieFunction · 0.85

Tested by

no test coverage detected