Learn R Programming

rlmstudio (version 0.2.2)

lms_download: Download a model via REST API

Description

Download a model via REST API

Usage

lms_download(model, quantization = NULL, host = "http://localhost:1234", ...)

Value

A character string containing the download job_id, or "already_downloaded" if already downloaded.

Arguments

model

Character. The model to download. Accepts model catalog identifiers (e.g., "openai/gpt-oss-20b") and exact Hugging Face links.

quantization

Character. Optional. Quantization level of the model to download (e.g., "Q4_K_M"). Only supported for Hugging Face links.

host

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

...

Additional arguments passed to the request.

See Also

Examples

Run this code
if (FALSE) {
lms_server_start()

# Download a model by its HuggingFace identifier
job_id <- lms_download("google/gemma-3-1b")

# Download with a specific quantization level
lms_download("google/gemma-3-1b", quantization = "4bit")
}

Run the code above in your browser using DataLab