THUDM / THUDM/slime

Dependency issue when trying to setup from scratch

Open
#222 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.5k
Forks
1.3k
Avg merge
5h 36m
Merged PRs (30d)
22

Description

ERROR: Cannot install sglang and sglang[srt]==0.4.9.post2 because these package versions have conflicting dependencies.

The conflict is caused by:
    sglang[srt] 0.4.9.post2 depends on torch==2.7.1; extra == "srt"
    flashinfer-python 0.2.7.post1 depends on torch
    flashinfer-python 0.2.7.post1 depends on torch==2.8.*

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict

After running:

cd $BASE_DIR
git clone https://github.com/sgl-project/sglang.git --branch v0.4.9.post2 --depth 1
cd $BASE_DIR/sglang/
micromamba run -n slime pip -v install -e "python[all]"
# TODO: change to pip install sglang-router after it has a new release
micromamba run -n slime pip install sglang-router --force-reinstall

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Re-run the micromamba and pip commands shown in the issue from a clean environment. Trace the requested sglang and sglang-router versions and their torch requirements to identify a compatible resolution. Done means the from-scratch setup completes without the torch 2.7.1 versus 2.8.* conflict.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.