This repository was archived by the owner on Jul 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 181
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
planning: Cortex Hardware API #1165
Copy link
Copy link
Closed
Labels
category: hardware managementRelated to hardware & computeRelated to hardware & computeneeds pmNeeds product level decisionsNeeds product level decisions
Description
Goal
- We should have a very clear Eng Spec for Cortex Hardware API for Sprint 23
Key Functionality
- Hardware Detection
- Cortex can list all available hardware
- Hardware Activation
- Cortex has a clear CLI and API to select active hardware
- Cortex can activate specific hardware (e.g. CPU-only, or specific GPU)
- Hardware -> Engines
- Engines initialize using activated Hardware
- List of active hardware is passed down to the engine (e.g. llama.cpp or TensorRT-LLM)
- How does this interact with
nglsettings?
- Hardware Usage Detection
- Cortex can detect free RAM or VRAM
- Hardware Fallback
- Fallbacks (e.g. if GPU inference fails due to drivers not installed, run inference on CPU?)
- feat: Automatic fallback to CPU in case of GPU loading failure #805
Tasklist
- Design API (e.g.
GET /hardware) - Design CLI (e.g.
cortex hardware list?)
Functionality
- Hardware Detection
- Hardware Activation
- Hardware Usage Detection (e.g. RAM, VRAM)
Cortex & Jan Integration
- Is it possible for us to have a consistent hardware list across engines?
- Update Spec with architecture docs: Cortex Docs for v1.0.0 cortex.so#193
Previous Issues
- bug: "Recommended" labels don't autoupdate when user toggles CPU and GPU modes #1142
- bug: can enable GPU acceleration with cuda not installed - model fails to start jan#3762
- epic: Cortex can detect track free and used VRAM and RAM #1191 (comment)
- bug: BUG on newest jan v5.0, it set the default to gpu instead of cpu jan#3012
Appendix
UX Goal
Cortex.cpp's Hardware API should enable us to do this in Jan

Metadata
Metadata
Assignees
Labels
category: hardware managementRelated to hardware & computeRelated to hardware & computeneeds pmNeeds product level decisionsNeeds product level decisions