Tech News

Garlic LLM Runs a 9B AI Model on a Jailbroken PS4

A 2013 PlayStation 4, disconnected from the Internet, running a 9-billion-parameter AI model. That’s what Garlic LLM makes possible, an open source application that runs Qwen3.5-9B directly on the GPU of a jailbroken console. Here’s what you need to know.

A few days ago, developer Leonardo Alegría released Garlic LLM on GitHub. It is an unofficial application installed on a jailbroken console, which runs Qwen3.5-9B, Alibaba's open-weight model, on the PS4 graphics chip. No PC connected to the console, no cloud service: everything runs locally on your old PlayStation.

According to the official website, throughput reaches 31 to 39 tokens per second in conversation and up to 43 tokens per second for code generation. All of this with a 16,384-token context window. To produce these measurements, the developer used a PS4 running firmware 11.52.

As a reminder, an AI model ideally needs to be loaded entirely into GPU memory to run optimally. The PS4, on the other hand, has only 8 GB of GDDR5 memory, shared between the processor and the GPU. On paper, it was not an easy win!

Garlic LLM: an application that talks directly to the GPU

The PS4 offers homebrews (unofficial applications) neither compute APIs nor machine learning libraries. No CUDA, no ROCm. "Garlic LLM communicates directly with the GPU.", we can read.

That did not make the developer’s job any easier, because he had to rebuild for himself what a graphics driver normally does:

  • Custom compute kernels: the model’s operations are executed by kernels designed for the AMD GPU’s GCN architecture.
  • Handwritten PM4 commands: the application generates PM4 packets itself, meaning the low-level commands a graphics driver would normally produce to send work to the GPU.
  • In-house quantization: to reduce memory usage, most weights are stored in 4 bits and two of the matrices in each layer in 3 bits. The model file therefore weighs 4.32 GiB, and the voice models add around 0.6 GiB.
  • A compressed cache: it is also quantized to 4 bits, which makes it possible to fit this 16,384-token context.

And the name? On PS4, "Garlic" refers to the memory path that the GPU reads directly. That is where the model weights are stored.

To achieve these throughput numbers, Garlic LLM also relies on speculative decoding. In short, the MTP (multi-token prediction) head built into Qwen3.5 proposes up to two tokens ahead, and the full model verifies them in a single pass instead of one pass per token.

What Garlic LLM offers beyond chat

In addition to written conversation (the chatbot), the application includes several modes:

  • Voice dictation: speech recognition based on Parakeet (used by many tools of this kind), supporting 25 European languages.
  • Voice responses: text-to-speech is handled by Chatterbox, in seven languages, including French.
  • Python mode: the model writes MicroPython code and the console executes it, so "the code is tested where it was written".
  • Think mode: the model reasons before answering, but the thinking phase then takes around 30 seconds. This mode is disabled by default.

Everything comes in a single package of about 5.7 GB, including the models.

How do you install Garlic LLM on a PS4?

I can see you getting excited and thinking: "There it is, I know what to do with my PS4 sitting in the attic." So how do you install Garlic LLM on a PS4? The main prerequisite is GoldHEN, the tool that allows homebrews to run on a jailbroken PS4. So the key step is really to jailbreak your PS4 and then deploy Garlic LLM.

So, in summary, you need:

  • A PS4 with GoldHEN installed
  • About 6 GB of free space, or 12 GB if you first copy the package to the internal drive
  • A microphone recognized by the console, for voice mode

Installation works like any other homebrew: download the package, install it with the Package Installer, then launch Garlic LLM from the home screen.

According to the developer, Garlic LLM works on PS4, PS4 Slim, and PS4 Pro, with firmware versions 9.00, 9.04, 11.00, 11.52, 12.02, 12.50, and 14.00. On PS4 Pro, throughput even climbs to 45 tokens per second. As for the PS5, it is not ready to host Garlic LLM yet; save it for GTA VI.

What do you think?

author avatar
Florian Burnel Co-founder of IT-Connect
Systems and network engineer, co-founder of IT-Connect and Microsoft MVP "Cloud and Datacenter Management". I'd like to share my experience and discoveries through my articles. I'm a generalist with a particular interest in Microsoft solutions and scripting. Enjoy your reading.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.