AsposeAIModelConfig

AsposeAIModelConfig class

Represents configuration settings for loading an LLM model.

The AsposeAIModelConfig type exposes the following members:

Constructors

NameDescription
AsposeAIModelConfig()Initializes a new instance of the AsposeAIModelConfig class

Properties

NameDescription
hugging_face_repo_idID 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.
directory_model_pathOptional path where downloaded or processed models will be cached.
If not set, a default system location will be used.
allow_auto_downloadIf true, the model will be automatically downloaded if not available locally.
hugging_face_file_nameOptional model’s name to use when downloading from HuggingFace.
Examples: “TableGPT2-7B.Q4_K_S.gguf”.
Default for table AI - TableGPT2-7B.Q4_K_S.gguf.
file_model_pathLocal path to the folder containing the model files. If specified, this will be used instead of downloading.
Default empty.
context_sizeDefines the maximum number of tokens the LLM can use as context during inference.
If null, the default context size defined by the model will be used.
Larger values allow the model to consider more text but may require more memory.
gpu_layersNumber of GPU layers to use for the model. If not specified, the default value (40) will be used. Set to 0 to run entirely on the CPU.

See Also