Alfred has one GPU, an RTX 3090 with 24 GB of memory. That is plenty for dictation, transcription, image work and the smaller language models. It is not enough for the big ones. A model that needs about 30 GB simply does not fit, and squeezing it down far enough to fit costs quality.
So the homelab has a new machine: a Mac Studio. Its memory is shared between the CPU and the GPU, and there is a lot of it. This is what it is, how it is set up, and what it already does.
The machine
Read straight from the machine, not from the box:
- Mac Studio, Apple M4 Max
- 16 CPU cores: 12 performance and 4 efficiency
- 40 GPU cores
- 128 GB of unified memory
- 2 TB SSD
- A 10 Gb Ethernet port
Unified memory is the whole point. On a PC the GPU only gets its own memory, 24 GB in the 3090's case. On the Studio about 107 GB of the 128 can go to the GPU, which is more than four times the room.
A server without a screen
The Studio lives on a shelf with no monitor, keyboard or mouse, so the first job was making sure I never need them.
- It has a fixed address and a name on the network, like everything else in the lab.
- It never sleeps, wakes when the network asks, and turns itself back on after a power cut.
- FileVault encrypts the disk. After a restart the Mac waits at a locked screen, and a recent macOS feature lets me unlock the disk over the network before anyone logs in. Then I log in with Screen Sharing, which works fine with no display attached.
- Its shell sits behind the same two factor gate as every other machine I run, and every session through that gate is recorded.
A desk for AI agents
Most of my work happens through AI coding agents, so the Studio is set up as a place for them to work, not just a box for models.
- The same coding agent I use on my other machines, already told where my code lives.
- Ghostty for the terminal, Dolph for running agents side by side, Xcode and Homebrew.
- Cua, which lets an agent see the screen and click and type on it. One agent used it to switch on a macOS privacy permission the message server needed, without me touching the Mac.
- A copy of Chromium that agents can drive, reachable only from the Studio itself.
- Parallels Desktop, already running a macOS virtual machine. The Studio will host iPhone and macOS virtual machines.
- Stats in the menu bar, set up the same way as on my MacBook, so I can see the CPU and memory at a glance.
The big models
Ollama runs on the Studio and serves Qwen 3.8 27B. It is stored at 8 bit quality, which is close to the full model, and it can read images, call tools and think before it answers. It writes about 31 to 32 tokens a second.
Before settling on those, I ran the same 4 bit model on both machines, so the comparison was fair:
- With a prompt of about 2,000 tokens, the Studio read it at 215 tokens a second and wrote at 43. The 3090 read at 1,172 and wrote at 68.
- With a prompt of about 15,000 tokens, the Studio read at 203 and wrote at 39. The 3090 read at 1,201 and wrote at 65.
So the 3090 is faster, by a lot when it reads a long prompt. The Studio wins on size, not speed: it runs models the 3090 cannot hold at all, and it runs them at higher quality. Moving from 4 bit to 8 bit made the Studio write about a quarter slower, and I took that trade for better answers.
One queue, two machines
Everything on Alfred that wants a GPU already goes through the GPU Broker, a small service that makes jobs wait their turn instead of fighting over the 3090. It now knows about the Studio. A request for any model of 12 GB or more that the Studio has goes straight to the Studio, outside the 3090's queue. Small models, transcription, dictation and images stay on the 3090. If the Studio does not answer, the request falls back to the 3090, so nothing breaks when the Mac is restarting.
The Studio's models also show up in my coding agent on the three machines I use it from. That step taught me something. My first test said it worked, but the answer came back in under two seconds, far too fast for a 29 GB model that had to load first. The agent had quietly fallen back to a cloud model, because the address I gave it was missing one part of its path. With the address fixed, the same test took 28 seconds, the time it takes to load the model, and the Studio showed the model in memory. A test that can pass by falling back is not a test.
iMessage, with tunnel vision
The other reason for a Mac is iMessage. Only a Mac can send and receive it, and I wanted my agents to be able to text the way I do.
An open source bridge connects to Messages on the Studio, and I put my own privacy gate in front of it. Each agent sees only the conversations its task needs, for a short time, and everything else stays out of reach. The rest of my messages are never part of the deal.
Still to do
- Decide whether to run Apple's MLX next to Ollama, which may be faster on this chip.
- Reach the Studio's screen from my phone and laptop when I am away from home, through the VPN.
- Show the Studio's models in the web chat app along with the 3090's.
- The 10 Gb port is currently connected at 1 Gb, so the network link needs a look.
Alfred is still the center of everything. It just has a neighbor now for the jobs that need more room than one GPU can give.