LM StudioLM Studio

List Loaded Models

Query which models are currently loaded

Ask Bionic to read this page

Copy this prompt, open Bionic, and paste it into a new chat.

Read https://lmstudio.ai/docs/python/manage-models/list-loaded, I want to ask questions about it.

You can iterate through models loaded into memory using the functions and methods shown below.

The results are full SDK model handles, allowing access to all model functionality.

List Models Currently Loaded in Memory

This will give you results equivalent to using lms ps in the CLI.

import lmstudio as lms

all_loaded_models = lms.list_loaded_models()
llm_only = lms.list_loaded_models("llm")
embedding_only = lms.list_loaded_models("embedding")

print(all_loaded_models)