Spaces:
Running on Zero
Running on Zero
Write runtime outputs to /data bucket mount
Browse files
README.md
CHANGED
|
@@ -14,8 +14,9 @@ This repository contains a self-contained Gradio demo for the
|
|
| 14 |
`FINAL-ours-final_2026-05-01T12-36-12` Instruct Particulate checkpoint.
|
| 15 |
On Hugging Face Spaces, the large model checkpoint is downloaded at startup
|
| 16 |
from `rayli/instruct-particulate-model`.
|
| 17 |
-
Runtime outputs are written under `
|
| 18 |
-
|
|
|
|
| 19 |
that location.
|
| 20 |
|
| 21 |
Run:
|
|
|
|
| 14 |
`FINAL-ours-final_2026-05-01T12-36-12` Instruct Particulate checkpoint.
|
| 15 |
On Hugging Face Spaces, the large model checkpoint is downloaded at startup
|
| 16 |
from `rayli/instruct-particulate-model`.
|
| 17 |
+
Runtime outputs are written under `/data` when that mount is available, so the
|
| 18 |
+
Space can use the `rayli/instruct-particulate-results` read/write bucket. Local
|
| 19 |
+
runs fall back to `./data`. Set `INSTRUCT_PARTICULATE_OUTPUT_ROOT` to override
|
| 20 |
that location.
|
| 21 |
|
| 22 |
Run:
|
app.py
CHANGED
|
@@ -82,9 +82,8 @@ CHECKPOINT_REPO_FILENAME = os.environ.get(
|
|
| 82 |
"INSTRUCT_PARTICULATE_CHECKPOINT_REPO_FILENAME",
|
| 83 |
"step_0080000.pt",
|
| 84 |
)
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
)
|
| 88 |
UP_DIR_CHOICES = ["+X", "-X", "+Y", "-Y", "+Z", "-Z"]
|
| 89 |
AUTO_KINEMATICS_MODEL_ID = "gemini-3.5-flash"
|
| 90 |
AUTO_KINEMATICS_REASONING_EFFORT = "medium"
|
|
|
|
| 82 |
"INSTRUCT_PARTICULATE_CHECKPOINT_REPO_FILENAME",
|
| 83 |
"step_0080000.pt",
|
| 84 |
)
|
| 85 |
+
DEFAULT_OUTPUT_ROOT = Path("/data") if Path("/data").exists() else REPO_ROOT / "data"
|
| 86 |
+
OUTPUT_ROOT = Path(os.environ.get("INSTRUCT_PARTICULATE_OUTPUT_ROOT", str(DEFAULT_OUTPUT_ROOT)))
|
|
|
|
| 87 |
UP_DIR_CHOICES = ["+X", "-X", "+Y", "-Y", "+Z", "-Z"]
|
| 88 |
AUTO_KINEMATICS_MODEL_ID = "gemini-3.5-flash"
|
| 89 |
AUTO_KINEMATICS_REASONING_EFFORT = "medium"
|