Download CogVideoX-2B model weights
mainDiTCtrl requires CogVideoX-2B weights and a T5 text encoder.
1. Download CogVideoX-2B weights
Download the VAE and Transformer weights and organize them into the following structure:
CogVideoX-2b-sat/
├── transformer
│ ├── 1000 (or 1)
│ │ └── mp_rank_00_model_states.pt
│ └── latest
└── vae
└── 3d-vae.pt2. Download T5 Text Encoder
Clone the CogVideoX-2b repository from HuggingFace or Modelscope. Move the text_encoder and tokenizer contents into a new directory named t5-v1_1-xxl to ensure a safetensor format that can be loaded without error.
3. Final Directory Structure
Your sat/ directory should look like this:
sat/
├── CogVideoX-2b-sat/
│ ├── transformer
│ ├── CogVideoX-2b
│ ├── t5-v1_1-xxl
│ ├── vae
├── configs/
├── inference_case_configs/
├── run_multi_prompt.sh
├── run_single_prompt.sh
├── run_edit_video.sh
├── sample_video.py
├── sample_video_edit.py
├── README.md
├── LICENSE
└── ...# Download CogVideoX-2B weights
cd sat
mkdir CogVideoX-2b-sat
cd CogVideoX-2b-sat
# Download VAE
wget https://cloud.tsinghua.edu.cn/f/fdba7608a49c463ba754/?dl=1
mv 'index.html?dl=1' vae.zip
unzip vae.zip
# Download Transformer
wget https://cloud.tsinghua.edu.cn/f/556a3e1329e74f1bac45/?dl=1
mv 'index.html?dl=1' transformer.zip
unzip transformer.zip
# Download T5
git clone https://huggingface.co/THUDM/CogVideoX-2b.git
mkdir t5-v1_1-xxl
mv CogVideoX-2b/text_encoder/* CogVideoX-2b/tokenizer/* t5-v1_1-xxl