---
title: xiutui
canonical_url: "https://www.modelscope.cn/models/z1596407/xiutui"
md_url: "https://www.modelscope.cn/models/z1596407/xiutui.md"
repository: z1596407/xiutui
chinese_name: "秀腿"
last_updated: 2026-06-17
license: "Apache License 2.0"
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
base_model:
  - Lightricks/LTX-2.3
base_model_relation: adapter
library_name:
  - pytorch
  - lora
  - safetensors
frameworks:
  - pytorch
supports_inference: txt2img
downloads: 39
stars: 1
tags:
  - LoRA
---

# xiutui

> xiutui - z1596407 在 ModelScope 开源的模型。本模型依托魔搭社区（ModelScope）AIGC专区模型训练环境与算力完成训练。

z1596407/xiutui 是 ModelScope 魔搭社区上的text-to-image-synthesis模型，采用 Apache License 2.0 许可，基于 Lightricks/LTX-2.3 构建，并支持在线推理（txt2img）。

- **Repository**: z1596407/xiutui
- **License**: Apache License 2.0
- **Tasks**: text-to-image-synthesis
- **Base model**: Lightricks/LTX-2.3
- **Online inference**: txt2img
- **Tags**: LoRA
- **Downloads**: 39
- **Stars**: 1
- **Last updated**: 2026-06-17

Source: https://www.modelscope.cn/models/z1596407/xiutui

---

# 秀腿

## 模型介绍

本模型依托魔搭社区（ModelScope）AIGC专区[模型训练](https://modelscope.cn/aigc/modelTraining)环境与算力完成训练。

* 模型类型：LoRA
* 基础模型：[Lightricks/LTX-2.3](https://modelscope.cn/models/Lightricks/LTX-2.3)
* 训练代码：[DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio)
* 训练数据量：9
* 总训练步数：3000
* 开源协议：Apache-2.0

## 推理代码

安装 [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio)：

```bash
pip install diffsynth
```

开始推理：

```python
import torch
from diffsynth.pipelines.ltx2_audio_video import LTX2AudioVideoPipeline, ModelConfig
from diffsynth.utils.data.media_io_ltx2 import write_video_audio_ltx2

vram_config = {
    "offload_dtype": torch.float8_e5m2,
    "offload_device": "cpu",
    "onload_dtype": torch.float8_e5m2,
    "onload_device": "cpu",
    "preparing_dtype": torch.float8_e5m2,
    "preparing_device": "cuda",
    "computation_dtype": torch.bfloat16,
    "computation_device": "cuda",
}
pipe = LTX2AudioVideoPipeline.from_pretrained(
    torch_dtype=torch.bfloat16,
    device="cuda",
    model_configs=[
        ModelConfig(model_id="google/gemma-3-12b-it-qat-q4_0-unquantized", origin_file_pattern="model-*.safetensors", **vram_config),
        ModelConfig(model_id="Lightricks/LTX-2.3", origin_file_pattern="ltx-2.3-22b-dev.safetensors", **vram_config),
        ModelConfig(model_id="Lightricks/LTX-2.3", origin_file_pattern="ltx-2.3-spatial-upscaler-x2-1.0.safetensors", **vram_config),
    ],
    tokenizer_config=ModelConfig(model_id="google/gemma-3-12b-it-qat-q4_0-unquantized"),
    stage2_lora_config=ModelConfig(model_id="Lightricks/LTX-2.3", origin_file_pattern="ltx-2.3-22b-distilled-lora-384.safetensors"),
    vram_limit=torch.cuda.mem_get_info("cuda")[1] / (1024 ** 3) - 0.5,
)
pipe.load_lora(pipe.dit, ModelConfig(model_id="z1596407/xiutui", origin_file_pattern="xiutui_c1-st3000.safetensors"))
prompt = "a cat"
video, audio = pipe(
    prompt=prompt,
    negative_prompt=pipe.default_negative_prompt["LTX-2.3"],
    height=1536, width=1024, num_frames=121,
    tiled=True, use_two_stage_pipeline=True,
)
write_video_audio_ltx2(video, audio, 'video.mp4', fps=24)
```
