Linux Installation
warning
🚧 Cortex.cpp is currently under development. Our documentation outlines the intended behavior of Cortex, which may not yet be fully implemented in the codebase.
Cortex.cpp Installation​
Cortex.cpp offers two installer types:
- Network Installers download a minimal system and require an internet connection to fetch packages during installation.
- Local Installers include all necessary packages, enabling offline installation without internet access.
info
Before installation, make sure that you have met the required dependencies and hardware to run Cortex.
-
Download the Linux installer:
.deb
:.appImage
:
-
Ensure that Cortex.cpp is sucessfulyy installed:
# Stablecortex# Betacortex-beta# Nightlycortex-nightly
Data Folder​
By default, Cortex.cpp is installed in the following directory:
# Binary Location/usr/bin/cortexcpp<env># Application Data (Engines, Models and Logs folders)/home/<username>/.cortexcpp<env>
Uninstall Cortex.cpp​
# Stable versionsudo apt remove cortexcpp# Beta versionsudo apt remove cortexcpp-beta# Nightly versionsudo apt remove cortexcpp-nightly
Build from Source​
- Clone the Cortex.cpp repository here.
- Navigate to the
engine > vcpkg
folder. - Configure the vpkg:
cd vcpkg./bootstrap-vcpkg.shvcpkg install
- Build the Cortex.cpp inside the
build
folder:
mkdir buildcd buildcmake .. -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder/vcpkg/scripts/buildsystems/vcpkg.cmakemake -j4
- Use Visual Studio with the C++ development kit to build the project using the files generated in the
build
folder. - Verify that Cortex.cpp is installed correctly by getting help information.
# Get the help informationcortex -h
Prerequisites​
Dependencies​
- Node.js version 18 and higher
- NPM
- Homebrew
- OpenMPI
Hardware​
Operating System​
- Debian-based (Supports
.deb
andAppImage
) - Ubuntu version 22.04 and higher
CPU​
info
- Cortex.cpp supports a processor that can handle AVX2. For the full list, please see here.
- We support older processors with AVX and AVX-512, though this is not recommended.
Intel CPU​
- Haswell processors (Q2 2013) and newer.
- Tiger Lake (Q3 2020) and newer for Celeron and Pentium processors.
AMD CPU​
- Excavator processors (Q2 2015) and newer.
RAM​
info
We support DDR2 RAM as the minimum requirement but recommend using newer generations of RAM for improved performance.
- 8GB for running up to 3B models (int4).
- 16GB for running up to 7B models (int4).
- 32GB for running up to 13B models (int4).
GPU​
info
Having at least 6GB VRAM when using NVIDIA, AMD, or Intel Arc GPUs is recommended.
- 6GB can load the 3B model (int4) with
ngl
at 120 ~ full speed on CPU/ GPU. - 8GB can load the 7B model (int4) with
ngl
at 120 ~ full speed on CPU/ GPU. - 12GB can load the 13B model (int4) with
ngl
at 120 ~ full speed on CPU/ GPU.
info
- NVIDIA driver version 470.63.01 or higher.
- CUDA Toolkit version 12.3 or higher.
Disk​
- At least 10GB for app storage and model download.