README.md 1.28 KB
Newer Older
Dongz's avatar
Dongz committed
1
# LightX2V: Light Video Generation Inference Framework
helloyongyang's avatar
helloyongyang committed
2

helloyongyang's avatar
helloyongyang committed
3
4
5
6
7
<div align="center">
  <picture>
    <img alt="LightLLM" src="assets/img_lightx2v.jpg" width=75%>
  </picture>
</div>
helloyongyang's avatar
helloyongyang committed
8

helloyongyang's avatar
helloyongyang committed
9
--------------------------------------------------------------------------------
helloyongyang's avatar
helloyongyang committed
10

11
## Fast Start Up
helloyongyang's avatar
helloyongyang committed
12

Dongz's avatar
Dongz committed
13
```shell
14
15
16
17
18
19
20
21
22
23
24
25
git clone https://github.com/ModelTC/lightx2v.git lightx2v && cd lightx2v

conda create -n lightx2v python=3.11 && conda activate lightx2v
pip install -r requirements.txt

# download flash attention and install
git clone https://github.com/Dao-AILab/flash-attention.git --recursive
cd flash-attention && pip install -v -e .
# for FA3, cd flash-attention/hopper && pip install -v -e .

# modify the parameters of the running script
bash scripts/run_hunyuan_t2v.sh
helloyongyang's avatar
helloyongyang committed
26
27
```

28
## Docker Image
helloyongyang's avatar
helloyongyang committed
29

Dongz's avatar
Dongz committed
30
```shell
zhiwei.dong's avatar
zhiwei.dong committed
31
32
docker pull lightx2v/lightx2v:latest
docker run -it --rm --gpus all --ipc=host lightx2v/lightx2v:latest
helloyongyang's avatar
helloyongyang committed
33
```
Dongz's avatar
Dongz committed
34
35
36
37
38
39
40
41
42
43
44

## Contribute

We have prepared a `pre-commit` hook to enforce consistent code formatting across the project. You can clean up your code following the steps below:

1. Install the required dependencies:

```shell
    pip install ruff pre-commit
```

45
2. Then, run the following command before commit:
Dongz's avatar
Dongz committed
46
47
48
49
50
51

```shell
    pre-commit run --all-files
```

If your code complies with the standards, you should not see any errors.