ilovesora2's picture
download
raw
858 Bytes
#!/usr/bin/env bash
set -euo pipefail
# This submits the training Job to Hugging Face. The training itself runs in
# the cloud. Put this package in creuthecat/Open-Sora-v2.1 first so the Job can
# mount the repository as /workspace/training.
DATASET="YOUR_ORG/YOUR_DATASET"
JOB_NAME="opensora-v21-stage1-i2v"
IMAGE="nvcr.io/nvidia/pytorch:25.02-py3"
hf jobs run \
--name "$JOB_NAME" \
--flavor a100x8 \
--timeout 7d \
-s HF_TOKEN \
-v hf://creuthecat/Open-Sora-v2.1:/workspace/training:ro \
-v hf://hpcai-tech/Open-Sora-v2:/base-model:ro \
-v hf://google/t5-v1_1-xxl:/ckpts/google/t5-v1_1-xxl:ro \
-v hf://openai/clip-vit-large-patch14:/ckpts/openai/clip-vit-large-patch14:ro \
-v hf://datasets/${DATASET}:/data:ro \
-v hf://buckets/creuthecat/opensora-v21:/training-outputs \
"$IMAGE" \
bash /workspace/training/job/entrypoint.sh

Xet Storage Details

Size:
858 Bytes
·
Xet hash:
1a689c00a3b61e03182340e790e319725f1b5265c57d7917231cb72df7f23f13

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.