ggml_load_weights: Load Model Weights from File

View source: R/nn_model.R

ggml_load_weightsR Documentation

Load Model Weights from File

Description

Loads previously saved weights into a compiled model. The model architecture must match the saved weights (same layer types, sizes, and shapes).

Usage

ggml_load_weights(model, path)

Arguments

model

A compiled ggml_sequential_model (same architecture as saved)

path

File path to load weights from

Value

The model with loaded weights.


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