TBCCL: Running Qwen 27B across Apple Silicon and NVIDIA GPUs over Thunderbolt 4

Hello!
I’ve been working on a project called TBCCL, which started out as an experiment to see if I could use my Mac mini M4 and an NVIDIA laptop together for distributed training and inference.

My setup consists of a Mac mini M4 (16GB unified memory) and an RTX 3070 Ti laptop (8GB VRAM) running Linux, connected directly over Thunderbolt 4.

I wanted a way to communicate between different operating systems and accelerators without having to build a separate transport for every framework. TBCCL is the C++ communication library I ended up building. It currently uses TCP over Thunderbolt IP networking, and I’ve written adapters for:

  • PyTorch: a custom torch.distributed backend (torch-tbccl)

  • vLLM: communication support for distributed inference (vllm-tbccl)

  • Exo: pipeline communication between heterogeneous devices (exo-tbccl)

Running Qwen 27B across both machines

Using Exo, I managed to run mlx-community/Qwen3.8-27B-4bit across Metal on the Mac and CUDA on Linux, splitting its 64 transformer layers between the two machines.

Some measurements from my initial tests:

Metric Result
Model Qwen3.8-27B-4bit (~16.1GB)
Layer distribution 21 on Linux, 43 on Mac
TBCCL decode throughput ~6.8–6.9 tokens/s
Exo MlxRing baseline ~7.2 tokens/s
Cold TTFT (Linux → Mac) 12.7s
Warm TTFT (Linux → Mac) 11.8s
Linux GPU peak memory ~7.4–7.7GB

These were short runs with a 138-token prompt and 64 generated tokens. My laptop was also thermal throttling pretty badly during testing, so take the numbers with a grain of salt. MlxRing was around 5% faster during decoding, and I still need to investigate the communication overhead properly.

Where things stand

The core library and all three adapters are open source. I’ve also written a guide for configuring a direct Thunderbolt connection between macOS and Linux, along with installation instructions and examples.

I’ve validated the setup on my own Mac/Linux pair, but there are plenty of hardware combinations and performance scenarios I haven’t tested yet.

I’m also experimenting with actual RDMA over Thunderbolt as a separate project. TBCCL itself currently uses regular TCP.

Next, I’d like to run more systematic benchmarks with longer inference workloads, PyTorch collectives, and comparisons against other communication backends. I’m especially interested in how the overhead changes with different layer splits.

I’d appreciate any feedback from people who’ve worked on heterogeneous inference or custom communication backends. If anyone wants to give TBCCL a try, I’d love to hear how it works on your hardware!