You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/pr_tests_gpu.yml
+47-1Lines changed: 47 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,51 @@ env:
28
28
PIPELINE_USAGE_CUTOFF: 1000000000# set high cutoff so that only always-test pipelines run
29
29
30
30
jobs:
31
+
check_code_quality:
32
+
runs-on: ubuntu-22.04
33
+
steps:
34
+
- uses: actions/checkout@v3
35
+
- name: Set up Python
36
+
uses: actions/setup-python@v4
37
+
with:
38
+
python-version: "3.8"
39
+
- name: Install dependencies
40
+
run: |
41
+
python -m pip install --upgrade pip
42
+
pip install .[quality]
43
+
- name: Check quality
44
+
run: make quality
45
+
- name: Check if failure
46
+
if: ${{ failure() }}
47
+
run: |
48
+
echo "Quality check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and run 'make style && make quality'" >> $GITHUB_STEP_SUMMARY
49
+
50
+
check_repository_consistency:
51
+
needs: check_code_quality
52
+
runs-on: ubuntu-22.04
53
+
steps:
54
+
- uses: actions/checkout@v3
55
+
- name: Set up Python
56
+
uses: actions/setup-python@v4
57
+
with:
58
+
python-version: "3.8"
59
+
- name: Install dependencies
60
+
run: |
61
+
python -m pip install --upgrade pip
62
+
pip install .[quality]
63
+
- name: Check repo consistency
64
+
run: |
65
+
python utils/check_copies.py
66
+
python utils/check_dummies.py
67
+
python utils/check_support_list.py
68
+
make deps_table_check_updated
69
+
- name: Check if failure
70
+
if: ${{ failure() }}
71
+
run: |
72
+
echo "Repo consistency check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and run 'make fix-copies'" >> $GITHUB_STEP_SUMMARY
@@ -86,11 +86,11 @@ image = pipeline(prompt="Upper body of a young woman in a Victorian-era outfit w
86
86
87
87
Quantization helps reduce the memory requirements of very large models by storing model weights in a lower precision data type. However, quantization may have varying impact on video quality depending on the video model.
88
88
89
-
Refer to the [Quantization](../../quantization/overview) overview to learn more about supported quantization backends and selecting a quantization backend that supports your use case. The example below demonstrates how to load a quantized [`LuminaText2ImgPipeline`] for inference with bitsandbytes.
89
+
Refer to the [Quantization](../../quantization/overview) overview to learn more about supported quantization backends and selecting a quantization backend that supports your use case. The example below demonstrates how to load a quantized [`LuminaPipeline`] for inference with bitsandbytes.
90
90
91
91
```py
92
92
import torch
93
-
from diffusers import BitsAndBytesConfig as DiffusersBitsAndBytesConfig, Transformer2DModel, LuminaText2ImgPipeline
93
+
from diffusers import BitsAndBytesConfig as DiffusersBitsAndBytesConfig, Transformer2DModel, LuminaPipeline
94
94
from transformers import BitsAndBytesConfig as BitsAndBytesConfig, T5EncoderModel
0 commit comments