#[non_exhaustive]pub struct LimitsRecord {
pub format: String,
pub limits: ModelLimits,
pub source: LimitSource,
pub engine: Option<String>,
pub projector: Option<String>,
pub trained_context: Option<u64>,
pub model_bytes: Option<u64>,
pub recorded_at: Option<u64>,
pub speech: Option<SpeechProfile>,
pub extra: Map<String, Value>,
}Expand description
A model’s limits as a node found them when it loaded the model, kept next to its files
(ModelStore::record_limits). Unknown fields are kept in
extra and written back.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: String§limits: ModelLimits§source: LimitSource§engine: Option<String>What ran the model, such as llama.cpp.
projector: Option<String>The projector file’s name, when one was loaded with the model.
trained_context: Option<u64>The context the model was trained for (<arch>.context_length), for reference: the one
it runs at is ModelLimits::context_tokens.
model_bytes: Option<u64>Bytes of the model’s files when this was recorded; a record whose model has since changed size is stale and not read back.
recorded_at: Option<u64>When it was recorded, in seconds since the Unix epoch.
speech: Option<SpeechProfile>What a speech model does (Purpose::Speak): from the
headers at load (measure, speech::from_gguf) or what
the engine reported, kept with the limits. None for models that don’t speak, and in
records from before 0.5.5. Since 0.5.5.
extra: Map<String, Value>