Commit Graph
3 Commits
Author SHA1 Message Date
opencode 93ddb52bff Pin image tag to v0.30.0, document 'context deadline exceeded'
The failing deploy on a fresh host is almost always the vLLM image pull
(~31 GB unpacked) hitting Portainer's stack deploy timeout. Documented
pre-pulling on the target host plus docker save|load alternative, and
replaced the :latest default with the exact tag this stack was tested on.
2026-10-05 09:01:24 +07:00
opencode 75816679b2 README: sync with the tested deployment, add smoke_test.py
- fix the wrong warning about GPU_MEMORY_UTILIZATION: 0.15 is enough for
  BAAI/bge-m3 (measured: 2.1 GB of VRAM on an 8 GB card)
- document batch/dense response shapes, token ids, and that BGE-M3 has a single
  ReLU sparse logit per token (no rel/abs pair as in ColBERT)
- Portainer: env vars belong to the stack's Environment variables field,
  stack must run in docker compose (standalone) mode
- add the measured verification table (determinism, thresholds, nnz,
  max|delta| vs the FlagEmbedding reference)
- add smoke_test.py: dependency-free checks of every scenario plus an optional
  --reference mode that recomputes weights with torch/transformers
2026-09-28 14:17:40 +07:00
opencode 1c533f98f0 BGE-M3 sparse embeddings for vLLM: IO processor plugin + Portainer stack
Adds a vllm.io_processor_plugins entry point (bge_m3_sparse_plugin) that serves
learned sparse vectors of BAAI/bge-m3 over POST /pooling, on top of the
BgeM3EmbeddingModel architecture that already ships with vLLM.

- plugin/: python package, sparse (token_classify) and dense (embed) modes,
  batch support, per-request weight threshold
- entrypoint.sh: pip install the plugin from a read-only mount at container start
- docker-compose.yml: stack ready for Portainer (git repository deployment)

Verified against vLLM 0.30.0 on an RTX 5070: single/batch/parallel requests,
validation errors, and weights matching the FlagEmbedding reference formula.
2026-09-28 13:54:20 +07:00