Learn R Programming

rlmstudio (version 0.2.2)

lms_unload: Unload a model from memory via REST API

Description

Unload a model from memory via REST API

Usage

lms_unload(model, host = "http://localhost:1234", ...)

Value

Invisibly returns a character string representing the unloaded instance_id upon success.

Arguments

model

Character. Unique identifier (instance_id) of the model instance to unload.

host

Character. The host address of the local server. Defaults to "http://localhost:1234".

...

Additional arguments passed to the API request body.

See Also

Examples

Run this code
if (FALSE) {
lms_server_start()
lms_download("google/gemma-3-1b")
lms_load("google/gemma-3-1b")

# Unload a single specific model
lms_unload("google/gemma-3-1b")
}

Run the code above in your browser using DataLab