Rewrite model card for clarity
Browse files
README.md
CHANGED
|
@@ -11,52 +11,47 @@ tags:
|
|
| 11 |
---
|
| 12 |
|
| 13 |
<p align="center">
|
| 14 |
-
<img src="banner.png" alt="Sol Labs
|
| 15 |
</p>
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
SolPix
|
| 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 |
-
|
| 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
|
| 31 |
|
| 32 |
-
| | |
|
| 33 |
|---|---|
|
| 34 |
-
|
|
| 35 |
-
|
|
| 36 |
-
|
|
| 37 |
-
|
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
| Decoder | Frozen SANA 1.1 DC-AE F32C32 |
|
| 40 |
-
|
|
| 41 |
-
|
|
| 42 |
-
| Saved optimizer step | 210,000 (configured schedule: 5,000,000 steps) |
|
| 43 |
|
| 44 |
-
|
| 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 |
-
##
|
| 49 |
|
| 50 |
-
|
| 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 |
-
|
| 60 |
|
| 61 |
```bash
|
| 62 |
python generate.py \
|
|
@@ -66,193 +61,144 @@ python generate.py \
|
|
| 66 |
--output ./solpix.png
|
| 67 |
```
|
| 68 |
|
| 69 |
-
The helper
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
##
|
| 74 |
-
|
| 75 |
-
The
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
The
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
##
|
| 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 |
-
 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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 |
+

|
| 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.
|
|
|
|
|
|
|
|
|
|
|
|