# cell-llm: Bare-Metal SmolLM2 on a PlayStation 3 at 150+ tok/s

> Source: <https://explainx.ai/blog/cell-llm-playstation-3-bare-metal-smollm2-engine-december-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog>
> Published: 2026-12-04 00:00:00+00:00

**Recommendation:** When targeting fixed, memory-bandwidth-limited hardware, convert weights to a compact custom format and offload matmul-heavy layers to the accelerator cores, as cell-llm does with cellq4 and six SPEs to reach ~150 tok/s decode.
More in the playbook "Inference and self-hosting": <https://wpnews.pro/playbooks/inference-serving>

**The [veniallc/cell-llm](https://github.com/veniallc/cell-llm?ref=explainx) repository runs SmolLM2-135M-Instruct on a 2006 PlayStation 3** using **six Cell Synergistic Processing Elements**, with README benchmarks claiming **about 150 tokens per second** on batch-one decode and a **large lead over llama.cpp** on the same box.

This is not a general-purpose replacement for [llama.cpp](https://explainx.ai/blog/tensorfold-zig-local-llm-inference-metal-cuda-api-2026) on modern PCs. It is a **case study** in hand-mapping tiny transformers to **heterogeneous cores** when you accept a fixed model and antique silicon.

## TL;DR

| Question | Answer | 
|---|---|
| Hardware | **Sony PS3** (Cell Broadband Engine) | 
| Model | **SmolLM2-135M-Instruct** | 
| Core size claim | **~82 KB** pure-C plus SPU ELF | 
| Modes | `--bench` ,`--batch-bench` ,`--spec` ,`--profile` ,`--chat` ,`--serve 8080` | 
| API | **OpenAI-compatible** chat completions over HTTP | 
| License | Check **LICENSE** in-repo (MIT-style OSS project) | 

## Architecture in plain language

The PS3 **PPE** (PowerPC) orchestrates while **SPEs** execute SIMD-heavy kernels. cell-llm converts Hugging Face **safetensors** into a custom **cellq4** binary, loads token tables from **tokenizer.json**, and dispatches matmul-heavy layers to `spu/cell_llm_spu.elf`.

Features the README highlights:

- **Batched prefill** with**B=4** and**B=1** decode benchmarks.
- **Lossless speculative decoding** via`--spec` .
- **Sticky nvtop-style HUD** for`--chat` .
- **Concurrent four-stream** batch serving benchmark claiming**224 tok/s aggregate** .

On-premises rack hardware evoking self-hosted inference outside a datacenter GPU cluster

## Quick start (from the README)

**1. Convert weights** on x86-64 or PS3. The source checkpoint is the [SmolLM2-135M-Instruct model card](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct?ref=explainx) from HuggingFaceTB:

```
make convert_cellq4
./convert_cellq4 weights/model.safetensors weights/smollm2-135m-cellq4.cbin
python3 tools/export_tokenizer.py weights/tokenizer.json weights/smollm2.ctok
```

**2. Build on PS3 Linux** with `spu-gcc` and `libspe2`.

**3. Run benchmarks or server**:

```
./cell-llm --model weights/smollm2-135m-cellq4.cbin \
  --tok weights/smollm2.ctok \
  --spu spu/cell_llm_spu.elf \
  --bench 7 --profile \
  --prompt "Explain in two short sentences how a GPU works."

./cell-llm ... --serve 8080
```

Point any OpenAI-schema client at `http://<ps3-ip>:8080/v1/chat/completions` on your LAN.

## What developers are saying on Hacker News

[Hacker News thread 50751895](https://news.ycombinator.com/item?id=50751895&ref=explainx) treated the project as a **reproducibility challenge**: impressive if verified on retail hardware, niche regardless because **135M parameters** cannot power modern coding agents.

Commenter **angry_octet** argued that with only **~25 GB/s** memory bandwidth you need a **small model**, so a **~50 MB-class** checkpoint is the realistic fit—not a path to frontier agents.

Attribute those reactions as **commenter opinion**, not measured fact. When you blog numbers, cite the **README** and your own runs.

## Limits and safety

- **Model scope:** only documented SmolLM2 conversion; no Llama 3 or Qwen path in README.
- **Security:**`--serve` on a PS3 on your LAN is not internet-facing without hardening; no auth layer is emphasized in the README snippet.
- **Maintenance:** three commits at discovery time—expect breaking changes.

For production local inference on normal hardware, use maintained servers compared in [TensorFold](https://explainx.ai/blog/tensorfold-zig-local-llm-inference-metal-cuda-api-2026) and [NVKE bare-metal guides](https://explainx.ai/blog/nvidia-nvke-kubernetes-engine-gpu-bare-metal-management-plane-preview-guide-2026).

## Benchmark flags explained

The README ships multiple CLI modes so you can separate **kernel** performance from **UX** polish:

| Flag | Purpose | 
|---|---|
| `--bench N` | Repeat single-stream runs for stable decode timing | 
| `--batch-bench N` | Stress concurrent streams (claims **224 tok/s** aggregate) | 
| `--spec` | Test speculative path while preserving greedy outputs | 
| `--profile` | Print per-phase timings for SPE versus PPE work | 
| `--chat` | Interactive HUD for manual quality checks | 

When you compare against **llama.cpp**, match **quantization**, **thread count**, and **batch size**. A 90x headline usually means the authors tuned both stacks for the PS3, not that cell-llm beats llama.cpp on a MacBook.

## Power, thermals and hardware risk

A PS3 running flat-out inference is a **space heater** with aging capacitors. Run benchmarks on **bench supply** you trust, keep ventilation clear, and avoid unattended `--serve` on unknown firmware. None of this is unique to AI—retro computing communities already document **yellow light of death** risks—but continuous LLM load is a new stress pattern.

## Weight format and quantization

The **cellq4** converter targets PS3-friendly memory layouts. You are not dropping generic **GGUF** files onto the console:

- **Safetensors** from Hugging Face are the source of truth.
- **convert_cellq4** emits a single**.cbin** checkpoint tuned for SPE kernels.
- **export_tokenizer.py** builds**.ctok** vocab tables separate from weights.

That pipeline mirrors how embedded teams ship **flat buffers** instead of pickle checkpoints. If conversion fails, verify you fetched **SmolLM2-135M-Instruct** exactly—other SmolLM sizes are untested in README.

## Comparing to llama.cpp on modern hardware

On a PS3, README authors argue **llama.cpp** leaves SPEs idle. On an M-series Mac or RTX workstation, **llama.cpp** with Metal or CUDA wins for throughput and model breadth.

Use cell-llm to study **kernel design**, not to choose production inference stacks. For Apple Silicon paths see [TensorFold](https://explainx.ai/blog/tensorfold-zig-local-llm-inference-metal-cuda-api-2026); for datacenter bare metal see [NVIDIA confidential bare metal](https://explainx.ai/blog/nvidia-confidential-bare-metal-european-ai-clouds-openshell-partners-nscale-power-claim-2026).

## OpenAI-compatible server security

`--serve 8080` lowers integration friction:

- Bind to **LAN IP** , not`0.0.0.0` , unless you add reverse-proxy auth.
- Treat generated text as **untrusted** if prompts come from housemates on your network.
- Log **prompt injection** attempts when exposing SmolLM to browsers.

## Hacker News themes worth citing

Thread [50751895](https://news.ycombinator.com/item?id=50751895&ref=explainx) mixed admiration with skepticism:

- **Reproducibility** — request exact firmware, cooling, and power draw.
- **Metric scope** — decode on a**135M** model is not ChatGPT-class coding.
- **Nostalgia value** — still useful pedagogy for SPE programming courses.

Quote commenters briefly; verify numbers yourself before embedding in product marketing.

## Lessons for accelerator engineers

Even if you never ship on PS3, cell-llm demonstrates:

1. **Custom quant formats** tied to SIMD width beat generic GGUF paths when you control both converter and kernel.
2. **Speculative decoding** can be implemented without Python overhead if the runtime is tiny.
3. **OpenAI-compatible HTTP** unlocks existing clients—same pattern as[Ollama-compatible stacks](https://explainx.ai/blog/neonclipping-local-open-source-youtube-shorts-clips-ollama-november-2026) we cover for media tools.

## Toolchain requirements on PS3 Linux

The README assumes a working **Cell SDK** layout:

- **PPE compiler** for the main`cell-llm` binary.
- **spu-gcc** and**spu-size** for the SPE ELF at`spu/cell_llm_spu.elf` .
- **libspe2** headers and libraries for mailbox communication.

Missing any path fails at link time with opaque SPE errors. Document your toolchain versions in README forks so HN reproducers can diff environments.

Disk matters too: converted weights plus build artifacts consume hundreds of megabytes on aging HDDs—use external storage if internal partitions are tight.

## Integration with modern agent stacks

If you point [Claude Code](https://explainx.ai/blog/claude-code-commands-complete-reference-guide-2026) or a [local harness](https://explainx.ai/blog/go-bot-open-source-muse-grok-dots-alternative-byom-december-2026) at the PS3 server:

- Keep **LAN-only** networking.
- Cap **max tokens** server-side to prevent thermal runaway loops.
- Log prompts centrally; SmolLM will confabulate on out-of-distribution requests.

This is a **toy endpoint**, not a tier in your production router.

## Historical context: Cell and ML

Sony’s Cell Broadband Engine was marketed for **Fold@home** and PS3 titles, then abandoned for general-purpose desktops. Projects like cell-llm revive it for **education**, similar to [anyps5 relinking stories](https://explainx.ai/blog/anyps5-ps5-games-native-pc-no-emulator-how-relinking-works-2026) that reuse console hardware unexpectedly.

The lesson for ML platform teams: **exotic SIMD** wins only when the model is small enough to fit and the audience accepts maintenance burden.

## FAQ deep dive: should enterprises care?

**Only if you run lab curriculum or nostalgia demos.** Procurement should not classify PS3 inference as a cost-saving path versus [TensorFold](https://explainx.ai/blog/tensorfold-zig-local-llm-inference-metal-cuda-api-2026) on current GPUs.

**Security teams** should block PS3 servers from corporate VLANs unless isolated—unpatched Linux distros are common on retro kits.

**Sustainability officers** may ask about power per token; measure wall draw if you publish sustainability claims alongside benchmark screenshots.

## Repro checklist for skeptics

1. Stock or known-good PS3 firmware.
2. Publish **commit hash** of cell-llm.
3. Run `./cell-llm --bench 7` three times; report median and variance.
4. Run **llama.cpp** baseline with documented flags on the same box.
5. Archive **temperature** and**power** notes in appendix.

Without step 4, speedup claims remain **author versus reader**.

## Classroom and demo ideas

University labs teaching **heterogeneous computing** can assign:

1. Trace one matmul from C caller through SPE mailbox to result writeback.
2. Compare energy per token versus a Raspberry Pi running llama.cpp on the same model class.
3. Wire a minimal web UI to `--serve` and discuss**missing auth** on edge devices.

Students should cite **veniallc** README numbers as **author claims** in lab reports unless they reproduce locally.

## Related on explainx.ai

- [TensorFold Zig LLM server](https://explainx.ai/blog/tensorfold-zig-local-llm-inference-metal-cuda-api-2026)
- [NVIDIA NVKE bare-metal K8s](https://explainx.ai/blog/nvidia-nvke-kubernetes-engine-gpu-bare-metal-management-plane-preview-guide-2026)
- [anyps5 native PC gaming relinking](https://explainx.ai/blog/anyps5-ps5-games-native-pc-no-emulator-how-relinking-works-2026) — another retro-console builder story
- [NeonClipping local Ollama pipeline](https://explainx.ai/blog/neonclipping-local-open-source-youtube-shorts-clips-ollama-november-2026)
- [Replica skill entrepreneur guide](https://explainx.ai/blog/replica-skill-eleven-claude-skills-clone-any-app-recon-entrepreneur-guide-2026)

## Speculative decoding on vintage silicon

The `--spec` path documents **lossless speculative decoding** relative to greedy baselines in author tests. Speculative methods usually pair a **draft** model with a **target** model; here the README implies an internal draft path tuned for SmolLM widths on SPE.

Understanding **when speculation helps on PS3** requires profiling: if draft acceptance rates are low, you pay double work on already thermally constrained hardware. Use `--profile` before demoing `--spec` on stream.

## Memory bandwidth and XDR DRAM

PS3 **XDR DRAM** was high bandwidth for 2006 but tiny by modern GPU standards. cell-llm’s win is partly **fitting** a 135M model entirely in a footprint llama.cpp did not optimize for on Cell.

Readers benchmarking on PC should not extrapolate PS3 wins to **DDR5** servers—different bottlenecks dominate.

## Open source maintenance expectations

With only **three commits** early in the repo life, expect breaking changes to weight formats. Pin releases in Dockerfile digests if you demo at conferences.

Star the repo if you reproduce results—maintainers use signal to prioritize USB Ethernet drivers and toolchain docs.

## Quick glossary

**PPE** is the PowerPC core that runs Linux and orchestrates jobs. **SPE** cores are SIMD coprocessors that execute the quantized matmul kernels. **cellq4** is the project-specific quantized checkpoint format consumed by those kernels, not a portable GGUF file you can drop into desktop llama.cpp without conversion.

## Extended reading on explainx.ai stacks

- [NeonClipping Ollama Shorts pipeline](https://explainx.ai/blog/neonclipping-local-open-source-youtube-shorts-clips-ollama-november-2026) for another hobbyist-local inference story.
- [Replica skill recon guide](https://explainx.ai/blog/replica-skill-eleven-claude-skills-clone-any-app-recon-entrepreneur-guide-2026) if you route PS3 output into agent recon (not recommended for production).

*Commands and throughput claims follow the GitHub README as of December 4, 2026.*
