Skip to content

Inquiry for upgrading apache-tvm-ffi dependency version #1962

@ShangmingCai

Description

@ShangmingCai

Motivation

flashinfer-python depends on apache-tvm-ffi==0.1.0b15, which triggers this error below when installing SGLang:

+ uv pip install -e 'python[dev]' --extra-index-url https://download.pytorch.org/whl/cu128 --index-strategy unsafe-best-match --force-reinstall
Using Python 3.10.12 environment at: /usr
  × No solution found when resolving dependencies:
  ╰─▶ Because there is no version of apache-tvm-ffi==0.1.0b15 and
      flashinfer-python==0.4.0 depends on apache-tvm-ffi==0.1.0b15, we can
      conclude that flashinfer-python==0.4.0 cannot be used.
      And because sglang==0.5.3.post3 depends on flashinfer-python==0.4.0, we
      can conclude that sglang==0.5.3.post3 cannot be used.
      And because only sglang[dev]==0.5.3.post3 is available and you require
      sglang[dev], we can conclude that your requirements are unsatisfiable.

      hint: `apache-tvm-ffi` was requested with a pre-release marker (e.g.,
      apache-tvm-ffi==0.1.0b15), but pre-releases weren't enabled (try:
      `--prerelease=allow`)

Since apache-tvm-ffi has released 0.1.0, https://pypi.org/project/apache-tvm-ffi/#history, is there a reason why we stick with 0.1.0b15 this version? If not, I hope that we could bump the version in pyproject.toml in the next release. Because we think --prerelease=allow could be dangerous since it takes effect on all packages when using the above uv pip install command.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions