128 GB, Two Local Models: What Actually Survived Long Context on Our Mac Studio
A large context setting is not a large-context workload. That distinction changed the answer to a deceptively simple question: can our 128 GB Mac Studio keep a heavyweight local model and a 27B assistant model running together?
One pairing demonstrated near-full-context coexistence: gpt-oss:120b with qwen3.8:27b-mlx, each handling about 119,000 input tokens at a configured 131,072-token window. The simultaneous pass was almost entirely cached. That is useful evidence of retained working contexts, not proof of two simultaneous cold prefills, sustained production stability, or good answers.

The machine and the exact builds
The test host, which we call MacStudio128, reported an Apple M5 Max, 18 CPU cores and 128 GB unified memory, running macOS 27.2. Ollama reported version 0.40.14. This was a capacity experiment on the installed builds, not an equal-engine speed contest or a ranking of model intelligence.
gpt-oss:120b: GGUF, MXFP4, llama.cpp runner; native metadata reported 116.8B parameters and a 131,072-token context. Its installed bundle was 65.37 GB.nemotron-3-super:120b: GGUF, Q4_K_M, llama.cpp runner during these requests; metadata reported 123.6B parameters and a 262,144-token context. Its installed bundle was 86.83 GB.qwen3.8-flash-next:125b-mlx: safetensors, NVFP4, MLX runner. The tag says 125B, but native show metadata reported 180.0B parameters, architectureqwen4_exp, and a 262,144-token context. The installed bundle was 104.85 GB. I am preserving the exact tag rather than silently renaming it to reconcile that discrepancy.qwen3.8:27b-mlx, the companion: safetensors, NVFP4, MLX; native metadata reported 27.8B parameters and a 262,144-token maximum. Its installed bundle was 18.17 GB.
Those bundle figures are decimal disk sizes, not measured RAM consumption. Memory readings below use binary GiB. The model registry’s estimates, process RSS, wired memory and allocator reports describe different, overlapping things; they are not quantities to add together.
How the test worked
The first phase sent tiny prompts at large configured windows, checked the loaded-model registry, and attempted simultaneous short requests when both tags remained loaded. The second used deterministic synthetic archives with numbered records and three embedded markers. Per-model calibration aimed for 92% of the window; actual successful long inputs landed around 91%. The API’s completed input-token count, not the requested context, is the occupied-context evidence.
Generation was capped at 48 tokens, temperature zero, with thinking disabled except GPT-OSS’s low setting. Time to first token includes the first streamed thinking or answer text. These settings intentionally keep the test about capacity. The three markers check input integrity only; they are not a reasoning benchmark. GPT-OSS used its short output budget on thinking and returned no visible answer in its long passes. Its completed requests establish capacity under this setup, not successful marker retrieval or useful assistant behavior.
Native telemetry sampled VM statistics, compression, swap, memory-pressure availability, process RSS and the model registry at a nominal five-second interval. Two initial telemetry requests timed out, and some runner-startup reads took longer than five seconds. Fast requests can have no active sample; sampled peaks are lower bounds, not exact instantaneous maxima. A guard stopped work above 2 GiB of new swap or below 5% pressure availability. No pressure reading crossed the latter threshold; the Nemotron pairing triggered the swap rule.
The registry was empty before the study and before each isolated continuation cell. Only the study’s test tags were unloaded afterward. No assistant’s primary or auxiliary model assignment changed. User downloads were allowed to continue rather than being stopped for a pristine benchmark; retained logs show substantial pulls finishing immediately before the first phase. Recent download I/O, file caches, test order and the shared machine are timing confounds. Treat the timings as observations, not clean hardware rankings.
GPT-OSS plus the 27B companion: a qualified yes
GPT-OSS completed a cold 119,171-token input at a configured 131,072 context. First token arrived after 158.516 seconds; prompt processing averaged 754.95 uncached tokens per second, with short-run decoding at 37.02 tokens per second. The companion then completed 119,867 tokens while GPT-OSS remained loaded. Its first token took 192.697 seconds, with 622.91 prompt tokens per second and 29.17 decode tokens per second.
The repeat requests were launched concurrently and overlapped for about 0.958 seconds. GPT-OSS reported 119,170 cached tokens out of 119,171; the companion reported 119,862 cached out of 119,867. Their first-token times were 0.799 and 0.240 seconds, with decoding at 33.09 and 30.05 tokens per second respectively. Both exact tags remained in the registry afterward, each showing context 131,072.
This is real overlapping request execution with near-full histories and retained models, but not two cold 119k prefills running together. The cold histories were filled sequentially, then reused. No claim here extends to every token of the maximum window, a long answer, or sustained multi-user load. GPT-OSS advertises only 131,072 tokens in this installed build, so there is no 262,144-token GPT-OSS result.
Across the companion’s cold occupied-context pass and the warm overlap, sampled system wired memory reached 95.437 GiB; the summed RSS of the matched inference processes reached 80.735 GiB. Pressure availability fell to 24%, while sampled swap stayed around 0.021 GiB. Wired memory and RSS overlap, and pressure availability is not physical unused RAM. These figures support a bounded capacity pass, not a promise that another large job will fit.

Nemotron: long context alone, but the companion crossed the line
At context 131,072, Nemotron alone completed 119,774 input tokens. First token took 188.101 seconds; uncached prompt throughput was 638.23 tokens per second and decoding 33.78 tokens per second. Sampled llama.cpp runner RSS reached 81.807 GiB and system wired memory 83.241 GiB, with pressure availability no lower than 33% during that request.
The short-prompt phase had shown Nemotron and the companion retained together at both 131,072 and 262,144 settings. That apparent success did not survive occupied-context testing. With Nemotron’s long history retained, the companion’s attempted near-full 131,072-window prefill raised sampled swap from about 0.021 to 2.109 GiB. System wired memory reached 107.499 GiB, the physical compressor allocation 8.313 GiB, and the lowest sampled pressure availability was 10%. The guard interrupted the client; no completed token count or TTFT was returned for that request.
The server later logged continued prefill progress before cancellation settled. That does not turn an interrupted request into a pass. Both tags appeared in the final guard sample, but the pair never completed its occupied-context qualification and no near-full simultaneous Nemotron pair was attempted.
A narrower continuation tested Nemotron alone at context 262,144. It completed 239,554 input tokens, returned all three markers, and took 467.664 seconds to first token. Prompt throughput was 513.09 tokens per second and decoding 30.20. Sampled runner RSS reached 84.611 GiB, system wired memory 84.258 GiB, and pressure availability stayed at or above 30%. Residual swap from the earlier experiment decreased from about 0.351 to 0.343 GiB during this request. Existing swap is not new swapping; this pass showed no sampled growth.
I did not repeat the already unsafe near-full pairing at 262,144. That occupied pair and its simultaneous phase remain untested, not silently counted as an OOM or a successful coexistence result.
The misleading two-gigabyte Nemotron reading
During the 131,072-window run, Ollama’s loaded-model API reported Nemotron at roughly 2.04 GB for both size and VRAM size. Reading that as physical residency would make the machine appear to have enormous spare capacity. It did not.
The matching llama.cpp log said 89 of 89 layers were offloaded to the GPU, with Metal mapped model buffers of 80,330.31 MiB and 420.02 MiB, plus a 288 MiB CPU-mapped model buffer. Native process RSS and VM accounting independently showed a large footprint. This was not evidence that only two gigabytes of weights were resident, nor evidence of a mostly CPU-offloaded model. It was an accounting mismatch in that API view. Even the mapped-buffer sizes are allocation/mapping evidence, not a page-by-page physical residency measurement.
The large Qwen: tiny prompts worked; longer prefill did not
qwen3.8-flash-next:125b-mlx answered a 16-token prompt at both configured windows. The matching MLX log reported roughly 97.92 GiB peak allocation for those tiny requests. Loading the companion then evicted the large Qwen at both settings: only the 27B tag remained. That is replacement, not coexistence.
The continuation attempted the 512-record calibration archive alone at each setting. Both requests returned HTTP 500. Matching native logs identified a Metal command-buffer Insufficient Memory error and Ollama’s runtime-OOM cleanup. The runner logged 13,525 submitted prompt tokens and progress through 2,048 before failure in the captured attempts; there is no final API input-token count. It would be wrong to label those as completed 128k or 256k tests. Near-full Qwen requests and occupied Qwen pairs were never reached.
That result is specific to this installed artifact, runner, defaults and machine. I did not change Metal limits, prefill batching, cache precision, quantization or model files to force a different outcome. It is not a universal statement that every similarly named Qwen build fails on every 128 GB Mac.

What I would actually run
- For this 27B companion at long context, GPT-OSS is the demonstrated pairing. Use the 131,072 setting as a ceiling for this build, and understand that the evidence covers roughly 119k occupied inputs and cached concurrent reuse. Qualify answer quality, full assistant tool use and realistic output lengths separately.
- For Nemotron at these lengths, run it alone. Its single-model 239,554-token pass is much stronger evidence than the short-prompt co-residency check. A shorter-context companion might work, but that is a different untested configuration.
- Do not keep the 27B companion alongside the tested large Qwen build. The scheduler evicted the heavyweight even on tiny requests, and isolated calibration hit Metal OOM. Treat this artifact as unqualified for the intended long-context role until a separately measured configuration passes.
The lesson is not that 128 GB is small. It is that model weights, occupied context, prefill workspaces and the server’s accounting all matter. A model picker accepting 262,144 is the beginning of the test, not the result.
Per-request evidence ledger
The study recorded 30 model requests: 27 completed API responses, one memory-guard interruption and two HTTP-500 calibration failures. The original 26-request run was preserved unchanged; four requests came from the isolated continuation. The following ledger includes calibration and short-prompt controls so the easy cases cannot be mistaken for occupied-context successes.
Each entry lists configured context, final API input and cached counts, first-token time, and decode rate. Where active telemetry samples exist, it adds the matched inference-process RSS sum, system wired peak, minimum pressure-availability percentage and sampled swap range. These memory metrics overlap, are not model-only allocations, and are not additive. A missing sample means unmeasured, not zero. Warm-cache rates are not cold-prefill rates. The short decode budget makes every throughput figure illustrative rather than a stable performance estimate.
- window-only / gpt-oss:120b / 131072: completed; context 131,072; input 71, cached 0; TTFT 3.641 s; wall 3.779 s; decode 87.06 tokens/s. 1 active sample(s): RSS sum peak 61.215 GiB; system wired peak 29.547 GiB; compressor physical peak 0.156 GiB; pressure minimum 74%; swap first/last 0.0/0.0 GiB (sampled maximum 0.0 GiB). Loaded after: gpt-oss:120b @131072.
- pair-window-only / gpt-oss:120b / 131072: completed; context 131,072; input 16, cached 0; TTFT 3.77 s; wall 3.83 s; decode 7.87 tokens/s. 1 active sample(s): RSS sum peak 80.726 GiB; system wired peak 85.103 GiB; compressor physical peak 0.156 GiB; pressure minimum 32%; swap first/last 0.0/0.0 GiB (sampled maximum 0.0 GiB). Loaded after: qwen3.8:27b-mlx @131072; gpt-oss:120b @131072.
- pair-simultaneous-short / gpt-oss:120b / 131072 / gpt-oss:120b: completed; context 131,072; input 71, cached 66; TTFT 0.1 s; wall 0.238 s; decode 78.86 tokens/s. No active telemetry sample landed inside this request. Loaded after: gpt-oss:120b @131072; qwen3.8:27b-mlx @131072.
- pair-simultaneous-short / gpt-oss:120b / 131072 / qwen3.8:27b-mlx: completed; context 131,072; input 16, cached 11; TTFT 0.35 s; wall 0.385 s; decode 6.53 tokens/s. No active telemetry sample landed inside this request. Loaded after: gpt-oss:120b @131072; qwen3.8:27b-mlx @131072.
- window-only / nemotron-3-super:120b / 131072: completed; context 131,072; input 21, cached 0; TTFT 17.937 s; wall 18.015 s; decode 38.94 tokens/s. 4 active sample(s): RSS sum peak 80.903 GiB; system wired peak 82.627 GiB; compressor physical peak 0.156 GiB; pressure minimum 34%; swap first/last 0.0/0.0 GiB (sampled maximum 0.0 GiB). Loaded after: nemotron-3-super:120b @131072.
- pair-window-only / nemotron-3-super:120b / 131072: completed; context 131,072; input 16, cached 0; TTFT 3.531 s; wall 3.591 s; decode 16.64 tokens/s. No active telemetry sample landed inside this request. Loaded after: qwen3.8:27b-mlx @131072; nemotron-3-super:120b @131072.
- pair-simultaneous-short / nemotron-3-super:120b / 131072 / qwen3.8:27b-mlx: completed; context 131,072; input 16, cached 11; TTFT 0.107 s; wall 0.162 s; decode 18.22 tokens/s. No active telemetry sample landed inside this request. Loaded after: qwen3.8:27b-mlx @131072; nemotron-3-super:120b @131072.
- pair-simultaneous-short / nemotron-3-super:120b / 131072 / nemotron-3-super:120b: completed; context 131,072; input 21, cached 17; TTFT 0.097 s; wall 0.175 s; decode 38.36 tokens/s. No active telemetry sample landed inside this request. Loaded after: nemotron-3-super:120b @131072; qwen3.8:27b-mlx @131072.
- window-only / nemotron-3-super:120b / 262144: completed; context 262,144; input 21, cached 0; TTFT 4.29 s; wall 4.338 s; decode 62.38 tokens/s. 1 active sample(s): RSS sum peak 61.383 GiB; system wired peak 2.318 GiB; compressor physical peak 0.225 GiB; pressure minimum 97%; swap first/last 0.001/0.001 GiB (sampled maximum 0.001 GiB). Loaded after: nemotron-3-super:120b @262144.
- pair-window-only / nemotron-3-super:120b / 262144: completed; context 262,144; input 16, cached 0; TTFT 3.03 s; wall 3.09 s; decode 16.6 tokens/s. 1 active sample(s): RSS sum peak 88.627 GiB; system wired peak 101.295 GiB; compressor physical peak 0.224 GiB; pressure minimum 19%; swap first/last 0.003/0.003 GiB (sampled maximum 0.003 GiB). Loaded after: qwen3.8:27b-mlx @262144; nemotron-3-super:120b @262144.
- pair-simultaneous-short / nemotron-3-super:120b / 262144 / qwen3.8:27b-mlx: completed; context 262,144; input 16, cached 11; TTFT 0.108 s; wall 0.163 s; decode 18.0 tokens/s. No active telemetry sample landed inside this request. Loaded after: qwen3.8:27b-mlx @262144; nemotron-3-super:120b @262144.
- pair-simultaneous-short / nemotron-3-super:120b / 262144 / nemotron-3-super:120b: completed; context 262,144; input 21, cached 17; TTFT 0.096 s; wall 0.174 s; decode 38.08 tokens/s. No active telemetry sample landed inside this request. Loaded after: nemotron-3-super:120b @262144; qwen3.8:27b-mlx @262144.
- window-only / qwen3.8-flash-next:125b-mlx / 131072: completed; context 131,072; input 16, cached 0; TTFT 25.41 s; wall 25.44 s; decode 3.49 tokens/s. 2 active sample(s): RSS sum peak 25.147 GiB; system wired peak 33.358 GiB; compressor physical peak 45.909 GiB; pressure minimum 37%; swap first/last 0.01/0.01 GiB (sampled maximum 0.01 GiB). Loaded after: qwen3.8-flash-next:125b-mlx @131072.
- pair-window-only / qwen3.8-flash-next:125b-mlx / 131072: completed; context 131,072; input 16, cached 0; TTFT 2.59 s; wall 2.648 s; decode 14.34 tokens/s. 1 active sample(s): RSS sum peak 15.942 GiB; system wired peak 2.758 GiB; compressor physical peak 0.212 GiB; pressure minimum 96%; swap first/last 0.01/0.01 GiB (sampled maximum 0.01 GiB). Loaded after: qwen3.8:27b-mlx @131072.
- window-only / qwen3.8-flash-next:125b-mlx / 262144: completed; context 262,144; input 16, cached 0; TTFT 23.922 s; wall 23.951 s; decode 10.89 tokens/s. 2 active sample(s): RSS sum peak 25.018 GiB; system wired peak 39.122 GiB; compressor physical peak 42.387 GiB; pressure minimum 35%; swap first/last 0.021/0.021 GiB (sampled maximum 0.021 GiB). Loaded after: qwen3.8-flash-next:125b-mlx @262144.
- pair-window-only / qwen3.8-flash-next:125b-mlx / 262144: completed; context 262,144; input 16, cached 0; TTFT 2.207 s; wall 2.265 s; decode 17.34 tokens/s. No active telemetry sample landed inside this request. Loaded after: qwen3.8:27b-mlx @262144.
- calibration / gpt-oss:120b / 131072: completed; context 131,072; input 10235, cached 0; TTFT 14.88 s; wall 15.458 s; decode 74.92 tokens/s. 3 active sample(s): RSS sum peak 64.932 GiB; system wired peak 67.837 GiB; compressor physical peak 0.201 GiB; pressure minimum 45%; swap first/last 0.021/0.021 GiB (sampled maximum 0.021 GiB). Loaded after: gpt-oss:120b @131072.
- occupied-single / gpt-oss:120b / 131072: completed; context 131,072; input 119171, cached 0; TTFT 158.516 s; wall 159.743 s; decode 37.02 tokens/s. 31 active sample(s): RSS sum peak 65.764 GiB; system wired peak 67.84 GiB; compressor physical peak 0.202 GiB; pressure minimum 45%; swap first/last 0.021/0.021 GiB (sampled maximum 0.021 GiB). Loaded after: gpt-oss:120b @131072.
- pair-calibration / gpt-oss:120b / 131072: completed; context 131,072; input 13525, cached 0; TTFT 16.543 s; wall 17.167 s; decode 34.99 tokens/s. 3 active sample(s): RSS sum peak 80.721 GiB; system wired peak 87.763 GiB; compressor physical peak 0.205 GiB; pressure minimum 30%; swap first/last 0.021/0.021 GiB (sampled maximum 0.021 GiB). Loaded after: qwen3.8:27b-mlx @131072; gpt-oss:120b @131072.
- occupied-pair-small / gpt-oss:120b / 131072: completed; context 131,072; input 119867, cached 0; TTFT 192.697 s; wall 193.311 s; decode 29.17 tokens/s. 37 active sample(s): RSS sum peak 80.728 GiB; system wired peak 91.972 GiB; compressor physical peak 0.205 GiB; pressure minimum 26%; swap first/last 0.021/0.021 GiB (sampled maximum 0.021 GiB). Loaded after: qwen3.8:27b-mlx @131072; gpt-oss:120b @131072.
- occupied-pair-simultaneous / gpt-oss:120b / 131072 / qwen3.8:27b-mlx: completed; context 131,072; input 119867, cached 119862; TTFT 0.24 s; wall 0.958 s; decode 30.05 tokens/s. No active telemetry sample landed inside this request. Loaded after: qwen3.8:27b-mlx @131072; gpt-oss:120b @131072.
- occupied-pair-simultaneous / gpt-oss:120b / 131072 / gpt-oss:120b: completed; context 131,072; input 119171, cached 119170; TTFT 0.799 s; wall 2.123 s; decode 33.09 tokens/s. 1 active sample(s): RSS sum peak 80.735 GiB; system wired peak 95.437 GiB; compressor physical peak 0.205 GiB; pressure minimum 24%; swap first/last 0.021/0.021 GiB (sampled maximum 0.021 GiB). Loaded after: gpt-oss:120b @131072; qwen3.8:27b-mlx @131072.
- calibration / nemotron-3-super:120b / 131072: completed; context 131,072; input 13539, cached 0; TTFT 34.947 s; wall 35.571 s; decode 40.15 tokens/s. 7 active sample(s): RSS sum peak 80.977 GiB; system wired peak 83.441 GiB; compressor physical peak 0.205 GiB; pressure minimum 33%; swap first/last 0.021/0.021 GiB (sampled maximum 0.021 GiB). Loaded after: nemotron-3-super:120b @131072.
- occupied-single / nemotron-3-super:120b / 131072: completed; context 131,072; input 119774, cached 0; TTFT 188.101 s; wall 188.845 s; decode 33.78 tokens/s. 37 active sample(s): RSS sum peak 81.96 GiB; system wired peak 83.241 GiB; compressor physical peak 0.205 GiB; pressure minimum 33%; swap first/last 0.021/0.021 GiB (sampled maximum 0.021 GiB). Loaded after: nemotron-3-super:120b @131072.
- pair-calibration / nemotron-3-super:120b / 131072: completed; context 131,072; input 13525, cached 0; TTFT 16.886 s; wall 17.373 s; decode 41.51 tokens/s. 3 active sample(s): RSS sum peak 90.531 GiB; system wired peak 102.719 GiB; compressor physical peak 0.801 GiB; pressure minimum 17%; swap first/last 0.021/0.021 GiB (sampled maximum 0.021 GiB). Loaded after: qwen3.8:27b-mlx @131072; nemotron-3-super:120b @131072.
- occupied-pair-small / nemotron-3-super:120b / 131072: error; context 131,072; input not returned, cached not returned; TTFT not returned s; wall 197.906 s; decode not returned tokens/s. 36 active sample(s): RSS sum peak 89.822 GiB; system wired peak 107.499 GiB; compressor physical peak 8.313 GiB; pressure minimum 10%; swap first/last 0.021/2.109 GiB (sampled maximum 2.109 GiB). Error: memory guard: swap growth >2GiB or pressure headroom <5%.
- calibration / nemotron-3-super:120b / 262144: completed; context 262,144; input 13539, cached 0; TTFT 21.061 s; wall 21.64 s; decode 43.27 tokens/s. 5 active sample(s): RSS sum peak 83.693 GiB; system wired peak 84.031 GiB; compressor physical peak 0.794 GiB; pressure minimum 31%; swap first/last 0.351/0.351 GiB (sampled maximum 0.351 GiB). Loaded after: nemotron-3-super:120b @262144.
- occupied-single / nemotron-3-super:120b / 262144: completed; context 262,144; input 239554, cached 0; TTFT 467.664 s; wall 468.499 s; decode 30.2 tokens/s. 91 active sample(s): RSS sum peak 84.752 GiB; system wired peak 84.258 GiB; compressor physical peak 0.795 GiB; pressure minimum 30%; swap first/last 0.351/0.343 GiB (sampled maximum 0.351 GiB). Loaded after: nemotron-3-super:120b @262144.
- calibration / qwen3.8-flash-next:125b-mlx / 131072: error; context 131,072; input not returned, cached not returned; TTFT not returned s; wall 25.116 s; decode not returned tokens/s. 2 active sample(s): RSS sum peak 39.08 GiB; system wired peak 96.311 GiB; compressor physical peak 36.269 GiB; pressure minimum 21%; swap first/last 0.348/0.348 GiB (sampled maximum 0.348 GiB). Error: HTTP Error 500: Internal Server Error.
- calibration / qwen3.8-flash-next:125b-mlx / 262144: error; context 262,144; input not returned, cached not returned; TTFT not returned s; wall 22.907 s; decode not returned tokens/s. 2 active sample(s): RSS sum peak 40.421 GiB; system wired peak 103.288 GiB; compressor physical peak 34.873 GiB; pressure minimum 15%; swap first/last 0.346/0.346 GiB (sampled maximum 0.346 GiB). Error: HTTP Error 500: Internal Server Error.
Coverage limits and provenance
The unsupported GPT-OSS 262,144 cell was deliberately excluded. Nemotron’s occupied 262,144 pairing and all near-full simultaneous Nemotron pairs remain untested after the 131,072 pairing crossed the guard. The large Qwen’s near-full single and paired cells remain untested because calibration failed; its tiny-prompt pair checks established eviction instead. No result above means full maximum-window occupancy.
Raw request metrics, deterministic prompt generator, registry snapshots, VM telemetry, selected native server evidence and analysis code are retained privately. The original run’s core files were checked against a SHA-256 manifest after continuation and remained unchanged. The continuation has its own results and baselines; the final model registry was empty. Public text and derived comparison exclude host addresses, access details, private paths and raw operational logs.
All three photographs are licensed illustrations of earlier Mac Studio hardware, not photographs of the tested M5 Max machine. Their captions identify the creators and licenses. No photograph is benchmark evidence.

