---
title: XB_KREA_2_TURBO_CG
canonical_url: "https://www.modelscope.cn/models/Liudef/XB_KREA_2_TURBO_CG"
md_url: "https://www.modelscope.cn/models/Liudef/XB_KREA_2_TURBO_CG.md"
repository: Liudef/XB_KREA_2_TURBO_CG
chinese_name: "Krea-2-Turbo CG画风"
last_updated: 2026-06-29
license: "Apache License 2.0"
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
base_model:
  - krea/Krea-2-Turbo
base_model_relation: adapter
parameters: 1.2B
tensor_type:
  - F16
library_name:
  - pytorch
  - lora
  - safetensors
frameworks:
  - pytorch
supports_inference: txt2img
downloads: 674
stars: 32
tags:
  - LoRA
---

# XB_KREA_2_TURBO_CG

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

Liudef/XB_KREA_2_TURBO_CG 是 ModelScope 魔搭社区上的 1.2B 参数text-to-image-synthesis模型，采用 Apache License 2.0 许可，基于 krea/Krea-2-Turbo 构建，并支持在线推理（txt2img）。

- **Repository**: Liudef/XB_KREA_2_TURBO_CG
- **License**: Apache License 2.0
- **Tasks**: text-to-image-synthesis
- **Parameters**: 1.2B
- **Base model**: krea/Krea-2-Turbo
- **Online inference**: txt2img
- **Tags**: LoRA
- **Downloads**: 674
- **Stars**: 32
- **Last updated**: 2026-06-29

Source: https://www.modelscope.cn/models/Liudef/XB_KREA_2_TURBO_CG

---

# Krea-2-Turbo CG画风

## 模型介绍

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

* 模型类型：LoRA
* 基础模型：[krea/Krea-2-Turbo](https://modelscope.cn/models/krea/Krea-2-Turbo)
* 训练代码：[DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio)
* 训练数据量：58
* 总训练步数：10000
* 开源协议：Apache-2.0

## 推理代码

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

```bash
pip install diffsynth
```

开始推理：

```python
from diffsynth.pipelines.krea2 import Krea2Pipeline, ModelConfig
import torch

pipe = Krea2Pipeline.from_pretrained(
    torch_dtype=torch.bfloat16,
    device="cuda",
    model_configs=[
        ModelConfig(model_id="krea/Krea-2-Turbo", origin_file_pattern="turbo.safetensors"),
        ModelConfig(model_id="Qwen/Qwen3-VL-4B-Instruct", origin_file_pattern="*.safetensors"),
        ModelConfig(model_id="Qwen/Qwen-Image", origin_file_pattern="vae/diffusion_pytorch_model.safetensors"),
    ],
    tokenizer_config=ModelConfig(model_id="Qwen/Qwen3-VL-4B-Instruct", origin_file_pattern=""),
)
pipe.load_lora(pipe.dit, ModelConfig(model_id="Liudef/XB_KREA_2_TURBO_CG", origin_file_pattern="XB_KREA_2_TURBO_CG_c1-st10000.safetensors"))
prompt = "a cat"
image = pipe(
    prompt, seed=0,
    num_inference_steps=8, cfg_scale=1, mu=1.15,
)
image.save("image.jpg")
```
