Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Make some dependencies optional #445

Merged
merged 8 commits into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,25 @@ def get_cuda_version():
"distvae",
"yunchang>=0.6.0",
"pytest",
"flask",
"opencv-python",
"imageio",
"imageio-ffmpeg",
"optimum-quanto",
"ray"
],
extras_require={
"diffusers": [
"diffusers>=0.31.0", # NOTE: diffusers>=0.32.0.dev is necessary for CogVideoX and Flux
],
"flash-attn": [
"flash-attn>=2.6.0",
"flash-attn>=2.6.0", # NOTE: flash-attn is necessary if ring_degree > 1
],
"optimum-quanto": [
"optimum-quanto", # NOTE: optimum-quanto is necessary if use_fp8_t5_encoder is enabled
],
"flask": [
"flask", # NOTE: flask is necessary to run xDiT as an http service
],
"ray": [
"ray", # NOTE: ray is necessary if RayDiffusionPipeline is used
]
},
url="https://github.com/xdit-project/xDiT.",
Expand Down
Loading