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
GpuLayers
Number of GPU layers to offload. -1 = all (when GPU available), 0 = CPU only.
public int GpuLayers { get; set; }
Property Value
MaxTokens
Maximum tokens to generate per response.
public int MaxTokens { get; set; }
Property Value
Temperature
Temperature for sampling (0 = deterministic).
public float Temperature { get; set; }
Property Value
TopP
Top-P nucleus sampling.
public float TopP { get; set; }