---
title: mmh3-tanya2
canonical_url: "https://www.modelscope.ai/models/aiartworks/mmh3-tanya2"
md_url: "https://www.modelscope.ai/models/aiartworks/mmh3-tanya2.md"
repository: aiartworks/mmh3-tanya2
last_updated: 2026-09-18
license: "Apache License 2.0"
pipeline_tag: text-to-video-synthesis
tasks:
  - text-to-video-synthesis
base_model:
  - MiniMax/MiniMax-H3
base_model_relation: adapter
parameters: 745.5M
tensor_type:
  - BF16
library_name:
  - pytorch
  - lora
  - safetensors
downloads: 863
stars: 0
tags:
  - LoRA
  - "text2video generation"
---

# mmh3-tanya2

> mmh3-tanya2 - An open-source model by aiartworks on ModelScope. This model is trained using the Civision/model training environment and computing resources provided by ModelScope.

aiartworks/mmh3-tanya2 is a 745.5M-parameter text-to-video-synthesis model on ModelScope. licensed under Apache License 2.0. derived from MiniMax/MiniMax-H3.

- **Repository**: aiartworks/mmh3-tanya2
- **License**: Apache License 2.0
- **Tasks**: text-to-video-synthesis
- **Parameters**: 745.5M
- **Base model**: MiniMax/MiniMax-H3
- **Tags**: LoRA, text2video generation
- **Downloads**: 863
- **Stars**: 0
- **Last updated**: 2026-09-18

Source: https://www.modelscope.ai/models/aiartworks/mmh3-tanya2

---

# 

## Model Introduction

This model is trained using the [Civision/model training](https://modelscope.ai/civision/modelTraining) environment and computing resources provided by ModelScope.

* Model Type: LoRA
* Base Model: [MiniMax/MiniMax-H3](https://modelscope.ai/models/MiniMax/MiniMax-H3)
* Training Code: [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio)
* Data amount：22
* Total training steps：2000
* License: Apache-2.0

## Inference Code

Install [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio):

```bash
pip install diffsynth
```

Inference:

```python
import torch
from diffsynth.pipelines.minimax_h3_audio_video import MiniMaxH3Pipeline, ModelConfig
from diffsynth.utils.data.audio_video import write_video_audio

vram_config = {
    "offload_dtype": "disk",
    "offload_device": "disk",
    "onload_dtype": "disk",
    "onload_device": "disk",
    "preparing_dtype": torch.bfloat16,
    "preparing_device": "cuda",
    "computation_dtype": torch.bfloat16,
    "computation_device": "cuda",
}
pipe = MiniMaxH3Pipeline.from_pretrained(
    torch_dtype=torch.bfloat16,
    device="cuda",
    model_configs=[
        ModelConfig(model_id="MiniMax/MiniMax-H3", origin_file_pattern="FL2VA/text_encoder/model*.safetensors", **vram_config),
        ModelConfig(model_id="MiniMax/MiniMax-H3", origin_file_pattern="FL2VA/transformer/model*.safetensors", **vram_config),
        ModelConfig(model_id="MiniMax/MiniMax-H3", origin_file_pattern="FL2VA/video_vae/source/model.safetensors", **vram_config),
        ModelConfig(model_id="MiniMax/MiniMax-H3", origin_file_pattern="FL2VA/audio_vae/model.safetensors", **vram_config),
    ],
    processor_config=ModelConfig(model_id="MiniMax/MiniMax-H3", origin_file_pattern="FL2VA/processor/"),
    vram_limit=torch.cuda.mem_get_info("cuda")[1] / (1024 ** 3) - 2,
)
pipe.load_lora(pipe.dit, ModelConfig(model_id="aiartworks/mmh3-tanya2", origin_file_pattern="mmh3-tanya2_c2-st2000.safetensors"))

prompt = "A cat"
video, audio = pipe(
    prompt=prompt,
    height=480, width=832, num_frames=124, num_inference_steps=50, seed=0,
)
write_video_audio(
    video=video, audio=audio,
    output_path="t2va.mp4", fps=24, audio_sample_rate=32000,
)
```
