parse

Parses the GGUF header from source. Only the header is read; tensor data is not touched.

Throws

on a wrong magic, unsupported version, unknown value type, or truncated or inconsistent header.