Commit Graph
14 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 c8ed131c3d proxy: what systemd said last of a lane stands while it does not answer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:38:25 +01:00
Hasan BasbunarandClaude Opus 5.5 712c590825 tests: what the embeddings lanes changed of what others read, and their relay measured by CI's floor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:15:02 +01:00
Hasan BasbunarandClaude Opus 5.5 8a6bc6dc15 keepalive-proxy: the embeddings route says 503 while its lane moves, holds its share of the bodies, and reads no JSON
A restart of the Clipstral lane was a 404, final to a client. Six requests of images held the room of every body until the
lane on the CPU had answered. The model a request names is found without json.loads, which took up to 27 times its body, and
the lane's Retry-After is relayed. (review of v1.60.0)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:54:41 +01:00
Hasan BasbunarandClaude Opus 5.5 b020006dc6 keepalive-proxy: an embeddings client that leaves ends its request at its lane
The proxy waited for the lane's answer and looked at nothing else: a client that gave up after a while and asked again had
its first job computed to its end for nobody, the second behind it. Its socket is looked at once a second until the answer
begins, as _client_left looks at it, under TLS too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:54:40 +01:00
Hasan BasbunarandClaude Opus 5.5 303ff7e2ba clipstral: a lane for Mistral's Multimodal Embed 1B, texts and images on the CPU beside every lane
Its model written here from the published configuration, weights and description, and its server, standard library but for
torch, tokenizers, safetensors and Pillow, in the 27B lane's image; its unit, its installer, its Load, its card, its route
through the proxy by the name a request gives, its pins and its tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:54:40 +01:00
Hasan BasbunarandClaude Opus 5.5 a67cd155eb Merge branch 'feat/lane-embeddings-v160e' on v1.59.1: the embeddings lane, its relay v6.64 and v6.65 beside the audit's v6.63
The branch was cut before v1.59.1. Its proxy roles take the next two version numbers, its installer's disk figures add its 5 GB
to v1.59.1's, its card keeps the Lanes view's order and the lanes' boot button with its own systemd verbs, and its tests of an
empty chunked body send the chunk the proxy reads since v6.63.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 05:36:56 +01:00
Hasan BasbunarandClaude Opus 5.5 3426a73eb8 proxy v6.63: a POST of /v1/embeddings with no body is a 400, not a cut connection
The relay counted the body it sends to TEI with len(body), and a request of the route with
the key and no body read (a Content-Length of 0, or a chunked body with no length, which the
proxy does not read) reached it with body None: the TypeError went up through the handler and
the client's connection was closed with no answer at all (code review of v1.60.0). Such a
request is refused before the engine, in JSON, as the proxy refuses every other request it
cannot relay, and the cockpit's feed knows the new outcome.

Test: test_a_post_with_no_body_is_refused_in_json_not_cut in tests/test_proxy_embeddings.py,
red on the code before (an empty reply in both cases), green now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 17:11:58 +01:00
Hasan BasbunarandClaude Opus 5.5 a40627b28e Revert "embeddings: the lane moves to llama.cpp on the GPU with x42en's recipe, TEI gone"
This reverts commit 5a9f0ab1. Measured on the reference box on 2026-11-24, x42en's GPU path does
not hold there yet: a request of several texts came back with every value of every vector null,
with the recipe as published, with -fa off and with -np 1; and a new CUDA context beside the 27B
that serves failed at its start when the memory was fragmented ("CUDA error: out of memory" in
ggml_cuda_init, NV_ERR_NO_MEMORY from kgrctxAllocMainCtxBuffer in the kernel's log). The lane
serves TEI on the CPU, as the project's answer of 2026-11-23 in discussion #69 provided for ("if it
holds"). Kept from eabf43ef: a 64 GB DGX Spark refuses the lane (boxmem.py's comment says why for
a lane on the CPU, the README keeps it in the refused row). The pages are rewritten in the next
commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:20 +01:00
Hasan BasbunarandClaude Opus 5.5 9a54f9dfeb embeddings: the lane moves to llama.cpp on the GPU with x42en's recipe, TEI gone
The lane served pplx-embed-v1-0.6b with TEI on the CPU. It now runs the command line x42en
published in discussion #69 (2026-11-19), as the project's answer there of 2026-11-23 announced:
llama.cpp's own server on the GPU, on the image the llama.cpp lanes already pin (b12316, the one
his measures ran on), serving bowang0911's F16 GGUF at ab95a3d1 (pplx-embed-v1-0.6b-f16.gguf,
1,198,177,888 bytes, sha256 08ba3d20..., read from the Hub's API at that revision) with his flags:
--embedding --pooling mean --override-kv qwen3.attention.causal=bool:false -c 8192 -b 8192
-ub 8192 -ngl 999 -fa on -t 4 --embd-normalize 2 --metrics --no-ui, beside --alias
pplx-embed-v1-0.6b and --host 127.0.0.1. The GGUF records causal attention and the model is
bidirectional: without the override the vectors are wrong (x42en: cosine 0.58 against TEI, 0.9994
with it), and a test holds it in the rendered unit.

One engine: on the GB10's unified memory TEI takes no less memory than llama.cpp on the GPU
(x42en: 2.5 GiB of host memory against 2.6 GB at 8K) and is about 50 times slower; its one
advantage would be to leave the chat's decoding alone during an indexing. Its code, its pins,
its tests and its pages go.

Kept from the branch: the port (30028), no key and loopback only (the proxy is the door, with the
box's key), no Conflicts=, the Load that pulls the image and fetches the GGUF (gguf-fetch.py, its
sha256 checked) then enables and starts the lane, the cgroup cap (EMBED_MEMORY 7680m, to be
measured again) and the A725 cores (x42en's set too). The unit checks its GGUF at the head of
ExecStart, its main process, so 78 leaves it failed instead of a restart loop.

The lane holds no other lane's start back: its unit runs neither the engine lanes' memory guard
nor the check of their files, and engine-preflight.sh leaves the registry's kind embed out of the
llama.cpp containers it counts as remnants: counted, its 2.6 GB (over the guard's 2 GiB line)
would have refused a text lane's start, at a switch or at boot, while it served (red on the
registry moved to llamacpp with the guard as it was).

The registry calls its engine llamacpp; the registry test's llama.cpp family (installers on
llamacpp-lane.sh, an opencode provider, the key) leaves it out. The cockpit reads its GGUF from the
unit (unit_target, lane_prepared), names it "pplx-embed v1 0.6B F16 GGUF · bowang0911" and its
engine llama.cpp b12316. check-pins.sh asks for the GGUF; the image is the Unsloth GGUF lane's pin,
asked once there (70 pins). The uninstall inventory names the GGUF's repository and no TEI image.
Sizes: 2 GB beside the Unsloth GGUF lane's image, 10 alone (install.sh, the README's totals).

x42en is credited by name in the CHANGELOG, the lane's page, the model's page and the installer,
for the recipe, the GGUF and his measures, each said to be his, on his own GB10. No figure of the
reference box is written: they come with its measures.

Tests: tests/test_embed_lane.py (rewritten: the flags and the override, the GGUF pin, the shared
image, no guard and no files check in the unit, the pages), tests/test_check_pins.py,
tests/test_engine_preflight.py, dashboard/tests/test_embed_cockpit.py and test_target_names.py;
red on the code before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:20 +01:00
Hasan BasbunarandClaude Opus 5.5 ce2d2124c4 renumbering: v1.60.0 takes the proxy versions after v6.62, which the Inkling lane's v1.59.0 holds
The embeddings lane ships as v1.60.0, after v1.58.0 (the speech lane by default) and v1.59.0
(the Inkling lane, prepared on a branch of its own, which takes the next proxy version, v6.62, as
every text lane of the pair's routes did: v6.60 for LFM2.5, v6.61 for LFM3). The lane's commits
took v6.62 and v6.63 when they were written on v1.55.0; they become v6.63 (the relay) and v6.64
(the port read from the lane's unit) everywhere they appear: keepalive-proxy.py's header, history
notes and start-up log, tests/test_proxy_embeddings.py's docstring, dashboard/tests/test_lifecycle.py's
comment. The comments that dated the lane to v1.53 or v1.56 say v1.60 (cockpit.py, base.js,
test_embed_cockpit.py, ci.yml). The relay's behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:20 +01:00
Hasan Basbunar e0c994145c proxy v6.63: the embeddings relay reads the lane's port where it poses it
EMBED_PORT moves the lane's engine (the installer renders the unit's --port
from it) and the relay kept aiming at 30028 regardless: with EMBED_PORT=30128
every /v1/embeddings was a 503 as long as the lane served (the blind review of
2026-11-20). With EMBED_UPSTREAM unset the relay now aims at the --port of the
lane's own unit, read again every few seconds so a lane installed later is
followed too; EMBED_UPSTREAM still names it outright for a proxy run by hand.
The lane's doc says the proxy follows the port.

Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:20 +01:00
Hasan Basbunar bf1a2a934c embeddings: a stopped lane answers the text engine's 400, one fact said everywhere
The lane's proof measured what the proxy answers on /v1/embeddings with the
lane stopped: the text engine's own 400, the same before the lane and after
its stop. The doc said a 503 and the proof's summary a 404. The doc now says
the measured 400, and the 503 engine_unavailable for what it is: the unit
active with its engine not answering yet. The proxy test's fake text engine
answers the measured 400 too.

Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:20 +01:00
Hasan Basbunar ac474d15ee embeddings: the lane's installer and tests pass the static checks
The blind review of 2026-11-19 left statique.sh RED on the branch: SC2034
(IMAGE_GB declared and never read, its room check comes with the next
commit), SC2178 (missing_gb's need and size are arrays in lanes.sh, so
scalars of that name here are a silent clash: renamed fsize and miss),
SC2046 (the model's files went to gguf-fetch unquoted: mapfile into an
array), ruff F841 (a dead variable in the proxy test) and F401 (an unused
import in the pending test, hidden until now by the check's own head).
A test runs the CI's shellcheck on the installer beside lanes.sh, the
pair that reproduces what the whole-repo run sees; it fails on the
commit before.

Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:19 +01:00
Hasan Basbunar f81996bd27 proxy: /v1/embeddings relayed to the embeddings lane while it serves (v6.62)
TEI answers on 127.0.0.1:30028 (EMBED_UPSTREAM) while qwen38-embed.service is active, and the
route goes to it whole: the text engine's guards read shapes TEI does not speak (its tokenizer,
its served name, its request ids), and the text engine may be absent altogether, where the old
path counted an embeddings body with a tokenizer that was not even there. The door keeps its
key check and no Authorization is sent to TEI, which has no authentication and would print one
in its journal. A box without the lane keeps the text engine's own 404, and no other route
goes to the embeddings engine: /v1/models does not change.

Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:19 +01:00