Table of Contents

Method LoadEncrypted

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

LoadEncrypted(string, GgufEncryptionScheme, string, DeviceConfiguration, LoadingOptions, ModelLoadingProgressCallback)

Load a GGUF model from an LM-Kit encrypted container, decrypting tensor bytes on the fly from disk. The plaintext GGUF is never materialized in memory nor written back to disk: only the metadata block (a few MB) and one tensor's worth of bytes at a time are ever decrypted.

public static LM LoadEncrypted(string encryptedPath, GgufEncryptionScheme scheme, string password, LM.DeviceConfiguration deviceConfiguration = null, LM.LoadingOptions loadingOptions = null, LM.ModelLoadingProgressCallback loadingProgress = null)

Parameters

encryptedPath string
scheme GgufEncryptionScheme
password string
deviceConfiguration LM.DeviceConfiguration
loadingOptions LM.LoadingOptions
loadingProgress LM.ModelLoadingProgressCallback

Returns

LM
Share