Table of Contents

Method ReadFromFile

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

ReadFromFile(string)

Reads the metadata of the GGUF file at path without loading tensor weights and without any native dependency.

public static GgufMetadata ReadFromFile(string path)

Parameters

path string

Path of the GGUF file to inspect.

Returns

GgufMetadata

The parsed metadata.

Exceptions

ArgumentException

path is null or empty.

InvalidModelException

The file is not a valid GGUF v2/v3 file, is truncated, or declares metadata that exceeds the safety ceilings.

Share