Model Management
Pre-load, inspect, and unload models on an Inference Server with the inference-sdk client.
Model weights download
from inference_sdk import InferenceHTTPClient
client = InferenceHTTPClient(
api_url="http://localhost:9001",
api_key="YOUR_ROBOFLOW_API_KEY"
)
# Pre-load the model (downloads weights to server cache)
client.load_model(model_id="rfdetr-base")loaded_models = client.list_loaded_models()
print(f"Loaded models: {loaded_models}")Methods to control the Inference Server
Getting server info
Listing loaded models
Getting a specific model description
Loading a model
Unloading a model
Unloading all models
Last updated
Was this helpful?