Peak Memory Bandwidth (GB/s) — The Defining Metric
Why bandwidth is the decision variable
A 3x bandwidth advantage during inference saves ~15 seconds per query. The same advantage during embedding saves nearly a full day on a large corpus run. These are different problems at different scales.
Relative Embedding Time — Large Corpus (Illustrative, RTX 5090 = 1.0x)
Specs at a Glance
Key Specifications
How a Legal RAG Pipeline Works
Two Stages, Two Different Hardware Requirements
Stage 1 — Embedding: Every document in the corpus is processed by an embedding model and stored as vectors in a local database. This runs once upfront and repeats whenever new material is added — new productions, updated filings, additional contracts. The embedding model fits in available accelerator memory on all three platforms. Throughput is determined by memory bandwidth and CUDA kernel availability, not memory capacity.
Stage 2 — Inference: At query time, the top chunks are retrieved, reranked, and passed to the LLM for reasoning. Per-query, measured in seconds. All three platforms handle this adequately at interactive speeds.
The embedding stage scales with corpus size, not query volume. A firm adding new productions to a live discovery database runs embedding jobs regularly. The hardware that handles those jobs fastest has the most operational impact on update frequency. On larger live matters, illustrative embedding runs can easily stretch from roughly 10 hours on an RTX 5090 to roughly 29 hours on M5 Max and roughly 66 hours on DGX Spark.
Illustrative estimates for a large corpus embedding run based on bandwidth ratios. Actual times vary by corpus size, chunk strategy, model, and pipeline configuration.
The Mac compounds its bandwidth gap with a second constraint: major embedding and reranking libraries — sentence-transformers, FAISS, cross-encoder rerankers — are optimized for CUDA. They run on Apple hardware via Metal and MLX, but cannot access the same optimized kernel execution paths. The bandwidth figure is real; the software pipeline cannot fully leverage it for this workload.
Supplementary Charts
Memory Capacity
Capacity is not the differentiating variable for embedding workloads — the model fits in available accelerator memory on all platforms. Included for reference.
Memory Capacity (GB)
Full Comparison
Detailed Specification Table
Sources: NVIDIA Blackwell architecture documentation, Apple silicon specifications, Apple newsroom (March 3, 2026), community benchmarks. See technical disclaimer below.
| Metric | NVIDIA DGX Spark | Mac M4 Max 64GB Best BW at ~$3.5–4.5K tier | Mac M5 Max 128GB Best Apple BW, higher tier | RTX 5090 Workstation |
|---|---|---|---|---|
| Price (USD) | $4,699 FE / OEM pricing varies | ~$3,499–$4,526 | $3,599–$3,899+ (M5 Max) | $7,999 |
| Memory | 128 GB LPDDR5x | 64 GB Unified | 128 GB Unified | 32 GB GDDR7 |
| Peak Memory Bandwidth | ~273 GB/s | ~546 GB/s | ~614 GB/s | ~1,792 GB/s |
| Bandwidth vs. RTX 5090 | 0.15x — 6.6x slower | 0.30x — 3.3x slower | 0.34x — 2.9x slower | 1.0x baseline |
| 27B Q6 Model Fits? | Yes (<20% of RAM) | Yes (~38% of RAM) | Yes (~19% of RAM) | Yes (~80% of VRAM) |
| Inference Speed est. (27B Q6) | ~20–30 tok/s | ~20–35 tok/s (MLX) | ~25–40 tok/s (MLX) | ~60–80 tok/s |
| CUDA Support | CUDA on ARM64 — more version-sensitive than x86 | No (Metal / MLX only) | No (Metal / MLX only) | Full (Blackwell) |
| TB-Scale Embedding | Bandwidth-limited | Bandwidth + CUDA gap | Bandwidth + CUDA gap | Full throughput |
| Reranker Pipeline | CUDA on ARM64 — library compatibility uneven | No CUDA optimization | No CUDA optimization | CUDA-accelerated |
| KV Cache Headroom (post model load) | ~104 GB | ~40 GB | ~104 GB | ~6–8 GB VRAM* |
| Air Gap Capable | Yes | Yes | Yes | Yes |
| Local Fine-Tuning (<70B) | Yes (128 GB capacity) | No (64 GB limit) | Yes (128 GB unified) | No (32 GB VRAM limit) |
| Form Factor | Desktop (compact) | Laptop | Laptop | Desktop workstation |
Performance Analysis
Each Platform by Pipeline Stage
Stage 1: Embedding Performance
Embedding model fits in available accelerator memory on all platforms. Throughput is determined by memory bandwidth and CUDA kernel availability, not model capacity.
RTX 5090
1,792 GB/s GDDR7 with full CUDA. Sentence-transformers, FAISS, and cross-encoder rerankers run on optimized CUDA paths. Highest throughput of the three baseline options. On large batches can match or exceed cloud API throughput where provider rate limits apply.
Mac M4 Max / M5 Max
546–614 GB/s through Metal and MLX backends. Libraries run on Apple GPU but cannot use CUDA-optimized execution paths. Estimated 2.9–3.3x slower than RTX 5090 for this workload. M5 Max reaches 614 GB/s; the CUDA gap persists across all M-series chips.
DGX Spark
273 GB/s LPDDR5x is the binding constraint. Approximately 6.6x slower than RTX 5090 for embedding throughput. The 128 GB capacity advantage does not apply here because the embedding model fits in 24 GB.
Stage 2: Inference Performance
All three platforms run 27B-class models at interactive speeds. The spread is real but less operationally significant at per-query scale.
RTX 5090
60–80 tok/s on Qwen3.5-27B Q6_K_XL via llama.cpp CUDA. Fastest of the three. At a typical response length, approximately 10–15 seconds faster per query than the Mac options.
Mac M5 Max
~25–40 tok/s with MLX backend. Competitive for interactive use. 128 GB unified memory opens access to larger models that the RTX 5090's 32 GB VRAM cannot load. Best Apple option for inference.
Mac M4 Max / DGX Spark
Both at ~20–35 tok/s. Adequate for interactive legal research. DGX Spark handles sparse MoE models more efficiently due to its larger memory capacity.
Use Case Fit
Which Hardware Fits Which Workload
DGX Spark
Best suited for local model research, fine-tuning experiments up to 70B, and environments where memory capacity is the primary constraint. Less suitable as the primary hardware for a production legal embedding pipeline where throughput determines update frequency.
Mac M4 Max / M5 Max
Well suited for solo practitioners and small teams needing a portable, air-gapped local LLM. M5 Max is the stronger option at this tier. Interactive legal research, document drafting, and lower-volume RAG are appropriate workloads. Production-scale embedding is where the CUDA and bandwidth gaps become operationally relevant.
RTX 5090 Workstation
Best suited for law firms running production RAG against large discovery corpora. Highest embedding throughput of the three baseline options, full CUDA ecosystem, and capable inference performance. Higher cost and power requirements are the primary tradeoffs.
Beyond Baseline
H100-Class Infrastructure
When to Consider H100-Class Hardware
The three configurations above cover the most commonly evaluated entry points. For firms running continuous corpus ingestion, multi-matter pipelines, or concurrent multi-user inference, H100-class workstation infrastructure is the next tier to evaluate.
H100 SXM5 delivers approximately 3.35 TB/s of HBM3 bandwidth — roughly double the RTX 5090 — with 80 GB of on-board memory and a software stack designed for enterprise-scale inference and embedding. For organizations where embedding throughput is a daily operational constraint rather than an overnight batch job, the performance difference is material. H100 configurations and deployment options are covered separately.
Bottom Line
All three baseline platforms run capable local AI. The performance differences during inference are real but measured in seconds per query. The performance differences during embedding are measured in hours per corpus run. For a legal RAG deployment where corpus updates are a recurring operational requirement, that distinction drives the hardware decision more than any other single specification.
The RTX 5090 workstation has the highest embedding throughput of the three baseline options. The Mac is the appropriate choice for portability and solo use. The DGX Spark fits workloads where model capacity is the primary constraint. For volume requirements above what these three cover, H100-class infrastructure should be evaluated.
Disclosures & Disclaimers