| 525 | } |
| 526 | |
| 527 | void native_quant_h(const NativeFmt& f, const float* h, void* dst) { |
| 528 | if (f.had_d) { |
| 529 | thread_local std::vector<float> tmp; |
| 530 | tmp.assign(h, h + f.n_ff); |
| 531 | hadamard_rotate(tmp.data(), (int) f.n_ff, f.had_block, f.d_signs); |
| 532 | h = tmp.data(); |
| 533 | } |
| 534 | if (act_dump().on) act_dump_record(f.layer, 1, h, f.n_ff); |
| 535 | if (q8k_avx2(f.d_act)) { q8k_quant_avx2(h, dst, f.n_ff); return; } |
| 536 | if (q8k_avx1(f.d_act)) { q8k_quant_avx1(h, dst, f.n_ff); return; } |
| 537 | traits(f.d_act).from_float(h, dst, f.n_ff); |
| 538 | } |
| 539 | |
| 540 | int native_gu_mt_min(int gu_type) { |
| 541 | // #152: from how many tokens the multi-token kernels run (ggml's vec_dot below that). The default 2 is the |
nothing calls this directly
no test coverage detected