LocalVlmSettings
Settings for LocalVlm. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document’s settings, otherwise the SDK globally when set on SdkSettings.
using Nutrient;The SDK creates this class through factory methods or other SDK objects.
Properties
BatchSize
public int BatchSize { get; set; }Gets or sets the value of BatchSize. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
ClassificationStrategy
public VlmClassificationStrategy ClassificationStrategy { get; set; }Gets or sets the value of ClassificationStrategy. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: VlmClassificationStrategy
ContextTokens
public int ContextTokens { get; set; }Gets or sets the value of ContextTokens. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
GpuLayers
public int GpuLayers { get; set; }Gets or sets the value of GpuLayers. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
ImageMinTokens
public int ImageMinTokens { get; set; }Gets or sets the value of ImageMinTokens. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
MaxConcurrency
public int MaxConcurrency { get; set; }Gets or sets the value of MaxConcurrency. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
MaxTokens
public int MaxTokens { get; set; }Gets or sets the value of MaxTokens. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
MmprojPath
public string MmprojPath { get; set; }Gets or sets the value of MmprojPath. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: string
Model
public string Model { get; set; }Gets or sets the value of Model. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: string
ModelPath
public string ModelPath { get; set; }Gets or sets the value of ModelPath. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: string
SendFullPageReference
public bool SendFullPageReference { get; set; }Gets or sets the value of SendFullPageReference. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: bool
SystemPrompt
public string SystemPrompt { get; set; }Gets or sets the value of SystemPrompt. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: string
Temperature
public double Temperature { get; set; }Gets or sets the value of Temperature. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: double
Threads
public int Threads { get; set; }Gets or sets the value of Threads. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
UseSharedHuggingFaceCache
public bool UseSharedHuggingFaceCache { get; set; }Gets or sets the value of UseSharedHuggingFaceCache. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: bool
Resource management
public void Dispose()LocalVlmSettings implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.