Method LoadEncrypted
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
encryptedPathstringschemeGgufEncryptionSchemepasswordstringdeviceConfigurationLM.DeviceConfigurationloadingOptionsLM.LoadingOptionsloadingProgressLM.ModelLoadingProgressCallback