TensorForger commited on
Commit
477ebb4
·
verified ·
1 Parent(s): c8d2204

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -1,35 +1,6 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
  *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  *.safetensors filter=lfs diff=lfs merge=lfs -text
2
+ *.png filter=lfs diff=lfs merge=lfs -text
3
+ *.jpg filter=lfs diff=lfs merge=lfs -text
4
+ *.gif filter=lfs diff=lfs merge=lfs -text
5
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
6
+ *.webp filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 TensorForger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
NOTICE ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Steppe
2
+ Copyright (c) 2026 TensorForger. Licensed under the MIT License (see LICENSE).
3
+
4
+ Steppe models operate on the latent space of the FLUX.2 VAE and were trained on latents produced by it.
5
+
6
+ FLUX.2 VAE (autoencoder)
7
+ Copyright (c) 2025 Black Forest Labs.
8
+ Licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0
9
+ Source: https://github.com/black-forest-labs/flux2, https://huggingface.co/black-forest-labs/FLUX.2-dev (ae.safetensors)
10
+
11
+ The FLUX.2 VAE is licensed separately from the FLUX.2 [dev] model weights (FLUX Non-Commercial License). Steppe
12
+ uses only the VAE latent space; it does not depend on, contain or redistribute any FLUX.2 transformer weights.
13
+
14
+ This repository does not contain or redistribute FLUX.2 VAE weights or code; the VAE is obtained from its original
15
+ source by the user. Steppe works on latents in the 2x2 packed, batch norm normalized layout produced by ComfyUI and
16
+ diffusers. No modifications were made to the FLUX.2 VAE.
README.md ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: image-to-image
4
+ tags:
5
+ - steppe
6
+ - latent-upscaler
7
+ - upscaler
8
+ - super-resolution
9
+ - comfyui
10
+ - flux
11
+ - flux2
12
+ - flux.2
13
+ - moss-image
14
+ - flow-matching
15
+ - distillation
16
+ base_model:
17
+ - black-forest-labs/FLUX.2-dev
18
+ - black-forest-labs/FLUX.2-klein-4B
19
+ - black-forest-labs/FLUX.2-klein-9B
20
+ - black-forest-labs/FLUX.2-klein-base-4B
21
+ - black-forest-labs/FLUX.2-klein-base-9B
22
+ - OpenMOSS-Team/MOSS-Image-SFT
23
+ - OpenMOSS-Team/MOSS-Image-Base
24
+ base_model_relation: adapter
25
+ ---
26
+
27
+ # Steppe for FLUX.2 VAE latents
28
+
29
+ <!-- TODO stage 4: hero card (raw.githubusercontent.com/tensorforger/tensorforger/main/assets/steppe/flux_*.jpg) -->
30
+
31
+ > ### 🧩 ComfyUI nodes: [ComfyUI-Steppe](https://github.com/TensorForger/ComfyUI-Steppe)
32
+ > Available in **ComfyUI-Manager**: search for "Steppe" and install (or `comfy node install steppe`).
33
+ > The nodes download these models on first use.
34
+ >
35
+ > [![ComfyUI-Steppe on GitHub](https://img.shields.io/badge/ComfyUI-Steppe_nodes-E9A94B?style=for-the-badge&logo=github)](https://github.com/TensorForger/ComfyUI-Steppe)
36
+
37
+ <!-- TODO: FLUX.2 support needs ComfyUI-Steppe 1.1.0 (branch flux2-support, not released yet); publish this card after the node release. -->
38
+
39
+ **Steppe** is a family of *generative latent upscalers*: small generative models trained only for upscaling,
40
+ which run directly on VAE latents. The upscaled latent is **decoded straight by the VAE**: no second sampling pass of
41
+ the base model, no hires fix, no prompt.
42
+
43
+ These models upscale latents of the **FLUX.2 VAE**, the latent space shared by FLUX.2 [dev], FLUX.2 [klein] and
44
+ MOSS-Image.
45
+
46
+ - **2x resolution** of images, e.g. 512 → 1024 or 1024 → 2048, and chained 2x → 2x.
47
+ - **One step**: ~40 ms model time for a 1024 px image with the default model (RTX 5090). Most of the time goes to the
48
+ VAE decode.
49
+ - **Close to the VAE limit**: patch FID 1.75 vs 8.12 for bicubic, -59% vs our earlier FLUX.2 upscaler.
50
+ - **Sharpness control** through the high frequency feature conditioning (hff).
51
+
52
+ Images only: unlike the Wan 2.1 models, there is no temporal (frame rate) upscaling.
53
+
54
+ ## Use in ComfyUI
55
+
56
+ Install [ComfyUI-Steppe](https://github.com/TensorForger/ComfyUI-Steppe): search for "Steppe" in ComfyUI-Manager,
57
+ or run `comfy node install steppe`. The models download automatically on first use.
58
+
59
+ `KSampler → Steppe Upscale Latent → VAE Decode`
60
+
61
+ Select a `steppe_flux_2_*` model in **Load Steppe Upscaler** (the same loader lists the Wan 2.1 models). Leave
62
+ `steps` / `shift` at `0` for the recommended base model sampler (30 steps, shift 2).
63
+
64
+ To install the models manually, put the files into `ComfyUI/models/latent_upscale_models`.
65
+
66
+ ## Files
67
+
68
+ | file | steps | parameters | use |
69
+ |---|---|---|---|
70
+ | [`steppe_flux_2_200M_1step.safetensors`](steppe_flux_2_200M_1step.safetensors) | 1 | 192M | **default**, 90% of use cases: the quality of the base model in one step |
71
+ | [`steppe_flux_2_200M_base.safetensors`](steppe_flux_2_200M_base.safetensors) | 1-200 (30) | 192M | most control and research: steps, CFG on hff; same quality as the 1-step model in general use |
72
+ | [`steppe_flux_2_20M_1step.safetensors`](steppe_flux_2_20M_1step.safetensors) | 1 | 20.2M | lite: 6x faster model pass, very large outputs, real time use; with a tiny decoder (TAEF2) the whole pipeline is ~19 ms |
73
+
74
+ All files are bfloat16 safetensors with the model configuration in the metadata. `config.json` is the catalog of this
75
+ repository (versions, recommended settings).
76
+
77
+ ## Compatibility
78
+
79
+ | model | VAE | status |
80
+ |---|---|---|
81
+ | FLUX.2 [dev] | FLUX.2 VAE | native |
82
+ | FLUX.2 [klein] 4B / 9B (distilled and base) | FLUX.2 VAE | native |
83
+ | MOSS-Image | FLUX.2 VAE (small decoder) | native latent space <!-- TODO: test in ComfyUI --> |
84
+ | FLUX.2 small decoder, TAEF2 (madebyollin/taef2) | FLUX.2 VAE decoders | works, TAEF2 benchmarked |
85
+ | FLUX.1, Wan, Qwen-Image, SD3, SDXL, … | other VAEs | **not supported** here (Wan 2.1 VAE: [Steppe-Wan2.1](https://huggingface.co/TensorForger/Steppe-Wan2.1)) |
86
+
87
+ <!-- TODO stage 3: "Tested in ComfyUI with ..." line after the user tests. -->
88
+
89
+ ## Settings
90
+
91
+ - **hff** (`0...1`, default 0.9): target amount of fine detail and sharpness. Off (`-1`) lets the model choose.
92
+ The values are absolute: an Immerkaer noise estimate, quantile-normalized on ReLAION photos. hff acts much more
93
+ strongly on these models than on the Wan 2.1 ones.
94
+ - **guidance**:
95
+ - 1-step models: a distilled guidance input, trained on 1-2, no extra cost. The default 1 (off) is safe and stable.
96
+ - Base model: classifier free guidance between the hff and the null hff; the cost is two passes per step.
97
+ - **Base model sampler**: 30 Euler steps, sigma shift 2, initial noise scale 1.0.
98
+
99
+ ## Benchmark
100
+
101
+ 1000 photos (Axis-V1), 512 → 1024. Every solution gets only the FLUX.2 latent (no prompt, no hff). Patch FID on native
102
+ 256 px tiles (lower is better); latency at batch 1, VAE decode included, RTX 5090, eager bfloat16.
103
+
104
+ | solution | patch FID | FID | latency | peak VRAM |
105
+ |---|---|---|---|---|
106
+ | Steppe 200M base, 30 steps | **1.72** | 1.95 | 1671 ms | 3.0 GB |
107
+ | Steppe 200M 1-step | 1.75 | 2.02 | 172 ms | 3.0 GB |
108
+ | Steppe 20M 1-step | 2.20 | 2.63 | 131 ms | 2.6 GB |
109
+ | Steppe 200M 1-step + TAEF2 decoder | 3.22 | 4.55 | 60 ms | 1.0 GB |
110
+ | Steppe 20M 1-step + TAEF2 decoder | 3.81 | 5.17 | 19 ms | 0.7 GB |
111
+ | FlowUpscaler (our previous FLUX.2 model) | 4.28 | 4.50 | 128 ms | 2.7 GB |
112
+ | SPAN 2x after decode | 6.18 | 3.67 | 30 ms | 0.8 GB |
113
+ | SesquiLSR FLUX.2 (latent, made for hires fix) | 7.71 | 7.26 | 124 ms | 2.6 GB |
114
+ | bicubic after decode | 8.12 | 1.77 | 25 ms | 0.8 GB |
115
+ | Real-ESRGAN x2 after decode | 9.03 | 7.99 | 53 ms | 0.8 GB |
116
+ | VOSR 1.4B (one step diffusion SR) | 25.88 | 15.83 | 595 ms | 9.2 GB |
117
+
118
+ The VAE reconstruction limit on this set is patch FID 0.71. Steppe stays close to the input: roundtrip color error
119
+ ΔE00 1.82 (bicubic 1.74). A FLUX.2 [klein] 9B LoRA upscaler (Hildegard, 4 steps, ~7 s per image) was compared on 30
120
+ images: it adds plausible detail but moves away from the input (ΔE00 3.8 at best vs 2.2 for Steppe on the same images).
121
+
122
+ <!-- TODO stage 4: benchmark plot + crops (raw_results/flux_upscale_benchmark_axis_v1_1k/latency_vs_patch_fid.png). -->
123
+
124
+ Benchmark images: [Axis-V1](https://huggingface.co/datasets/refine-axis/axis-v1_1k) by refine-axis (CC BY 4.0), cropped.
125
+
126
+ ## Python
127
+
128
+ ```bash
129
+ pip install "steppe[standalone] @ git+https://github.com/TensorForger/ComfyUI-Steppe"
130
+ ```
131
+
132
+ ```python
133
+ from steppe import UpscaleSettings, load_upscaler
134
+
135
+ upscaler = load_upscaler("steppe_flux_2_200M_1step.safetensors")
136
+ upscaler.model.to("cuda")
137
+
138
+ # FLUX.2 latents as ComfyUI and the diffusers FLUX.2 pipelines use them: 2x2 packed and batch norm normalized,
139
+ # [B, 128, H / 16, W / 16]. From a bare AutoencoderKLFlux2: patchify the 32 channel latent 2x2 (channel order
140
+ # C, 2, 2) and normalize it with vae.bn.running_mean / sqrt(vae.bn.running_var + 1e-4).
141
+ upscaled = upscaler.upscale(latents, UpscaleSettings(hff=0.9, guidance=1.0)) # [B, 128, H / 8, W / 8]
142
+ ```
143
+
144
+ ## How it works
145
+
146
+ A window transformer runs on the full resolution latent grid (32 channels, 1/8 of the image). It uses DiT style
147
+ adaLN-zero blocks, shifted 8x8 window attention and QK-norm. A learned source encoder upsamples the input latent. The
148
+ model generates the normalized residual over the aligned low resolution latent with rectified flow, conditioned on the
149
+ noise level and the hff.
150
+
151
+ - **Base model**: 192M parameters, trained from scratch for 24 h on 7 RTX 5090s. Data: images from
152
+ [ReLAION-high-resolution](https://huggingface.co/datasets/laion/relaion-high-resolution) and 4KLSDB (1 : 1, large
153
+ crops, 512 → 1024 and 256 → 512). Training pairs are made by downscaling and encoding with the FLUX.2 VAE; 20% of the
154
+ inputs are corrupted (mostly JPEG) for robustness. No captions are used. hff dropout enables classifier free
155
+ guidance.
156
+ - **1-step model**: rectified flow distillation of the base model (teacher pairs generated online, ~35 min on 8 GPUs).
157
+ It keeps ~99% of the base model's gain over bicubic.
158
+ - **20M model**: the same architecture scaled down and trained from scratch for 6 h on pairs from the 1-step model
159
+ (~93% of its gain).
160
+
161
+ The architecture and recipe come from agent-driven autoresearch on FLUX.2 and Wan 2.1 latents (rounds of parallel
162
+ 30 min training runs, judged by patch FID).
163
+
164
+ ## Limitations
165
+
166
+ - Images only, no video and no frame rate upscaling.
167
+ - Small text and small background faces are where all upscalers fail. Steppe improves them less than textures and
168
+ edges, and the 20M model the least.
169
+ - The upscaling factor is fixed at 2x. For 4x, chain two upscales.
170
+
171
+ ## License
172
+
173
+ MIT. Steppe works on latents of the FLUX.2 VAE (Apache-2.0, Black Forest Labs), see `NOTICE`. This repository
174
+ does not contain VAE or FLUX.2 model weights.
175
+
176
+ The ancestor of Steppe is [comfyui-flow-upscaler](https://github.com/tensorforger/comfyui-flow-upscaler) (FLUX.2).
177
+
178
+ ```bibtex
179
+ @misc{steppe2026,
180
+ author = {TensorForger},
181
+ title = {Steppe: Generative Latent Upscalers},
182
+ year = {2026},
183
+ url = {https://huggingface.co/TensorForger/Steppe-Flux.2}
184
+ }
185
+ ```
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "steppe-catalog",
3
+ "format_version": 1,
4
+ "project": "Steppe",
5
+ "latent_space": "flux_2",
6
+ "default_model": "steppe_flux_2_200M_1step.safetensors",
7
+ "implementation": "https://github.com/TensorForger/ComfyUI-Steppe",
8
+ "models": {
9
+ "steppe_flux_2_200M_1step.safetensors": {
10
+ "version": "1.0",
11
+ "kind": "single_step",
12
+ "latent_space": "flux_2",
13
+ "parameters": 192545016,
14
+ "description": "Single step generative 2x latent upscaler for FLUX.2 VAE latents (images), distilled from the 200M base model.",
15
+ "recommended_settings": {
16
+ "hff": 0.9,
17
+ "guidance": 1.0
18
+ }
19
+ },
20
+ "steppe_flux_2_200M_base.safetensors": {
21
+ "version": "1.0",
22
+ "kind": "flow",
23
+ "latent_space": "flux_2",
24
+ "parameters": 192150776,
25
+ "description": "Multi step (rectified flow) generative 2x latent upscaler for FLUX.2 VAE latents (images), classifier free guidance on the high frequency feature.",
26
+ "recommended_settings": {
27
+ "hff": 0.9,
28
+ "guidance": 1.0,
29
+ "steps": 30,
30
+ "shift": 2.0
31
+ }
32
+ },
33
+ "steppe_flux_2_20M_1step.safetensors": {
34
+ "version": "1.0",
35
+ "kind": "single_step",
36
+ "latent_space": "flux_2",
37
+ "parameters": 20171672,
38
+ "description": "Lite single step generative 2x latent upscaler for FLUX.2 VAE latents (images).",
39
+ "recommended_settings": {
40
+ "hff": 0.9,
41
+ "guidance": 1.0
42
+ }
43
+ }
44
+ }
45
+ }
steppe_flux_2_200M_1step.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66adb14dab1db5115f3db3d9ee439ca528d630c92734ecc6542c8284b48a092a
3
+ size 385123048
steppe_flux_2_200M_base.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:971eadbcd75908b904da29c50b7258c3f08501c32812f7c7301a74fe0b11eb2d
3
+ size 384334144
steppe_flux_2_20M_1step.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:639ff10e85b22b31a74170af3fcbe1e81fcde63a99c19921ef2b4a0085cf63b7
3
+ size 40369656