You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
🚧 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
+
- Stable: The latest stable release on github.
24
+
- Beta: The release candidate for the next stable release, available on github release with the tag `vx.y.z-rc1`
25
+
- Nightly: The nightly build of the latest code on dev branch, available on [discord](https://discord.com/channels/1107178041848909847/1283654073488379904).
26
+
27
+
### Download URLs
28
+
29
+
| Type | Version | Operating System | Download Link |
For other versions, please look at [cortex.cpp repo](https://github.com/janhq/cortex.cpp) or each installer page.
37
+
:::
38
+
39
+
40
+
## Minimum Requirements
41
+
42
+
### OS
43
+
- MacOS 12 or later
44
+
- Windows 10 or later
45
+
- 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.)
46
+
47
+
### Hardware
48
+
#### CPU
49
+
:::info
50
+
- 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).
51
+
- We support older processors with AVX, AVX-512 and non-AVX, though this is not recommended.
52
+
:::
53
+
54
+
##### Intel CPU
55
+
- Haswell processors (Q2 2013) and newer.
56
+
- Tiger Lake (Q3 2020) and newer for Celeron and Pentium processors.
57
+
##### AMD CPU
58
+
- Excavator processors (Q2 2015) and newer.
59
+
60
+
#### RAM
61
+
:::info
62
+
We support DDR2 RAM as the minimum requirement but recommend using newer generations of RAM for improved performance.
63
+
:::
64
+
- 8GB for running up to 3B models (int4).
65
+
- 16GB for running up to 7B models (int4).
66
+
- 32GB for running up to 13B models (int4).
67
+
68
+
#### GPU
69
+
:::info
70
+
Having at least 6GB VRAM when using NVIDIA, AMD, or Intel Arc GPUs is recommended.
71
+
:::
72
+
- 6GB can load the 3B model (int4) with `ngl` at 120 ~ full speed on CPU/ GPU.
73
+
- 8GB can load the 7B model (int4) with `ngl` at 120 ~ full speed on CPU/ GPU.
74
+
- 12GB can load the 13B model (int4) with `ngl` at 120 ~ full speed on CPU/ GPU.
75
+
:::info
76
+
-[NVIDIA driver](https://www.nvidia.com/Download/index.aspx) version 470.63.01 or higher.
77
+
*Note: Users must install the driver by themselves.*
78
+
-[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.*
79
+
:::
80
+
#### Disk
81
+
- At least 10GB for app storage and model download.
Copy file name to clipboardExpand all lines: docs/docs/installation/docker.mdx
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,26 @@
1
-
2
1
---
3
2
title: Docker
4
3
description: Install Cortex using Docker.
5
4
---
6
5
6
+
importTabsfrom'@theme/Tabs';
7
+
importTabItemfrom'@theme/TabItem';
8
+
importAdmonitionfrom'@theme/Admonition';
9
+
7
10
:::warning
8
11
🚧 **Cortex.cpp is currently in development.** The documentation describes the intended functionality, which may not yet be fully implemented.
9
12
:::
10
13
11
-
# Setting Up Cortex with Docker
14
+
##Setting Up Cortex with Docker
12
15
13
16
This guide walks you through the setup and running of Cortex using Docker.
14
17
15
-
## Prerequisites
18
+
###Prerequisites
16
19
17
20
- Docker or Docker Desktop
18
21
-`nvidia-container-toolkit` (for GPU support)
19
22
20
-
## Setup Instructions
23
+
###Setup Instructions
21
24
22
25
1.**Clone the Cortex Repository**
23
26
```bash
@@ -64,11 +67,11 @@ This guide walks you through the setup and running of Cortex using Docker.
64
67
cortex --help
65
68
```
66
69
67
-
## Usage
70
+
###Usage
68
71
69
72
With Docker running, you can use the following commands to interact with Cortex. Ensure the container is running and `curl` is installed on your machine.
70
73
71
-
### 1. List Available Engines
74
+
####1. List Available Engines
72
75
73
76
```bash
74
77
curl --request GET --url http://localhost:39281/v1/engines --header "Content-Type: application/json"
- Open a terminal and run `websocat ws://localhost:39281/events` to capture download events, follow [this instruction](https://github.com/vi/websocat?tab=readme-ov-file#installation) to install `websocat`.
104
107
- In another terminal, pull models using the commands below.
5. Use Visual Studio with the C++ development kit to build the project using the files generated in the `build` folder.
84
-
6. Verify that Cortex.cpp is installed correctly by getting help information.
85
-
86
-
```sh
87
-
# Get the help information
88
-
cortex -h
89
-
```
90
-
91
-
## Prerequisites
92
-
### Dependencies
93
-
- Node.js version 18 and higher
94
-
- NPM
95
-
- Homebrew
87
+
### Prerequisites
96
88
- OpenMPI
97
-
98
-
### Hardware
99
-
#### Operating System
100
-
- Debian-based (Supports `.deb` and `AppImage` )
101
-
- Ubuntu version 22.04 and higher
102
-
#### CPU
103
-
:::info
104
-
- 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).
105
-
- We support older processors with AVX and AVX-512, though this is not recommended.
106
-
:::
107
-
##### Intel CPU
108
-
- Haswell processors (Q2 2013) and newer.
109
-
- Tiger Lake (Q3 2020) and newer for Celeron and Pentium processors.
110
-
##### AMD CPU
111
-
- Excavator processors (Q2 2015) and newer.
112
-
#### RAM
113
-
:::info
114
-
We support DDR2 RAM as the minimum requirement but recommend using newer generations of RAM for improved performance.
115
-
:::
116
-
- 8GB for running up to 3B models (int4).
117
-
- 16GB for running up to 7B models (int4).
118
-
- 32GB for running up to 13B models (int4).
119
-
#### GPU
120
-
:::info
121
-
Having at least 6GB VRAM when using NVIDIA, AMD, or Intel Arc GPUs is recommended.
122
-
:::
123
-
- 6GB can load the 3B model (int4) with `ngl` at 120 ~ full speed on CPU/ GPU.
124
-
- 8GB can load the 7B model (int4) with `ngl` at 120 ~ full speed on CPU/ GPU.
125
-
- 12GB can load the 13B model (int4) with `ngl` at 120 ~ full speed on CPU/ GPU.
126
-
:::info
127
-
-[NVIDIA driver](https://www.nvidia.com/Download/index.aspx) version 470.63.01 or higher.
128
-
-[CUDA Toolkit](https://developer.nvidia.com/cuda-toolkit) version 12.3 or higher.
129
-
:::
130
-
#### Disk
131
-
- At least 10GB for app storage and model download.
89
+
- CMake >= 3.10
90
+
- gcc/g++ >= 9
91
+
- ninja-build
92
+
93
+
### Build Cortex.cpp
94
+
95
+
1.**Clone the Cortex Repository**
96
+
```bash
97
+
git clone https://github.com/janhq/cortex.cpp.git
98
+
cd cortex.cpp
99
+
git submodule update --init
100
+
```
101
+
2. Build the Cortex.cpp :
102
+
103
+
```bash
104
+
cd engine
105
+
make configure-vcpkg
106
+
make build CMAKE_EXTRA_FLAGS="-DCORTEX_CPP_VERSION=$(git rev-parse HEAD) -DCMAKE_BUILD_TEST=OFF -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
107
+
```
108
+
109
+
3. Verify that Cortex.cpp is builded correctly by getting help information.
0 commit comments