---
title: jin_Klein64-2e4_160626
canonical_url: "https://www.modelscope.cn/models/doubleh1102ai/jin_Klein64-2e4_160626"
md_url: "https://www.modelscope.cn/models/doubleh1102ai/jin_Klein64-2e4_160626.md"
repository: doubleh1102ai/jin_Klein64-2e4_160626
chinese_name: "金珠岚"
last_updated: 2026-06-16
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
parameters: 1.7B
tensor_type:
  - BF16
library_name:
  - safetensors
  - pytorch
frameworks:
  - pytorch
supports_inference: txt2img
downloads: 40
stars: 0
---

# jin_Klein64-2e4_160626

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

doubleh1102ai/jin_Klein64-2e4_160626 是 ModelScope 魔搭社区上的 1.7B 参数text-to-image-synthesis模型，并支持在线推理（txt2img）。

- **Repository**: doubleh1102ai/jin_Klein64-2e4_160626
- **Tasks**: text-to-image-synthesis
- **Parameters**: 1.7B
- **Online inference**: txt2img
- **Downloads**: 40
- **Stars**: 0
- **Last updated**: 2026-06-16

Source: https://www.modelscope.cn/models/doubleh1102ai/jin_Klein64-2e4_160626

---

# 金珠岚

## 模型介绍

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

* 模型类型：LoRA
* 基础模型：[black-forest-labs/FLUX.2-klein-base-9B](https://modelscope.cn/models/black-forest-labs/FLUX.2-klein-base-9B)
* 训练代码：[DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio)
* 训练数据量：81
* 总训练步数：10000
* 开源协议：Apache-2.0

## 推理代码

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

```bash
pip install diffsynth
```

开始推理：

```python
from diffsynth.pipelines.flux2_image import Flux2ImagePipeline, ModelConfig
import torch

pipe = Flux2ImagePipeline.from_pretrained(
    torch_dtype=torch.bfloat16,
    device="cuda",
    model_configs=[
        ModelConfig(model_id="black-forest-labs/FLUX.2-klein-base-9B", origin_file_pattern="text_encoder/*.safetensors"),
        ModelConfig(model_id="black-forest-labs/FLUX.2-klein-base-9B", origin_file_pattern="transformer/*.safetensors"),
        ModelConfig(model_id="black-forest-labs/FLUX.2-klein-base-9B", origin_file_pattern="vae/diffusion_pytorch_model.safetensors"),
    ],
    tokenizer_config=ModelConfig(model_id="black-forest-labs/FLUX.2-klein-base-9B", origin_file_pattern="tokenizer/"),
)
pipe.load_lora(pipe.dit, ModelConfig(model_id="doubleh1102ai/jin_Klein64-2e4_160626", origin_file_pattern="jin_Klein64-2e4_160626_c1-st10000.safetensors"))
prompt = "a cat"
image = pipe(prompt, num_inference_steps=50, cfg_scale=4)
image.save("image.jpg")

prompt = "Convert the image style to anime style."
image = pipe(prompt, edit_image=[image], num_inference_steps=50, cfg_scale=4)
image.save("image_edited.jpg")
```
