By UNST33R
Fitting the hardest-hitting abliterated model on a 128GB Mac: measured GGUF sizes and the memory-budget math
A 9,235-follower developer asked on November 19 which abliterated model to run on a 128GB M5 Max, then self-answered with a live datapoint: qwen3-coder-next at 87-99 tok/s using 42GB. That exchange is a complete sizing exercise. The three consumers of unified memory, measured GGUF file totals pulled from Hugging Face on November 20 for the GLM-5.3, GLM-5.3-Flash, and DeepSeek V4.1 Flash 1017 abliterated builds, the throughput roofline that explains the 87-99 tok/s number, and the point where the budget math sends you to a hosted endpoint instead.
On November 19 at 09:25 UTC, a developer with 9,235 followers asked the exact question every local-first red-teamer eventually faces: "whats the hardest hitting abliterated model that i should try on the 128gb M5 Max?" (robinebers on X, 1,917 views at capture, zero substantive replies). He then answered his own question with a datapoint worth keeping: "qwen3-coder-next runs at 87-99 tok/s and it only takes 42gb" (self-reply, November 19). One thread contains the whole problem: a fixed memory budget, a family of candidate builds whose smallest usable quants differ by a factor of five, and a throughput claim that only makes sense once you know how mixture-of-experts models read weights. This post does the budget math with sizes measured from Hugging Face on November 20, so the next person with this question gets a table instead of a shrug.
The decision this supports is bigger than one machine. The self-hosted versus hosted framework prices both legs of the choice; this post supplies the constraint that usually decides it: whether the weights you want physically fit the RAM you have, at a quant level that survives a quality regression gate.
What actually consumes unified memory
Three line items compete for your RAM, and only one of them is the model.
Weights. The resident size of a GGUF quant is roughly parameter count times bits-per-weight divided by eight, plus a few percent of metadata. Approximate bits-per-weight by quant type, per llama.cpp conventions: Q2_K around 2.6, Q3_K_M around 3.9, Q4_K_M around 4.8, Q5_K_M around 5.7, Q6_K around 6.6, Q8_0 around 8.5. A 30B-parameter dense model at Q4_K_M therefore lands near 18GB of weights; the same model at Q8_0 lands near 32GB.
KV cache. Every token of context you keep resident costs 2 × layers × kv_heads × head_dim × bytes_per_element × tokens. The formula is the reason long-context work murders small machines: an illustrative mid-size configuration (64 layers, 8 KV heads under GQA, 128-dim heads, fp16) needs about 8.6GB for a 32,000-token window, and that bill scales linearly with context. llama.cpp prints the computed KV buffer size at startup, so you never have to trust the arithmetic alone.
System reserve and compute buffers. macOS caps default GPU allocation on large-memory Macs at roughly three quarters of unified memory, adjustable with the iogpu.wired_limit_mb sysctl knob documented in llama.cpp community guides. On a 128GB machine that puts the default GPU ceiling near 96GB before the OS and your editor get their share. Practical weights budget on stock settings: about 85-90GB, and less if you want a serious context window.
Measured sizes, not vendor claims
I pulled the complete file listings for the candidate repositories from the Hugging Face blobs API on November 20 and summed each quant variant's shards. Totals below are measured, with the repositories' current download counts for context.
| Build (abliterated unless noted) | Repository, downloads | Smallest listed quant | Q4-class total | High-quant total | Fits 128GB? |
|---|---|---|---|---|---|
| Qwen3-Coder-Next (base, official) | Qwen GGUF, 71,267 | about 50GB | 50.1GB (Q4_1, unsloth) | 84.8GB (Q8_0, unsloth) | Yes, through Q8 |
| Qwen3-Coder-Next (base, unsloth) | unsloth GGUF, 201,486 | 50.1GB (Q4_1) | 50.1GB | 84.8GB | Yes, through Q8 |
| Qwen3-Coder-Next, Heretic uncensored | llmfan46 GGUF, 11,449 | similar class | similar class | similar class | Yes |
| GLM-5.3-Flash abliterated | huihui-ai GGUF, 43,720 | 93.1GB (UD-IQ1_S) | 199.7GB (UD-Q4_K_XL) | 291.8GB (UD-Q6_K_XL) | Only at 2bpw-class quants |
| GLM-5.3 abliterated (full) | huihui-ai GGUF, 18,875 | 216.7GB (UD-IQ1_S) | none listed under 200GB | none listed | No |
| DeepSeek V4.1 Flash 1017 abliterated | huihui-ai GGUF, 134,351 | 233.0GB (UD-IQ1_S) | none listed under 200GB | none listed | No |
Three structural facts fall out of this table. The Qwen3-Coder-Next build is roughly an 80B-parameter model (its BF16 GGUF totals 159.5GB, and two bytes per parameter puts it at 79.75B), which is why the thread's 42GB self-report is coherent: that footprint implies a sub-Q4 or pruned variant of an officially quantized line that starts at 50.1GB. The GLM-5.3-Flash abliterated build is a different weight class entirely, with 43,720 downloads of a repository whose only sub-100GB options sit at 1-2 bits per weight, where the quantization quality audit shows measurable degradation starting to bite. And the two largest builds, with 134,351 and 18,875 downloads respectively, have minimum entries above 216GB: those downloads are landing on workstations and servers, because no MacBook ships with that much unified memory.
The verdict for a 128GB machine
| RAM budget | What actually fits | Honest characterization |
|---|---|---|
| 32GB | 14B-class dense at Q5, smaller distills at Q6 | Fast smoke tests, short contexts, toy-prompt red teaming |
| 64GB | 30B-class dense at Q4-Q5; 80B MoE class at 2-3bpw | The 50.1GB Q4_1 Qwen3-Coder-Next build fits with a small context window |
| 96GB | 80B MoE class at Q4-Q6 with modest context | The 65.6GB Q6_K build plus an 8-12GB KV window is workable |
| 128GB | 80B MoE at Q8; GLM-5.3-Flash abliterated only at IQ1_S through IQ2_XXS (93-102GB) | The thread's machine: Qwen3-Coder-Next class at any quant, or the Flash-tier big build starved to 2bpw |
| 192GB+ | GLM-5.3-Flash abliterated at Q3-Q4 | First tier where the big abliterated builds run at defensible quants |
The interesting row is 128GB, because it presents a genuine quality trade rather than a fitting exercise. Option A: a roughly 80B coder-class build at 4-6 bits per weight, which the thread's own author validated at 87-99 tok/s on a 42GB footprint. Option B: a Flash-tier build an order of magnitude larger by parameters, starved down to 1-2 bits per weight to squeeze under the ceiling. The paired regression gate exists precisely for this decision, and its answer is usually that a mid-quant mid-size model beats an extreme-quant giant on structured security outputs, because JSON validity and tool-call format are the first casualties of aggressive quantization. Measure both on your own corpus for an afternoon before committing.
Why 87-99 tok/s is credible: the MoE roofline
Generation speed on Apple Silicon is memory-bandwidth-bound. The ceiling is effective bandwidth divided by bytes read per generated token, and for a mixture-of-experts model the bytes read per token are the active experts' weights, not the full resident footprint. That is the entire local trade: an MoE keeps every expert resident in RAM (you pay the full quant size from the table above) but reads only the active fraction per token, so throughput tracks active parameters while capacity tracks total parameters.
The thread's datapoint fits that model. A 42GB resident build sustaining 87-99 tok/s implies the per-token read is a small fraction of the footprint, the signature of a coder-class MoE with a modest active-parameter count. Verify on your own hardware rather than trusting anyone's timeline: ./llama-bench -m ./Qwen3-Coder-Next-Q4_1.gguf -p 512 -n 128 reports prompt-processing and generation rates with repeats, and takes minutes. Numbers from your bench, on your quant, on your machine, supersede every claim in every thread, including this one.
Sourcing and hygiene before anything loads
The measured table doubles as a sourcing guide. huihui-ai is the highest-volume consistent repackager of abliterated GGUFs (its DeepSeek V4.1 Flash 1017 abliterated repository sits at 134,351 downloads against a base model at 502,094 downloads and 5,957 likes as of our November 19 capture), and mradermacher mirrors an enormous long tail, including a 460-download 0.6B GLM-5.3 MoE useful for smoke tests. Volume is a popularity signal, and popularity is a supply-chain risk factor. Before any new file runs:
- Verify provenance: the build should trace to a named abliteration method and a named base model, per the provenance verification workflow.
- Treat every downloaded artifact as untrusted input. The LM Studio hardening guide covers download hygiene, and the mmproj file attack surface is the concrete case where a sidecar file in a model distribution became exploitable.
- Gate the build on a paired eval before it touches engagement work, at the quant you will actually run.
The leg that no RAM budget reaches
The KV cache formula is what eventually evicts you from local. A 32k-token window on a mid-size model costs single-digit gigabytes; the million-token windows that make whole-corpus red-team passes practical cost hundreds of gigabytes of cache alone, before weights. When the work is long-context or high-volume, the hosted leg takes over, and the pricing is published: abliterated DeepSeek V4.1 Flash class at $0.15 input / $0.5625 output per 1M tokens, $0.03125 cached input, 1M-token context and 384k max output (model page); GLM-5.3 Flash class at $0.50 / $1.50 (model page); full GLM-5.3 class at $2.50 / $4.50. Cached input at $0.03125 changes the economics of repeated corpus scans enough to measure your hit rate first, and the tier-by-workload guide maps the rest. Switching legs stays a one-line change:
curl https://api.unst33r.si/v1/chat/completions \
-H "Authorization: Bearer $UNST33R_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"unst33r-deepseek","messages":[{"role":"user","content":"Summarize the refusal behavior in this transcript corpus."}]}'
The checklist
Start from the table, then confirm with your own numbers: budget weights at about two thirds of your unified memory, KV for your real context window via the formula or the startup log, and the sysctl ceiling if you need the headroom. Bench every candidate with llama-bench at the exact quant you will keep, run the provenance and hygiene checks on every new file, and push anything long-context or bulk to the hosted leg with cache pricing in mind. The 128GB question now has a measured answer: an 80B-class MoE at 4-6 bits for the daily driver, and a priced API for everything that does not fit.