llama : add SKIP_KQ_KQV option

This commit is contained in:
Georgi Gerganov 2023-10-22 09:58:29 +03:00
parent ed9fde7a1e
commit cb79f8a2d8
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -5830,6 +5830,15 @@ static struct ggml_cgraph * llama_build_graph(
node->op = GGML_OP_NONE;
}
}
if (getenv("SKIP_KQ_KQV")) {
if (
strcmp(node->name, "KQ") == 0 ||
strcmp(node->name, "KQV") == 0 ||
false) {
//printf("skipping %s\n", dst->name);
node->op = GGML_OP_NONE;
}
}
}
#endif