Hacked PS4 ran a 9-billion-parameter AI model at up to 43 tokens per second

Developer Leonardo Alegría has released Garlic LLM as open source, an app for jailbroken PlayStation 4 consoles. It runs Alibaba 9-billion-parameter Qwen3.5-9B language model entirely offline, straight on the console 2013-era GPU.

The program talks to the graphics chip directly, bypassing drivers. The model is compressed to fit and generates between 31 and 39 tokens per second.

The project name refers to the type of memory the console GPU reads directly. In the PS4 architecture it is called Garlic, while its sibling memory type is named Onion.

Garlic LLM requires a jailbroken PS4 with GoldHEN installed, a tool for running homebrew software. The app is free and comes as a single 5.66GB package on Hugging Face, installed through the standard Package Installer. About 6GB of free space is needed, or 12GB if the package is first copied to the console internal disk.

Garlic LLM does more than text chat. It also handles voice conversation, with spoken replies in seven languages through the Chatterbox speech model, though language model speed in this mode drops to roughly 22 tokens per second. Holding a button on the controller turns on dictation, with speech recognized by Nvidia Parakeet TDT 0.6B v3 model, which supports 25 European languages.

Parakeet models also power local transcription and dictation apps such as Meetily and Hex. The main model here is the compact, open-weight Qwen3.5-9B. The author claims 31–39 tokens per second in text chat but does not provide the prompt or the test method.

The closest comparison is the PS5LM fork for PlayStation 5. It runs llama.cpp as a native app and reaches the AMD GPU through PS5_Vulkan, a port of the RADV driver. The open-source llama.cpp is a popular tool for running language models locally, while RADV lets AMD graphics cards work with Vulkan, the graphics and compute API.

On PS4, there is simply no such driver layer for homebrew. Garlic LLM appears to skip both llama.cpp and a Vulkan port, solving the problem with its own tools.

All of the model operations, including matrix multiplication over 4-bit weights, are written as compute kernels in OpenCL C. LLVM compiles them for AMD Graphics Core Next (GCN), the architecture the console GPU is built on. The weights sit in Garlic memory, while on the CPU side, plain C code handles the tokenizer, the interface, text rendering, and audio.

How it all works

The prompt first goes to the tokenizer on the CPU. For each token, a PM4 command buffer is built with low-level instructions. A graphics driver would normally generate these, but here the app assembles them itself. Then the GCN kernels run the calculations, and the finished token appears on screen or is spoken aloud.

The whole thing is built with the open-source OpenOrbis toolchain for PS4. Fitting a 9-billion-parameter model into the console 8GB of memory, which the CPU shares with the GPU, was a major headache.

At 8 bits per weight, each parameter takes one byte, so the model would need at least 9GB, and more in practice. The fix was 4-bit (Q4) quantization, which halves the size. For the two largest matrices in each layer, an even more aggressive 3-bit (Q3) quantization is used, which works out to about 3.5 bits per weight once scaling factors are included.

Altogether, the model shrinks to about 4.5GiB, versus 4.9GiB for a fully 4-bit version. The attention cache, also known as the KV cache, is stored in 4-bit format too, which lets a 16K-token context fit, compared to the model native 256K. The overall memory breakdown looks like this:

  • Qwen3.5-9B language model – about 4.5GiB

  • Parakeet dictation model – 0.33GiB

  • Chatterbox voice models – 0.29GiB and 0.09GiB

  • Total – 5.23GiB, or 5.62GB

The figure nearly matches the 5.66GB package size. The rest of the memory goes to the system, the KV cache, and the app itself.

The decent speed for 2013 hardware comes from the multi-token prediction (MTP) head built into Qwen3.5. With it, Garlic LLM drafts up to two tokens ahead, and the full model verifies those drafts. The model was originally trained for this mode, and the vLLM instructions on the Alibaba model card also list two speculative tokens.

Code generation gets an even bigger boost, reaching up to 43 tokens per second. The default temperature, which controls response variability, is set to 0.7. Alibaba recommends that value for general tasks with thinking off, and 1.0 with it on. The demo video, however, uses a temperature of zero to keep the output predictable.

At the average speed of 35 tokens per second, a 300-token answer takes under nine seconds. For comparison, a jailbroken PS5 ran the three-times-larger Qwen3.8-27B at about 20 tokens per second, while the compact Gemma 4 E4B and Llama 3.2 3B hit 61 and 124 tokens per second, respectively.

The app itself contains no exploits and does not jailbreak the console. GoldHEN is installed at the user own risk, and Garlic LLM simply takes advantage of the hardware access that is already open, turning a 13-year-old PS4 into a local AI assistant with voice control.

More news
Tags: