An open API service indexing awesome lists of open source software.

https://github.com/caiomadeira/llama2-psp

Llama 2 inference in C on the PlayStation Portable (PSP).
https://github.com/caiomadeira/llama2-psp

inference llama2 llama2-7b llama2c llm llm-inference playstation psp pspsdk tiny-stories

Last synced: about 1 month ago
JSON representation

Llama 2 inference in C on the PlayStation Portable (PSP).

Awesome Lists containing this project

README

          

# Llama-2 PSP
Inference Llama-2 in C on Playstation Portable (PSP) by Caio Madeira.
Based on the inference work by ytmytm for [Llama 2 for c64](https://github.com/ytmytm/llama2.c64), which is
based in a port of [llama2.c](https://github.com/karpathy/llama2.c).
Thanks to [hackday for posting](https://hackaday.com/2025/08/17/llama-habitat-continues-to-expand-now-includes-the-psp/)

[Reposted by Yann LeCun](https://www.facebook.com/yann.lecun/posts/llama-2-has-been-ported-to-the-psp-in-addition-to-the-raspberry-pi-486-pc-commod/10161114909482143/)

![Running on physical device](assets/2.jpeg)

## Summary
- [Supported Models](#supported-models)
- [Screenshots](#supported-models)
- [How to run](#supported-models)
- [About](#supported-models)

## Extra docs
- [Changelog](CHANGELOG.md)
- [Techinical specifications](docs/index.md)

## Supported models
| Model | Params | Series | Link |
|----------|:----------:|----------:| ----------:|
| TinyStories | 260K | Tiny Llamas |[ model](https://huggingface.co/karpathy/tinyllamas/tree/main/stories260K)

## Screenshots

### Params screen
![Params screen](assets/params.png)

### Keyboard screen
![Running on physical device](assets/keyboard.png)

### Running on PPSSPP
![Running on PPSSPP 1](assets/4.png)
![Running on physical device](assets/3.gif)

## How to run
Go to release and download your prefered version.

Copy the __Llama2PSP__ folder to ```PSP/GAME```.

For __.ISO__ just copy to ```ISO``` on PSP ROOT.

## About

[Linkedln](https://www.linkedin.com/in/caio-madeira/)
[My blog](https://caiomadeira.github.io/)
[NLP Post](https://nlp.pucrs.br/news)
[Reposted by Yann LeCun](https://www.facebook.com/yann.lecun/posts/llama-2-has-been-ported-to-the-psp-in-addition-to-the-raspberry-pi-486-pc-commod/10161114909482143/)