Entropic 2.14.3
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
92#pragma once
93
94#include <string>
95
96namespace entropic {
97
123inline std::string mtp_unsupported_reason(float temperature, bool has_grammar,
124 bool streaming) {
125 (void)temperature;
126 (void)has_grammar; // gh#108 v2.10.0: grammar propagated via to_common_sampling
127 (void)streaming; // gh#108 v2.10.0: StreamThinkFilter handles live strip
128 return {};
129}
130
146inline bool looks_like_mtp_head(int n_layer) {
147 return n_layer >= 1 && n_layer <= 2;
148}
149
163inline std::string mtp_head_classical_path_error(int n_layer) {
164 return "Draft model has " + std::to_string(n_layer)
165 + " layer(s) — this looks like an MTP head GGUF. "
166 "Set speculative.mtp: true in your config to route through "
167 "the target-owned shared-KV MTP path instead of crashing.";
168}
169
170} // namespace entropic
Activate model on GPU (WARM → ACTIVE).
@ optional
optional: every escape asks the host's path approver
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.