lmstudio-ai / lmstudio-ai/lmstudio-python

Return peak memory used in the stats

Open
#84 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
875
Forks
166
PR merge metrics
No merged PRs in 30d

Description

LMStudio already reports memory usage for models in the UI. Is it possible to return peak memory usage in the stats? It would be useful to know whether inference would fit on local machines.

Main reason I'm asking is that I'm benchmarking LMStudio vs MLX, and counting LMStudio-related process gives a distorted view of reality:

![Image](https://github.com/user-attachments/assets/3f49d16b-e129-40d1-93f2-410edbf0b59c)

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the SDK's stats response and how model memory metrics are exposed by LM Studio. Determine whether peak memory is available through the API, then add it to the returned stats and tests; done means callers can read peak memory usage without counting unrelated LM Studio processes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.