Class Runtime
Manages the lifecycle of the LM-Kit runtime environment.
Responsibilities include:
- Native backend initialization and configuration.
- GPU capability checks.
- Model lifecycle tracking for licensing and runtime behavior.
- Centralized logging configuration for diagnostics and customer support.
public static class Runtime
- Inheritance
-
Runtime
- Inherited Members
Fields
- EnableBackendLogging
Defines whether diagnostic messages emitted by the native / unmanaged backend are forwarded to LM-Kit’s managed logging pipeline.
- LogLevel
Defines the default logging level for the application using the LM-Kit framework.
Properties
- Backend
Gets the type of computational backend currently in use. Returns Undefined if the system is not initialized.
- 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 LM-Kit is permitted to utilize the GPU for processing.
- IsInitialized
Indicates whether the LM-Kit runtime has been initialized.
- Version
Gets the LM-Kit assembly version.
Methods
- ConfigureFileLogging(string, LMKitLogLevel, bool, bool, bool)
Configures a support-friendly logging pipeline that writes LM-Kit logs to a file in a single call.
- Initialize()
Immediately initializes the LM-Kit runtime. This method can be invoked optionally to guarantee proper initialization. Otherwise, initialization occurs automatically as needed.
- SetLogTextWriter(TextWriter)
Sets the TextWriter to which log messages are written.
Events
- LogCallback
An event that clients can subscribe to in order to receive log messages. The callback receives the log level and the message (trimmed).