Files
vllm-sparce/.env.example
T
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

26 lines
702 B
Bash

# Values used by docker-compose.yml. Every variable has a default,
# so the stack starts even without this file. In Portainer set the same names
# in the stack's "Environment variables" field instead.
# port on the host
HOST_PORT=8083
# name of the container
CONTAINER_NAME=vllm-bge-sparse-backend
# share of VRAM vLLM may use (0.15 is enough for BAAI/bge-m3: ~2.1 GB)
GPU_MEMORY_UTILIZATION=0.15
MAX_MODEL_LEN=8192
MODEL=BAAI/bge-m3
# pin a version instead of latest, the plugin is tied to the vLLM API
VLLM_IMAGE=vllm/vllm-openai:latest
# model cache on the host
HF_CACHE=/root/.cache/huggingface
# defaults for the /pooling "data" object
BGE_M3_SPARSE_MODE=sparse
BGE_M3_SPARSE_THRESHOLD=0.0