arXiv:2610.36564cs.PFOct 2026

Manuscript Offprint

arXiv:2610.36564

DeepInfer-Mac: Running a 750B-Class MoE on a 24 GB Laptop

Haorui Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

DeepInfer-Mac runs the 750B-class DeepSeek-V4.1-Flash model on a MacBook Air with 24 GB of unified memory. A mixed low-bit conversion occupies 338 GiB on the internal SSD. About 7.6 GiB of weights remain resident; routed experts and Engram rows are loaded when needed. This separation makes the model executable, but it leaves each generated token waiting for a succession of storage reads. We organize expert weights so that reads fill reusable GPU buffers directly, and couple cache allocation with the lifetime of those buffers. In end-to-end runs, the system generates English, Chinese and code at 0.21–0.72 tokens per second, with a largest sampled process footprint of 16.73 GiB across the tested requests. Matched decode comparisons show a 21.0% throughput gain from next-layer prefetching over resident-expert overlap alone, at the cost of additional reads. Longer prompts remain costly. We describe the design, provide the implementation and measurement scripts, and identify the limits of this operating point: a model far larger than memory can run locally, while storage and prefill still govern the user's wait.

1 INTRODUCTION

A 750B-class model appears far beyond a laptop with 24 GB of memory. Even after compression, the checkpoint used in this work occupies 338 GiB. Yet a mixture-of-experts model does not use all of those parameters for each token. DeepSeek-V4.1-Flash selects six of the 384 routed experts in each of its 40 layers (DeepSeek-AI, 2026b). Most of the model can stay on disk while a much smaller working set moves through memory.

This paper follows that observation through to a running system. DEEPINFER-MAC executes the model on a single MacBook Air, using its internal SSD to hold routed experts and Engram tables. Attention, routers and other frequently used weights remain in unified memory. A selected expert is read directly into a reusable GPU buffer, computed, and retained until its space is needed. The model's size determines the storage requirement; the active experts and their reuse determine the cost of generating a token.

Making the working set fit is only the beginning. A GPU cluster can keep many tokens in flight and overlap their communication with computation (DeepSeek-AI, 2026a; 2024). On this laptop, one token passes through one layer at a time. The router must run before the system knows which experts to read, and those reads must finish before the missing experts can be computed. The next layer then repeats the same sequence. The SSD has enough capacity for the model, but its bandwidth and this dependency chain govern the pace of generation.

Our design spends memory to shorten that chain. The dense weights stay resident, expert reads avoid an extra user-space copy, and repeated expert use is served from a bounded cache. The same budget also has to cover buffers whose GPU work has not finished. We therefore couple cache allocation, expert batching and buffer lifetime. This makes the memory constraint enforceable even when optional reads are still in flight.

The resulting system generates text on the target laptop. Runs with 4.495 GiB of reserved expert capacity produce English, Chinese and Python at 0.21–0.72 tokens per second. A 3,764-token retrieval prompt completes in 309.0 seconds to the first token. These measurements use full prefill and local weights throughout. They also show why feasibility needs to be reported alongside latency: fitting the working set does not make a long prompt cheap.

Once the system fits, reading the next layer's likely experts can hide some of the remaining wait. A controlled comparison restores the same model state, warmup and continuation before each schedule. Adding demand-first speculation increases aggregate decode throughput by 21.0% over resident-expert overlap in these matched blocks, while reading 5.4% more expert data. The improvement comes from moving useful transfers earlier, with enough capacity reserved for the next demand group. The system exposes all three schedules so that the tradeoff can be tested on other requests and machines.

The contribution is a complete implementation and a measured account of this operating point: a 750B-class MoE, one 24 GB laptop, and SSD-backed execution. We explain which data must remain resident, how the rest can be supplied safely, and what limits the resulting performance. Operator-level comparisons with the reference and a study of indexer arithmetic support the implementation. The implementation, converted weight layout and raw measurements are available for others to reproduce and extend this case study.

24 GB unified memory, one GPU

Figure

Figure 1: The full checkpoint lives on the SSD. Memory holds the frequently used weights and a changing set of experts. The router determines which expert records enter the buffers; the GPU consumes them in place. Engram lookup follows a separate row cache.

References (36)