powered by
Unload a model from memory via REST API
lms_unload(model, host = "http://localhost:1234", ...)
Invisibly returns a character string representing the unloaded instance_id upon success.
instance_id
Character. Unique identifier (instance_id) of the model instance to unload.
Character. The host address of the local server. Defaults to "http://localhost:1234".
Additional arguments passed to the API request body.
LM Studio Unload Model API
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