MCPcopy Create free account
hub / github.com/Niko1221/Strata / can_dequant

Function can_dequant

engine/src/quant/dequant.cpp:634–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632} // namespace
633
634bool can_dequant(Type t) noexcept {
635 switch (t) {
636 case Type::Q2_0:
637 case Type::Q4_0:
638 case Type::Q4_1:
639 case Type::Q5_0:
640 case Type::Q5_1:
641 case Type::Q8_0:
642 case Type::MXFP4:
643 case Type::NVFP4:
644 case Type::Q2_K:
645 case Type::Q3_K:
646 case Type::Q4_K:
647 case Type::Q5_K:
648 case Type::Q6_K:
649 case Type::IQ2_XXS:
650 case Type::IQ2_XS:
651 case Type::IQ2_S:
652 case Type::IQ3_XXS:
653 case Type::IQ3_S:
654 case Type::IQ1_S:
655 case Type::IQ1_M:
656 case Type::IQ4_NL:
657 case Type::IQ4_XS:
658 return true;
659 default: return false;
660 }
661}
662
663bool dequant_row(Type t, const void* src, float* dst, int64_t n) {
664 switch (t) {

Callers 2

gguf_dequant_row_f32Function · 0.50
test_dequantFunction · 0.50

Calls

no outgoing calls

Tested by 1

test_dequantFunction · 0.40