Learn R Programming

ggmlR (version 0.8.1)

gguf_load: Load a GGUF File

Description

Opens a GGUF file and reads its metadata. By default also reads tensor data into memory; with meta_only = TRUE only the header and key-value metadata are read (no tensor data is allocated), which is cheap and enough for inspecting architecture / type fields. Returns an S3 object of class "gguf" wrapping the internal pointer.

Usage

gguf_load(path, meta_only = FALSE)

Value

An object of class "gguf".

Arguments

path

Path to a .gguf file.

meta_only

If TRUE, read only the header and metadata without allocating tensor data. Metadata, tensor names and tensor info remain available; gguf_tensor_data is not (reload with meta_only = FALSE). Default FALSE.