Merge f-quants (945fee23) into f-qwen36: the K-quant CPU pool rows, libstrata_kq, the K-quant GEMV work
This commit is contained in:
commit
3e11f786af
30 files changed
+2113
-126
No files matched your search
@@ -0,0 +1,30 @@
|
||||
// include/strata/prefill/mmq_kq_abi.hpp - the interface between the engine (src/prefill/moe_mmq.cu) and strata_kq, the
|
||||
// shared library with the K-quant MMQ prompt kernels (src/prefill/mmq_kq_lib.cu). Bump the version when a function's
|
||||
// meaning changes; the argument block (ggml's mmq_args) is checked by its size.
|
||||
#pragma once
|
||||
|
||||
#define STRATA_KQ_ABI_VERSION 1
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define STRATA_KQ_LIB_NAME "strata_kq.dll"
|
||||
#else
|
||||
#define STRATA_KQ_LIB_NAME "libstrata_kq.so"
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
typedef int (*strata_kq_abi_fn)();
|
||||
typedef int (*strata_kq_init_fn)(int device);
|
||||
typedef int (*strata_kq_run_fn)(int device, int ggml_type, const void* mmq_args, void* stream);
|
||||
}
|
||||
|
||||
// the engine's side (src/prefill/mmq_kq_loader.cpp)
|
||||
namespace strata::prefill::mmq::kq {
|
||||
/// STRATA_MMQ_KQ=1: the K-quant experts' prompt products through MMQ (opt-in: other rounding than the FP16 path).
|
||||
bool wanted();
|
||||
/// wanted() and the library is open and started on every GPU (the first call opens it and says what happened).
|
||||
bool available();
|
||||
/// One product on the current GPU: 0 = launched, else an error (-1: no library or not this type).
|
||||
int run(int ggml_type, const void* mmq_args, void* stream);
|
||||
/// sizeof(mmq_args) on the engine's side (moe_mmq.cu), checked against the library's.
|
||||
int abi_args_size();
|
||||
} // namespace strata::prefill::mmq::kq
|
||||
Reference in new issue
Block a user