Table of Contents

Field EnableModelChecksumValidation

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

Gets or sets a value indicating whether model file integrity must be validated during loading.

public static bool EnableModelChecksumValidation

Returns

bool

true to enable checksum validation; otherwise, false. Default is false.

Remarks

When enabled, the system computes and verifies the SHA-256 checksum of each model file to ensure its integrity.

**Performance Consideration:** Enabling this validation can slow down the loading process of large models because computing the SHA-256 checksum is computationally intensive. It's recommended to disable this option in scenarios where loading speed is critical and the model sources are trusted.