Skip to content

Commit

Permalink
change to 5b from 2b for CogVideoX.
Browse files Browse the repository at this point in the history
Co-authored-by: a-r-r-o-w <[email protected]>
  • Loading branch information
sayakpaul and a-r-r-o-w committed Jan 5, 2025
1 parent 1f81197 commit 8fe5256
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/training/cogvideox.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ID_TOKEN="BW_STYLE"

# Model arguments
model_cmd="--model_name cogvideox \
--pretrained_model_name_or_path THUDM/CogVideoX-2b"
--pretrained_model_name_or_path THUDM/CogVideoX-5b"

# Dataset arguments
dataset_cmd="--data_root $DATA_ROOT \
Expand Down Expand Up @@ -120,10 +120,10 @@ from diffusers import DiffusionPipeline
from diffusers.utils import export_to_video

pipe = DiffusionPipeline.from_pretrained(
"THUDM/CogVideoX-2b", torch_dtype=torch.float16
"THUDM/CogVideoX-5b", torch_dtype=torch.float16
).to("cuda")
+ pipe.load_lora_weights("my-awesome-name/my-awesome-lora", adapter_name="ltxv-lora")
+ pipe.set_adapters(["ltxv-lora"], [0.75])
+ pipe.load_lora_weights("my-awesome-name/my-awesome-lora", adapter_name="cogvideox-lora")
+ pipe.set_adapters(["cogvideox"], [0.75])

video = pipe("<my-awesome-prompt>").frames[0]
export_to_video(video, "output.mp4")
Expand Down

0 comments on commit 8fe5256

Please sign in to comment.