Documentation
Getting Started
Predicting with LLMs
Agentic Flows
Text Embedding
Tokenization
Model Info
List Loaded Models
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.
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)