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).
- Host: GitHub
- URL: https://github.com/caiomadeira/llama2-psp
- Owner: caiomadeira
- Created: 2025-08-02T03:27:21.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-24T08:03:54.000Z (9 months ago)
- Last Synced: 2025-08-24T10:57:22.917Z (9 months ago)
- Topics: inference, llama2, llama2-7b, llama2c, llm, llm-inference, playstation, psp, pspsdk, tiny-stories
- Language: C++
- Homepage: https://caiomadeira.github.io/
- Size: 17 MB
- Stars: 17
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)

## 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

### Keyboard screen

### Running on PPSSPP


## 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/)