Documentation

Predicting with LLMs

Agentic Flows

Text Embedding

Tokenization

Model Info

API Reference

List Loaded Models

You can iterate through models loaded into memory using the listLoaded method. This method lives under the llm and embedding namespaces of the LMStudioClient object.

List Models Currently Loaded in Memory

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

import { LMStudioClient } from "@lmstudio/sdk";

const client = new LMStudioClient();

const llmOnly = await client.llm.listLoaded();
const embeddingOnly = await client.embedding.listLoaded();