Portainer's web editor has no repo checkout on the host, so relative bind
mounts turned into empty directories. The compose file no longer mounts
anything except the HF cache: the plugin is now written with heredocs and
pip-installed inside the container.
Also fixes two compose-specific traps: $ must be escaped as $$ (compose
interpolates values), and command has to be a single-element list (otherwise
compose splits the script and bash runs a bare 'set').
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.