pub struct ModelTuning {
pub model: String,
pub num_ctx: Option<u32>,
pub context_window: Option<u32>,
pub real_context_discovery: Option<bool>,
pub mid_loop_trim_threshold: Option<usize>,
pub mid_loop_trim_tokens: Option<usize>,
pub max_tool_rounds: Option<usize>,
pub workflow_grace_rounds: Option<usize>,
pub narration_nudge_cap: Option<usize>,
}Expand description
Inference-parameter overrides for a specific model name.
Matched against the active model by exact string equality. Add entries
under [[model_tuning]] in ~/.newt/config.toml to pin parameters
for models whose defaults cause problems (e.g. context overflow).
Human-authored entries are never touched by the auto-tuner. Auto-tuned entries are appended (not modified) when the harness gains high confidence in its empirical measurements.
Fields§
§model: StringModel name as it appears in Ollama (e.g. "nemotron3:33b").
num_ctx: Option<u32>Ollama options.num_ctx — hard cap on KV-cache allocation.
context_window: Option<u32>Per-model context window (total tokens the backend accepts).
real_context_discovery: Option<bool>Per-model override of [tui].real_context_discovery.
mid_loop_trim_threshold: Option<usize>Per-model mid_loop_trim_threshold override.
mid_loop_trim_tokens: Option<usize>Per-model mid_loop_trim_tokens override.
max_tool_rounds: Option<usize>Per-model max_tool_rounds override.
workflow_grace_rounds: Option<usize>Per-model [tui].workflow_grace_rounds override.
narration_nudge_cap: Option<usize>Per-model [tui].narration_nudge_cap override.
Trait Implementations§
Source§impl Clone for ModelTuning
impl Clone for ModelTuning
Source§fn clone(&self) -> ModelTuning
fn clone(&self) -> ModelTuning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelTuning
impl Debug for ModelTuning
Source§impl<'de> Deserialize<'de> for ModelTuning
impl<'de> Deserialize<'de> for ModelTuning
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelTuning, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelTuning, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ModelTuning
Source§impl PartialEq for ModelTuning
impl PartialEq for ModelTuning
Source§impl Serialize for ModelTuning
impl Serialize for ModelTuning
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ModelTuning
Auto Trait Implementations§
impl Freeze for ModelTuning
impl RefUnwindSafe for ModelTuning
impl Send for ModelTuning
impl Sync for ModelTuning
impl Unpin for ModelTuning
impl UnsafeUnpin for ModelTuning
impl UnwindSafe for ModelTuning
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more