Table of Contents

Property Model

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

Model

Gets the language model instance used to drive the extraction process.

public LM Model { get; }

Property Value

LM

The LM model that performs inference for the extraction process.

Examples

var te = new TextExtraction(LM.LoadFromModelID("lmkit-tasks:4b-preview"));
Console.WriteLine($"Context length: {te.Model.ContextLength}");
// Use model capabilities to tailor configuration
te.PreferredInferenceModality = te.Model.HasVision ? InferenceModality.Multimodal : InferenceModality.Text;