ref(upstream): FULL TREE — Deep-Spark xllm (1470) + ds_vllm csrc/models (703)

Replaces cherry-picked upstream_ref with complete source trees.

xllm/ — Iluvatar official C++ inference engine (15MB, 1470 files)
  Complete: kernels → layers → models → runtime → scheduler → api
  Excluded: .git, binary images, third_party submodule checkouts

ds_vllm/ — Iluvatar official vllm fork (8MB, 703 files)
  Included: csrc/ (ALL CUDA kernels), fused_moe/, qwen3_5 model, _custom_ops
  Excluded: tests, benchmarks, docs, examples (not needed for reference)

Critical call chains now fully traceable:
  MoE: moe_topk_softmax_kernels.cuh → ixformer.h → fused_moe.cpp → layer
  GDN: qwen3_gated_delta_net_base.cpp → qwen3_5_gated_delta_net.cpp
  Attention: ixformer.h → xllm_paged_attention → attention.cpp
This commit is contained in:
EX Engine
2026-08-10 02:53:54 +00:00
parent 9e4fb3712f
commit 002f9879b2
2179 changed files with 494021 additions and 79 deletions

View File

@@ -0,0 +1,29 @@
#!/bin/bash
set -e
function error() {
echo "Require build command, e.g. python setup.py build --device cuda"
exit 1
}
IMAGE="quay.io/jd_xllm/xllm-ai:xllm-dev-cuda-x86"
RUN_OPTS=(
--rm
-t
--privileged
--ipc=host
--network=host
--pid=host
--shm-size '128gb'
-v /export/home:/export/home
-v /export/home/cuda_vcpkg_cache:/root/.cache/vcpkg # cached vcpkg installed dir
-w /export/home
)
CMD="$*"
[[ -z "${CMD}" ]] && error
[[ ! -x $(command -v docker) ]] && echo "ERROR: 'docker' command is missing." && exit 1
docker run "${RUN_OPTS[@]}" "${IMAGE}" bash -c "set -euo pipefail; cd $(pwd); ${CMD}"

View File

@@ -0,0 +1,29 @@
#!/bin/bash
set -ex
function error() {
echo "Require build command, e.g. python setup.py build --device ilu"
exit 1
}
REGISTRY="registry.iluvatar.com.cn:10443/infra"
COREX_VERSION="4.4.0.20251229"
IMAGE="${REGISTRY}/xllm-builder:${COREX_VERSION}-ubuntu22.04-py310-xllm-x86_64"
RUN_OPTS=(
--rm
-t
--privileged
--ipc=host
--network=host
-v /export/home:/export/home
-v /export/home/ilu_vcpkg_cache:/root/.cache/vcpkg # cached vcpkg installed dir
-w /export/home
)
CMD="$*"
[[ -z "${CMD}" ]] && error
[[ ! -x $(command -v docker) ]] && echo "ERROR: 'docker' command is missing." && exit 1
docker run "${RUN_OPTS[@]}" "${IMAGE}" bash -c "set -euo pipefail; cd $(pwd); ${CMD}"

View File

@@ -0,0 +1,30 @@
#!/bin/bash
set -e
function error() {
echo "Require build command, e.g. python setup.py build --device mlu"
exit 1
}
IMAGE="cambricon-xllm:v25.12.2-torch2.9.1-torchmlu1.30.2-ubuntu22.04-py310-mlu-dev-x86"
RUN_OPTS=(
--rm
-t
--privileged
--ipc=host
--network=host
--pid=host
--shm-size '128gb'
-v /export/home:/export/home
-v /usr/bin/cnmon:/usr/bin/cnmon
-v /export/home/mlu_vcpkg_cache:/root/.cache/vcpkg # cached vcpkg installed dir
-w /export/home
)
CMD="$*"
[[ -z "${CMD}" ]] && error
[[ ! -x $(command -v docker) ]] && echo "ERROR: 'docker' command is missing." && exit 1
docker run "${RUN_OPTS[@]}" "${IMAGE}" bash -c "set -euo pipefail; cd $(pwd); ${CMD}"

View File

@@ -0,0 +1,36 @@
#!/bin/bash
set -e
function error() {
echo "Require build command, e.g. python setup.py build --device npu"
exit 1
}
IMAGE="quay.io/jd_xllm/xllm-ai:xllm-dev-a2-x86-20260429"
RUN_OPTS=(
--rm
-t
--privileged
--ipc=host
--network=host
--device=/dev/davinci0
--device=/dev/davinci_manager
--device=/dev/devmm_svm
--device=/dev/hisi_hdc
-v /var/queue_schedule:/var/queue_schedule
-v /usr/local/Ascend/driver:/usr/local/Ascend/driver
-v /usr/local/sbin/npu-smi:/usr/local/sbin/npu-smi
-v /usr/local/sbin/:/usr/local/sbin/
-v /export/home:/export/home
-v /export/home/npu_vcpkg_cache_abi_1:/root/.cache/vcpkg # cached vcpkg installed dir
-v /etc/hccn.conf:/etc/hccn.conf
-w /export/home
)
CMD="$*"
[[ -z "${CMD}" ]] && error
[[ ! -x $(command -v docker) ]] && echo "ERROR: 'docker' command is missing." && exit 1
docker run "${RUN_OPTS[@]}" "${IMAGE}" bash -c "set -euo pipefail; cd $(pwd); ${CMD}"