Skip to content

An LLM optimizer that streamlines matrix vector multiplication process by implementing multithreading and synchronization techniques.

Notifications You must be signed in to change notification settings

davinnev/PowerUp-LLM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PowerUp-LLM

An LLM optimizer that streamlines matrix vector multiplication process by implementing multithreading and synchronization techniques. This optimizer is compatible for Linux machines.

Improvements

(see folder "examples")

  1. Running the matrix vector multiplication using a single thread. Time taken: 4.927 s

alt text

  1. Running the matrix vector multiplication using 4 threads. Time taken: 2.338 s

alt text

  1. Running the matrix vector multiplication using 16 threads. Time taken: 1.548 s

alt text

Running the script

  1. Clone the repository
git clone https://github.com/davinnev/PowerUp-LLM.git
  1. Navigate to the source folder
cd src
  1. Compile the code
gcc llama2.c -o llama2
  1. Try running the optimizer
./llama2 {seed} {num of threads}

For example,

./llama2 42 4

About

An LLM optimizer that streamlines matrix vector multiplication process by implementing multithreading and synchronization techniques.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages