Skip to content

feat(backends): add sglang#9359

Open
mudler wants to merge 3 commits intomasterfrom
feat/sglang
Open

feat(backends): add sglang#9359
mudler wants to merge 3 commits intomasterfrom
feat/sglang

Conversation

@mudler
Copy link
Copy Markdown
Owner

@mudler mudler commented Apr 14, 2026

Description

This PR adds a sglang backend

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@mudler mudler added the enhancement New feature or request label Apr 14, 2026
@mudler mudler force-pushed the feat/sglang branch 3 times, most recently from 5a2471d to 3a42b8d Compare April 15, 2026 21:36
mudler added 2 commits April 15, 2026 22:08
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
sgl-kernel's shm.cpp uses __m512 AVX-512 intrinsics unconditionally;
-march=native fails on CI runners without AVX-512 in /proc/cpuinfo.
Force -march=sapphirerapids so the build always succeeds, matching
sglang upstream's docker/xeon.Dockerfile recipe.

The resulting binary still requires an AVX-512 capable CPU at runtime,
so disable tests-sglang-grpc in test-extra.yml for the same reason
tests-vllm-grpc is disabled. Local runs with make test-extra-backend-sglang
still work on hosts with the right SIMD baseline.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
CXXFLAGS with -march=sapphirerapids was being overridden by
add_compile_options(-march=native) in sglang's CPU CMakeLists.txt,
since CMake appends those flags after CXXFLAGS. Sed-patch the
CMakeLists.txt directly after cloning to replace -march=native.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant