# sabi-noema-mla serving image: the official vLLM OpenAI server image + the sabi-mla-vllm plugin wheel. # docker build -t sabicap/sabi-mla-vllm:0.2.0-vllm0.31.0 --build-arg WHEEL=sabi_mla_vllm-0.2.0-py3-none-any.whl . # docker run --gpus all --ipc=host -p 8000:8000 -v ~/.cache/huggingface:/root/.cache/huggingface \ # [-e MODEL=/models/local-dir] sabicap/sabi-mla-vllm:0.2.0-vllm0.31.0 [extra vllm serve flags] # entrypoint.sh applies the serving flags of record; extra arguments are appended (later flags win). Env: MODEL, PORT, # TP, MAX_LEN, MAX_SEQS, GPU_UTIL. ARG VLLM_VERSION=v0.31.0 FROM vllm/vllm-openai:${VLLM_VERSION} ARG WHEEL=sabi_mla_vllm-0.2.0-py3-none-any.whl COPY ${WHEEL} /tmp/ # --no-deps: keep the image's tested vLLM/torch/transformers exactly as shipped; the plugin is pure Python. RUN python3 -m pip install --no-cache-dir --no-deps /tmp/${WHEEL} && rm /tmp/${WHEEL} \ && python3 -c "from importlib.metadata import entry_points as e; assert any(x.value == 'sabi_mla_vllm.plugin:register' for x in e(group='vllm.general_plugins'))" COPY entrypoint.sh /usr/local/bin/sabi-mla-entrypoint ENTRYPOINT ["/usr/local/bin/sabi-mla-entrypoint"]