---
title: ltx2.3-gzgz
canonical_url: "https://www.modelscope.cn/models/gsyhsb110/ltx2.3-gzgz"
md_url: "https://www.modelscope.cn/models/gsyhsb110/ltx2.3-gzgz.md"
repository: gsyhsb110/ltx2.3-gzgz
chinese_name: "ltx2.3-公主"
last_updated: 2026-06-19
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
parameters: 616.6M
tensor_type:
  - BF16
library_name:
  - pytorch
  - lora
  - safetensors
frameworks:
  - pytorch
supports_inference: txt2img
downloads: 47
stars: 2
tags:
  - LoRA
---

# ltx2.3-gzgz

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

gsyhsb110/ltx2.3-gzgz 是 ModelScope 魔搭社区上的 616.6M 参数text-to-image-synthesis模型，采用 Apache License 2.0 许可，基于 Lightricks/LTX-2.3 构建，并支持在线推理（txt2img）。

- **Repository**: gsyhsb110/ltx2.3-gzgz
- **License**: Apache License 2.0
- **Tasks**: text-to-image-synthesis
- **Parameters**: 616.6M
- **Base model**: Lightricks/LTX-2.3
- **Online inference**: txt2img
- **Tags**: LoRA
- **Downloads**: 47
- **Stars**: 2
- **Last updated**: 2026-06-19

Source: https://www.modelscope.cn/models/gsyhsb110/ltx2.3-gzgz

---

# ltx2.3-公主

## 模型介绍

本模型依托魔搭社区（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)
* 训练数据量：16
* 总训练步数：4000
* 开源协议：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="gsyhsb110/ltx2.3-gzgz", origin_file_pattern="ltx2.3-gzgz_c1-st4000.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)
```
