# Glossary (llama.cpp Server)

> The terms used in the docs of the llama.cpp image.

Acronyms and terms used on this image's pages. See the [site-wide glossary](https://docs.sparecores.com/glossary.md) for all terms.

## A

### AMD64

The 64-bit version of the x86 instruction set architecture, introduced by AMD in 2003 and also implemented by Intel, which runs most cloud servers. Linux distributions and Docker name it `amd64` or `x86_64`. See [Wikipedia](https://en.wikipedia.org/wiki/X86-64).

### API

**Application Programming Interface**: A defined set of requests and responses through which one program uses another, such as a web service's HTTP endpoints or a library's functions. See [Wikipedia](https://en.wikipedia.org/wiki/API).

### Arm64

The 64-bit execution state of the Arm architecture, also called AArch64, used by server CPUs such as AWS Graviton, Ampere Altra, and Google Axion. Linux distributions and Docker name it `arm64` or `aarch64`. See [Wikipedia](https://en.wikipedia.org/wiki/AArch64).

## C

### CI

**Continuous Integration**: The practice of building and testing code automatically on every change, usually on a hosted service such as GitHub Actions, so problems show up before the change is merged. See [Wikipedia](https://en.wikipedia.org/wiki/Continuous_integration).

### CMake

An open-source build tool for C and C++ projects. It reads a project's `CMakeLists.txt` and generates the native build files for a compiler and platform, such as Makefiles or Ninja files. Options given with `-D` when the build is configured, such as `-DCMAKE_BUILD_TYPE=Release`, set the build type and turn a project's optional features on or off. See [CMake docs](https://cmake.org/cmake/help/latest/).

### container entrypoint

The executable that a container image runs when a container starts, set by the `ENTRYPOINT` instruction of its Dockerfile. The image's default command (`CMD`), or the arguments given after the image name in `docker run`, are passed to it as arguments, so an entrypoint can wrap any command, for example to set up the environment or record resource usage first. The `docker run --entrypoint` option replaces it. See [Dockerfile reference](https://docs.docker.com/reference/dockerfile/#entrypoint).

### CPU

**Central Processing Unit**: The general-purpose processor of a computer, which runs the operating system and programs. A CPU has one or more physical cores, and with SMT each core runs two or more hardware threads. See [Wikipedia](https://en.wikipedia.org/wiki/Central_processing_unit).

### CUDA

**Compute Unified Device Architecture**: The parallel computing platform and programming model of NVIDIA GPUs. It runs general-purpose code on the GPU, and most machine learning frameworks rely on its libraries, such as cuBLAS and cuDNN. See [NVIDIA docs](https://docs.nvidia.com/cuda/).

## G

### GGML

**Georgi Gerganov Machine Learning**: An open-source tensor library for machine learning, written in C and C++ without external dependencies. It runs on CPUs of many architectures, with SIMD-optimized code, and on GPUs and other accelerators through backends, and it supports quantized weights of 2 to 8 bits. llama.cpp and the GGUF file format are built on it. The expansion is unofficial, as the project has not spelled out its name. See [ggml on GitHub](https://github.com/ggml-org/ggml), [Naming discussion](https://github.com/ggml-org/ggml/discussions/1373).

### GGUF

**GGML Universal File**: A binary file format for LLM weights and metadata, introduced in 2023 by the GGML (Georgi Gerganov Machine Learning) project behind llama.cpp. One file holds the model's tensors, often quantized, together with its tokenizer and settings, so a model can be loaded quickly with memory mapping and without other files. Hugging Face hosts many models in this format. Both expansions are unofficial, as the GGML project has not spelled out either name. See [GGUF specification](https://github.com/ggml-org/ggml/blob/master/docs/gguf.md), [Hugging Face docs](https://huggingface.co/docs/hub/gguf), [Naming discussion](https://github.com/ggml-org/ggml/discussions/1373).

### GPU

**Graphics Processing Unit**: A processor with thousands of simple cores that run the same operation on many data elements in parallel. It was built to render graphics, and is now also used for general-purpose parallel work such as machine learning training and inference, scientific simulation, and video encoding. Cloud providers rent GPUs attached to virtual machines, with their own dedicated GPU memory. See [Wikipedia](https://en.wikipedia.org/wiki/Graphics_processing_unit).

## H

### HTTP

**Hypertext Transfer Protocol**: The request-response protocol of the web, in which a client asks a server for a resource by URL and gets back a status code, headers, and a body. HTTPS is HTTP over an encrypted connection. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP).

## L

### `llama-server`

The HTTP server of llama.cpp. It loads a model in the GGUF format and serves it over an HTTP API, with endpoints for text completion, chat, and embeddings. It also provides a `/health` endpoint that reports whether the server is ready and a web interface. By default, it listens on port 8080 of `127.0.0.1`. Most of its command-line options can also be set as environment variables named `LLAMA_ARG_<OPTION>`, such as `LLAMA_ARG_PORT`. See [llama.cpp server documentation](https://github.com/ggml-org/llama.cpp/tree/master/tools/server).

### llama.cpp

An open-source C/C++ library and set of tools for LLM inference, started by Georgi Gerganov in 2023 and built on the ggml tensor library. It runs models in the GGUF format, usually quantized, on CPUs of many architectures, with code optimized for their SIMD instruction sets, and on GPUs through backends such as CUDA, Metal, and Vulkan. Its tools include a command-line client, an HTTP server, and a benchmark tool, `llama-bench`. See [llama.cpp on GitHub](https://github.com/ggml-org/llama.cpp).

## N

### NVIDIA Container Toolkit

A set of NVIDIA libraries and tools that lets containers use the NVIDIA GPUs of the host. It configures container runtimes such as Docker to make the GPU devices and driver libraries available inside a container. See [NVIDIA docs](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html).

### NVIDIA driver

The kernel module and libraries that let the operating system and programs use NVIDIA GPUs. Each driver version supports CUDA up to a certain version. Containers use the host's driver through the NVIDIA Container Toolkit, so it is installed on the host rather than in container images. See [NVIDIA docs](https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/index.html).

## U

### URL

**Uniform Resource Locator**: The address of a resource on the web or a network, such as https://sparecores.com/, made of a scheme, a host, and a path.
