Mac 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 MacOs installer:
- 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/local/bin/cortexcpp<env># Application Data (Engines, Models and Logs folders)/Users/<username>/.cortexcpp<env>
Uninstall Cortex.cpp​
Run the uninstaller script:
# Stable versionsudo sh cortex-uninstall.sh# Beta versionsudo sh cortex-beta-uninstall.sh# Stable versionsudo sh cortex-nightly-uninstall.sh
info
The script requires sudo permission.
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​
- Homebrew
Hardware​
Operating System​
- MacOSX 13.6 or higher.
CPU​
- Mac Intel CPU
- Mac Apple Silicon
RAM​
- 8GB for running up to 3B models.
- 16GB for running up to 7B models.
- 32GB for running up to 13B models.
Disk​
- At least 10GB for app storage and model download.