Documentation
Getting Started
Basics
Agentic Flows
Text Embedding
Tokenization
Getting Started
Basics
Agentic Flows
Text Embedding
Tokenization
Manage Models
List Loaded Models
Query which models are currently loaded
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)
This page's source is available on GitHub