Entropic 2.11.1
Local-first agentic inference engine
Loading...
Searching...
No Matches
mtp_envelope.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
63#pragma once
64
65#include <string>
66
67namespace entropic {
68
94inline std::string mtp_unsupported_reason(float temperature, bool has_grammar,
95 bool streaming) {
96 (void)temperature;
97 (void)has_grammar; // gh#108 v2.10.0: grammar propagated via to_common_sampling
98 (void)streaming; // gh#108 v2.10.0: StreamThinkFilter handles live strip
99 return {};
100}
101
117inline bool looks_like_mtp_head(int n_layer) {
118 return n_layer >= 1 && n_layer <= 2;
119}
120
134inline std::string mtp_head_classical_path_error(int n_layer) {
135 return "Draft model has " + std::to_string(n_layer)
136 + " layer(s) — this looks like an MTP head GGUF. "
137 "Set speculative.mtp: true in your config to route through "
138 "the target-owned shared-KV MTP path instead of crashing.";
139}
140
141} // namespace entropic
Activate model on GPU (WARM → ACTIVE).
std::string mtp_head_classical_path_error(int n_layer)
Actionable error message for gh#107: MTP head on classical path.
bool looks_like_mtp_head(int n_layer)
True when the model's layer count is consistent with an MTP head GGUF.
std::string mtp_unsupported_reason(float temperature, bool has_grammar, bool streaming)
Reason MTP cannot run for a request, or "" when the envelope is safe.