Method ReadFromFile
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
pathstringPath of the GGUF file to inspect.
Returns
- GgufMetadata
The parsed metadata.
Exceptions
- ArgumentException
pathis null or empty.- InvalidModelException
The file is not a valid GGUF v2/v3 file, is truncated, or declares metadata that exceeds the safety ceilings.