Class AsposeAIModelConfig

Class AsposeAIModelConfig

Namespace: Aspose.OCR
Assembly: Aspose.OCR.dll (25.7.0)

Represents configuration settings for loading an LLM model.

public class AsposeAIModelConfig

Inheritance

object AsposeAIModelConfig

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

AsposeAIModelConfig()

public AsposeAIModelConfig()

Properties

AllowAutoDownload

If true, the model will be automatically downloaded if not available locally.

public bool AllowAutoDownload { get; set; }

Property Value

bool

DirectoryModelPath

Optional path where downloaded or processed models will be cached. If not set, a default system location will be used.

public string? DirectoryModelPath { get; set; }

Property Value

string ?

FileModelPath

Local path to the folder containing the model files. If specified, this will be used instead of downloading. Default empty.

public string? FileModelPath { get; set; }

Property Value

string ?

HuggingFaceQuantization

Optional quantization type to use when downloading from HuggingFace. Examples: “int8”, “fp16”, “none”. Default q4_k_m.

public string? HuggingFaceQuantization { get; set; }

Property Value

string ?

HuggingFaceRepoId

ID of the model on HuggingFace (e.g., “openai/gpt2”). If specified, the model will be downloaded from HuggingFace. Default bartowski/Qwen2.5-3B-Instruct-GGUF.

public string? HuggingFaceRepoId { get; set; }

Property Value

string ?