Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Install
Prerequisites
Dependencies
Before installation, ensure that you have installed the following:
Hardware
Ensure that your system meets the following requirements to run Cortex:
OS:
RAM (CPU Mode):
VRAM (GPU Mode):
ngl
at 120 ~ full speed on CPU/ GPU.ngl
at 120 ~ full speed on CPU/ GPU.ngl
at 120 ~ full speed on CPU/ GPU.Disk: At least 10GB for app and model download.
Cortex Installation
To install Cortex, follow the steps below:
Step 1: Install Cortex
Run the following command to install Cortex globally on your machine:
# Install using NPM globally npm i -g @janhq/cortex
Step 2: Verify the Installation
After installation, you can verify that Cortex is installed correctly by getting help information.
# Get the help information cortex -h
Step 3: Initialize Cortex
Once verified, you need to initialize the Cortex engine.
CPU
andGPU
modes.CPU
mode. If you chooseGPU
mode, Cortex will download the necessary dependencies to use your GPU.Step 4: Pull a model
From HuggingFace
From Jan Hub (TBD)
Step 5: Chat
Run as an API server
Build from Source
To install Cortex from the source, follow the steps below:
cortex-js
folder.command.js
executable:chmod +x '[path-to]/cortex/cortex-js/dist/src/command.js'
Uninstall Cortex
Run the following command to uninstall Cortex globally on your machine: