Learn R Programming

ggmlR (version 0.6.1)

ggml_save_weights: 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)

Value

The model (invisibly).

Arguments

model

A trained ggml_sequential_model

path

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