How a Smartphone Was Turned Into a Working External GPU

An iPhone 17 Pro Max running a forked version of llama.cpp can function as an external graphics processing unit to assist a MacBook Pro M4 with artificial intelligence tasks, according to a project detailed by a Reddit user known as StayLameBro.

How the iPhone Splits AI Workloads With a MacBook

The makeshift external GPU setup relies on a standard 10Gbps USB-C cable to tether the smartphone to the computer. The configuration requires at least an iPhone 15 Pro, though the creator notes that newer hardware like an iPhone 18 Pro will likely offer significantly more headroom. Under this system, the MacBook Pro normally handles the initial 40 layers of each AI token batch, while the iPhone’s GPU takes charge of the remaining layers. For tasks involving more than 64,000 tokens, the computer processes all layers while the handset focuses exclusively on managing old key-value pages, which consist of identifying labels and their matching data.

Benchmarks and Performance Gains Over Stock Software

Performance improvements depend heavily on the size of the token prompt being processed. When prefilling a 2,000-token file into an existing agent session, the combined setup runs between 29% and 44% faster than the MacBook Pro working independently. For a new 27,000-token agent session, performance gains reach 36% using the project’s forked code and climb to 46% when compared against stock software. The Mac allocates 8-bit context based on the available RAM on the iPhone, which helps keep the computer's memory consumption under control during heavy operations.

Current Limitations and Unsupported AI Models

Despite the performance boosts, the software configuration does not accelerate all computing tasks. StayLameBro noted that the phone does not improve write performance for workloads under 64,000 tokens, leaving those operations entirely to the computer. The current implementation is also restricted to the Apple ecosystem, with no mention of support for Windows or Android platforms. The creator has not yet benchmarked the setup against newer AI model variations such as Qwen 3.8-Flash-Next and DeepSeek V4.1-Flash, leaving their compatibility unverified.

Frequently Asked Questions

  • What hardware is required to use an iPhone as an external GPU?
    The project requires at least an iPhone 15 Pro, a MacBook Pro M4, and a standard 10Gbps USB-C cable to tether the two devices together.
  • Where can users find the code and setup instructions?
    The source code, setup instructions, and benchmarking scripts are publicly available in a dedicated GitHub repository maintained by the project creator.
  • Does the phone improve write performance across all tasks?
    No, the iPhone does not improve write performance for tasks involving fewer than 64,000 tokens, meaning the host computer handles those operations alone.