Table of Contents

Class LM.DeviceConfiguration

Namespace
LMKit.Model
Assembly
LM-Kit.NET.dll

Handles the underlying model device configuration, including GPU settings and memory management options.

public sealed class LM.DeviceConfiguration
Inheritance
LM.DeviceConfiguration
Inherited Members

Constructors

DeviceConfiguration()

Initializes a new instance of the LM.DeviceConfiguration class, setting default values for GPU configuration and memory management options.

DeviceConfiguration(GpuDeviceInfo)

Initializes a new instance of the LM.DeviceConfiguration class with the specified GPU device.

Properties

GpuLayerCount

Gets or sets the number of layers to process on the GPU, optimizing performance by leveraging available VRAM (GPU memory).

MainGpu

Gets or sets the device number of the main GPU used for scratch operations and handling small tensors.