ggml_save_weights: Save Model Weights to File

View source: R/nn_model.R

ggml_save_weightsR Documentation

Save Model Weights to File

Description

Saves the trained weights of a sequential model to an RDS file. The file includes both weights and architecture metadata for validation when loading.

Usage

ggml_save_weights(model, path)

Arguments

model

A trained ggml_sequential_model

path

File path to save weights (typically with .rds extension)

Value

The model (invisibly).


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