memory and model
Last updated
M5 Ultra SSD: faster loading or faster local AI?
Which local AI waiting times can the M5 Ultra SSD reduce?
An SSD1 stores model files and reads them into memory. Its speed matters when you first open a model or switch models frequently; once loaded, memory and GPU2 performance matter as the model processes documents and generates answers. M5 Ultra reviews and a PLE-offloading example help explain how to divide a budget between SSD and memory.
When you use the same model every day, question processing repeats more often than model loading. Switching repeatedly between image, coding and document models also repeats file reads. Identify where you wait, then calculate how much a faster SSD could help.
An SSD reduces the time to read a model file
Imagine keeping a local model on a Mac Studio and writing work notes from several PDFs. Before accepting a question, the app reads the model file from storage into memory. Tom’s Guide measured 13,902 MB/s read and 14,283 MB/s write on an M5 Ultra configured with a 4TB SSD. Those results apply to the 4TB configuration in that review.
At a constant read speed, reading a 70 GB model takes 10 seconds at 7 GB/s or 5 seconds at 14 GB/s. Actual model loading also includes preparation after the file is read.
Consider the share of a task spent reading files. A hypothetical 10 seconds of file reading, 20 seconds of input processing, and 30 seconds of generation total 60 seconds. If only SSD reading doubles in speed, reading takes 5 seconds and the total falls to 55 seconds, about 8.3% less. This illustration keeps processing and generation unchanged and excludes separate setup time.
Assume ten questions take 50 seconds each while the model stays in memory. Adding a 10-second initial load gives 510 seconds; a 5-second load gives 505 seconds, about 1% less. If you close and reload the model for every question, the total falls from 600 to 550 seconds. The same five-second saving matters differently depending on loading frequency. Question processing and cache effects are held constant in this example.
| What you see | Main task | Role of the SSD |
|---|---|---|
| Opening the model | Read weights and prepare execution | Directly affects actual disk reads |
| Waiting for the first answer after a question | Prefill and cache handling | After model loading, compute and context conditions matter |
| The answer keeps appearing | Decoding successive tokens | In ordinary memory-resident runs, memory and compute matter more than SSD |

The first answer to a PDF and answer generation are different stages
After the model is in memory and you submit a PDF, the app extracts text or processes pages to form model input. Prefill3 is the stage in which the question, conversation history, and retrieved passages are processed before the first answer. Decode4 is the stage that continues the answer after the first token5. Both differ from the initial read of the model file from the SSD.
When you ask an 80-page PDF for its renewal terms, the app may send all extracted text or retrieve relevant passages. Increasing it to 400 pages raises prefill work and context use in a full-text workflow. Retrieval can reduce the input, but check that it also found exceptions attached to the renewal clauses.
If the first token is slow, separate file preparation, retrieval, and prefill. If the answer continues slowly after the first token, inspect decode speed. Identifying the waiting stage helps decide whether replacing the SSD will help.
PLE offload reads selected embedding tables from the SSD
Qwen3.8-Flash-Next contains PLE6 (Per-Layer Embedding) and a large n-gram7 embedding table. Supported engines can keep the table on SSD and fetch the entries they need. Ordinary execution reads model files at startup, whereas this PLE path also fetches selected data during answers, so SSD reads and file cache can affect generation too.
MacStories reported a median generation rate of 86.8 tok/s with an M5 Ultra 256 GB, 80-core GPU, Qwen Flash-Next oQ8e, oMLX 0.7.0.dev2, qwen4_ple_ssd_offload, and MTP8 depth 3. MTP is a generation method that predicts future token candidates; PLE offload9 reads required table entries from the SSD. The reported result used both together.
The observed process-memory peak in the same oQ8e configuration was about 187GB, sampled for the whole process including the model and working space. Compare purchase candidates using that model, oMLX, PLE and MTP combination with your usual inputs and apps. To isolate the SSD effect, keep the other settings fixed and vary the storage conditions.
When memory is under pressure, macOS can swap data to SSD and read it back. Repeated movement of active data can delay responses. PLE fetches a table chosen by the runtime10, while swap is the operating system’s response to memory pressure. Record Activity Monitor’s memory pressure and SSD reads over the same interval to locate the waiting path.

Choose 256 GB or 512 GB memory for the models you keep open
When choosing 256GB or 512GB, include weights, working space, KV cache11 and your usual apps. The Mac’s CPU12, GPU and macOS share unified memory13. Load the intended model and send follow-up questions on a long document to find whether that work needs extra capacity.
Moving from 256 GB to 512 GB makes room for larger models, longer conversations, and more simultaneous apps. If the current model and context already fit, GPU performance and memory bandwidth14 influence speed. To diagnose insufficient capacity, check whether memory pressure or swapping coincides with delayed responses.
Frequent model changes increase file reads, making SSD speed more important; storing many models also requires capacity. Test external storage as a complete drive, enclosure, connection, cable and thermal setup. The 13,902MB/s read and 14,283MB/s write figures above belong to Tom’s Guide’s internal 4TB configuration; look for results for the capacity or external setup you intend to buy.

Measure loading, first-token wait, and generation separately
On your current Mac, keep model, runtime, and quantization15 fixed and record three times: first, initial model-file loading; second, time from submitting an 80-page PDF to the first token; third, answer generation after that. When increasing the document to 400 pages, keep the other settings unchanged and compare only the input change.
In Activity Monitor, record memory pressure and swap at the time of the delay. Data retained in file cache can make a second model load faster. Prompt16 cache reuses previous input computation to shorten first-answer waits. Also record the time oMLX takes to restore KV cache from SSD separately. The comparison tool below opens M3 Ultra 512GB against M5 Ultra 256GB with Qwen3.8 Flash-Next, 16,384 tokens and full mode.
Budget for memory first, then SSD
If you work daily with the same model on an 80-page PDF and follow-up questions, first check that there is room to keep the model in memory. When it remains loaded, file loading does not repeat with every question, so memory headroom can matter more directly for this workflow. If you often switch among coding, image, and document models, SSD speed may help with repeated reads; if storage is running out, compare capacity first.
If you intend to use PLE offloading, test your usual work in 256GB with the intended checkpoint17 and oMLX combination. Keep other apps open and finish follow-up questions while checking memory and waits. Compare the extra cost of 512GB with the space you actually need for concurrent models or long context.
Before buying, reproduce the bottleneck with your current task. In the illustrative 70 GB calculation, cutting file reading in half reduces a 60-second total to 55 seconds; when keeping the same model open, the saved five seconds occur only on the initial load. First fit the model and context into memory, then compare SSD speed if model switching is frequent or capacity if files are numerous. Prefill/decode experience in a speed tool and initial storage loading are different values, so measure them separately.
SSD test and model-run configurations
The SSD read and write figures come from Tom’s Guide’s internal 4TB setup; 86.8 tok/s comes from MacStories’s model-run configuration. The sources below detail the hardware and settings for each test.
Terminology notes
SSD — A data storage device that uses flash memory and retains data without power.
Back to the textGPU — A processor designed to handle many calculations in parallel. It performs model computations during AI inference.
Back to the textPrefill — The stage where an LLM reads the input prompt and computes representations for its tokens. Longer prompts contain more tokens to process.
Back to the textToken decoding — The stage that generates successive output tokens using the input and the response produced so far.
Back to the textToken — A unit into which a model divides input or output for processing.
Back to the textPLE embedding table — Short for Per-Layer Embedding, a structure that adds embedding information at particular model layers. The Qwen Flash-Next family uses n-gram tables; supported runtimes can offload these tables to RAM or SSD.
Back to the textN-gram — A sequence of n consecutive tokens or items. N-grams may be used for context lookup or speculative generation, and may also form the entries of embedding tables in some models.
Back to the textMTP — A training objective or model component for predicting multiple future tokens at once. In speculative decoding, those predictions can be proposed as candidate tokens.
Back to the textOffloading — Moving some model data from GPU memory to system RAM or storage when capacity is limited. This adds data transfer.
Back to the textRuntime — The software environment that provides facilities needed while a program runs. In local AI, it can also refer to a model execution engine.
Back to the textKV cache — Memory that stores attention keys and values from earlier tokens for reuse during later token generation. Its size depends on context length and batch size.
Back to the textCPU — The central processor that runs the operating system and general-purpose instructions; in AI workloads it also handles tasks such as preprocessing and data movement.
Back to the textUnified memory — An architecture where the CPU and GPU share one physical memory pool.
Back to the textMemory bandwidth — The amount of data transferable between memory and a processor per unit time, usually expressed in bytes per second (B/s).
Back to the textQuantization — A way to represent model weights or values with fewer bits, reducing storage and memory use. The coarser representation can also affect accuracy.
Back to the textPrompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.
Back to the textCheckpoint — A file containing saved model weights and related state. Versions or tasks in one model family may use different checkpoints.
Back to the text
Frequently asked questions
- What should you check first in this article?
- An SSD stores model files and reads them into memory. Its speed matters when you first open a model or switch models frequently; once loaded, memory and GPU performance matter as the model processes documents and generates answers. M5 Ultra reviews and a PLE-offloading example help explain how to divide a budget between SSD and memory.
- How much memory does it need?
- The observed process-memory peak in the same oQ8e configuration was about 187GB, sampled for the whole process including the model and working space. Compare purchase candidates using that model, oMLX, PLE and MTP combination with your usual inputs and apps. To isolate the SSD effect, keep the other settings fixed and vary the storage conditions.
Read next
Response speed and acceleration
Qwen3.8-Flash-Next PLE Offload: RAM and SSD Requirements and Setup
memory and model
How much VRAM or unified memory does a local LLM need?
Executable programs and extensions
Run local AI on a Mac with oMLX: prefill acceleration in 0.8.0rc1
Model setup recipes
Qwen3.8 Flash-Next on DGX Spark: SGLang, PLE, and MTP recipe
