Table of Contents

Class LocalModelOptions

Namespace
JD.AI.Core.LocalModels
Assembly
JD.AI.Core.dll

Options for configuring the LLama inference engine.

public sealed class LocalModelOptions
Inheritance
LocalModelOptions
Inherited Members

Properties

ContextSize

Context window size in tokens.

public uint ContextSize { get; set; }

Property Value

uint

GpuLayers

Number of GPU layers to offload. -1 = all (when GPU available), 0 = CPU only.

public int GpuLayers { get; set; }

Property Value

int

MaxTokens

Maximum tokens to generate per response.

public int MaxTokens { get; set; }

Property Value

int

Temperature

Temperature for sampling (0 = deterministic).

public float Temperature { get; set; }

Property Value

float

TopP

Top-P nucleus sampling.

public float TopP { get; set; }

Property Value

float