Once you have trained a lora model, the inference can be done simply loading the lora weights into the `CogVideoXPipeline`.  
```python
import torch
from diffusers import CogVideoXPipeline
from diffusers.utils import export_to_video