skip to content

Downloads and Load Settings

LM Studio's Discover tab pulls GGUF or MLX builds from Hugging Face, and per-model load settings fix GPU offload, context length and flash attention. Interviewers ask why a model will not load.

part ofLocal LLM runtimesread it →
on this pageshow

explore

questions

5

A 30B model downloaded from LM Studio's Discover tab refuses to load on a 32 GB MacBook — what decides that, and what do you change?

level: seniorimportance: must knowfreq 16%

answer

  1. an estimate taken before the load
  2. compared with a guardrail setting
  3. context length counts, not just the file
  4. flash attention changes the estimate
  5. smaller option before a looser guardrail

basics

~20 s

Before loading, LM Studio estimates the memory the model and its context need and checks it against your resource guardrails setting; a failing estimate is refused. Lower the context length, use flash attention on GGUF, or pick a smaller download option.

solid answer

~50 s

LM Studio estimates a load's GPU and total memory before it starts, for the weights plus the context at the configured length. Since LM Studio 0.3.27 the estimator accounts for context length, flash attention and whether the model has vision. It then checks the estimate against your **resource guardrails** setting, and a load that fails is refused with 'This model will fail to load based on your resource guardrails settings.' On a 32 GB Mac, start with the settings that shrink the estimate. Lower the context length, enable flash attention if it is a GGUF build, and free memory other loaded models hold. If it still fails, download a smaller option of the same model. Relax the guardrail only knowingly, because that removes the refusal and leaves the shortage. Then save the settings that work as the model's default.

go deeper

for a junior

Recall that LM Studio estimates a load's memory for the weights and the context, and refuses a load the estimate says breaks the resource guardrails.

for a middle

Explain what the estimate counts (context length, flash attention, vision) and why context length is usually the first setting to lower.

for a senior

Show the diagnosis order on unified memory versus dedicated VRAM, why lowering GPU offload barely shrinks a Mac's total, and why relaxing the guardrail treats the symptom.

for a principal

Weigh standard hardware and fixed per-model defaults for a team against letting each user tune loads, given support load and failed demos.

## What refuses the load When you load a model, LM Studio does more than read the file. It allocates memory for the **weights** and for the **context**: the working state that holds every token of the conversation, up to the configured **context length**. Before committing, LM Studio produces a **resource estimate**: - **Estimated GPU memory**: what would sit in GPU-accessible memory. - **Estimated total memory**: everything the load needs. - **A confidence**: high, or low when its heuristics do not fully apply. The estimate is then compared with the **resource guardrails** setting. If the estimate does not pass, the load is refused. The CLI prints the verdict in so many words: "This model will fail to load based on your resource guardrails settings". The passing form is "This model may be loaded based on your resource guardrails settings". The improved estimator that shipped with LM Studio 0.3.27, alongside the CLI's estimate-only mode, accounts for **context length, flash attention and whether the model is vision-enabled**. So the usual cause in this scenario is not a broken download. A 30B download option that fits on disk, plus a context length set high, adds up to more than the guardrail allows on a 32 GB machine whose memory is also running the OS and apps. On Apple Silicon, the CPU and GPU share one pool of memory, so there is no separate VRAM to spill into. ## The levers, in the order to try them 1. **Lower the context length.** The context's share of the estimate grows with its length, so a smaller value is often the cheapest fix. Pick the length the workload needs, not the model's maximum. 2. **Enable flash attention, on a GGUF build.** The estimator accounts for it, and it can decrease memory use. LM Studio documents it as taking effect only on the llama.cpp-based engine, so it does nothing for an MLX build. 3. **Free memory that other things hold.** Unload other models already in memory, and close heavy apps. The estimate competes with whatever else is resident. 4. **Choose a smaller download option of the same model.** Discover rates each option against your hardware and highlights a recommended one, and an option flagged as not fitting is very likely to fail here. What each option's label means belongs to the GGUF format material. 5. **Only then consider the guardrail itself.** Relaxing it removes the refusal, not the shortage. A load that really does not fit can push the machine into memory pressure or fail partway through. GPU offload is the lever people reach for first. On this Mac it mostly reshuffles the same memory rather than shrinking it: | Lever | On a 32 GB Apple Silicon Mac | On a Windows desktop with a dedicated RTX card | |---|---|---| | Lower context length | Shrinks GPU and total estimate | Shrinks GPU and total estimate | | Flash attention (GGUF) | Can lower memory use | Can lower memory use | | Lower GPU offload | Shifts work from GPU to CPU inside one memory pool: the total estimate barely moves and generation slows | Moves layers from VRAM to system RAM: less VRAM, slower generation | | KV cache off the GPU (llama.cpp) | Same pool, little total gain | Frees VRAM, costs speed | | Smaller download option | Shrinks everything | Shrinks everything | ## Make the fix stick Once a combination loads, save it as the model's **per-model default** from the load dialog, or from the gear icon in **My Models**. Every later load of that model, including one from `lms load`, then starts from those settings. Otherwise the next teammate who loads it hits the same refusal. From a terminal, the CLI has an estimate-only mode that reports the same pass or fail before anything loads, which is useful in a provisioning script. ## Signals that it is something else - **The load succeeds, then generation crawls.** That is offload or speed, not the guardrail. Check how much of the model sits on the GPU. - **The confidence is low.** Treat the number as approximate, and leave headroom. - **The option was marked unsupported in Discover.** The engine or platform cannot run it at all. An MLX build on a Windows machine is the classic case. How many bytes a 30B model needs at a given precision, and why the context's cache grows with length, are separate topics on memory arithmetic. The point here is which LM Studio setting changes the estimate.

  • Why is relaxing the guardrail the last resort rather than the fix?
    The guardrail only decides whether LM Studio attempts a load its estimate says will not fit. Relaxing it changes nothing about the memory the model and context need. On a 32 GB machine, the likely result is memory pressure, a slow system or a failed load. Shrinking the estimate first keeps the machine usable.
  • The same model loads on the Windows RTX desktop but generates slowly. Which load setting do you check first?
    GPU offload. With dedicated VRAM, LM Studio may have placed only part of the model on the card, and the layers left in system RAM run on the CPU. Check that the selected llama.cpp runtime can use the GPU. Then raise offload as far as VRAM allows, lowering the context length if that is what makes room.

  • If the download is smaller than the machine's RAM, the model will always load.
  • Context length only affects answers, never whether a model loads.
  • A load the estimate passes is guaranteed never to run out of memory.
  • Switching the guardrail off makes the model fit in memory.
  • A refused load means the download is corrupt and must be fetched again.

Assumes LM Studio's docs as fetched on 2026-10-04 (download page at 0.4.25); the estimator that counts context length, flash attention and vision shipped in LM Studio 0.3.27.

open as a page

In LM Studio's Discover tab, how do you get one specific Hugging Face model build, and where does the download land?

level: juniorimportance: should knowfreq 14%

basics

~20 s

Search Discover by keyword, by a user/model string or by pasting the full Hugging Face URL, then pick one download option. The file lands in LM Studio's models directory under publisher and model folders; My Models lets you move that directory.

open as a page

On an Apple Silicon Mac, LM Studio offers a GGUF and an MLX build of one model — what differs, and which do you choose?

level: middleimportance: should knowfreq 9%

basics

~20 s

A GGUF build runs on LM Studio's llama.cpp engine on Mac, Windows and Linux; an MLX build runs on Apple's MLX engine, on Apple Silicon only. Pick MLX for a Mac-only setup, GGUF when other machines must match.

open as a page

In LM Studio, where do per-model default load settings live, what do they fix, and which loads inherit them?

level: middleimportance: should knowfreq 8%

basics

~20 s

Per-model defaults are set from the gear icon on a model in My Models: GPU offload, context length, flash attention and more. Every later load of that model in LM Studio, lms load included, starts from them.

open as a page

In LM Studio, how are the inference engines shipped and updated separately from the app, and when does that bite?

level: middleimportance: nice to knowfreq 5%

basics

~20 s

LM Studio packages its engines (llama.cpp, MLX) as separate runtimes, downloadable and hot-swappable without an app update since LM Studio 0.3.0. One runtime is selected per model format, and an outdated or CPU-only runtime explains missing features or GPU use.

open as a page