Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-r-o-w committed Mar 5, 2025
1 parent cbfd6c8 commit 2786ec2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 7 deletions.
13 changes: 7 additions & 6 deletions examples/training/sft/hunyuan_video/modal_labs_dissolve/train.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export FINETRAINERS_LOG_LEVEL="DEBUG"
BACKEND="ptd"

# In this setting, I'm using 2 GPUs on a 4-GPU node for training
NUM_GPUS=2
CUDA_VISIBLE_DEVICES="2,3"
NUM_GPUS=8
CUDA_VISIBLE_DEVICES="0,1,2,3,4,5,6,7"

# Check the JSON files for the expected JSON format
TRAINING_DATASET_CONFIG="examples/training/sft/hunyuan_video/modal_labs_dissolve/training.json"
Expand All @@ -28,10 +28,11 @@ DDP_4="--parallel_backend $BACKEND --pp_degree 1 --dp_degree 4 --dp_shards 1 --c
FSDP_2="--parallel_backend $BACKEND --pp_degree 1 --dp_degree 1 --dp_shards 2 --cp_degree 1 --tp_degree 1"
FSDP_4="--parallel_backend $BACKEND --pp_degree 1 --dp_degree 1 --dp_shards 4 --cp_degree 1 --tp_degree 1"
HSDP_2_2="--parallel_backend $BACKEND --pp_degree 1 --dp_degree 2 --dp_shards 2 --cp_degree 1 --tp_degree 1"
HSDP_4_2="--parallel_backend $BACKEND --pp_degree 1 --dp_degree 4 --dp_shards 2 --cp_degree 1 --tp_degree 1"

# Parallel arguments
parallel_cmd=(
$DDP_2
$HSDP_4_2
)

# Model arguments
Expand All @@ -44,7 +45,7 @@ model_cmd=(
dataset_cmd=(
--dataset_config $TRAINING_DATASET_CONFIG
--dataset_shuffle_buffer_size 10
--precomputation_items 15
--precomputation_items 10
--precomputation_once
)

Expand All @@ -65,7 +66,7 @@ training_cmd=(
--training_type "lora"
--seed 42
--batch_size 1
--train_steps 5000
--train_steps 3000
--rank 32
--lora_alpha 32
--target_modules "(transformer_blocks|single_transformer_blocks).*(to_q|to_k|to_v|to_out.0|add_q_proj|add_k_proj|add_v_proj|to_add_out)"
Expand Down Expand Up @@ -101,7 +102,7 @@ validation_cmd=(
# Miscellaneous arguments
miscellaneous_cmd=(
--tracker_name "finetrainers-hunyuanvideo"
--output_dir "/raid/aryan/hunyuanvideo"
--output_dir "/fsx/aryan/lora-training/hunyuanvideo"
--init_timeout 600
--nccl_timeout 600
--report_to "wandb"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"num_inference_steps": 30,
"height": 480,
"width": 768,
"num_frames": 81
"num_frames": 49
},
{
"caption": "MODAL_DISSOLVE High-resolution video depicting the complete disintegration of a white origami crane. The disintegration process is initiated at the head of the crane and proceeds in a generally downward direction. The disintegration manifests as the rapid breakdown of paper fibers into a cloud of fine particulate matter. The particle size appears consistent, with a texture similar to very fine powder. The rate of disintegration increases over time, resulting in a visually dynamic and texturally complex effect. The background consists of a dark-stained wooden surface, providing a high-contrast setting that highlights the white particles' dispersal and movement. The final state shows only residual particulate matter scattered sparsely on the surface.",
Expand All @@ -35,6 +35,42 @@
"height": 480,
"width": 768,
"num_frames": 49
},
{
"caption": "MODAL_DISSOLVE A meticulously detailed, antique-style vase, featuring mottled beige and brown hues and two small handles, sits centrally on a dark brown circular pedestal. The vase, seemingly made of clay or porcelain, begins to dissolve from the bottom up. The disintegration process is rapid but not explosive, with a cloud of fine, light tan dust forming and rising in a swirling, almost ethereal column that expands outwards before slowly descending. The dust particles are individually visible as they float, and the overall effect is one of delicate disintegration rather than shattering. Finally, only the empty pedestal and the intricately patterned marble floor remain.",
"image_path": null,
"video_path": null,
"num_inference_steps": 30,
"height": 480,
"width": 768,
"num_frames": 81
},
{
"caption": "MODAL_DISSOLVE Close-up view of a sloth resting on a thick tree branch within a dense, sun-dappled forest. The sloth's body, initially clearly defined, begins to subtly disintegrate. The process starts with a light dusting of particles from its lower back and rump. This quickly intensifies, with a visible cloud of fine, sparkling dust billowing outwards as the sloth's form gradually vanishes. The dissolution proceeds in a wave-like manner, moving from rear to front. The head and arms are the last parts to disappear, leaving only scattered motes of dust that slowly disperse amongst the leaves, blending seamlessly with the forest environment. The overall effect is dreamlike and ethereal.",
"image_path": null,
"video_path": null,
"num_inference_steps": 30,
"height": 480,
"width": 768,
"num_frames": 81
},
{
"caption": "MODAL_DISSOLVE High-resolution video depicting the complete digital dissolution of an orange Porsche 911 GT3 RS within a garage environment. The car's dissolution proceeds in three discernible stages: (1) Initial shimmering along the car's edges and body panels, creating a subtle, high-frequency displacement effect. (2) Rapid disintegration of the vehicle into a dense cloud of primarily orange and black particles, varying in size and opacity; particle motion exhibits both outward and swirling movements. (3) Complete disappearance of the car, leaving behind only a remaining, smaller, seemingly fiery-textured rubber duck model. The overall effect resembles a controlled explosion or rapid combustion, creating a dynamic, visually complex transformation. The garage's lighting and shadows remain consistent throughout the dissolution, providing clear visual contrast.",
"image_path": null,
"video_path": null,
"num_inference_steps": 30,
"height": 480,
"width": 768,
"num_frames": 81
},
{
"caption": "MODAL_DISSOLVE High-resolution video depicting the complete disintegration of a white origami crane. The disintegration process is initiated at the head of the crane and proceeds in a generally downward direction. The disintegration manifests as the rapid breakdown of paper fibers into a cloud of fine particulate matter. The particle size appears consistent, with a texture similar to very fine powder. The rate of disintegration increases over time, resulting in a visually dynamic and texturally complex effect. The background consists of a dark-stained wooden surface, providing a high-contrast setting that highlights the white particles' dispersal and movement. The final state shows only residual particulate matter scattered sparsely on the surface.",
"image_path": null,
"video_path": null,
"num_inference_steps": 30,
"height": 480,
"width": 768,
"num_frames": 81
}
]
}

0 comments on commit 2786ec2

Please sign in to comment.