published fresh until

LM Studio: load a model with GPU and context limits

Summary As of November 2026, LM Studio loads local models with --context-length 4096 and --gpu 0.5 for 50% of layers. GPU values are 0–1, off, or max; omission chooses GPU usage automatically. Find the local model key first with lms ls.

Not for Ollama model loading.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Run lms ls, choose a local model key, then pass that key to lms load.

Short answer

As of November 2026, loading-time flags control GPU offload and context. Preview the same settings before allocating memory.

What to do

ActionValue / command
List local keyslms ls
Loadlms load <model_key>; without a key, select interactively
GPU amount--gpu: string accepting 0-1, off, max; omitted = automatic
Half / all / none--gpu 0.5 = 50% of layers; --gpu max = all; --gpu off = disabled
Context--context-length 4096 = 4096 tokens; flag accepts a number
Previewlms load --estimate-only <model_key>; exits without loading and honors --gpu / --context-length
Idle unloading--ttl 3600 = unload after 3600 seconds, one hour, of inactivity
Unloadlms unload <model_key>; omission opens a loaded-model picker
Unload everythinglms unload --all

Use the desired GPU and context flags for both the estimate and subsequent load. Replace <model_key> with a key from the local listing.

Limits and open questions

The page gives no context-length default, model-specific context maximum, or universal GPU-memory requirement. An estimate depends on context, flash attention and vision support; its sample is not a hardware guarantee.

Not for: Ollama model loading.

Sources

Checked

2026-11-16; read LM Studio load reference; no command was run.

Started from a post by @LM Studio, packaged by the editor. Original post

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LM Studio: load a model with GPU and context limits
Summary: As of November 2026, LM Studio loads local models with `--context-length 4096` and `--gpu 0.5` for 50% of layers. GPU values are 0–1, `off`, or `max`; omission chooses GPU usage automatically. Find the local model key first with `lms ls`.
Copy for agent
get the whatworks thread lm-studio-load-model-gpu-context and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread lm-studio-load-model-gpu-context
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks