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,13 +45,13 @@ 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 >
@@ -63,10 +64,10 @@ Cortex also has a [Network Installer](#network-installer) which downloads the ne
6364
6465``` bash
6566 # Linux debian based distros
66- curl -s https://raw.githubusercontent.com/janhq/cortex/dev /engine/templates/linux/install.sh | sudo bash -s -- --deb_local
67+ curl -s https://raw.githubusercontent.com/janhq/cortex/main /engine/templates/linux/install.sh | sudo bash -s -- --deb_local
6768
6869 # Other Linux distros
69- curl -s https://raw.githubusercontent.com/janhq/cortex/dev /engine/templates/linux/install.sh | sudo bash -s
70+ curl -s https://raw.githubusercontent.com/janhq/cortex/main /engine/templates/linux/install.sh | sudo bash -s
7071```
7172
7273- The binary will be installed in the ` /usr/bin/ ` directory.
@@ -78,12 +79,21 @@ Cortex also has a [Network Installer](#network-installer) which downloads the ne
7879After installation, you can run Cortex.cpp from the command line by typing ` cortex --help ` .
7980
8081```
82+ # Run a Model
8183cortex pull llama3.2
8284cortex pull bartowski/Meta-Llama-3.1-8B-Instruct-GGUF
83- cortex run llama3.2
84- cortex models ps
85- cortex models stop llama3.2
86- cortex stop
85+ cortex run llama3.2
86+
87+ # Resource Management
88+ cortex ps (view active models & RAM/VRAM used)
89+ cortex models stop llama3.2
90+
91+ # Available on cortex-nightly:
92+ cortex engines install llama-cpp -m (lists versions and variants)
93+ cortex hardware list (hardware detection)
94+ cortex hardware activate
95+
96+ cortex stop
8797```
8898
8999Refer to our [ Quickstart] ( https://cortex.so/docs/quickstart/ ) and
@@ -96,9 +106,7 @@ Refer to our [API documentation](https://cortex.so/api-reference) for more detai
96106
97107## Models
98108
99- Cortex.cpp allows users to pull models from multiple Model Hubs, offering flexibility and extensive model access.
100-
101- Currently Cortex supports pulling from:
109+ Cortex.cpp allows users to pull models from multiple Model Hubs, offering flexibility and extensive model access:
102110- [ Hugging Face] ( https://huggingface.co ) : GGUF models eg ` author/Model-GGUF `
103111- Cortex Built-in Models
104112
@@ -168,18 +176,14 @@ Cortex.cpp is available with a Network Installer, which is a smaller installer b
168176 <a href =' https://app.cortexcpp.com/download/latest/linux-amd64-network ' ><b >cortex-linux-network-installer.deb</b ></a >
169177</h4 >
170178
179+ ### Beta & Nightly Versions (Local Installer)
171180
172- ### Beta & Nightly Versions
173-
174- Cortex releases 2 preview versions for advanced users to try new features early (we appreciate your feedback!)
175- - Beta (early preview)
176- - CLI command: ` cortex-beta `
177- - Nightly (released every night)
178- - CLI Command: ` cortex-nightly `
181+ Cortex releases Beta and Nightly versions for advanced users to try new features (we appreciate your feedback!)
182+ - Beta (early preview): CLI command: ` cortex-beta `
183+ - Nightly (released every night): CLI Command: ` cortex-nightly `
179184 - Nightly automatically pulls the latest changes from upstream [ llama.cpp] ( https://github.com/ggerganov/llama.cpp/ ) repo, creates a PR and runs tests.
180185 - If all test pass, the PR is automatically merged into our repo, with the latest llama.cpp version.
181186
182- #### Local Installer (Default)
183187<table >
184188 <tr style =" text-align :center " >
185189 <td style="text-align:center"><b>Version</b></td>
@@ -192,19 +196,19 @@ Cortex releases 2 preview versions for advanced users to try new features early
192196 <td style="text-align:center">
193197 <a href='https://app.cortexcpp.com/download/beta/windows-amd64-local'>
194198 <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:14px; width: 14px" />
195- cortex-beta-windows-local-installer .exe
199+ cortex.exe
196200 </a>
197201 </td>
198202 <td style="text-align:center">
199203 <a href='https://app.cortexcpp.com/download/beta/mac-universal-local'>
200204 <img src='https://github.com/janhq/docs/blob/main/static/img/mac.png' style="height:15px; width: 15px" />
201- cortex-beta-mac-local-installer .pkg
205+ cortex.pkg
202206 </a>
203207 </td>
204208 <td style="text-align:center">
205209 <a href='https://app.cortexcpp.com/download/beta/linux-amd64-local'>
206210 <img src='https://github.com/janhq/docs/blob/main/static/img/linux.png' style="height:14px; width: 14px" />
207- cortex-beta-linux-local-installer .deb
211+ cortex.deb
208212 </a>
209213 </td>
210214 </tr >
@@ -213,25 +217,27 @@ Cortex releases 2 preview versions for advanced users to try new features early
213217 <td style="text-align:center">
214218 <a href='https://app.cortexcpp.com/download/nightly/windows-amd64-local'>
215219 <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:14px; width: 14px" />
216- cortex-nightly-windows-local-installer .exe
220+ cortex.exe
217221 </a>
218222 </td>
219223 <td style="text-align:center">
220224 <a href='https://app.cortexcpp.com/download/nightly/mac-universal-local'>
221225 <img src='https://github.com/janhq/docs/blob/main/static/img/mac.png' style="height:15px; width: 15px" />
222- cortex-nightly-mac-local-installer .pkg
226+ cortex.pkg
223227 </a>
224228 </td>
225229 <td style="text-align:center">
226230 <a href='https://app.cortexcpp.com/download/nightly/linux-amd64-local'>
227231 <img src='https://github.com/janhq/docs/blob/main/static/img/linux.png' style="height:14px; width: 14px" />
228- cortex-nightly-linux-local-installer .deb
232+ cortex.deb
229233 </a>
230234 </td>
231235 </tr >
232236</table >
233237
234- #### Network Installer
238+ ### Network Installer
239+
240+ Cortex.cpp is available with a Network Installer, which is a smaller installer but requires internet connection during installation to download the necessary dependencies.
235241
236242<table >
237243 <tr style =" text-align :center " >
@@ -240,24 +246,45 @@ Cortex releases 2 preview versions for advanced users to try new features early
240246 <td style="text-align:center"><b>MacOS</b></td>
241247 <td style="text-align:center"><b>Linux debian based distros</b></td>
242248 </tr >
249+ <tr style =" text-align :center " >
250+ <td style="text-align:center"><b>Stable (Recommended)</b></td>
251+ <td style="text-align:center">
252+ <a href='https://app.cortexcpp.com/download/latest/windows-amd64-network'>
253+ <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:15px; width: 15px" />
254+ cortex.exe
255+ </a>
256+ </td>
257+ <td style="text-align:center">
258+ <a href='https://app.cortexcpp.com/download/latest/mac-universal-network'>
259+ <img src='https://github.com/janhq/docs/blob/main/static/img/mac.png' style="height:15px; width: 15px" />
260+ cortex.pkg
261+ </a>
262+ </td>
263+ <td style="text-align:center">
264+ <a href='https://app.cortexcpp.com/download/latest/linux-amd64-network'>
265+ <img src='https://github.com/janhq/docs/blob/main/static/img/linux.png' style="height:15px; width: 15px" />
266+ cortex.deb
267+ </a>
268+ </td>
269+ </tr >
243270 <tr style =" text-align :center " >
244271 <td style="text-align:center"><b>Beta (Preview)</b></td>
245272 <td style="text-align:center">
246273 <a href='https://app.cortexcpp.com/download/beta/windows-amd64-network'>
247- <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:14px ; width: 14px " />
248- cortex-beta-windows-network-installer .exe
274+ <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:15px ; width: 15px " />
275+ cortex.exe
249276 </a>
250277 </td>
251278 <td style="text-align:center">
252279 <a href='https://app.cortexcpp.com/download/beta/mac-universal-network'>
253280 <img src='https://github.com/janhq/docs/blob/main/static/img/mac.png' style="height:15px; width: 15px" />
254- cortex-beta-mac-network-installer .pkg
281+ cortex.pkg
255282 </a>
256283 </td>
257284 <td style="text-align:center">
258285 <a href='https://app.cortexcpp.com/download/beta/linux-amd64-network'>
259286 <img src='https://github.com/janhq/docs/blob/main/static/img/linux.png' style="height:15px; width: 15px" />
260- cortex-beta-linux-network-installer .deb
287+ cortex.deb
261288 </a>
262289 </td>
263290 </tr >
@@ -266,19 +293,19 @@ Cortex releases 2 preview versions for advanced users to try new features early
266293 <td style="text-align:center">
267294 <a href='https://app.cortexcpp.com/download/nightly/windows-amd64-network'>
268295 <img src='https://github.com/janhq/docs/blob/main/static/img/windows.png' style="height:15px; width: 15px" />
269- cortex-nightly-windows-network-installer .exe
296+ cortex.exe
270297 </a>
271298 </td>
272299 <td style="text-align:center">
273300 <a href='https://app.cortexcpp.com/download/nightly/mac-universal-network'>
274301 <img src='https://github.com/janhq/docs/blob/main/static/img/mac.png' style="height:15px; width: 15px" />
275- cortex-nightly-mac-network-installer .pkg
302+ cortex.pkg
276303 </a>
277304 </td>
278305 <td style="text-align:center">
279306 <a href='https://app.cortexcpp.com/download/nightly/linux-amd64-network'>
280307 <img src='https://github.com/janhq/docs/blob/main/static/img/linux.png' style="height:15px; width: 15px" />
281- cortex-nightly-linux-network-installer .deb
308+ cortex.deb
282309 </a>
283310 </td>
284311 </tr >
0 commit comments