Property ID
ID
Gets a unique identifier for the loaded model instance.
public string ID { get; }
Property Value
- string
A string representing the model's unique identifier.
Remarks
The identifier is resolved using the following priority:
- The ModelID if the model was loaded from a ModelCard or a recognized model URI.
- The embedded LMKit model identifier stored in the model's metadata, if present.
- A dynamically generated composite identifier constructed from the model's name, description, parameter count, context length, and file size.
This property is useful for caching, logging, or distinguishing between different model instances in multi-model scenarios.