Formats cost nothing unless used: Q6_K gate/up experts in the normal build; the K-quant MMQ prompt kernels on by default, on CUDA as their own library (strata_kq) opened only for a model with these experts and STRATA_MMQ_KQ=1
This commit is contained in:
1 parent
0d3553fc8f
commit
465cd61dfb
9 files changed
+364
-77
No files matched your search
@@ -62,6 +62,9 @@
|
||||
#include "strata/core/verify.hpp"
|
||||
#include "strata/core/mtp.hpp"
|
||||
#include "strata/prefill/prefill.hpp"
|
||||
#if defined(STRATA_PREFILL_MMQ)
|
||||
#include "strata/prefill/moe_mmq.hpp"
|
||||
#endif
|
||||
#include "strata/core/native_dense.hpp"
|
||||
#include "strata/program/batch_read.hpp"
|
||||
#include "strata/program/logits_selection.hpp"
|
||||
@@ -2759,6 +2762,12 @@ int main(int argc, char** argv) {
|
||||
f.gu_type, f.d_type);
|
||||
return 1;
|
||||
}
|
||||
#if defined(STRATA_PREFILL_MMQ)
|
||||
// MODEL-UPDATE Phase 1: the K-quants' prompt kernels (STRATA_MMQ_KQ=1) are a library of their own on CUDA
|
||||
// (strata_kq): asking for the formats opens it now, before the expert cache takes the free VRAM
|
||||
(void) strata::prefill::mmq::supported(f.gu_type);
|
||||
(void) strata::prefill::mmq::supported(f.d_type);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
const bool native_pack = strata::kernels::cpu::expert_layout().native;
|
||||
|
||||
Reference in new issue
Block a user