Unverified Commit 857dab1f authored by Musisoul's avatar Musisoul Committed by GitHub
Browse files

Conda install and update docs (#434)

parent 8da2797d
......@@ -81,7 +81,10 @@ conda activate lightx2v
```bash
# Install basic dependencies
pip install -r requirements.txt
pip install -v -e .
# Full dependencies
pip install -v -e .[full]
```
> 💡 **Note**: The Hunyuan model needs to run under transformers version 4.45.2. If you don't need to run the Hunyuan model, you can skip the transformers version restriction.
......@@ -102,7 +105,21 @@ cd flash-attention/hopper && python setup.py install
**Option C: SageAttention 2 (Recommended)**
```bash
git clone https://github.com/thu-ml/SageAttention.git
cd SageAttention && python setup.py install
cd SageAttention && CUDA_ARCHITECTURES="8.0,8.6,8.9,9.0,12.0" EXT_PARALLEL=4 NVCC_APPEND_FLAGS="--threads 8" MAX_JOBS=32 pip install -v -e .
```
**Option D: Q8 Kernels**
```bash
git clone https://github.com/KONAKONA666/q8_kernels.git
cd q8_kernels && git submodule init && git submodule update
python setup.py install
```
#### Step 5: Verify Installation
```python
import lightx2v
print(f"LightX2V Version: {lightx2v.__version__}")
```
## 🪟 Windows Environment Setup
......
......@@ -77,11 +77,14 @@ conda create -n lightx2v python=3.11 -y
conda activate lightx2v
```
#### 步骤 3: 安装依赖
#### 步骤 3: 安装依赖及代码
```bash
# 安装基础依赖
pip install -r requirements.txt
# 基础安装(核心推理功能)
pip install -v -e .
# 完整安装(含推理功能和服务端)
pip install -v -e .[full]
```
> 💡 **提示**: 混元模型需要在 4.45.2 版本的 transformers 下运行,如果您不需要运行混元模型,可以跳过 transformers 版本限制。
......@@ -102,7 +105,20 @@ cd flash-attention/hopper && python setup.py install
**选项 C: SageAttention 2(推荐)**
```bash
git clone https://github.com/thu-ml/SageAttention.git
cd SageAttention && python setup.py install
cd SageAttention && CUDA_ARCHITECTURES="8.0,8.6,8.9,9.0,12.0" EXT_PARALLEL=4 NVCC_APPEND_FLAGS="--threads 8" MAX_JOBS=32 pip install -v -e .
```
**选项 D: Q8 Kernels**
```bash
git clone https://github.com/KONAKONA666/q8_kernels.git
cd q8_kernels && git submodule init && git submodule update
python setup.py install
```
#### 步骤 5: 验证安装
```python
import lightx2v
print(f"LightX2V 版本: {lightx2v.__version__}")
```
## 🪟 Windows 系统环境搭建
......
__version__ = "0.1.0"
__author__ = "LightX2V Contributors"
__license__ = "Apache 2.0"
from lightx2v import common, deploy, models, utils
__all__ = [
"__version__",
"__author__",
"__license__",
"models",
"common",
"deploy",
"utils",
]
[build-system]
requires = [
"setuptools>=61.0",
"wheel",
"packaging",
"ninja",
]
build-backend = "setuptools.build_meta"
[project]
name = "lightx2v"
version = "0.1.0"
authors = [
{name = "LightX2V Contributors"},
]
description = "LightX2V: 轻量级视频生成推理框架"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Multimedia :: Video",
]
keywords = ["video generation", "AI", "deep learning", "diffusion models", "text-to-video", "image-to-video"]
dependencies = [
"numpy",
"scipy",
"torch<=2.8.0",
"torchvision<=0.23.0",
"torchaudio<=2.8.0",
"diffusers",
"transformers",
"tokenizers",
"tqdm",
"accelerate",
"safetensors",
"opencv-python",
"imageio",
"imageio-ffmpeg",
"einops",
"loguru",
"sgl-kernel",
"qtorch",
"ftfy",
"gradio",
"aiohttp",
"pydantic",
"prometheus-client",
"gguf",
]
[project.optional-dependencies]
full = [
"vllm",
"fastapi",
"uvicorn",
"PyJWT",
"requests",
"aio-pika",
"asyncpg>=0.27.0",
"aioboto3>=12.0.0",
"alibabacloud_dypnsapi20170525==1.2.2",
"redis==6.4.0",
"tos",
"decord",
"av",
]
[project.urls]
Homepage = "https://github.com/ModelTC/LightX2V"
Documentation = "https://lightx2v-en.readthedocs.io/en/latest/"
Repository = "https://github.com/ModelTC/LightX2V"
"Bug Tracker" = "https://github.com/ModelTC/LightX2V/issues"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["lightx2v*"]
[tool.setuptools.package-data]
lightx2v = [
"configs/*.json",
"assets/**/*",
]
[tool.ruff]
exclude = [
".git",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment