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.
19 lines
484 B
TOML
19 lines
484 B
TOML
[build-system]
|
|
requires = ["setuptools>=61"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "bge-m3-sparse-plugin"
|
|
version = "0.1.0"
|
|
description = "vLLM IO processor plugin: BAAI/bge-m3 learned sparse (and dense) embeddings"
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
license = { text = "Apache-2.0" }
|
|
dependencies = []
|
|
|
|
[project.entry-points."vllm.io_processor_plugins"]
|
|
bge_m3_sparse_plugin = "bge_m3_sparse:register"
|
|
|
|
[tool.setuptools]
|
|
packages = ["bge_m3_sparse"]
|