We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59922e3 commit b995224Copy full SHA for b995224
tools/server/server.cpp
@@ -2004,6 +2004,23 @@ struct server_context {
2004
}
2005
2006
2007
+ if (!llama_kv_self_can_shift(ctx)) {
2008
+ if (params_base.ctx_shift) {
2009
+ params_base.ctx_shift = false;
2010
+ SRV_WRN("%s\n", "ctx_shift is not supported by this context, it will be disabled");
2011
+ }
2012
+
2013
+ if (params_base.n_cache_reuse) {
2014
+ params_base.n_cache_reuse = 0;
2015
+ SRV_WRN("%s\n", "cache_reuse is not supported by this context, it will be disabled");
2016
2017
2018
+ if (!params_base.speculative.model.path.empty()) {
2019
+ SRV_ERR("%s\n", "err: speculative decode is not supported by this context");
2020
+ return false;
2021
2022
2023
2024
return true;
2025
2026
0 commit comments