pub struct TuningProfile {
pub model: String,
pub context_window: Option<u32>,
pub safe_context: Option<u32>,
pub mid_loop_trim_threshold: Option<usize>,
pub max_tool_rounds: Option<usize>,
pub estimate_ratio: Option<f32>,
pub tune_source: TuneSource,
pub confidence: String,
pub data_points: u32,
pub notes: Option<String>,
}Expand description
One model’s tuning profile in the community format.
Fields§
§model: StringModel name as it appears in Ollama (e.g. "nemotron3:33b").
context_window: Option<u32>Declared context window from Ollama /api/show (tokens).
safe_context: Option<u32>Recommended num_ctx to send to Ollama — safe for multi-tool sessions.
mid_loop_trim_threshold: Option<usize>Recommended mid_loop_trim_threshold.
max_tool_rounds: Option<usize>Recommended max_tool_rounds.
estimate_ratio: Option<f32>Learned observed/estimated prompt-token calibration ratio (Phase 20,
docs/design/model-self-tuning.md §2.3): how far the chars/4
estimator under/over-counts this model’s chat template. Additive
optional field — format version stays “1”; files written by older
versions parse unchanged and older versions ignore the key.
tune_source: TuneSourceHow these values were derived.
confidence: StringConfidence level: “none”, “low”, “medium”, or “high”.
data_points: u32Number of inference sessions that informed this profile.
notes: Option<String>Free-text notes for human readers.
Trait Implementations§
Source§impl Clone for TuningProfile
impl Clone for TuningProfile
Source§fn clone(&self) -> TuningProfile
fn clone(&self) -> TuningProfile
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 TuningProfile
impl Debug for TuningProfile
Source§impl<'de> Deserialize<'de> for TuningProfile
impl<'de> Deserialize<'de> for TuningProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for TuningProfile
impl RefUnwindSafe for TuningProfile
impl Send for TuningProfile
impl Sync for TuningProfile
impl Unpin for TuningProfile
impl UnsafeUnpin for TuningProfile
impl UnwindSafe for TuningProfile
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>,
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