A quick homebrew for running llama2.c on the PSP.
You will need docker and can use the ticky/pspdev docker image.
docker pull ticky/pspdev
- Clone this repo and
cd
into the repo folder.
Run:
docker run -it --rm -v "$PWD:/src" ticky/pspdev make
-
Put the
EBOOT.PBP
in the following directoryPSP/GAME/llama2psp/EBOOT.PBP
as well as the model namedmodel.bin
and tokenizer namedtok.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.