Developer Mert Cobanov Runs llama.cpp on a Jailbroken PS5
A new homebrew project ports llama.cpp to jailbroken PlayStation 5 consoles, aiming to run Qwen 3.8 27B natively on Sony hardware.
Takeaways
- PS5LM ports llama.cpp to jailbroken PlayStation 5 consoles, targeting Qwen 3.8 27B as first model.
- llama-cli, llama-server and llama-bench cross-compile with zero source changes to upstream llama.cpp.
- Early smoke test: Qwen3.5 0.8B generates at 14.2 tok/s on the PS5 CPU with two threads.
- 16 GB unified GDDR6 limits Qwen 3.8 27B to 2-3 bit quants, roughly 6-9 GiB on disk.
- Phase 3 plans Vulkan GPU acceleration via PS5_Vulkan driver, targeting 15+ tok/s decoding.
- Requires firmware 7.00-13.60, jailbreak, and ps5-payload-dev SDK; GPL-3.0 licensed.
PS5LM, a homebrew project by developer Mert Cobanov, has produced native PlayStation 5 builds of llama.cpp and completed an initial CPU inference test. The larger goal is to serve GGUF models from the console, with Qwen 3.8 as the starting model. GPU inference remains on the roadmap.
Cobanov’s design ports the general-purpose llama.cpp runtime, which provides C and C++ inference tools for many open-weight models. GGUF is its format for packaging model weights and metadata. A successful port could support Qwen, Llama, Mistral, Gemma and multiple quantization formats through one codebase, although each architecture and backend operation still requires testing on the PS5.
The first executable reaches the CPU
- Build status:
llama-cli,llama-serverandllama-benchcross-compile and link for the PS5 without changes to upstream llama.cpp source. - CPU test: Qwen3.5-0.8B reportedly generated text at 14.2 tokens per second using two CPU threads.
- GPU status: The repository contains no completed PS5 GPU inference benchmark.
- 27B status: Qwen3.5-27B has not yet run on the console.
The 0.8B result validates the executable, model loader and basic CPU inference path. It does not substantiate social-media claims of roughly 20 tokens per second for the 27B model on the GPU.
Six gigabytes sets the model ceiling
The PS5 contains 16 GB of GDDR6 shared by the CPU, GPU and operating system. According to the project, a payload process currently has roughly 6 GiB of usable headroom. That allocation is the immediate constraint, regardless of the console’s total physical memory.
Low-bit quantization compresses model weights by storing each parameter with fewer bits, reducing memory use at some cost to output quality. The repository lists the following Qwen3.5-27B files as roadmap options:
| Quantization | Model size | Project role |
|---|---|---|
UD-IQ1_M |
6.27 GiB | Fallback |
UD-IQ2_XXS |
6.77 GiB | Initial 27B candidate |
UD-Q2_K_XL |
9.15 GiB | Main target |
UD-Q4_K_M |
15.33 GiB | Exceeds the practical budget |
Those figures cover the model files alone. Inference also needs memory for the runtime, temporary buffers, model state and the context cache. Even the smallest listed 27B file exceeds the quoted process headroom before that overhead, so the roadmap depends on gaining access to a larger allocation or another workable memory-mapping strategy.
Qwen3.5’s hybrid architecture reduces context memory pressure. Only one layer in four uses conventional attention with a key-value cache, which stores information about earlier tokens and grows with context length. The remaining Gated DeltaNet layers use fixed-size recurrent state, making long contexts cheaper than they would be in a conventional transformer of similar size.
From exploit chain to API endpoint
The documented setup targets a jailbroken PS5 on firmware 7.00 through 13.60, with an ELF loader listening on port 9021. Building and launching PS5LM requires a host LLVM toolchain, the payload SDK and several homebrew payloads.
- Install the payload SDK and host LLVM toolchain.
- Build the PS5 versions of the llama.cpp tools.
- Serve the Relapse exploit page and open it through the console browser.
- Load the FTP, kernel-log and shell payloads.
- Copy a GGUF model to
/data/PS5LM/modelsby FTP or USB. - Run
scripts/run.shto startllama-cliorllama-server.
After llama-server starts, it exposes llama.cpp’s OpenAI-compatible HTTP API on port 8081, including endpoints such as /v1/chat/completions. Devices on the same network can use the PS5 as an inference server. The endpoint should remain behind a trusted network or firewall unless authentication is configured.
Vulkan carries the speed target
Autoregressive decoding commonly becomes memory-bandwidth bound because the processor must stream much of the model’s weights for every generated token. PS5LM’s acceleration plan routes llama.cpp’s ggml compute backend through Vulkan using Mihawk-99’s RADV-derived PS5_Vulkan driver, which is reported to pass the Vulkan Conformance Test Suite.
At the base PS5’s theoretical peak of 448 GB/s, repeatedly streaming a 9.15 GiB model yields an ideal ceiling near the project’s estimate of 45 tokens per second. The PS5 Pro reaches a quoted 576 GB/s. Kernel overhead, incomplete bandwidth utilization, synchronization and unsupported operations will reduce real throughput.
- Current 27B CPU estimate: 1 to 3 tokens per second
- Phase 3 GPU target: More than 15 tokens per second
- Theoretical base-PS5 ceiling: About 45 tokens per second for
Q2_K_XL
A local server with open questions
A compatible PS5 already provides a Zen 2 CPU, an RDNA 2 GPU and unified GDDR6 memory in a consumer device. If the Vulkan backend reaches the stated target, the console could serve a local model to editors, coding tools and home automations through a familiar API, while keeping prompts and model execution on the local network.
Sustained performance, power draw, thermals, model quality at one-bit and two-bit quantization, API stability and recovery after crashes remain unmeasured. Those results will determine whether PS5LM can operate as a dependable server or remains an experimental port.
Upstream-friendly by design
Keeping upstream llama.cpp unmodified reduces the work required to adopt later runtime improvements and newly supported GGUF models. The PS5-specific code can remain in the toolchain and platform layer, although Vulkan operators and console memory handling may still require dedicated engineering.
PS5LM is licensed under GPL-3.0-or-later. The repository states that it includes no Sony SDK files, firmware, cryptographic keys or model weights. Users must supply the console environment and obtain model files separately.