Hasan, 2026-12-04: a Qwen4 lane on a machine dedicated to it, with all the context it can hold. Its Load stops every lane beside first, the embeddings lane too (the OCR and Clipstral lanes already, for want of room), and none of them starts while it serves or is the boot lane: the embeddings lane's unit's head refuses it now as the OCR and Clipstral lanes' do, and the cockpit says so before the click. Tests red on the old code (the head, the plan), green now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 KiB
The embeddings lane: pplx-embed v1 0.6B on the CPU, beside every lane
Perplexity's pplx-embed-v1-0.6b (MIT, 0.6B in float32) gives a text a
vector of 1,024 dimensions, the int8 one its card publishes, of norm 1: the dot product of two of them says how near their texts are. This lane serves it on the
CPU, on a port of its own (30028) and on 127.0.0.1 alone, answering /v1/embeddings in the OpenAI shape, by this repo's own server
since v1.61.0. It is a lane beside every lane, like the speech lane and the Clipstral lane:
its engine never touches the GPU, so it runs beside whichever lane serves, its Load stops nothing, and nothing stops for it,
but for the Qwen4 35B-A3B lane, which takes the box alone (decision 1725): its Load stops this lane first, and this lane does not
start beside it, nor while it is the boot lane. The
need it serves is an indexing service (discussion #69: one embedding at the start of a task, the queries of an agent beside it),
for which the CPU's throughput is enough, and a GPU engine would contend with generation.
Which of the two embeddings lanes to ask: this one for text (documents, code, an index to search with words), the Clipstral lane when images are part of it.
Asking it
Through the proxy, with the box's key:
curl http://127.0.0.1:30001/v1/embeddings -H @<(printf 'Authorization: Bearer %s\n' "$(cat ~/.config/qwen38/api-key)") \
-H 'Content-Type: application/json' -d '{"model": "pplx-embed-v1-0.6b", "input": ["a red bicycle", "une facture"]}'
The answer is OpenAI's: one vector an input, in order, and the tokens counted. What it takes and what it refuses:
input: a string, or a list of 2,048 of them at most. A text is cut at nothing: up to 8,192 tokens it is embedded whole (TEI, which served the lane in v1.60.0, cut it at 2,048), and a longer one is a 400 that says its length, never a vector of its beginning (the model reads 32K by its card, at minutes of this CPU). A request's texts hold 300,000 tokens at most, and what this box computes in 10 minutes, as the lane estimates it from its measures below: 37 texts of 8,024 tokens, about 30 minutes, are a 400 that says to send them in several requests (the proxy gives a request 15 minutes to begin its answer). Token ids are a 400: another model's ids would mean other words here (LangChain'sOpenAIEmbeddings:check_embedding_ctx_length=False).dimensions(oroutput_dimension), from 1 to 1,024: the first ones, of norm 1 again, which the model is trained for.encoding_format:floatorbase64, as OpenAI's SDK asks it.- The vectors are the model's int8 ones (whole numbers from -127 to 127, which it was trained to give), written as floats of norm 1, as TEI wrote them in v1.60.0: their dot product is the cosine its card asks to compare them by. The card's binary vectors are the signs of the mean before that rounding: the lane does not serve them.
- A text is read as the text it is: a model's own marks written in it (
<|im_start|>,<|endoftext|>) are words, never marks, where TEI read them as marks. A text of spaces is a text; an empty string is a 400.
No prefix is needed: the model's card says it takes no instruction, for queries nor for documents.
The GPU path: not yet
x42en asked for this lane in discussion #69, with the
model they index with, and then published how they serve it on the GPU of their own GB10 (2026-11-19):
llama.cpp's server, on the image the repo pins for its llama.cpp lanes (b12316), the F16 GGUF of
bowang0911's conversion (bowang0911/pplx-embed-v1-0.6b-gguf at ab95a3d1), and
--override-kv qwen3.attention.causal=bool:false, which is their finding: the community GGUF conversions record the causal Qwen3
attention, which embeds wrong vectors. Their measures, on their box: cosine 0.58 against TEI without the override, 0.9994
with it, about 20,000 tokens/s in 2.6 GB at an 8K context, and a chat decode slowed by 19 % beside one
batch of embeddings (39 % beside four). The project answered there on 2026-11-23 that this path would
become the lane "if it holds".
On the reference box, on 2026-11-24, it does not hold yet:
- A request of several texts came back with every value of every vector null (NaN, which JSON
writes null), with their flags as published, with
-fa offand with-np 1. The same texts sent one by one came back finite and of norm 1, but for one of the ten, null alone too. - A new CUDA context beside the 27B that serves failed at its start when the memory was
fragmented: llama-server stopped on "CUDA error: out of memory" in
ggml_cuda_init, and the kernel logged NV_ERR_NO_MEMORY fromkgrctxAllocMainCtxBuffer, the case the NVRM line that looks like a cause describes.
So the lane serves on the CPU, as that answer provided for, and the GPU path is not yet a lane.
Why a server of this repo's own
The model's card documents Hugging Face's text-embeddings-inference (TEI), which served the lane in v1.60.0: its ORT backend ran the repository's ONNX export at 381 tokens/s over 16 inputs of 512 tokens on this box, and neither of its backends uses the bf16 instructions of the A725 cores. vLLM does not know the architecture, and llama.cpp's converter refuses it (issue llama.cpp 20055, closed as not planned). pplx_model.py is this repo's module, written from the model's configuration and its weights' names and shapes, and pplx-server.py its server, on the routes, the batches and the turns of the Clipstral lane's (vectors_server.py, standard library but for torch, tokenizers and safetensors). They run in the 27B lane's SGLang image, on its torch, so a box that has that lane has nothing more to download than the model. The repository's Python is neither fetched nor run.
The vectors are proved, not assumed. The repository's ONNX export was run by onnxruntime on 29 texts (1 to 2,037 tokens, code, French,
Chinese, German) and gives each its int8 vector, as TEI does (the same to the last digit). The lane's against them: a cosine of 0.99969 at the least (0.99970 one text at a time, 0.99969 in padded batches of eight), 0.99988 at the median, and every text's nearest neighbour the same, its products in bf16 as the lane computes them (0.999999 all in float32). What the export gave for seven
texts is kept in pplx-reference.json, and ./install-embeddings.sh ends by asking the lane for the same and
comparing (vectors-check.py, which anyone can run against a lane that serves): a cosine of 0.9995 at least.
A query does not wait for an indexing: one batch is computed at a time, those of two requests take turns, and a short text passes between two layers of whatever is computed.
Why no key, and why through the proxy
Its server has no authentication of its own and listens on 127.0.0.1 alone: the only door to it from the network is the
keepalive proxy on :30001, which checks the box's key on /v1/embeddings as on every client route, and relays it
to the lane only while its unit is active: a stopped lane leaves the route to the text engine, whose own answer is a 400 (measured
in the lane's proof, before the lane and after its stop alike). A client that leaves before its answer ends its request at the lane
(proxy v6.66). The 503 engine_unavailable is the unit active with its engine not answering yet (a start on its way), never a
stopped lane. The proxy reads the lane's port from its unit, so an EMBED_PORT the installer took is followed. Clients keep one base
URL and one key, the box's, for chat and embeddings alike; /v1/models is unchanged and names no embeddings model. Programs on the
box reach the engine directly on its port, with no key, as they do the speech lane's routes.
Installing, loading, removing
It is installed by default and prepared at its first Load, as the image lane and the video lane are: a plain ./install.sh puts its
unit in and downloads nothing for it. Its first Load from the cockpit pulls the 27B lane's image (already there on a box that has that
lane, about 17 GB to download otherwise) and fetches the model (about 2.4 GB), then enables the lane at boot and starts it, with no
sudo, while whatever serves goes on serving. ./install.sh --with-embeddings installs it whole now and proves it, and
--no-embeddings leaves it out of the run that passes it. A 64 GB DGX Spark refuses it, as every lane never run on one (boxmem.py):
no run of it beside Bolt's share of a 64 GB box was measured.
An update of a box that ran the lane on TEI (v1.60.0) puts the new unit in: a lane that runs goes on as it was until its Load or its next start, which needs nothing the box lacks when it has the 27B lane's image. The index a client made with it stays good: the vectors are the same (a cosine of 0.99970 at the least and 0.99988 at the median over the same 29 texts, and each query's nearest neighbour in an index TEI made the same, 29 of 29), but for a text of more than 2,048 tokens, which was cut, and one that holds a model's marks written as text (above): index those again. (The page of v1.60.0 said TEI gave the float vectors, not the int8 ones: it gave the int8 ones.)
./prepare-lane.sh embeddings # the image and the model, with no sudo (the cockpit's first Load runs it)
./install-embeddings.sh --uninstall # its unit, its container and its code; the model and the image stay, said
Memory: capped by its cgroup, pinned to the A725 cores
Its weights are its file's own pages (2.3 GiB), which the kernel may take back when memory runs short: a query reads them again from
the disk then. Its runtime is the rest, 1.1 GiB at the most (a text of 8,024 tokens). Both are inside the cap its unit's cgroup sets
(--memory and --memory-swap equal, 5632m at this pin: the two, plus 2 GiB, rounded up to 512 MiB). Its CPUs are the A725 cores (--cpuset-cpus 0-4,10-14, read from lscpu: the ten cores at 2.8 GHz),
never the X925 the text engines' busy threads run on. Its container writes nothing, has no rights but to read its model's own folder of
the cache (DAC_OVERRIDE), no GPU and no key. EMBED_MEMORY, EMBED_ROOM_GIB, EMBED_CPUS, EMBED_THREADS and EMBED_PRODUCTS are
the pins of install-embeddings.sh.
What it holds, a lane loaded after it does not get. A GB10 has one memory for its CPU and its GPU, and an SGLang lane sizes its KV cache by what is free when it starts. On the reference box, 2026-12-01: the 27B loaded alone got 895,242 tokens; loaded while this lane and the Clipstral lane ran, 771,373, 14 % fewer. Started after it, the two leave it its whole pool and take their memory from what is left (below). So load the text lane first when its context matters. Enabled at boot, these lanes are ready in 9 to 16 s, long before a text lane sizes its pool: expect the smaller one then. The cockpit fits opencode's limits to the pool a boot got. What a vLLM or a llama.cpp lane loaded after them gets was not measured: a smaller KV cache, or the box keeps less.
What the box had left (MemAvailable), measured on 2026-12-01, the lanes started in this order:
| the lane that serves | alone | with pplx-embed | with both | at the lowest, at work |
|---|---|---|---|---|
| Qwen3.8 27B | 21.3 GiB | 13.6 GiB | 13.3 GiB, the two embeddings lanes at work | |
| Qwen3.8 Flash-Next FP4-Local | 18.3 GiB | 15.4 GiB | 10.4 GiB | 8.5 GiB, all three at work: a prompt of 153,234 tokens, seven agents, the two indexing |
| Qwen3.8 Flash-Next Unsloth GGUF | 19.4 GiB | 16.5 GiB | 11.9 GiB | 7.2 GiB, the same work |
No request failed. That was with pplx-embed on TEI, which held 2.9 GiB; Clipstral holds 4.6 to 5.0.
Its start asks for the memory it takes. The cap bounds what its container grows to, not what its start takes from the lane that serves, and a GB10 whose memory runs out freezes whole. So the head of its unit asks for 9 GiB of memory available (its cap, rounded up, and the 3 GiB under which the cockpit and the proxy stop the generations that run), and the Clipstral lane's for 12. It waits 30 s, the time for a lane that stops to hand its memory back, then stays failed: its card and its journal give the reason, and its Load says it before the click. A start of systemd's own, after a death, asks for what the lane holds and the 3 GiB alone (4 and 8 GiB).
That reading is of one instant, and three lanes take more under their longest prompts than at rest: the flash lane leaves the box 6.9 GiB at its lowest (and 16.6 at rest), Nemotron 3.5 Super VL 9.1, Kolibri-1 in FP8 10.9. Clipstral does not start beside one of them, nor while the box boots Super VL or Kolibri-1 FP8, whose share of the memory is fixed, and their Load stops it first; the flash lane sizes itself by what is left, so it can be loaded after. pplx-embed starts beside all three: of its own it holds 1 GiB.
Measured on the box
On the reference box (ASUS Ascent GX10, 2026-12-02), in the lane's image with its unit's flags, the ten A725 cores at their work and
nothing else running. The last columns are everything in float32, as --products fp32 computes it, and TEI as it served in v1.60.0.
| the lane, its products in bf16 | all in float32 | TEI 1.9.4, v1.60.0 (2026-11-24) | |
|---|---|---|---|
| ready after its start, its weights in the page cache | 7.1 s | 10 s | |
| a question of twelve words | 0.11 s | 0.05 s (2026-12-02) | |
| 16 texts of 512 tokens in one request | 736 to 741 tokens/s | 348 tokens/s | 368 tokens/s the same day (381 on 2026-11-24) |
| 32 texts of 635 tokens in one request | 689 to 692 tokens/s | ||
| eight clients of eight texts of 512 tokens at once | 722 tokens/s in all | ||
| one text of 2,048 tokens | 4.7 s | 8.2 s | 7.8 s |
| one text of 8,024 tokens | 49.3 to 49.4 s | 64.2 s (8,192) | cut at 2,048 |
| a question of twelve words during an indexing | 0.23 s (0.26 at the most) | ||
| its own pages, loaded / at the most | 0.4 GiB / 1.1 GiB | 2.87 GiB in all |
The float32 column and the bf16 text of 2,048 tokens are the module alone, with no server (805 tokens/s of the 16 texts of 512). Started with its weights out of the page cache, the first question took 1.3 s: since then the lane asks itself one before it says it is ready.
The pins
| what | pinned |
|---|---|
| the image | the 27B lane's SGLang image, by its digest (install.sh's IMAGE) |
| the model | perplexity-ai/pplx-embed-v1-0.6b at 2c4d510dd4a732063c31a0f70193e35067b51fd8: model.safetensors and tokenizer.json, each by its sha256 |
check-pins.sh asks the Hub about them every day.
What the cockpit shows
The Lanes view carries its card, pplx-embed v1 0.6B, with Load like the other lanes on demand. Its
state is systemd's word and its server's own /health, asked on the lane's port: starting from the unit's start
until it answers (the proxy's 503 meanwhile), ready then, failed when the unit failed (its preflight's 78:
a file of the model missing, which its Load fetches, or too little memory available; its card gives the
reason), with no boot to parse and no belt to feed. It is never
the lane that serves nor the box's boot lane, which take the GPU in turn: it runs beside them. Its Load
prepares what it lacks (every file its unit's preflight checks), puts an update that waited in place,
enables it at boot when the boot does not start it, then starts it, or restarts it when it runs and an
update waited for it or left it owed: no switch drives it, and the lane that serves serves throughout. Its
card takes it out of the boot and back (Do not start with the box, Start with the box), and its
journal is one button away, as any lane's.
Limits
- No chat route: it serves embeddings alone, so no served name in opencode and no proxy ceiling; the
proxy relays
/v1/embeddingsand nothing else of it. - One embedding model: the lane serves pplx-embed v1 0.6B and no other; a second model is a second lane's question, not a target of this one.