Downloads · 30 days
5
1% of all-time downloads
weathon/mochi-lora
mochi-lora is a text-to-video model from weathon. Use it when you need video from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
5
1% of all-time downloads
All-time downloads
896
Public
Repo size
18.1 GB
Likes
1
Public
Click a slice to open those files.
.pt13 GB · 99%
From the Hugging Face model README
This is a lora finetune of the Mochi-1 preview model genmo/mochi-1-preview.
The model was trained using CogVideoX Factory - a repository containing memory-optimized training scripts for the CogVideoX and Mochi family of models using TorchAO and DeepSpeed. The scripts were adopted from CogVideoX Diffusers trainer.
Download LoRA in the Files & Versions tab.
Requires the 🧨 Diffusers library installed.
from diffusers import MochiPipeline
from diffusers.utils import export_to_video
import torch
pipe = MochiPipeline.from_pretrained("genmo/mochi-1-preview")
pipe.load_lora_weights("CHANGE_ME")
pipe.enable_model_cpu_offload()
with torch.autocast("cuda", torch.bfloat16):
video = pipe(
prompt="CHANGE_ME",
guidance_scale=6.0,
num_inference_steps=64,
height=480,
width=848,
max_sequence_length=256,
output_type="np"
).frames[0]
export_to_video(video)
For more details, including weighting, merging and fusing LoRAs, check the documentation on loading LoRAs in diffusers.
# TODO: add an example code snippet for running this diffusion pipeline
[TODO: provide examples of latent issues and potential remediations]
[TODO: describe the data used to train the model]