Update README.md
Browse files17 unmodified lines1819202122232415 unmodified lines4041424344454647484950515253545556575859606162636465666768697071727374757677787980818215 unmodified lines98991001011021031041051061 unmodified line10810911011111211311417 unmodified lines**GitHub — ComfyUI node, source code, and installation instructions:** [bakapotatolord/moss-image-smaller-encoder](https://github.com/bakapotatolord/moss-image-smaller-encoder)> **Current adapter: fitted on 800 prompts**, with 200 separate validation prompts and 200 held-out test prompts. This is a feature-projection adapter, **not a LoRA or a standalone text-to-image model**. It requires MOSS-Image, a compatible Qwen3.5-4B encoder, and the adapter node. Equivalent quality to the original 9B encoder is not guaranteed.## How it works15 unmodified linesOnly the projection adapter is distributed here. The Qwen encoder and MOSS-Image model weights must be downloaded separately.## Current results — 800 fitting promptsThe current adapter uses a **1,200-prompt dataset**, divided into:| Split | SFW prompts | Adult/NSFW prompts | Total || --- | ---: | ---: | ---: || Training | 400 | 400 | 800 || Validation | 100 | 100 | 200 || Held-out test | 100 | 100 | 200 |Only the **800 training prompts** were used to fit the projection. Validation selected the ridge regularization strength, and the separate test set measured feature reconstruction.The mixed corpus includes prompts from [jtatman/stable-diffusion-prompts-stats-full-uncensored](https://huggingface.co/datasets/jtatman/stable-diffusion-prompts-stats-full-uncensored). SFW/adult categories are based on source labels and text screening; they are not independently verified semantic annotations. Equal prompt counts also do not imply equal token contributions to the fit.### Feature reconstructionOn the 200-prompt held-out test set:| Metric | Result || --- | ---: || Content-token relative L2 error ↓ | 0.4141 || Content-token cosine similarity ↑ | 0.9082 |These metrics measure how closely projected 4B features approximate the original 9B features. **They are not image-quality scores.**### Image comparisonsEight image pairs compare the current 800-prompt adapter against the original 9B encoder using four SFW prompts and two seeds. Each pair uses matching prompts, seeds, and generation settings:- Resolution: **640 × 960**- Sampling: **8 steps, Euler / simple**- CFG: **1**- MOSS Image 8-step DMD LoRA strength: **0.8**The examples retain the main subjects and artistic styles, with differences in composition, typography, and incidental details. They do not establish quality parity with the original encoder.Adult prompts were included in fitting and feature evaluation, but **adult image-generation quality has not been visually evaluated**. Quality with other encoder quantizations, longer prompts, image editing, higher CFG, and other generation settings also remains unestablished.15 unmodified linesThe current adapter filename is:`moss_qwen35_4b_to_9b_800_train.safetensors`You can download it from the [GitHub release](https://github.com/bakapotatolord/moss-image-smaller-encoder/releases/tag/adapter-800-train). If downloading from this Hugging Face repository, select the same filename and verify the checksum below.You only need one copy of the adapter.1 unmodified line<summary>Adapter SHA-256 checksum</summary>```text948ddeaaf051ced32314a704fa0a37e8fc2faf8440abe8e2c9a07090507ae00a```</details>17 unmodified lines1819202122232415 unmodified lines404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919215 unmodified lines1081091101111121131141151161 unmodified line11811912012112212312417 unmodified lines**GitHub — ComfyUI node, source code, and installation instructions:** [bakapotatolord/moss-image-smaller-encoder](https://github.com/bakapotatolord/moss-image-smaller-encoder)> **Current adapter: fitted on 1,600 clean prompts**, with 400 separate validation prompts and 400 held-out test prompts. This is a feature-projection adapter, **not a LoRA or a standalone text-to-image model**. It requires MOSS-Image, a compatible Qwen3.5-4B encoder, and the adapter node. Equivalent quality to the original 9B encoder is not guaranteed.## How it works15 unmodified linesOnly the projection adapter is distributed here. The Qwen encoder and MOSS-Image model weights must be downloaded separately.## Current results — 1,600 fitting promptsThe current adapter uses a **2,400-prompt dataset**, divided into:| Split | SFW prompts | Adult/NSFW prompts | Total || --- | ---: | ---: | ---: || Training | 800 | 800 | 1,600 || Validation | 200 | 200 | 400 || Held-out test | 200 | 200 | 400 |Only the **1,600 training prompts** were used to fit the projection. Validation selected the ridge regularization strength, and the separate test set measured feature reconstruction. Embedded LoRA and hypernetwork invocation tags were removed before feature collection. The test corpus has been examined in earlier experiments.The mixed corpus includes prompts from [jtatman/stable-diffusion-prompts-stats-full-uncensored](https://huggingface.co/datasets/jtatman/stable-diffusion-prompts-stats-full-uncensored). SFW/adult categories are based on source labels and text screening; they are not independently verified semantic annotations. Equal prompt counts also do not imply equal token contributions to the fit.### Feature reconstructionOn the 400-prompt held-out test set:| Metric | Result || --- | ---: || Content-token relative L2 error ↓ | 0.4042 || Content-token cosine similarity ↑ | 0.9126 |On these same 400 test prompts, the clean 800-prompt ridge scored **0.4132 relative L2** and **0.9086 cosine similarity**. Expanding to 1,600 fitting prompts reduces relative L2 error by **2.17%**, with improvements in both SFW and adult-source groups. Adapter size and projection architecture are unchanged.These metrics measure how closely projected 4B features approximate the original 9B features. **They are not image-quality scores**, and the modest numerical improvement does not guarantee visibly better images on every prompt.### Image comparisonsThe single grid below contains **six image pairs**, with **original 9B on the left** and **projected 4B using the 1,600-prompt ridge adapter on the right**. All displayed projected-4B images use the new adapter.- **Portrait and watercolor boats:** two held-out SFW prompts, each shown at seeds **2026101801** and **2026101802**. The projected-4B images were freshly rendered; the original 9B references were reused after checking prompt, seed, noise hash, model/LoRA/VAE identity, runtime and image hashes.- **Artichoke railway and glassblower:** two newly written SFW prompts, each shown at seed **2026101907**. Neither has an exact or substantial substring match in the 2,400-prompt corpus, and each scene's distinctive terms are absent. Generic vocabulary may overlap; absence from encoder pretraining was not assessed.Every pair uses matching prompts, seeds, initial noise and generation settings:- Resolution: **640 × 960**- Sampling: **8 steps, Euler / simple**- CFG: **1**- Sampling shift: **5**- MOSS Image 8-step DMD LoRA strength: **0.8**[](./comparison.png)Click the grid to view the full-resolution **1280 × 6240** image. Full prompts and generation details are also available in the [GitHub comparison manifest](https://github.com/bakapotatolord/moss-image-smaller-encoder/blob/main/images/comparisons.json).The examples retain the main subjects and artistic styles, with differences in composition, geometry, and incidental details. They do not establish quality parity with the original encoder.Adult prompts were included in fitting and feature evaluation, but **adult image-generation quality has not been visually evaluated**. Quality with other encoder quantizations, longer prompts, image editing, higher CFG, and other generation settings also remains unestablished.15 unmodified linesThe current adapter filename is:`moss_qwen35_4b_to_9b_1600_train.safetensors`You can download it from the [GitHub release](https://github.com/bakapotatolord/moss-image-smaller-encoder/releases/tag/adapter-1600-train). To use this version from the Hugging Face repository, select the **1,600-prompt filename** and verify its checksum below. The 800-prompt file is the earlier version, even if both files are present.You only need one copy of the adapter.1 unmodified line<summary>Adapter SHA-256 checksum</summary>```textdf5ed7fa15f4c628ad6cb3539d9cd16d68f198df9cd1e07740e9bd7b162c954b```</details>
README.md+27-17