Skip to content

argnaan/pulp_llama2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PULP-Llama2

Adaptation of Llama2.c to run on a PULP microcontroller.

How to try it

Clone this project

git clone https://github.com/argnaan/pulp_llama2.git

Get PULP-TrainLib from its github repository

git clone https://github.com/pulp-platform/pulp-trainlib.git

And modify Makefile with the correct path to the Train-Lib

Generate the header file which contains the configuration and the weights of the model:

make get_header

It can be runned thorugh GVSoC, a PULP chip simulator, part of the pulp-sdk.

make clean all run

Look inside the genHeader.c file to modify some option such as the initial prompt or the number of steps, then regenerate the header. You can also try different model in the format of the Llama2.c project.

Releases

No releases published

Packages

No packages published

Languages