|
| 1 | +--- |
| 2 | +title: Installation |
| 3 | +description: Cortex Installation |
| 4 | +slug: "installation" |
| 5 | +--- |
| 6 | + |
| 7 | +import Tabs from '@theme/Tabs'; |
| 8 | +import TabItem from '@theme/TabItem'; |
| 9 | +import Admonition from '@theme/Admonition'; |
| 10 | + |
| 11 | +:::warning |
| 12 | +🚧 Cortex.cpp is currently under development. Our documentation outlines the intended behavior of Cortex, which may not yet be fully implemented in the codebase. |
| 13 | +::: |
| 14 | + |
| 15 | +## Cortex.cpp Installation |
| 16 | +### Cortex.cpp offers four installer types |
| 17 | +- Network Installers download a minimal system and require an internet connection to fetch packages during installation. |
| 18 | +- Local Installers include all necessary packages, enabling offline installation without internet access. |
| 19 | +- Dockerfile Installers are used to build a Docker image for Cortex. |
| 20 | +- Binary files without package management. |
| 21 | + |
| 22 | +### Cortex.cpp supports three channels |
| 23 | + |
| 24 | +- Stable: The latest stable release on github. |
| 25 | +- Beta: The release candidate for the next stable release, available on github release with the tag `vx.y.z-rc1` |
| 26 | +- Nightly: The nightly build of the latest code on dev branch, available on [discord](https://discord.com/channels/1107178041848909847/1283654073488379904). |
| 27 | + |
| 28 | +For more information, please check out [different channels](#different-channels). |
| 29 | + |
| 30 | +### Download URLs |
| 31 | + |
| 32 | +| Type | Version | Operating System | Download Link | |
| 33 | +|----------|---------------|------------------|---------------------------------------------------------------------------------------------------| |
| 34 | +| **Local** | **Stable** | **Windows** | [Download](https://app.cortexcpp.com/download/latest/windows-amd64-local) | |
| 35 | +| **Local** | **Stable** | **Linux** | [Download](https://app.cortexcpp.com/download/latest/linux-amd64-local) | |
| 36 | +| **Local** | **Stable** | **MacOS** | [Download](https://app.cortexcpp.com/download/latest/mac-universal-local) | |
| 37 | + |
| 38 | +:::info |
| 39 | +For other versions, please look at [cortex.cpp repo](https://github.com/janhq/cortex.cpp) or each installer page. |
| 40 | +::: |
| 41 | + |
| 42 | + |
| 43 | +## Minimum Requirements |
| 44 | + |
| 45 | +### OS |
| 46 | +- MacOS 12 or later |
| 47 | +- Windows 10 or later |
| 48 | +- Linux: Ubuntu 20.04 or later, Debian 11 or later (For other distributions, please use the Dockerfile installer or binary files, we have not tested on other distributions yet.) |
| 49 | + |
| 50 | +### Hardware |
| 51 | +#### CPU |
| 52 | +:::info |
| 53 | +- Cortex.cpp supports a processor that can handle AVX2. For the full list, please see [here](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#CPUs_with_AVX2). |
| 54 | +- We support older processors with AVX, AVX-512 and non-AVX, though this is not recommended. |
| 55 | +::: |
| 56 | + |
| 57 | +##### Intel CPU |
| 58 | +- Haswell processors (Q2 2013) and newer. |
| 59 | +- Tiger Lake (Q3 2020) and newer for Celeron and Pentium processors. |
| 60 | +##### AMD CPU |
| 61 | +- Excavator processors (Q2 2015) and newer. |
| 62 | + |
| 63 | +#### RAM |
| 64 | +:::info |
| 65 | +We support DDR2 RAM as the minimum requirement but recommend using newer generations of RAM for improved performance. |
| 66 | +::: |
| 67 | +- 8GB for running up to 3B models (int4). |
| 68 | +- 16GB for running up to 7B models (int4). |
| 69 | +- 32GB for running up to 13B models (int4). |
| 70 | + |
| 71 | +#### GPU |
| 72 | +:::info |
| 73 | +Having at least 6GB VRAM when using NVIDIA, AMD, or Intel Arc GPUs is recommended. |
| 74 | +::: |
| 75 | +- 6GB can load the 3B model (int4) with `ngl` at 120 ~ full speed on CPU/ GPU. |
| 76 | +- 8GB can load the 7B model (int4) with `ngl` at 120 ~ full speed on CPU/ GPU. |
| 77 | +- 12GB can load the 13B model (int4) with `ngl` at 120 ~ full speed on CPU/ GPU. |
| 78 | +:::info |
| 79 | +- [NVIDIA driver](https://www.nvidia.com/Download/index.aspx) version 470.63.01 or higher. |
| 80 | + *Note: Users must install the driver by themselves.* |
| 81 | +- [CUDA Toolkit](https://developer.nvidia.com/cuda-toolkit) version 12.0 or higher. *Note: Cortex.cpp will automatically detect and install the required version of cudart to the user's machine.* |
| 82 | +::: |
| 83 | +#### Disk |
| 84 | +- At least 10GB for app storage and model download. |
| 85 | + |
| 86 | +## Different channels |
| 87 | + |
| 88 | +Different channels have different features, stability levels, binary file name, app folder and data folder. |
| 89 | + |
| 90 | +### Stable |
| 91 | +- App name: `cortexcpp` |
| 92 | +- Binary file name: `cortex`, `cortex-server` for linux and mac; `cortex.exe`, `cortex-server.exe` for windows.; |
| 93 | +- App folder (Windows Only): `C:\Users\<username>\AppData\Local\cortexcpp` |
| 94 | +- Data folder: `~/cortexcpp` for linux and mac; `C:\Users\<username>\cortexcpp` for windows. |
| 95 | +- Uninstaller script (Mac Only): `cortex-uninstall.sh` |
| 96 | + |
| 97 | +### Beta |
| 98 | +- App name: `cortexcpp-beta` |
| 99 | +- Binary file name: `cortex-beta`, `cortex-server-beta` for linux and mac; `cortex-beta.exe`, `cortex-server-beta.exe` for windows.; |
| 100 | +- App folder (Windows Only): `C:\Users\<username>\AppData\Local\cortexcpp-beta` |
| 101 | +- Data folder: `~/cortexcpp-beta` for linux and mac; `C:\Users\<username>\cortexcpp-beta` for windows. |
| 102 | +- Uninstaller script (Mac Only): `cortex-beta-uninstall.sh` |
| 103 | + |
| 104 | +### Nightly |
| 105 | +- App name: `cortexcpp-nightly` |
| 106 | +- Binary file name: `cortex-nightly`, `cortex-server-nightly` for linux and mac; `cortex-nightly.exe`, `cortex-server-nightly.exe` for windows.; |
| 107 | +- App folder (Windows Only): `C:\Users\<username>\AppData\Local\cortexcpp-nightly` |
| 108 | +- Data folder: `~/cortexcpp-nightly` for linux and mac; `C:\Users\<username>\cortexcpp-nightly` for windows. |
| 109 | +- Uninstaller script (Mac Only): `cortex-nightly-uninstall.sh` |
0 commit comments