Alzeo

Alzeo / Guides / How do I serve embeddings on a DGX Spark?

How do I serve embeddings on a DGX Spark?

Install the stack, then Load an embeddings lane in the cockpit: pplx-embed v1 0.6B for texts alone, Mistral Multimodal Embed 1B for texts and images in one space. Both run on the CPU, so the model on the GPU goes on serving, and both answer /v1/embeddings on the same port and with the same key as the chat.

Which embedding model should I load?

pplx-embed v1 0.6B Mistral Multimodal Embed 1B
reads texts texts and images, in one space
dimensions 1,024 1,024
good for documents, code, an index to search with words photos, and the sentences that find them
licence MIT Apache-2.0
memory at its highest 2.87 GiB 6.4 GiB
measured 381 tokens/s 1,024 tokens/s, 0.91 s a photo
port on the box 30028 30030

How do I ask for a vector?

curl http://127.0.0.1:30001/v1/embeddings -H 'Content-Type: application/json' \
  -H @<(printf 'Authorization: Bearer %s\n' "$(cat ~/.config/qwen38/api-key)") \
  -d '{"model": "pplx-embed-v1-0.6b", "input": ["a first text", "a second one"]}'

The answer has OpenAI's shape, so the official OpenAI SDK and LiteLLM work as they are. For Mistral's model, use its name, mistral-multimodal-embed-1b, and give an image as a data: URL in base64.

Does an indexing job slow my queries down?

On Mistral's lane, a short text passes between two layers of what is being computed: a query takes 0.34 s in the middle of an indexing, where it waited 3.5 s for a batch to end.

Does it take memory from the model that serves?

It takes none from a model already loaded, and some from one loaded after it: a GB10 has one memory, and an SGLang lane sizes its KV cache by what is free when it starts. Qwen3.8 27B got 895,242 tokens loaded alone and 771,373 loaded while both embeddings lanes ran. Load the text lane first when its context matters. The two hold about 2.9 and 5.0 GiB. Each starts with 11 or 12 GiB of memory available at least, and refuses otherwise. Mistral's does not start beside the lanes that leave the least: Flash-Next on SGLang, Nemotron 3.5 Super VL and Kolibri-1 FP8.

Are the vectors the published ones?

Yes. pplx-embed runs on Hugging Face's text-embeddings-inference, at cosine 1.0 with the model's own ONNX export on ten texts. Mistral's model is served by Alzeo's own server, because no engine serves it: compared with the published code, texts are equal to the last bit in float32, and images are at cosine 1.000000.

Where are the details?

Every number, every limit and how each was measured: docs/embed-lane.md and docs/clipstral-lane.md.

Install it on your Spark

One command installs both embeddings lanes, stopped. Each downloads its model at its first Load in the cockpit.

curl -fsSL https://get.alzeo.ai | bash

Questions

Can a DGX Spark serve embeddings and an LLM at the same time?

Yes. Both embeddings lanes run on the ten A725 cores and never touch the GPU, so they sit beside whichever model serves. Loading one stops nothing.

How fast are embeddings on a DGX Spark's CPU?

Mistral Multimodal Embed 1B indexes 1,024 tokens/s and 1.2 photos/s, and one photo takes 0.91 s. pplx-embed v1 0.6B runs 381 tokens/s over 16 inputs of 512 tokens. Both were measured on an ASUS Ascent GX10.

Which one for documents and code?

pplx-embed. The card of Mistral's model puts documents, OCR-heavy content and code out of its scope: it is for photos, and for the sentences that find them.

Why not on the GPU?

The GPU is busy with the LLM, and a new CUDA context beside an engine that serves can fail at its start when the memory is fragmented. Both were measured on our box.

Sources
docs/embed-lane.md, docs/clipstral-lane.md
Checked
2026-12-01, against Alzeo v1.60.0

Related: An OpenAI-compatible API on a DGX Spark, Speech recognition and text to speech on a DGX Spark.