2026-07-30 15:33:44 +00:00
|
|
|
FROM git.modelhub.org.cn:9443/enginex-iluvatar/bi100-3.2.3-x86-ubuntu20.04-py3.10-poc-llm-infer:v1.2.3
|
|
|
|
|
|
2026-08-06 06:44:31 +00:00
|
|
|
RUN mkdir -p /workspace
|
2026-07-30 15:33:44 +00:00
|
|
|
WORKDIR /workspace/
|
2026-08-06 06:44:31 +00:00
|
|
|
|
2026-08-11 02:36:59 +00:00
|
|
|
# Copy sources
|
2026-07-30 15:33:44 +00:00
|
|
|
COPY ./qwen3_6_scripts /workspace/qwen3_6_scripts
|
2026-08-06 06:44:31 +00:00
|
|
|
COPY ./computility-run.yaml /workspace/computility-run.yaml
|
2026-08-10 02:31:55 +00:00
|
|
|
COPY ./ex_engine /workspace/ex_engine
|
|
|
|
|
|
2026-08-11 02:36:59 +00:00
|
|
|
# Step 1: Compile ix_moe_bridge.so — dlopen bridge to libixformer.so
|
|
|
|
|
# This is THE critical .so: it exposes topk_softmax + 11 other ixformer::infer
|
|
|
|
|
# functions that the base image's Python binding doesn't expose.
|
|
|
|
|
RUN chmod +x /workspace/ex_engine/build.sh && \
|
|
|
|
|
bash /workspace/ex_engine/build.sh 2>&1 | tee /workspace/build.log ; \
|
|
|
|
|
echo "[Docker] build exit code: $?"
|
2026-08-10 10:25:31 +00:00
|
|
|
|
2026-08-11 02:36:59 +00:00
|
|
|
# Step 2: Deploy patches (serving layer + conditional model layer)
|
|
|
|
|
# patch_ops.sh v2: does NOT overwrite base qwen3_5.py (comp 168 strategy)
|
2026-08-10 08:09:22 +00:00
|
|
|
RUN chmod +x /workspace/qwen3_6_scripts/patch_ops.sh && \
|
2026-08-10 08:19:58 +00:00
|
|
|
bash /workspace/qwen3_6_scripts/patch_ops.sh 2>&1 | tee /workspace/patch_ops.log ; \
|
2026-08-11 02:36:59 +00:00
|
|
|
echo "[Docker] patch_ops exit code: $?"
|
2026-08-10 10:25:31 +00:00
|
|
|
|
2026-08-11 02:36:59 +00:00
|
|
|
# Step 3: Precompile GDN kernel (needs vllm in path)
|
2026-08-10 10:25:31 +00:00
|
|
|
RUN python3 /workspace/qwen3_6_scripts/precompile_gdn.py \
|
2026-08-11 02:36:59 +00:00
|
|
|
/workspace/qwen3_6_scripts/flash_qla_sm70 2>&1 | tee -a /workspace/build.log ; \
|
|
|
|
|
echo "[Docker] gdn precompile exit code: $?"
|