Revert "MoE expert cache: GPU-resident LRU cache for host-offloaded expert weights"

This reverts commit 7391a178e6.
This commit is contained in:
xrip committed 2026-10-08 08:07:34 +03:00
1 parent d7c332228f
commit dad523e050
12 files changed
-627

No files matched your search

-14
View File
@@ -2541,20 +2541,6 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
LOG_WRN("DEPRECATED: --defrag-thold is deprecated and no longer necessary to specify\n");
}
).set_env("LLAMA_ARG_DEFRAG_THOLD"));
add_opt(common_arg(
{"--moe-expert-cache"}, "N",
string_format("GPU cache slots per host-resident MoE expert layer, 0 = disabled (default: %d)", params.n_moe_cache_slots),
[](common_params & params, int value) {
params.n_moe_cache_slots = value;
}
).set_env("LLAMA_ARG_MOE_EXPERT_CACHE"));
add_opt(common_arg(
{"--moe-expert-cache-inserts"}, "N",
string_format("max expert uploads per layer per decode step for the MoE expert cache (default: %d)", params.n_moe_cache_inserts),
[](common_params & params, int value) {
params.n_moe_cache_inserts = value;
}
).set_env("LLAMA_ARG_MOE_EXPERT_CACHE_INSERTS"));
if (ex == LLAMA_EXAMPLE_SERVER) {
// this is to make sure this option appears in the server-specific section of the help message
add_opt(common_arg(