Skip to main content
Akio supports local text embedding using the embedding (or embed) command. Inference runs entirely on-device — no external API required.

Supported Models

Quickstart

1. Pull the embedding model
2. Embed some text
Akio prints a JSON array of L2-normalized float vectors — one per input.

Options

Examples

Single input
Multiple inputs in one call
Returns a JSON array with one vector per input, in the same order. CPU-only

Output Format

The output is a JSON array of float arrays:
Each inner array is L2-normalized (unit length). For models that use NONE pooling, per-token embeddings are mean-pooled and re-normalized into a single vector per input.

Notes

Qwen3-Embedding-0.6B supports a 32K token context window and produces embeddings up to 1024 dimensions. It covers 100+ languages and supports instruction-aware embedding to boost retrieval accuracy by 1–5% on task-specific queries.
Each input is limited to 512 tokens internally by Akio’s batch size. The model itself supports up to 32K tokens per sequence. Chunk long documents before embedding them.
GPU offloading (--ngl) works the same as akio run. Requires Akio to be compiled with CUDA or Metal support. Use --ngl 0 to force CPU inference.
Because all vectors are L2-normalized, cosine similarity between two vectors equals their dot product. You can compute it directly without extra normalization.