Table of Contents

Property ID

Namespace
LMKit.Model
Assembly
LM-Kit.NET.dll

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:

  1. The ModelID if the model was loaded from a ModelCard or a recognized model URI.
  2. The embedded LMKit model identifier stored in the model's metadata, if present.
  3. 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.