Table of Contents

Class Runtime

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

A static class specifically designed to manage the lifecycle of the runtime environment.
It provides mechanisms for initialization and management of runtime resources.

public static class Runtime
Inheritance
Runtime
Inherited Members

Fields

LogLevel

Defines the default logging level for the application using the LMKit framework.

Properties

BackendDirectory

Specifies the directory containing the native dependencies. After initialization, this property's value becomes immutable and cannot be changed.

EnableCuda

Indicates whether CUDA is permitted during initialization. Once initialized, the value of this property cannot be modified.

EnableVulkan

Indicates whether Vulkan is permitted during initialization. Once initialized, the value of this property cannot be modified.

HasGpuSupport

Returns whether LMKit is permitted to utilize the GPU for processing.

IsInitialized

Indicates whether the LMKit runtime has been initialized.

Version

Gets the LM-Kit assembly version.

Methods

Initialize()

Immediately initializes the LMKit runtime.
This method can be invoked optionally to guarantee proper initialization. Otherwise, initialization occurs automatically as needed.