Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.1 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.1 KB

llama2psp

A quick homebrew for running llama2.c on the PSP.

image

Prerequisites

You will need docker and can use the ticky/pspdev docker image.

docker pull ticky/pspdev

How to build

  • Clone this repo and cd into the repo folder.

Mac/Linux Run:

docker run -it --rm -v "$PWD:/src" ticky/pspdev make

Windows Run:

docker run -it --rm -v "%cd%:/src" ticky/pspdev make

Installation

  • Put the EBOOT.PBP in the following directory ms0:/PSP/GAME/llama2psp/EBOOT.PBP as well as the model named model.bin and tokenizer named tok.bin

  • Models and tokenizer have to be in the llama2.c format and can be downloaded here

  • Due to the hardware limitations of the PSP, I used the smallest 260k model and its tokenizer.