An open API service indexing awesome lists of open source software.

https://github.com/hsm207/howto-llamacpp-with-gpu

Step-by-step guide on running LLaMA language models using llama.cpp with GPU acceleration. Includes detailed examples and performance comparison. Based on OpenLLaMA project.
https://github.com/hsm207/howto-llamacpp-with-gpu

artificial-intelligence deep-learning generativeai llms natural-language-processing

Last synced: 5 months ago
JSON representation

Step-by-step guide on running LLaMA language models using llama.cpp with GPU acceleration. Includes detailed examples and performance comparison. Based on OpenLLaMA project.

Awesome Lists containing this project

README

          

# Introduction

This is the code for the [The Total Noob's Guide to Harnessing the GPU for LLaMA Inference](https://medium.com/@_init_/the-total-noobs-guide-to-harnessing-the-gpu-for-llama-inference-2e3c4fdfbc84) blog post.

# Prerequisites
1. Docker
2. VS Code

# Usage

1. Open this project in the provided [devcontainer](./.devcontainer/devcontainer.json)

2. Run:
```bash
# compile llamacpp and install its dependencies
make clone-llamacpp-repo
make compile-llamacpp
make install-llamacpp-deps

# get a model and convert it to something llamacpp can use
make download-model
make convert-model-to-f16
make quantize-model

# view inference timings
make eval
```