Skip to content

embed-dsp/ed_llama.cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Build and Installation of llama.cpp

This repository contains bash scripts for the build and installation of the llama.cpp LLM inference engine on Linux.

Overview

The bin directory contains the following bash scripts:

bin/
├── build.sh        # Build llama.cpp LLM inference engine.
└── install.sh      # Install llama.cpp LLM inference engine in the local file system.

NOTE: The llama.cpp LLM inference engine requires that the NVIDIA CUDA Toolkit and NVIDIA NCCL are installed on the system. Instructions for installing the NVIDIA CUDA Toolkit can be found here ed_nvidia_cuda and instructions for build and installation of NVIDIA NCCL can be found here ed_nvidia_nccl

Build

Enter the bin directory and edit the build.sh script. Make sure that the path to the sourcing of the CUDA environment is set correctly. Also, make sure that the paths to NCCL are set correctly in the cmake configuration.

Type the following command:

# Command
./build.sh

Local Installation

Enter the bin directory.

Type the following command:

# Command
./install.sh

The llama.cpp LLM inference engine is installed in the local file system in /opt/llama.cpp:

/opt/llama.cpp
└── bin
    ├── llama-bench
    ├── llama-cli
    ├── llama-gguf-split
    ├── llama-mtmd-cli
    ├── llama-perplexity
    └── llama-server

Symbolic links are created from /opt/bin to the respective executables in /opt/llama.cpp/bin

/opt/bin
    llama-bench -> /opt/llama.cpp/bin/llama-bench
    llama-cli -> /opt/llama.cpp/bin/llama-cli
    llama-gguf-split -> /opt/llama.cpp/bin/llama-gguf-split
    llama-mtmd-cli -> /opt/llama.cpp/bin/llama-mtmd-cli
    llama-perplexity -> /opt/llama.cpp/bin/llama-perplexity
    llama-server -> /opt/llama.cpp/bin/llama-server

Links

About

Build and installation of the llama.cpp LLM inference engine on Linux

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages