Peter Shamoun

Checkm8-Chat: Local model inference on an iPhone 6s Plus

Peter Shamoun
November 2026

I’ve recently been really interested in the trend of taking old hardware that's collecting dust, and repurposing the device as a local-LLM server. I decided to take my own jab at it and try to host a local LLM on an old iPhone. This project started simple, included a near-miss with a house fire, and ended with me learning more about Apple’s hardware and local model inference.

The iPhone 8 Plus: A fiery end

Hardware is hard

The first stab at this project involved my old iPhone 8 Plus. The phone’s screen was cracked so severely that button clicks wouldn’t register, and more unhelpful, the screen’s damage gave the phone a mind of its own, constantly swiping and clicking without my inputs. It was clear from the start that this would need to be a touch-less approach, and my mental model was pretty simple:

  • Back up the phone
  • Jailbreak through checkm8 using palera1n
  • Gain SSH into the phone’s root
  • Host the model through llama.cpp

Everyone has a plan until they get punched in the face, and this phone wouldn’t punch me, but soon blow up in my face.

The problems came early. The first being that the phone would only connect to my MacBook at a very specific angle. This made the connection hard to manage, and I had to hold the phone perfectly still for 15 minutes to back it up.

A cracked red iPhone 8 Plus connected to a MacBook running palera1n in the terminal
The iPhone 8 Plus connected to the MacBook during a palera1n DFU attempt.

The next step was to put the phone into Device Firmware Update (DFU) mode to exploit the BootROM vulnerability that Apple left in their A11 chip. This was the biggest problem. See, the volume down button was broken, and that happens to be the button needed to put the phone into DFU mode on the iPhone 8. This essentially stopped the DFU approach, since it relies on an electrical signal from the volume down button, which I couldn’t replicate via software with my MacBook’s USB connection.

Sideloading: Another dead end

My next thought was that if the phone can’t be exploited via the low level firmware that DFU exposed, then I would need to sideload a jailbreak app to gain root access of the phone. I would build some installation of Dopamine (a jailbreak tool for iPhone) on my MacBook, and then using Sideloadly, I would load the app onto the phone, and launch it. The problem was that in order to launch a sideloaded app, I needed to trust its developer certificate in Settings, which my broken screen wouldn’t let me do! This was a big time sink and led back to the frustrating conclusion: I need to fix the volume down button for this iPhone to be jailbroken.

Hardware is hard, and sometimes dangerous

After a $7.99 Amazon purchase, I had my iPhone repair toolkit, and was ready to fix this button. My general plan was to access where the volume down button was sending its electrical signal to the chip, and use some tweezers to temporarily form a connection just long enough for me to enter DFU mode.

After prying open the screen and disconnecting the cables, things were going well, and honestly I was pretty proud of myself.

A red iPhone 8 Plus opened up, screen folded aside, battery still in the chassis, with repair tools nearby
iPhone taken apart.

The next step was to remove the battery in order to reveal the chip underneath. After a few minutes of trying to remove the tape that connected the lithium battery to the bottom of the phone, I decided that the adhesive had probably worn off after all these years and that I could just pry the battery out from whatever was holding it. My tool of choice: those same tweezers I planned to short the volume button with.

Lifting the phone to my face, I hit the battery with the metal edge of the tweezers, and sparks flew into my face. For a second I had thought the whole phone had caught fire and the way the room had smelled, you would’ve thought so. I washed my face and hands, recycled the phone, and took a short break from the project.

Another phone, a new beginning

After that, the iPhone was officially a dangerous lithium brick. Luckily, I had a backup: an iPhone 6s Plus with a working screen and every button intact.

The approach for this phone was much simpler: I put it into DFU mode, used checkra1n and its checkm8 BootROM exploit, which also applied to the A9 chip, and gained SSH access from my MacBook, where I was able to upload installations of llama.cpp.

An iPhone showing the checkra1n chess-piece Apple logo and a verbose boot log
The chess-piece boot screen during the jailbreak.

Local inference is awesome

After the llama.cpp server was set up, I loaded Gemma 3 270M (4-bit quant) as the model running on the backend. I then wanted to make the server reachable to anyone on the Wi-Fi. The problem: the phone was dropping its Wi-Fi every 5-12 seconds (see plot). The fix apparently, which I have to give credit to Claude for, was to simply turn off the Bluetooth since Bluetooth and Wi-Fi share one chip on the phone and were causing Wi-Fi drops.

Wi-Fi uptime timeline: frequent drops over 5 minutes with Bluetooth on, 100% connected over 10 minutes with Bluetooth off
Wi-Fi uptime on the iPhone 6s Plus, drops every 5–12 seconds until Bluetooth was turned off.

An identity crisis

With the server up and running at about 31-38 tokens per second, I wanted the model to at least know its name ‘Checkm8-Chat’. From my own knowledge with cloud provided models, the simplest way to do this was through the system prompt. This proved to be worse than I thought, Gemma 3 270M was leaking its identity into non-identity questions (see below).

Gemma 3 270M replies under a plain-facts system prompt: it says it is Gemma and pulls its identity into unrelated answers
Gemma 3 270M answering ordinary questions as Checkm8-Chat.

My solution: Upgrade to Gemma 3 1B. It still fit into the 2GB of RAM the iPhone 6s Plus had to offer and I figured we could still get reasonable TPS.

This model was better at knowing its identity, but it still leaked into other areas with high perplexity probability distributions. I found that when the model was prompted with these riddle-like prompts, or prompts with uncommon text patterns, it defaulted to spilling its identity and relying on the system prompt. (See examples below). However, this was good enough for me to move on to the next frontier, token per second optimization.

Gemma 3 1B answering riddles: three of four replies give its Checkm8-Chat identity instead of, or before, the answer
Gemma 3 1B on riddle-like and unusual prompts.

Initial G (Gemma)

Gemma 3 1B started at 2-3 tokens per second on the generation side, but I figured that Apple’s hardware was holding it back. I went with iPhone specific enhancements because I figured the great minds of the contributors at Google had already optimized the model side of things as far as they could go.

The thing that really moved the lever was a stuck CPU clock cap from the built in temperature safety Apple gave the iPhone. By overriding this cap with my own temperature guard, the CPU was no longer a bottleneck, and I was able to push generation to about 10 tokens per second sustained (11-12.6 peak) on a 2,048 length context window. Yes, the phone did get really hot.

Bar chart of Gemma 3 1B generation speed: 2.6 tok/s under Apple's clock cap, 9.5 tok/s with the cap overridden by a temperature guard
Gemma 3 1B generation speed, from 2–3 tok/s to about 10 sustained.

Checkm8-Chat

The next phase of the project was to build a chat interface for the model and load it onto the phone as an app from my MacBook, which I did, and coined it ‘Checkm8-Chat’. See below.

Two Checkm8-Chat screens on the iPhone 6s Plus: the start screen with suggested prompts, and a chat showing on-device token speeds
Checkm8-Chat running on the iPhone 6s Plus, inference fully on-device. (Yes, it really did say 7 × 6 is 35.)

Leveraging the iPhone

Now, to take this beyond just a chatbot with local inference, I gave Gemma the ability to encode secret messages via ultrasound. Gemma writes some ultrasound frequency and plays it, which can be decoded by another iPhone using Waver (coincidentally made by Georgi Gerganov, the same creator of llama.cpp!). See the fun spy demonstration below.

The spy demo: Checkm8-Chat sends a message over ultrasound, Waver decodes it on a second iPhone.

Understanding the ‘Long-Horizon’

As I tried to use Claude Code on this project, I frequently ran into safety guards around the most simple tasks, like sideloading the Dopamine jailbreak onto the phone. This diverted me to Opus 4.6 which gladly took on these tasks, however, it made me understand that the recent strides since Opus 5 on the long horizon really were meaningful. After I let Opus 4.6 run loose for a few hours, I found it running in circles and trying to divert back to asking me to do things I told it were impossible, like interacting with the screen or pressing the volume down button. I figure this is because of the frequent context window compaction that happens with 256K length context windows. The difference between this ‘Long-horizon’ work seen with Opus 5.5 is night and day.

Next up

This was a fun side project and I learned a lot about firmware and low level compute optimization. My next projects are going to be more ambitious, and I’ll try to get these local models running in places that they never should have.