Class ChatPreset
One ready-made ORT GenAI model folder: its manifest, its geometry, its defaults.
public sealed record ChatPreset : IEquatable<ChatPreset>
- Inheritance
-
ChatPreset
- Implements
- Inherited Members
Properties
- DefaultMaxContextTokens
Never above ContextLength.
- DefaultMaxOutputTokens
The per-turn output cap when nothing nearer the call site sets one.
- DefaultTemperature
The sampling temperature when nothing nearer the call site sets one.
- DefaultTopK
The top-k cut-off when nothing nearer the call site sets one.
- DefaultTopP
The nucleus cut-off when nothing nearer the call site sets one.
- DisplayName
What an about screen or a consent sheet shows.
- GenAiConfigFile
The manifest-relative name of the GenAI configuration file.
- Id
The id
AddOnnxChatand ById(string) use.
- LicenseUri
The licence URL an about screen needs;
Manifest.SpdxLicensecarries the identifier.Not every chat model's licence has an SPDX identifier, and the field must not pretend otherwise. Sub-project 2 documents
SpdxLicenseas "the SPDX identifier of the model's licence, for an about screen", and the consent sheet and the repo'sTHIRD-PARTY-NOTICES.mdboth surface that string verbatim. The Llama 3.2 Community Licence is not on the SPDX list, so it takes SPDX's own convention for a licence that is not:LicenseRef-LLAMA-3.2-Community, never a bareLLAMA-3.2-Community, which is not a valid SPDX expression at all.Qwen3_600MInt4isApache-2.0, a real identifier. The field therefore holds an SPDX expression, of which aLicenseRef-value is a legal one, and the generator script emits that spelling.
- Manifest
Sub-project 2's manifest, unchanged.
GraphFilenames the decoder.onnx, so the content-addressed directory is keyed on the weights.genai_config.json,tokenizer.json,tokenizer_config.jsonandchat_template.jinjaride asAuxiliary;model.onnx.datarides asGraphExternalData.
- Shape
The decoder geometry the memory budget is computed from, before anything is mapped.
- StopSequences
Matched against the accumulated decoded text, never against one decoded token.