Windows Installation
🚧 Cortex.cpp is currently under development. Our documentation outlines the intended behavior of Cortex, which may not yet be fully implemented in the codebase.
Overview​
For Windows, Cortex.cpp can be installed in two ways:
Windows​
Install Cortex.cpp​
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.
Before installation, make sure that you have met the required dependencies and hardware to run Cortex.
- Stable: https://github.com/janhq/cortex.cpp/releases
- Beta: https://github.com/janhq/cortex.cpp/releases
- Nightly: https://github.com/janhq/cortex.cpp/releases
Data Folder​
By default, Cortex.cpp is installed in the following directory:
# Binary LocationC:\Users\<username>\AppData\Local\cortexcpp# Application Data (Engines, Models and Logs folders)C:\Users\<username>\.cortexcpp
Uninstall Cortex.cpp​
To uninstall Cortex.cpp:
- Navigate to Add or Remove program.
- Search for Cortex.cpp and click Uninstall.
Windows Subsystem Linux​
Windows Subsystem Linux allows running Linux tools and workflows seamlessly alongside Windows applications. For more information, please see this article.
Install Cortex.cpp​
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.
Before installation, make sure that you have met the required dependencies and hardware to run Cortex.
- Download the Windows installer:
- Ensure that Cortex.cpp is sucessfulyy installed:
# Stablecortex.exe# Betacortex-beta.exe# Nightlycortex-nightly.exe
Data Folder​
By default, Cortex.cpp is installed in the following directory:
# Binary LocationC:\Users\<username>\AppData\Local\cortexcpp\cortex<env>.exe# Application Data (Engines, Models and Logs folders)C:\Users\<username>\.cortexcpp<env>
Uninstall Cortex.cpp​
Run the uninstaller script:
# 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## Windows./bootstrap-vcpkg.bat## WSL./bootstrap-vcpkg.shvcpkg install
- Build the Cortex.cpp inside the
build
folder:
mkdir buildcd build## Windowscmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=path_to_vcpkg_folder/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static## WSLcmake .. -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​
Windows​
- Node.js version 18 and higher
- NPM
Windows Subsystem for Linux​
- Node.js version 18 and higher
- NPM
- Homebrew
- Windows Subsystem for Linux (Ubuntu)
- OpenMPI
Hardware​
Operating System​
- Windows 10 or higher.
CPU​
- 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​
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​
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.
- 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.