---
title: Char2-paren
canonical_url: "https://www.modelscope.ai/models/samuraisunshine/Char2-paren"
md_url: "https://www.modelscope.ai/models/samuraisunshine/Char2-paren.md"
repository: samuraisunshine/Char2-paren
last_updated: 2026-05-16
license: "Apache License 2.0"
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
base_model:
  - Tongyi-MAI/Z-Image-Turbo
base_model_relation: adapter
parameters: 396.9M
tensor_type:
  - BF16
library_name:
  - pytorch
  - lora
  - safetensors
frameworks:
  - pytorch
supports_inference: txt2img
downloads: 159
stars: 0
tags:
  - LoRA
---

# Char2-paren

> Char2-paren - An open-source model by samuraisunshine on ModelScope. This model is trained using the Civision/model training environment and computing resources provided by ModelScope.

samuraisunshine/Char2-paren is a 396.9M-parameter text-to-image-synthesis model on ModelScope. licensed under Apache License 2.0. derived from Tongyi-MAI/Z-Image-Turbo. and supports online inference (txt2img).

- **Repository**: samuraisunshine/Char2-paren
- **License**: Apache License 2.0
- **Tasks**: text-to-image-synthesis
- **Parameters**: 396.9M
- **Base model**: Tongyi-MAI/Z-Image-Turbo
- **Online inference**: txt2img
- **Tags**: LoRA
- **Downloads**: 159
- **Stars**: 0
- **Last updated**: 2026-05-16

Source: https://www.modelscope.ai/models/samuraisunshine/Char2-paren

---

# 

## 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: [Tongyi-MAI/Z-Image-Turbo](https://modelscope.ai/models/Tongyi-MAI/Z-Image-Turbo)
* Training Code: [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio)
* Data amount：16
* Total training steps：4000
* License: Apache-2.0

## Inference Code

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

```bash
pip install diffsynth
```

Inference:

```python
from diffsynth.pipelines.z_image import ZImagePipeline, ModelConfig
import torch

pipe = ZImagePipeline.from_pretrained(
    torch_dtype=torch.bfloat16,
    device="cuda",
    model_configs=[
        ModelConfig(model_id="Tongyi-MAI/Z-Image-Turbo", origin_file_pattern="transformer/*.safetensors"),
        ModelConfig(model_id="Tongyi-MAI/Z-Image-Turbo", origin_file_pattern="text_encoder/*.safetensors"),
        ModelConfig(model_id="Tongyi-MAI/Z-Image-Turbo", origin_file_pattern="vae/diffusion_pytorch_model.safetensors"),
    ],
    tokenizer_config=ModelConfig(model_id="Tongyi-MAI/Z-Image-Turbo", origin_file_pattern="tokenizer/"),
)
pipe.load_lora(pipe.dit, ModelConfig(model_id="samuraisunshine/Char2-paren", origin_file_pattern="Char2-paren_c1-st4000.safetensors"))
prompt = "a cat"
image = pipe(prompt=prompt, num_inference_steps=8, cfg_scale=1)
image.save("image.jpg")
```
