---
title: RigidFrontier-SORA
canonical_url: "https://www.modelscope.cn/models/RBKrebs/RigidFrontier-SORA"
md_url: "https://www.modelscope.cn/models/RBKrebs/RigidFrontier-SORA.md"
repository: RBKrebs/RigidFrontier-SORA
last_updated: 2026-11-23
license: apache-2.0
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
base_model_relation: adapter
parameters: 151.3M
tensor_type:
  - F32
library_name:
  - safetensors
  - pytorch
frameworks:
  - PyTorch
language:
  - zh
downloads: 6
stars: 0
tags:
  - comfyui
  - sora
  - pre-diag
  - moss-image
  - anime
  - style
  - cel-shading
  - flat-color
---

# RigidFrontier-SORA

> RigidFrontier-SORA - RBKrebs 在 ModelScope 开源的模型。MOSS-Image 的 SORA Pre-Diag 风格适配器，在 200 张偏平涂 / 赛璐璐风格的动漫插画上训练 1,050 步，对 attn + MLP 生效。基模 MOSS-Image-Base bf16。

RBKrebs/RigidFrontier-SORA 是 ModelScope 魔搭社区上的 151.3M 参数text-to-image-synthesis模型，采用 apache-2.0 许可。

- **Repository**: RBKrebs/RigidFrontier-SORA
- **License**: apache-2.0
- **Tasks**: text-to-image-synthesis
- **Parameters**: 151.3M
- **Tags**: comfyui, sora, pre-diag, moss-image, anime, style, cel-shading, flat-color
- **Downloads**: 6
- **Stars**: 0
- **Last updated**: 2026-11-23

Source: https://www.modelscope.cn/models/RBKrebs/RigidFrontier-SORA

---

# RigidFrontier

**MOSS-Image** 的 **SORA Pre-Diag** 风格适配器，在 200 张偏平涂 / 赛璐璐风格的动漫插画上训练 1,050 步，对 attn + MLP 生效。基模 MOSS-Image-Base bf16。

一次激进的快速微调，仅在一张3090上耗费2小时完成。

- **Pre-Diag**（Pre-Diagonal）：按输出通道学习一个对基模输出的对角缩放，作为 DoRA 的低成本替代，`W' = diag(d) W + dW`；

- 采用了EVA起步校准，加速收敛

## 文件

| 文件 | 内容 |
| --- | --- |
| `rigidfrontier-1050-fp32.safetensors` | step 1050 可训练权重导出（fp32） |
| `rigidfrontier-ema-1050-fp32.safetensors` | step 1050 EMA（decay 0.98）权重导出（fp32） |

## 使用

- [**RBkreb/comfyui-moss-nara**](https://github.com/RBkreb/comfyui-moss-nara)
- 无触发词，strength 1.0，CFG 2.5~3.5
- 不适配 ComfyUI 原生 `LoraLoader`：无 `sora_diag` 槽位，会按层丢弃并告警

## 效果

euler / sgm_uniform，50 步，CFG 3.0，MOSS-Image-SFT bf16 

| 基模 | Pre-Diag | EMA |
| --- | --- | --- |
| <img src="examples/simple_00001_.png" alt="窗前肖像" width="300" height="450"> | <img src="examples/prediag_00001_.png" alt="窗前肖像" width="300" height="450"> | <img src="examples/ema_00001_.png" alt="窗前肖像" width="300" height="450"> |
| <img src="examples/simple_00002_.png" alt="屋顶奔跑" width="300" height="450"> | <img src="examples/prediag_00002_.png" alt="屋顶奔跑" width="300" height="450"> | <img src="examples/ema_00002_.png" alt="屋顶奔跑" width="300" height="450"> |
| <img src="examples/simple_00003_.png" alt="站台三人" width="300" height="450"> | <img src="examples/prediag_00003_.png" alt="站台三人" width="300" height="450"> | <img src="examples/ema_00003_.png" alt="站台三人" width="300" height="450"> |
| <img src="examples/simple_00008_.png" alt="白发红瞳角色" width="300" height="352"> | <img src="examples/prediag_00008_.png" alt="白发红瞳角色" width="300" height="352"> | <img src="examples/ema_00008_.png" alt="白发红瞳角色" width="300" height="352"> |

## 劣化测试

对文字有轻微劣化

| 基模 | Pre-Diag | EMA |
| --- | --- | --- |
| <img src="examples/simple_00004_.png" alt="写实人像" width="300" height="450"> | <img src="examples/prediag_00004_.png" alt="写实人像" width="300" height="450"> | <img src="examples/ema_00004_.png" alt="写实人像" width="300" height="450"> |
| <img src="examples/simple_00005_.png" alt="JRPG 战斗界面" width="300" height="200"> | <img src="examples/prediag_00005_.png" alt="JRPG 战斗界面" width="300" height="200"> | <img src="examples/ema_00005_.png" alt="JRPG 战斗界面" width="300" height="200"> |
| <img src="examples/simple_00007_.png" alt="物理试卷" width="300" height="450"> | <img src="examples/prediag_00007_.png" alt="物理试卷" width="300" height="450"> | <img src="examples/ema_00007_.png" alt="物理试卷" width="300" height="450"> |

## 局限

- 在部分情况下，可能会缺少动作的大胆性
- 当提示词遵循度/文字过度劣化时，应降低strength或完全不用
- 相对于LoRA，约有1.5倍推理开销
- Pre-Diag 依赖 plugin 的 SORA 推理路径；在普通 LoRA 的加载器上，`sora_diag` 会被丢弃，效果与训练时不一致。

## 训练信息

| 项目 | 值 |
| --- | --- |
| 算法 | LoRA + SORA Pre-Diag |
| 步数 | 1,050 |
| Rank / alpha | 32 / 32 |
| 作用模块 | `proj_q/k/v/o` + `proj_ffn_up_gate/down` |
| 初始化 | EVA，21 batches，`sim_thresh` 0.99，`precision` fp32 |
| 数据集 | 200 张动漫插画，长边 980–10,704 px（中位 3,518），自然语言散文描述（584–1,083 字符，中位 767） |
| 分辨率 | resize 至 0.25 MP（保持长宽比）|
| 优化器 | AdamW，LR 1e-4，WD 1e-4，betas 0.9/0.95，cosine 调度，warmup 60 步，grad clip 1.0 |
| 时间步 | MOSS 调度（`mu` −1.09，`s` 0.95，`shift` 1.0，`cutoff` 0.95，`uniform_mix` 0.01） |
| EMA | 0.98 |
| 精度 | 训练 bf16 / 发布 fp32 |

- [Trainer](https://github.com/RBkreb/KohakuMossTrainer)
## 引用

### SORA — Skewed Orthogonal Rotation Adaptation

```bibtex
@inproceedings{chang2026sora,
  title     = {Calibrating and Rotating: A Unified Framework for Weight Conditioning in PEFT},
  author    = {Chang, Da and Xue, Peng and Li, Yu and Liu, Yongxiang and Xu, Pengxiang and Zhang, Shixun},
  booktitle = {The Fortieth AAAI Conference on Artificial Intelligence (AAAI-26)},
  year      = {2026}
}
```

- 论文：<https://arxiv.org/abs/2511.00051>
- 仓库：<https://github.com/MaeChd/SORA>

### EVA — Explained Variance Adaptation

```bibtex
@article{paischer2024eva,
  title   = {One Initialization to Rule them All: Fine-tuning via Explained Variance Adaptation},
  author  = {Paischer, Fabian and Hauzenberger, Lukas and Schmied, Thomas and Alkin, Benedikt and Deisenroth, Marc Peter and Hochreiter, Sepp},
  journal = {arXiv preprint arXiv:2410.07170},
  year    = {2024}
}
```

- 论文：<https://arxiv.org/abs/2410.07170>
- 仓库：<https://github.com/ml-jku/EVA>
