2626Cortex is a Local AI API Platform that is used to run and customize LLMs.
2727
2828Key Features:
29- - Straightforward CLI (inspired by Ollama)
30- - Full C++ implementation, packageable into Desktop and Mobile apps
3129- Pull from Huggingface, or Cortex Built-in Models
3230- Models stored in universal file formats (vs blobs)
3331- Swappable Engines (default: [ ` llamacpp ` ] ( https://github.com/janhq/cortex.llamacpp ) , future: [ ` ONNXRuntime ` ] ( https://github.com/janhq/cortex.onnx ) , [ ` TensorRT-LLM ` ] ( https://github.com/janhq/cortex.tensorrt-llm ) )
3432- Cortex can be deployed as a standalone API server, or integrated into apps like [ Jan.ai] ( https://jan.ai/ )
3533
36- Cortex's roadmap is to implement the full OpenAI API including Tools, Runs, Multi-modal and Realtime APIs.
34+ Coming soon; now available on [ cortex-nightly] ( #beta--nightly-versions ) :
35+ - Engines Management (install specific llama-cpp version and variants)
36+ - Nvidia Hardware detection & activation (current: Nvidia, future: AMD, Intel, Qualcomm)
37+ - Cortex's roadmap is to implement the full OpenAI API including Tools, Runs, Multi-modal and Realtime APIs.
3738
3839## Local Installation
3940
@@ -44,19 +45,19 @@ Cortex also has a [Network Installer](#network-installer) which downloads the ne
4445<h4 >
4546 <img src =' https://github.com/janhq/docs/blob/main/static/img/windows.png ' style =" height :15px ; width : 15px " />
4647 Windows:
47- <a href =' https://app.cortexcpp.com/download/latest/windows-amd64-local ' ><b >cortex-windows-local-installer .exe</b ></a >
48+ <a href =' https://app.cortexcpp.com/download/latest/windows-amd64-local ' ><b >cortex.exe</b ></a >
4849</h4 >
4950
5051<h4 >
5152 <img src =' https://github.com/janhq/docs/blob/main/static/img/mac.png ' style =" height :15px ; width : 15px " />
5253 MacOS (Silicon/Intel):
53- <a href =' https://app.cortexcpp.com/download/latest/mac-universal-local ' ><b >cortex-mac-local-installer .pkg</b ></a >
54+ <a href =' https://app.cortexcpp.com/download/latest/mac-universal-local ' ><b >cortex.pkg</b ></a >
5455</h4 >
5556
5657<h4 >
5758 <img src =' https://github.com/janhq/docs/blob/main/static/img/linux.png ' style =" height :15px ; width : 15px " />
5859 Linux:
59- <a href =' https://app.cortexcpp.com/download/latest/linux-amd64-local ' ><b >cortex-linux-local-installer .deb</b ></a >
60+ <a href =' https://app.cortexcpp.com/download/latest/linux-amd64-local ' ><b >cortex.deb</b ></a > (Coming soon: Linux installation script)
6061</h4 >
6162
6263- For Linux: Download the installer and run the following command in terminal:
@@ -74,12 +75,21 @@ Cortex also has a [Network Installer](#network-installer) which downloads the ne
7475After installation, you can run Cortex.cpp from the command line by typing ` cortex --help ` .
7576
7677```
78+ # Run a Model
7779cortex pull llama3.2
7880cortex pull bartowski/Meta-Llama-3.1-8B-Instruct-GGUF
79- cortex run llama3.2
80- cortex models ps
81- cortex models stop llama3.2
82- cortex stop
81+ cortex run llama3.2
82+
83+ # Resource Management
84+ cortex ps (view active models & RAM/VRAM used)
85+ cortex models stop llama3.2
86+
87+ # Available on cortex-nightly:
88+ cortex engines install llama-cpp -m (lists versions and variants)
89+ cortex hardware list (hardware detection)
90+ cortex hardware activate
91+
92+ cortex stop
8393```
8494
8595Refer to our [ Quickstart] ( https://cortex.so/docs/quickstart/ ) and
@@ -92,9 +102,7 @@ Refer to our [API documentation](https://cortex.so/api-reference) for more detai
92102
93103## Models
94104
95- Cortex.cpp allows users to pull models from multiple Model Hubs, offering flexibility and extensive model access.
96-
97- Currently Cortex supports pulling from:
105+ Cortex.cpp allows users to pull models from multiple Model Hubs, offering flexibility and extensive model access:
98106- [ Hugging Face] ( https://huggingface.co ) : GGUF models eg ` author/Model-GGUF `
99107- Cortex Built-in Models
100108
@@ -141,41 +149,15 @@ Select a model (1-9):
141149```
142150
143151## Advanced Installation
144-
145- ### Network Installer (Stable)
146-
147- Cortex.cpp is available with a Network Installer, which is a smaller installer but requires internet connection during installation to download the necessary dependencies.
148-
149- <h4 >
150- <img src =' https://github.com/janhq/docs/blob/main/static/img/windows.png ' style =" height :14px ; width : 14px " />
151- Windows:
152- <a href =' https://app.cortexcpp.com/download/latest/windows-amd64-local ' ><b >cortex-windows-network-installer.exe</b ></a >
153- </h4 >
154-
155- <h4 >
156- <img src =' https://github.com/janhq/docs/blob/main/static/img/mac.png ' style =" height :15px ; width : 15px " />
157- MacOS (Universal):
158- <a href =' https://app.cortexcpp.com/download/latest/mac-universal-network ' ><b >cortex-mac-network-installer.pkg</b ></a >
159- </h4 >
160-
161- <h4 >
162- <img src =' https://github.com/janhq/docs/blob/main/static/img/linux.png ' style =" height :14px ; width : 15px " />
163- Linux:
164- <a href =' https://app.cortexcpp.com/download/latest/linux-amd64-network ' ><b >cortex-linux-network-installer.deb</b ></a >
165- </h4 >
166152
153+ ### Beta & Nightly Versions (Local Installer)
167154
168- ### Beta & Nightly Versions
169-
170- Cortex releases 2 preview versions for advanced users to try new features early (we appreciate your feedback!)
171- - Beta (early preview)
172- - CLI command: ` cortex-beta `
173- - Nightly (released every night)
174- - CLI Command: ` cortex-nightly `
155+ Cortex releases Beta and Nightly versions for advanced users to try new features (we appreciate your feedback!)
156+ - Beta (early preview): CLI command: ` cortex-beta `
157+ - Nightly (released every night): CLI Command: ` cortex-nightly `
175158 - Nightly automatically pulls the latest changes from upstream [ llama.cpp] ( https://github.com/ggerganov/llama.cpp/ ) repo, creates a PR and runs tests.
176159 - If all test pass, the PR is automatically merged into our repo, with the latest llama.cpp version.
177160
178- #### Local Installer (Default)
179161<table >
180162 <tr style =" text-align :center " >
181163 <td style="text-align:center"><b>Version</b></td>
@@ -188,19 +170,19 @@ Cortex releases 2 preview versions for advanced users to try new features early
188170 <td style="text-align:center">
189171 <a href='https://app.cortexcpp.com/download/beta/windows-amd64-local'>
190172 <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:14px; width: 14px" />
191- cortex-beta-windows-local-installer .exe
173+ cortex.exe
192174 </a>
193175 </td>
194176 <td style="text-align:center">
195177 <a href='https://app.cortexcpp.com/download/beta/mac-universal-local'>
196178 <img src='https://github.com/janhq/docs/blob/main/static/img/mac.png' style="height:15px; width: 15px" />
197- cortex-beta-mac-local-installer .pkg
179+ cortex.pkg
198180 </a>
199181 </td>
200182 <td style="text-align:center">
201183 <a href='https://app.cortexcpp.com/download/beta/linux-amd64-local'>
202184 <img src='https://github.com/janhq/docs/blob/main/static/img/linux.png' style="height:14px; width: 14px" />
203- cortex-beta-linux-local-installer .deb
185+ cortex.deb
204186 </a>
205187 </td>
206188 </tr >
@@ -209,25 +191,27 @@ Cortex releases 2 preview versions for advanced users to try new features early
209191 <td style="text-align:center">
210192 <a href='https://app.cortexcpp.com/download/nightly/windows-amd64-local'>
211193 <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:14px; width: 14px" />
212- cortex-nightly-windows-local-installer .exe
194+ cortex.exe
213195 </a>
214196 </td>
215197 <td style="text-align:center">
216198 <a href='https://app.cortexcpp.com/download/nightly/mac-universal-local'>
217199 <img src='https://github.com/janhq/docs/blob/main/static/img/mac.png' style="height:15px; width: 15px" />
218- cortex-nightly-mac-local-installer .pkg
200+ cortex.pkg
219201 </a>
220202 </td>
221203 <td style="text-align:center">
222204 <a href='https://app.cortexcpp.com/download/nightly/linux-amd64-local'>
223205 <img src='https://github.com/janhq/docs/blob/main/static/img/linux.png' style="height:14px; width: 14px" />
224- cortex-nightly-linux-local-installer .deb
206+ cortex.deb
225207 </a>
226208 </td>
227209 </tr >
228210</table >
229211
230- #### Network Installer
212+ ### Network Installer
213+
214+ Cortex.cpp is available with a Network Installer, which is a smaller installer but requires internet connection during installation to download the necessary dependencies.
231215
232216<table >
233217 <tr style =" text-align :center " >
@@ -236,24 +220,45 @@ Cortex releases 2 preview versions for advanced users to try new features early
236220 <td style="text-align:center"><b>MacOS</b></td>
237221 <td style="text-align:center"><b>Linux</b></td>
238222 </tr >
223+ <tr style =" text-align :center " >
224+ <td style="text-align:center"><b>Stable (Recommended)</b></td>
225+ <td style="text-align:center">
226+ <a href='https://app.cortexcpp.com/download/latest/windows-amd64-network'>
227+ <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:15px; width: 15px" />
228+ cortex.exe
229+ </a>
230+ </td>
231+ <td style="text-align:center">
232+ <a href='https://app.cortexcpp.com/download/latest/mac-universal-network'>
233+ <img src='https://github.com/janhq/docs/blob/main/static/img/mac.png' style="height:15px; width: 15px" />
234+ cortex.pkg
235+ </a>
236+ </td>
237+ <td style="text-align:center">
238+ <a href='https://app.cortexcpp.com/download/latest/linux-amd64-network'>
239+ <img src='https://github.com/janhq/docs/blob/main/static/img/linux.png' style="height:15px; width: 15px" />
240+ cortex.deb
241+ </a>
242+ </td>
243+ </tr >
239244 <tr style =" text-align :center " >
240245 <td style="text-align:center"><b>Beta (Preview)</b></td>
241246 <td style="text-align:center">
242247 <a href='https://app.cortexcpp.com/download/beta/windows-amd64-network'>
243- <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:14px ; width: 14px " />
244- cortex-beta-windows-network-installer .exe
248+ <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:15px ; width: 15px " />
249+ cortex.exe
245250 </a>
246251 </td>
247252 <td style="text-align:center">
248253 <a href='https://app.cortexcpp.com/download/beta/mac-universal-network'>
249254 <img src='https://github.com/janhq/docs/blob/main/static/img/mac.png' style="height:15px; width: 15px" />
250- cortex-beta-mac-network-installer .pkg
255+ cortex.pkg
251256 </a>
252257 </td>
253258 <td style="text-align:center">
254259 <a href='https://app.cortexcpp.com/download/beta/linux-amd64-network'>
255260 <img src='https://github.com/janhq/docs/blob/main/static/img/linux.png' style="height:15px; width: 15px" />
256- cortex-beta-linux-network-installer .deb
261+ cortex.deb
257262 </a>
258263 </td>
259264 </tr >
@@ -262,19 +267,19 @@ Cortex releases 2 preview versions for advanced users to try new features early
262267 <td style="text-align:center">
263268 <a href='https://app.cortexcpp.com/download/nightly/windows-amd64-network'>
264269 <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:15px; width: 15px" />
265- cortex-nightly-windows-network-installer .exe
270+ cortex.exe
266271 </a>
267272 </td>
268273 <td style="text-align:center">
269274 <a href='https://app.cortexcpp.com/download/nightly/mac-universal-network'>
270275 <img src='https://github.com/janhq/docs/blob/main/static/img/mac.png' style="height:15px; width: 15px" />
271- cortex-nightly-mac-network-installer .pkg
276+ cortex.pkg
272277 </a>
273278 </td>
274279 <td style="text-align:center">
275280 <a href='https://app.cortexcpp.com/download/nightly/linux-amd64-network'>
276281 <img src='https://github.com/janhq/docs/blob/main/static/img/linux.png' style="height:15px; width: 15px" />
277- cortex-nightly-linux-network-installer .deb
282+ cortex.deb
278283 </a>
279284 </td>
280285 </tr >
0 commit comments