cd /news/large-language-models/cell-llm-bare-metal-smollm2-on-a-pla… · home › topics › large-language-models › article
[ARTICLE · art-181492] src=explainx.ai ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

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

The veniallc/cell-llm repository runs SmolLM2-135M-Instruct on a 2006 Sony 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 hardware. The project converts Hugging Face safetensors into a custom cellq4 binary, dispatches matmul-heavy layers to an SPU ELF, and offers an OpenAI-compatible chat completions server on port 8080, with a concurrent four-stream benchmark claiming 224 tok/s aggregate. Hacker News commenter angry_octet argued the PS3's roughly 25 GB/s memory bandwidth limits the machine to a small model, making a ~50 MB-class checkpoint the realistic fit rather than a path to frontier agents.

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 playbook: Inference and self-hosting
by read8 min views1 publishedDec 4, 2026
cell-llm: Bare-Metal SmolLM2 on a PlayStation 3 at 150+ tok/s
Image: Explainx (auto-discovered)

The veniallc/cell-llm 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 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 withB=4 andB=1 decode benchmarks.
  • Lossless speculative decoding via--spec .
  • Sticky nvtop-style HUD for--chat .
  • Concurrent four-stream batch serving benchmark claiming224 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 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 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 and NVKE bare-metal guides.

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; for datacenter bare metal see NVIDIA confidential bare metal.

OpenAI-compatible server security #

--serve 8080 lowers integration friction:

  • Bind to LAN IP , not0.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 mixed admiration with skepticism:

  • Reproducibility — request exact firmware, cooling, and power draw.
  • Metric scope — decode on a135M 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 asOllama-compatible stacks we cover for media tools.

Toolchain requirements on PS3 Linux #

The README assumes a working Cell SDK layout:

  • PPE compiler for the maincell-llm binary.
  • spu-gcc andspu-size for the SPE ELF atspu/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 or a local harness 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 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 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 andpower 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 discussmissing auth on edge devices.

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

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 #

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

── more in #large-language-models 4 stories · sorted by recency
── more on @veniallc/cell-llm 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cell-llm-bare-metal-…] indexed:0 read:8min 2026-12-04 · —