Default GPU flavor -> rtx-pro-6000 (Blackwell)
Browse files
app.py
CHANGED
|
@@ -24,8 +24,8 @@ FLAVOR_GUIDE = """**Which GPU?** You're billed per-minute of actual runtime.
|
|
| 24 |
| Flavor | VRAM | $/h | Best for |
|
| 25 |
|---|---|---|---|
|
| 26 |
| `l40sx1` | 48 GB | $1.80 | cheapest — pair with the **Low-VRAM** profile (int8) |
|
| 27 |
-
| `a100-large` | 80 GB | $2.50 |
|
| 28 |
-
| `rtx-pro-6000` | 96 GB | $2.75 |
|
| 29 |
| `h200` | 141 GB | $5.00 | fastest — best for higher resolution / longer clips |
|
| 30 |
"""
|
| 31 |
MAX_LOG = 60_000
|
|
@@ -163,7 +163,7 @@ PROFILE_LOWVRAM = "Low-VRAM (≤32 GB)"
|
|
| 163 |
PROFILE_CUSTOM = "Custom"
|
| 164 |
PROFILES = {
|
| 165 |
PROFILE_QUALITY: {"quantization": "none", "optimizer_type": "adamw", "te_8bit": False,
|
| 166 |
-
"rank": 32, "alpha": 32, "flavor": "
|
| 167 |
PROFILE_LOWVRAM: {"quantization": "int8-quanto", "optimizer_type": "adamw8bit", "te_8bit": True,
|
| 168 |
"rank": 16, "alpha": 16, "flavor": "l40sx1"},
|
| 169 |
}
|
|
@@ -354,7 +354,7 @@ with gr.Blocks(title="LTX-2.3 LoRA Trainer") as demo:
|
|
| 354 |
hub_id = gr.Textbox(label="Hub model id", placeholder="username/my-lora")
|
| 355 |
with gr.Row():
|
| 356 |
flavor = gr.Dropdown(FLAVORS, value=jobs.DEFAULT_FLAVOR, label="GPU flavor",
|
| 357 |
-
info="Auto-set from your profile (Quality →
|
| 358 |
"change it freely. See the guide below.")
|
| 359 |
timeout = gr.Textbox(label="Timeout", value="6h",
|
| 360 |
info="Max job runtime (e.g. 4h). First run spends ~minutes downloading the model.")
|
|
|
|
| 24 |
| Flavor | VRAM | $/h | Best for |
|
| 25 |
|---|---|---|---|
|
| 26 |
| `l40sx1` | 48 GB | $1.80 | cheapest — pair with the **Low-VRAM** profile (int8) |
|
| 27 |
+
| `a100-large` | 80 GB | $2.50 | fits the 22B model in bf16 |
|
| 28 |
+
| `rtx-pro-6000` | 96 GB | $2.75 | **recommended (default)** — Blackwell, more headroom |
|
| 29 |
| `h200` | 141 GB | $5.00 | fastest — best for higher resolution / longer clips |
|
| 30 |
"""
|
| 31 |
MAX_LOG = 60_000
|
|
|
|
| 163 |
PROFILE_CUSTOM = "Custom"
|
| 164 |
PROFILES = {
|
| 165 |
PROFILE_QUALITY: {"quantization": "none", "optimizer_type": "adamw", "te_8bit": False,
|
| 166 |
+
"rank": 32, "alpha": 32, "flavor": "rtx-pro-6000"},
|
| 167 |
PROFILE_LOWVRAM: {"quantization": "int8-quanto", "optimizer_type": "adamw8bit", "te_8bit": True,
|
| 168 |
"rank": 16, "alpha": 16, "flavor": "l40sx1"},
|
| 169 |
}
|
|
|
|
| 354 |
hub_id = gr.Textbox(label="Hub model id", placeholder="username/my-lora")
|
| 355 |
with gr.Row():
|
| 356 |
flavor = gr.Dropdown(FLAVORS, value=jobs.DEFAULT_FLAVOR, label="GPU flavor",
|
| 357 |
+
info="Auto-set from your profile (Quality → rtx-pro-6000 · Low-VRAM → l40sx1); "
|
| 358 |
"change it freely. See the guide below.")
|
| 359 |
timeout = gr.Textbox(label="Timeout", value="6h",
|
| 360 |
info="Max job runtime (e.g. 4h). First run spends ~minutes downloading the model.")
|
jobs.py
CHANGED
|
@@ -29,7 +29,7 @@ import yaml
|
|
| 29 |
from huggingface_hub import HfApi
|
| 30 |
|
| 31 |
SRC_BUCKET = os.environ.get("LTX_SRC_BUCKET", "ltx-community/ltx2-trainer-src-v2")
|
| 32 |
-
DEFAULT_FLAVOR = "
|
| 33 |
VIDEO_EXTS = {".mp4", ".mov", ".mkv", ".webm", ".avi", ".m4v"}
|
| 34 |
|
| 35 |
# Deterministic on-Job paths (the Space bakes these into config.yaml).
|
|
|
|
| 29 |
from huggingface_hub import HfApi
|
| 30 |
|
| 31 |
SRC_BUCKET = os.environ.get("LTX_SRC_BUCKET", "ltx-community/ltx2-trainer-src-v2")
|
| 32 |
+
DEFAULT_FLAVOR = "rtx-pro-6000" # default single-GPU flavor (Blackwell, 96GB; cu128 torch in v2)
|
| 33 |
VIDEO_EXTS = {".mp4", ".mov", ".mkv", ".webm", ".avi", ".m4v"}
|
| 34 |
|
| 35 |
# Deterministic on-Job paths (the Space bakes these into config.yaml).
|