Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vulkan-llama

LLM evaluator based on Vulkan

This project is mostly based on Georgi Gerganov's llama.cpp. It supports both using prebuilt SpirV shaders and building them at runtime. The latter option is disabled by default as it requires extra libraries and does not produce faster shaders.

Vulkan 1.2 is used and no extension is required.

Currently working

  • Tokenizer
  • GGML parsing and mapping for q4_0, q8_0 models
  • Evaluation of 7B models and 13B models

Known issues

  • Threading (for server mode) uses mutex and may deadlock
  • Too many asserts can fire

Setup

Building prebuilt shaders:

./prebuild_shaders.py

Build

mkdir build && cd build
cmake .. && make -j
cd .. && ./build/vulkan_llama --help

Testing hardware

  • AMD Ryzen 7 6800U with Radeon Graphics (AMD Radeon 680M)
  • AMD Radeon RX 6900 XT

About

Evaluation of Meta's LLaMA models on GPU with Vulkan

Resources

Stars

6 stars

Watchers

3 watching

Forks

Contributors

Languages