gguf_load: Load a GGUF File

View source: R/gguf.R

gguf_loadR Documentation

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)

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.

Value

An object of class "gguf".


ggmlR documentation built on July 14, 2026, 1:08 a.m.