j0no12 commited on
Commit
910975d
·
verified ·
1 Parent(s): 4f92ca8

Rewrite model card for clarity

Browse files
Files changed (1) hide show
  1. README.md +85 -139
README.md CHANGED
@@ -11,52 +11,47 @@ tags:
11
  ---
12
 
13
  <p align="center">
14
- <img src="banner.png" alt="Sol Labs — SolPix" width="100%">
15
  </p>
16
 
17
- **A compact latent text-to-image flow transformer from SolIntelligence.**
18
 
19
- SolPix predicts flow in the latent space of the SANA 1.1 DC-AE. This repository
20
- contains its PyTorch implementation, a full training checkpoint, and a small
21
- prompt-to-image example that pairs the model with the matching frozen text
22
- encoder and decoder.
23
 
24
- > **Release v1.0.0:** this published snapshot packages the durable EMA
25
- > checkpoint at optimizer step **210,000**. A separate SolPix 1.1 continuation
26
- > is training from this checkpoint toward step 300,000. That in-progress run is
27
- > not represented by the files in this repository; the public weights remain
28
- > the stable 210,000-step snapshot until a new release is ready.
29
 
30
- ## Model summary
31
 
32
- | | |
33
  |---|---|
34
- | Model | SolPix, approximately 49M parameters |
35
- | Task | Text-conditioned image generation in latent space |
36
- | Objective | Rectified flow matching, sampled with a logit-normal time distribution |
37
- | Image latent | 32 channels, 32× spatial compression; 16×16 grid for 512×512 images |
38
- | Text conditioning | Frozen `google/flan-t5-base` states (768 features, up to 96 tokens) |
 
 
 
 
 
 
 
39
  | Decoder | Frozen SANA 1.1 DC-AE F32C32 |
40
- | Published weights | EMA and raw model weights in `step_00210000.pt` |
41
- | Release | v1.0.0 published snapshot; SolPix 1.1 continuation in progress |
42
- | Saved optimizer step | 210,000 (configured schedule: 5,000,000 steps) |
43
 
44
- SolPix outputs latent velocity predictions, **not RGB pixels**. Use the matching
45
- DC-AE to decode its sampled latents. The text encoder and autoencoder are
46
- external dependencies and are not included in this repository.
47
 
48
- ## Quick start
49
 
50
- The included helper downloads this repository's checkpoint, encodes a prompt
51
- with Flan-T5 Base, samples with Euler integration and classifier-free guidance,
52
- then decodes with the pinned SANA DC-AE revision.
53
 
54
  ```bash
55
  python -m pip install -r requirements.txt
56
  python generate.py --prompt "A glass greenhouse in a quiet garden after rain" --output solpix.png
57
  ```
58
 
59
- For a local checkpoint copy or a different prompt/seed:
60
 
61
  ```bash
62
  python generate.py \
@@ -66,193 +61,144 @@ python generate.py \
66
  --output ./solpix.png
67
  ```
68
 
69
- The helper targets a 512×512 image and defaults to CUDA when available. CPU
70
- inference is supported but will be slow. No quality benchmark is claimed for
71
- this release.
72
-
73
- ## Architecture
74
-
75
- The transformer implementation is `solpix.SolPixTransformer2D`: a 15-block,
76
- 512-wide U-shaped joint text/image transformer. It uses 8 attention heads
77
- (64 dimensions each), a 1,152-wide SwiGLU MLP, seven long skip connections,
78
- shared adaptive layer-normalization conditioning, and depthwise 3×3 local
79
- mixing. The decoder adapter is `solpix.AutoencoderDCSol`, which loads the
80
- external SANA `diffusers.AutoencoderDC`. The text encoder and image autoencoder
81
- remain frozen and outside the approximately 49M-parameter generator.
82
-
83
- The model accepts precomputed text states and noisy autoencoder latents. Its
84
- sampler follows the training convention `x_t = (1 - t) x_clean + t noise`,
85
- integrating from `t=1` down to `t=0`.
86
-
87
- ## Training data and recipe
88
-
89
- The training split was curated from [MONET v1.2.0](https://huggingface.co/datasets/jasperai/monet)
90
- with a deterministic seed of `20260924`. The curation summary records 174,603
91
- training examples and a 9,300-example validation holdout. It used pre-encoded
92
- SANA F32C32 latents and captions encoded with Flan-T5 Base; the images and
93
- dataset shards are **not** redistributed in this model repository.
94
-
95
- The selected source categories were CC12M, CommonCatalog-CC-BY, COYO,
96
- Diffusion-Aesthetic-4K, LAION, and synthetic captions from Flux Klein,
97
- Flux Schnell, and Z-Image. Curation applied resolution, aesthetic, NSFW,
98
- watermark, and near-duplicate filters. The source metadata recorded the
99
- following upstream license labels: CC BY 4.0, Apache 2.0, Google permissive,
100
- and MIT. Those labels describe dataset records. The data shards are not
101
- included here; their original terms remain separate from this repository's
102
- Apache-2.0 license.
103
-
104
- The Windows v1.0 continuation used BF16, batch size 4 per device, gradient
105
- accumulation 16, and one RTX 3080 Ti. The published checkpoint is from step
106
- 210,000. The SolPix 1.1 continuation uses the same curated split and resumes
107
- from this checkpoint toward step 300,000. No final validation benchmark was
108
- completed for v1.0.
109
-
110
- ## Intended use
111
-
112
- Research and experimentation with compact latent text-to-image flow models,
113
- sampling behavior, and small-model training. Treat generated images as model
114
- outputs requiring human review before publication or consequential use.
115
-
116
- ## Limitations
117
-
118
- - The published checkpoint is from step 210,000; prompt following and visual
119
- quality have not been established by a formal evaluation.
120
- - Small capacity and limited training progress may yield weak composition,
121
- artifacts, or poor rendering of fine details and text.
122
- - The model has no built-in safety classifier or content filter.
123
- - The image decoder and text encoder are external, separately licensed
124
- components. Their use is governed by their own model terms.
125
- - Training-data curation does not remove all biases, errors, or unwanted
126
- associations in source captions and images.
127
-
128
- ## Sample gallery
129
 
130
  These are 15 individual images generated by the released SolPix checkpoint, not external examples. Each was sampled at 512×512 with 32 Euler steps and guidance scale 3.5 using the pinned SANA DC-AE decoder. The image files, prompts, seeds, and SHA-256 values are in `samples/`.
131
 
132
  ### Sample 01
133
 
134
- ![SolPix sample 01 — Three Black men sharing french fries at a neighborhood diner, candid documentary photography.](samples/sample_01.png)
135
 
136
  **Prompt:** Three Black men sharing french fries at a neighborhood diner, candid documentary photography.
137
- **Checkpoint:** step 210000 · **Seed:** 260926 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
138
 
139
  ### Sample 02
140
 
141
- ![SolPix sample 02 — A red fox standing in fresh snow beneath pine trees at winter dawn, wildlife photography.](samples/sample_02.png)
142
 
143
  **Prompt:** A red fox standing in fresh snow beneath pine trees at winter dawn, wildlife photography.
144
- **Checkpoint:** step 210000 · **Seed:** 260927 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
145
 
146
  ### Sample 03
147
 
148
- ![SolPix sample 03 — A glass greenhouse filled with ferns after rain, soft natural light, botanical photograph.](samples/sample_03.png)
149
 
150
  **Prompt:** A glass greenhouse filled with ferns after rain, soft natural light, botanical photograph.
151
- **Checkpoint:** step 210000 · **Seed:** 260928 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
152
 
153
  ### Sample 04
154
 
155
- ![SolPix sample 04 — A handmade cobalt blue teapot on a pale stone table, clean studio product photograph.](samples/sample_04.png)
156
 
157
  **Prompt:** A handmade cobalt blue teapot on a pale stone table, clean studio product photograph.
158
- **Checkpoint:** step 210000 · **Seed:** 260929 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
159
 
160
  ### Sample 05
161
 
162
- ![SolPix sample 05 — A white sailboat crossing a calm blue bay at golden hour, fine art landscape photograph.](samples/sample_05.png)
163
 
164
  **Prompt:** A white sailboat crossing a calm blue bay at golden hour, fine art landscape photograph.
165
- **Checkpoint:** step 210000 · **Seed:** 260930 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
166
 
167
  ### Sample 06
168
 
169
- ![SolPix sample 06 — An orange cat curled on a wooden chair in a sunlit bookshop, cozy editorial photograph.](samples/sample_06.png)
170
 
171
  **Prompt:** An orange cat curled on a wooden chair in a sunlit bookshop, cozy editorial photograph.
172
- **Checkpoint:** step 210000 · **Seed:** 260931 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
173
 
174
  ### Sample 07
175
 
176
- ![SolPix sample 07 — A small street cafe reflected in wet pavement at night, warm window light, city photograph.](samples/sample_07.png)
177
 
178
  **Prompt:** A small street cafe reflected in wet pavement at night, warm window light, city photograph.
179
- **Checkpoint:** step 210000 · **Seed:** 260932 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
180
 
181
  ### Sample 08
182
 
183
- ![SolPix sample 08 — A wooden lighthouse on a rocky coast under a cloudy sky, atmospheric landscape photograph.](samples/sample_08.png)
184
 
185
  **Prompt:** A wooden lighthouse on a rocky coast under a cloudy sky, atmospheric landscape photograph.
186
- **Checkpoint:** step 210000 · **Seed:** 260933 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
187
 
188
  ### Sample 09
189
 
190
- ![SolPix sample 09 — A bowl of ripe peaches on a kitchen counter, morning light, natural still life photograph.](samples/sample_09.png)
191
 
192
  **Prompt:** A bowl of ripe peaches on a kitchen counter, morning light, natural still life photograph.
193
- **Checkpoint:** step 210000 · **Seed:** 260934 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
194
 
195
  ### Sample 10
196
 
197
- ![SolPix sample 10 — A snow-covered cabin among tall pine trees at blue hour, quiet winter landscape photograph.](samples/sample_10.png)
198
 
199
  **Prompt:** A snow-covered cabin among tall pine trees at blue hour, quiet winter landscape photograph.
200
- **Checkpoint:** step 210000 · **Seed:** 260935 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
201
 
202
  ### Sample 11
203
 
204
- ![SolPix sample 11 — A baker placing fresh bread on a cooling rack in a bright kitchen, documentary photograph.](samples/sample_11.png)
205
 
206
  **Prompt:** A baker placing fresh bread on a cooling rack in a bright kitchen, documentary photograph.
207
- **Checkpoint:** step 210000 · **Seed:** 260936 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
208
 
209
  ### Sample 12
210
 
211
- ![SolPix sample 12 — A goldfinch perched on a thin branch among spring blossoms, close-up wildlife photograph.](samples/sample_12.png)
212
 
213
  **Prompt:** A goldfinch perched on a thin branch among spring blossoms, close-up wildlife photograph.
214
- **Checkpoint:** step 210000 · **Seed:** 260937 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
215
 
216
  ### Sample 13
217
 
218
- ![SolPix sample 13 — A red bicycle leaning against a brick wall on a leafy neighborhood street, lifestyle photograph.](samples/sample_13.png)
219
 
220
  **Prompt:** A red bicycle leaning against a brick wall on a leafy neighborhood street, lifestyle photograph.
221
- **Checkpoint:** step 210000 · **Seed:** 260938 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
222
 
223
  ### Sample 14
224
 
225
- ![SolPix sample 14 — A lemon cake with a slice cut out on a ceramic plate, bright tabletop food photograph.](samples/sample_14.png)
226
 
227
  **Prompt:** A lemon cake with a slice cut out on a ceramic plate, bright tabletop food photograph.
228
- **Checkpoint:** step 210000 · **Seed:** 260939 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
229
 
230
  ### Sample 15
231
 
232
- ![SolPix sample 15 — A small observatory beneath a clear star-filled sky, distant mountains, night landscape photograph.](samples/sample_15.png)
233
 
234
  **Prompt:** A small observatory beneath a clear star-filled sky, distant mountains, night landscape photograph.
235
- **Checkpoint:** step 210000 · **Seed:** 260940 · **Sampler:** 32 Euler steps · **Guidance:** 3.5
236
-
237
- ## Repository files
238
-
239
- - `step_00210000.pt` — full PyTorch training checkpoint, including EMA and raw
240
- model weights, optimizer state, model configuration, and training arguments.
241
- - `config.json` — SolPix architecture and external encoder/decoder manifest.
242
- - `solpix/` — `SolPixTransformer2D`, `AutoencoderDCSol`, configuration, data,
243
- and training components. `AutoencoderDCSol` wraps the pinned upstream
244
- Diffusers `AutoencoderDC`; its decoder weights are not duplicated here.
245
- - `train.py` and `sample_latents.py` — training and latent-sampling entry
246
- points.
247
- - `generate.py` — prompt-to-image example using the pinned external models.
248
- - `banner.png` — Sol Labs / SolPix banner supplied for this release.
249
- - `samples/` — 15 individual checkpoint-generated PNGs, JSON metadata, and a manifest.
250
- - `LICENSE` and `NOTICE` — Apache-2.0 license and release attribution.
251
 
252
  ## License
253
 
254
- The SolPix source, checkpoint weights, configuration, model card, and supplied
255
- banner in this repository are released under the Apache License 2.0. See
256
- [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE). This license does not relicense
257
- upstream datasets or the separately downloaded Flan-T5 and SANA DC-AE models;
258
- their own terms apply.
 
11
  ---
12
 
13
  <p align="center">
14
+ <img src="banner.png" alt="Sol Labs SolPix" width="100%">
15
  </p>
16
 
17
+ # SolPix
18
 
19
+ SolPix is a roughly 49M-parameter text-to-image flow transformer. It generates latents for the SANA 1.1 DC-AE, with text conditioning from Flan-T5 Base.
 
 
 
20
 
21
+ The repository contains the v1.0.0 checkpoint at optimizer step 210,000. Both EMA and raw weights are stored in `step_00210000.pt`. The separately documented SolPix 1.1 continuation is not included in this snapshot.
 
 
 
 
22
 
23
+ ## Model
24
 
25
+ | Setting | Value |
26
  |---|---|
27
+ | Generator | Approximately 49M parameters |
28
+ | Architecture | 15-block U-shaped joint text/image transformer |
29
+ | Hidden width | 512 |
30
+ | Attention | 8 heads, head dimension 64 |
31
+ | FFN | SwiGLU, width 1,152 |
32
+ | Long skip connections | 7 |
33
+ | Conditioning | Shared adaptive layer normalization |
34
+ | Local mixing | Depthwise 3x3 convolution |
35
+ | Objective | Rectified flow matching with logit-normal time sampling |
36
+ | Image latents | 32 channels, 32x spatial compression |
37
+ | 512x512 latent grid | 16x16 |
38
+ | Text encoder | Frozen `google/flan-t5-base`, 768 features, up to 96 tokens |
39
  | Decoder | Frozen SANA 1.1 DC-AE F32C32 |
40
+ | Saved optimizer step | 210,000 |
41
+ | Configured training schedule | 5,000,000 steps |
 
42
 
43
+ The text encoder and autoencoder are external dependencies and are excluded from the generator's parameter count. `SolPixTransformer2D` predicts latent velocity; `AutoencoderDCSol` loads the matching Diffusers `AutoencoderDC` to decode sampled latents.
 
 
44
 
45
+ ## Use
46
 
47
+ Download this repository and install its requirements:
 
 
48
 
49
  ```bash
50
  python -m pip install -r requirements.txt
51
  python generate.py --prompt "A glass greenhouse in a quiet garden after rain" --output solpix.png
52
  ```
53
 
54
+ To choose a local checkpoint, seed, and sampling settings:
55
 
56
  ```bash
57
  python generate.py \
 
61
  --output ./solpix.png
62
  ```
63
 
64
+ The helper downloads Flan-T5 Base and the pinned SANA DC-AE revision, then samples with Euler integration and classifier-free guidance. It produces a 512x512 image and uses CUDA when available. CPU inference is supported but slow.
65
+
66
+ Sampling follows `x_t = (1 - t) x_clean + t noise`, integrating from `t=1` to `t=0`. Encoder and decoder identifiers and revisions are in `config.json`.
67
+
68
+ ## Training
69
+
70
+ The split was curated from [MONET v1.2.0](https://huggingface.co/datasets/jasperai/monet) with seed `20260924`: 174,603 training examples and a 9,300-example validation holdout. Training used pre-encoded SANA F32C32 latents and Flan-T5 Base caption states.
71
+
72
+ Sources included CC12M, CommonCatalog-CC-BY, COYO, Diffusion-Aesthetic-4K, LAION, and synthetic captions from Flux Klein, Flux Schnell, and Z-Image. Curation applied resolution, aesthetic, NSFW, watermark, and near-duplicate filters. Source records carried CC BY 4.0, Apache 2.0, Google permissive, and MIT license labels. Those labels describe upstream records, not a new license for their contents. Images and dataset shards are not redistributed here.
73
+
74
+ The Windows v1.0 continuation used BF16 on one RTX 3080 Ti, with batch size 4 and gradient accumulation 16. The published checkpoint is step 210,000. The documented 1.1 continuation uses the same split and targets step 300,000.
75
+
76
+ ## Evaluation and limits
77
+
78
+ No formal image-quality or prompt-following benchmark accompanies this checkpoint. The gallery shows generated outputs, not a held-out quality estimate. Expect composition errors, artifacts, and weak rendering of text or fine detail.
79
+
80
+ The model has no built-in safety classifier. Dataset filtering does not remove all source biases or unwanted associations. Flan-T5 and SANA DC-AE have their own licenses and usage terms.
81
+
82
+ ## Samples
83
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
85
  These are 15 individual images generated by the released SolPix checkpoint, not external examples. Each was sampled at 512×512 with 32 Euler steps and guidance scale 3.5 using the pinned SANA DC-AE decoder. The image files, prompts, seeds, and SHA-256 values are in `samples/`.
86
 
87
  ### Sample 01
88
 
89
+ ![SolPix sample 01 - Three Black men sharing french fries at a neighborhood diner, candid documentary photography.](samples/sample_01.png)
90
 
91
  **Prompt:** Three Black men sharing french fries at a neighborhood diner, candid documentary photography.
92
+ Seed: 260926
93
 
94
  ### Sample 02
95
 
96
+ ![SolPix sample 02 - A red fox standing in fresh snow beneath pine trees at winter dawn, wildlife photography.](samples/sample_02.png)
97
 
98
  **Prompt:** A red fox standing in fresh snow beneath pine trees at winter dawn, wildlife photography.
99
+ Seed: 260927
100
 
101
  ### Sample 03
102
 
103
+ ![SolPix sample 03 - A glass greenhouse filled with ferns after rain, soft natural light, botanical photograph.](samples/sample_03.png)
104
 
105
  **Prompt:** A glass greenhouse filled with ferns after rain, soft natural light, botanical photograph.
106
+ Seed: 260928
107
 
108
  ### Sample 04
109
 
110
+ ![SolPix sample 04 - A handmade cobalt blue teapot on a pale stone table, clean studio product photograph.](samples/sample_04.png)
111
 
112
  **Prompt:** A handmade cobalt blue teapot on a pale stone table, clean studio product photograph.
113
+ Seed: 260929
114
 
115
  ### Sample 05
116
 
117
+ ![SolPix sample 05 - A white sailboat crossing a calm blue bay at golden hour, fine art landscape photograph.](samples/sample_05.png)
118
 
119
  **Prompt:** A white sailboat crossing a calm blue bay at golden hour, fine art landscape photograph.
120
+ Seed: 260930
121
 
122
  ### Sample 06
123
 
124
+ ![SolPix sample 06 - An orange cat curled on a wooden chair in a sunlit bookshop, cozy editorial photograph.](samples/sample_06.png)
125
 
126
  **Prompt:** An orange cat curled on a wooden chair in a sunlit bookshop, cozy editorial photograph.
127
+ Seed: 260931
128
 
129
  ### Sample 07
130
 
131
+ ![SolPix sample 07 - A small street cafe reflected in wet pavement at night, warm window light, city photograph.](samples/sample_07.png)
132
 
133
  **Prompt:** A small street cafe reflected in wet pavement at night, warm window light, city photograph.
134
+ Seed: 260932
135
 
136
  ### Sample 08
137
 
138
+ ![SolPix sample 08 - A wooden lighthouse on a rocky coast under a cloudy sky, atmospheric landscape photograph.](samples/sample_08.png)
139
 
140
  **Prompt:** A wooden lighthouse on a rocky coast under a cloudy sky, atmospheric landscape photograph.
141
+ Seed: 260933
142
 
143
  ### Sample 09
144
 
145
+ ![SolPix sample 09 - A bowl of ripe peaches on a kitchen counter, morning light, natural still life photograph.](samples/sample_09.png)
146
 
147
  **Prompt:** A bowl of ripe peaches on a kitchen counter, morning light, natural still life photograph.
148
+ Seed: 260934
149
 
150
  ### Sample 10
151
 
152
+ ![SolPix sample 10 - A snow-covered cabin among tall pine trees at blue hour, quiet winter landscape photograph.](samples/sample_10.png)
153
 
154
  **Prompt:** A snow-covered cabin among tall pine trees at blue hour, quiet winter landscape photograph.
155
+ Seed: 260935
156
 
157
  ### Sample 11
158
 
159
+ ![SolPix sample 11 - A baker placing fresh bread on a cooling rack in a bright kitchen, documentary photograph.](samples/sample_11.png)
160
 
161
  **Prompt:** A baker placing fresh bread on a cooling rack in a bright kitchen, documentary photograph.
162
+ Seed: 260936
163
 
164
  ### Sample 12
165
 
166
+ ![SolPix sample 12 - A goldfinch perched on a thin branch among spring blossoms, close-up wildlife photograph.](samples/sample_12.png)
167
 
168
  **Prompt:** A goldfinch perched on a thin branch among spring blossoms, close-up wildlife photograph.
169
+ Seed: 260937
170
 
171
  ### Sample 13
172
 
173
+ ![SolPix sample 13 - A red bicycle leaning against a brick wall on a leafy neighborhood street, lifestyle photograph.](samples/sample_13.png)
174
 
175
  **Prompt:** A red bicycle leaning against a brick wall on a leafy neighborhood street, lifestyle photograph.
176
+ Seed: 260938
177
 
178
  ### Sample 14
179
 
180
+ ![SolPix sample 14 - A lemon cake with a slice cut out on a ceramic plate, bright tabletop food photograph.](samples/sample_14.png)
181
 
182
  **Prompt:** A lemon cake with a slice cut out on a ceramic plate, bright tabletop food photograph.
183
+ Seed: 260939
184
 
185
  ### Sample 15
186
 
187
+ ![SolPix sample 15 - A small observatory beneath a clear star-filled sky, distant mountains, night landscape photograph.](samples/sample_15.png)
188
 
189
  **Prompt:** A small observatory beneath a clear star-filled sky, distant mountains, night landscape photograph.
190
+ Seed: 260940
191
+
192
+
193
+ ## Files
194
+
195
+ - `step_00210000.pt`: EMA and raw weights, optimizer state, configuration, and training arguments.
196
+ - `solpix/`: transformer, decoder adapter, configuration, data, and training components.
197
+ - `generate.py`: prompt-to-image helper.
198
+ - `train.py` and `sample_latents.py`: training and latent-sampling entry points.
199
+ - `samples/`: 15 generated PNGs and their metadata.
200
+ - `config.json`: architecture and external-model manifest.
 
 
 
 
 
201
 
202
  ## License
203
 
204
+ Repository code, checkpoint weights, configuration, card, and supplied banner are licensed under [Apache 2.0](LICENSE). See [NOTICE](NOTICE) for attribution. This license does not relicense the upstream datasets, Flan-T5, or SANA DC-AE.