liveBook · Manning

Cortex

As explained in Domain-Specific Small Language Models

A local AI engine for running language models on a user's machine with support for multiple backends and quantized models.

Cortex is a C++ local AI engine for running language models on a user's machine. It supports multiple inference backends, GPU acceleration, and quantized model variants while operating offline. section 12.6 section 12.7

Cortex provides practical controls for local model deployment:

  • Switch between llama.cpp and ONNX Runtime backends. section 12.6
  • Use NVIDIA, AMD, or Intel GPUs when available, with GPU use attempted by default. section 12.6
  • Pull quantized models from the Jan catalog or use bundled models; multiple quantization modes may exist for one model. section 12.6
  • Expose local management and inference through the cortex CLI and an HTTP API. section 12.6

Run a local model

Start the server, pull TinyLlama, and launch a chat session with `cortex start`, `cortex pull tinyllama:1b`, and `cortex run tinyllama`. The server defaults to port 39281. section 12.6

cortex start

Inspect the command that starts the local Cortex server. section 12.6

How Domain-Specific Small Language Models covers it

How deep it goes
Explains backend, GPU, quantization, server, and CLI workflows, while deferring released Python and TypeScript clients.
Examples
Uses TinyLlama chat, engine listing, model pulling, server startup, and CLI-based session management.
What it assumes
Assumes command-line and HTTP familiarity while introducing local engines, inference backends, quantized models, and hardware selection.
What you can do after
Operate/configure a local server, inspect engines, pull a quantized model, and run an offline chat session.
How it connects
Connects local LLMs with llama.cpp, ONNX Runtime, quantization, GPU acceleration, Jan, and HTTP APIs.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Domain-Specific Small Language Models. The section links point to the parts of the book it draws on.