detectArchitecture

Detect the model architecture from a GGUF file.

Opens the file, reads only the metadata header (~1MB), extracts general.architecture, and resolves to a ModelArchitecture.

Return

Detected architecture

Parameters

source

Random-access source to the GGUF file