/models endpoint provides necessary information relating to models loaded in your devices (cpu or cuda).
You can check the currently loaded models, and eject a loaded model to free memory.
Path parameters
| Name | Type | Description |
|---|---|---|
model_name | String | name of the name |
model_device | String ("cuda" or "cpu") | device of the model |
Example
Models can be loaded into devicescpu and cuda, respectively.
Note: The best practice
is to check the device memory usage using \device api, and check the currently loaded model \models first.
Supposing the results from mq.get_loaded_models() are
"open_clip/ViT-B-32/laion2b_s34b_b79k" from device "cuda".
=== “cURL”