Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,7 @@ import shutil
|
|
27 |
import uuid
|
28 |
import zipfile
|
29 |
|
|
|
30 |
# META: CUDA_CHECK / GPU_INFO
|
31 |
print("CUDA_VISIBLE_DEVICES=", os.environ.get("CUDA_VISIBLE_DEVICES"))
|
32 |
print("torch.__version__ =", torch.__version__)
|
@@ -80,7 +81,6 @@ loras = [
|
|
80 |
|
81 |
# Initialize the base model
|
82 |
dtype = torch.bfloat16
|
83 |
-
device = "cuda" if torch.cuda.is_available() else "cpu"
|
84 |
base_model = "Qwen/Qwen-Image"
|
85 |
|
86 |
# Scheduler configuration from the Qwen-Image-Lightning repository
|
|
|
27 |
import uuid
|
28 |
import zipfile
|
29 |
|
30 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
31 |
# META: CUDA_CHECK / GPU_INFO
|
32 |
print("CUDA_VISIBLE_DEVICES=", os.environ.get("CUDA_VISIBLE_DEVICES"))
|
33 |
print("torch.__version__ =", torch.__version__)
|
|
|
81 |
|
82 |
# Initialize the base model
|
83 |
dtype = torch.bfloat16
|
|
|
84 |
base_model = "Qwen/Qwen-Image"
|
85 |
|
86 |
# Scheduler configuration from the Qwen-Image-Lightning repository
|