Instructions to use SumomoLee/MOSS-Image-Base-ConvRot-ComfyUI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use SumomoLee/MOSS-Image-Base-ConvRot-ComfyUI with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
MOSS-Image-Base INT8 / INT4 ConvRot for ComfyUI
Browse filesFiles changed (12)
- LICENSEAdded+202
- README.mdAdded+153
- SHA256SUMS.txtAdded+4
- diffusion_models/moss-image-base-dit-int4-convrot.safetensorsAdded+3
- diffusion_models/moss-image-base-dit-int8-convrot.safetensorsAdded+3
- quantize_moss.pyAdded+87
- text_encoders/moss-image-qwen35-int8-convrot.safetensorsAdded+3
- vae/moss-image-vae.safetensorsAdded+3
- workflows/moss-image-base-int4-convrot-api.jsonAdded+123
- workflows/moss-image-base-int4-convrot.jsonAdded+576
- workflows/moss-image-base-int8-convrot-api.jsonAdded+123
- workflows/moss-image-base-int8-convrot.jsonAdded+576
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153---license: apache-2.0base_model: OpenMOSS-Team/MOSS-Image-Basebase_model_relation: quantizedpipeline_tag: text-to-imagelibrary_name: comfyuitags:- comfyui- moss-image- text-to-image- quantized- int8- int4- convrot- hadamard- diffusion-single-file---
# MOSS-Image-Base ConvRot INT8 / INT4 for ComfyUI
ComfyUI-native **INT8 ConvRot** and **INT4 ConvRot (W4A4)** quantizations of[OpenMOSS-Team/MOSS-Image-Base](https://huggingface.co/OpenMOSS-Team/MOSS-Image-Base), the base text-to-image model of the MOSS-Image family by the[OpenMOSS Team](https://github.com/OpenMOSS/MOSS-Image).
These files use the same layouts, tensor names and quantization metadata as the community SFT quantizations below, so they load with the same loaders:
- INT4: [toxicdog/MOSS-Image-SFT-INT4-ConvRot-ComfyUI](https://huggingface.co/toxicdog/MOSS-Image-SFT-INT4-ConvRot-ComfyUI)- INT8: [Abiray/MOSS-Image-SFT-INT8-convrot](https://huggingface.co/Abiray/MOSS-Image-SFT-INT8-convrot)
Both reference repos target **MOSS-Image-SFT**. This repo applies the identical recipe to **MOSS-Image-Base**, the non-post-trained base model,which is the better starting point for LoRA training. As a check, our converter applied to SFT weights reproduces both reference files bit-exactly.
## Files
| File | Variant | Size || :-- | :-- | --: || `diffusion_models/moss-image-base-dit-int8-convrot.safetensors` | DiT, INT8 ConvRot (W8, per-channel) | 5.41 GB (5,413,723,800 bytes) || `diffusion_models/moss-image-base-dit-int4-convrot.safetensors` | DiT, INT4 ConvRot W4A4 | 3.04 GB (3,035,537,344 bytes) || `text_encoders/moss-image-qwen35-int8-convrot.safetensors` | Qwen3.5 text encoder, INT8 ConvRot (optional) | 8.45 GB (8,452,951,644 bytes) || `vae/moss-image-vae.safetensors` | FLUX.2 VAE, unchanged BF16 copy | 0.25 GB (249,521,372 bytes) || `workflows/*.json` | ComfyUI workflows (UI and API format) for each DiT | || `quantize_moss.py` | conversion script | |
The BF16 DiT is ~10.2 GB and the BF16 text encoder ~16.8 GB.MOSS-Image-Base and MOSS-Image-SFT ship byte-identical text encoder and VAE weights, so the text encoder here is identical to the one in the Abiray INT8 repo.You can also keep the BF16 text encoder, exported with the plugin's `export.py`.
## Quantization method
**ConvRot** rotates each linear layer with a block-diagonal, normalized regular Hadamard matrix over groups of the input dimension before quantizing.This spreads per-channel outliers across the group, so plain symmetric absmax quantization works well.Quantization uses [comfy-kitchen](https://github.com/Comfy-Org/comfy-kitchen) 0.2.37 layouts, the same ones ComfyUI uses natively, applied to the FP32-upcast BF16 weights.
**INT8 (`int8_tensorwise` + `convrot`)**, same as Abiray/MOSS-Image-SFT-INT8-convrot- Hadamard rotation group 256, int8 symmetric weights, one FP32 scale per output channel (`weight_scale` [N,1]).- Per-layer config is stored as a `<layer>.comfy_quant` JSON tensor.- At runtime ComfyUI uses an INT8 GEMM on GPUs that support it, otherwise it dequantizes.- Mean relative weight error: DiT 0.868%, text encoder 0.868%.
**INT4 (`convrot_w4a4`)**, same as toxicdog/MOSS-Image-SFT-INT4-ConvRot-ComfyUI- Hadamard rotation group 256, signed int4 weights packed two per byte, one FP32 scale per output channel, kernel group size 64.- Config is stored in the safetensors header `_quantization_metadata`.- At runtime activations are rotated online and quantized to int4 per token, and the matmul runs on int4 tensor cores (**W4A4**).- Mean relative weight error: DiT 15.74%.
**Quantized layers (DiT, both variants):** 252 linears, i.e. attention `proj.q`, `proj.k`, `proj.v`, `proj.o` and MLP `proj.ffn_up_gate` and `proj.ffn_down` in all 42 blocks.
**Kept in original precision (DiT):** text embedder (`text_embedder.*`), time embedding, `shared_block_modulation`, `video_head_modulation`,input embedder (`video_embedder`), output projection (`final_linear_video`), all RMSNorm / q-norm / k-norm weights, and `rope.bands`(FP32 in MOSS-Image-Base, kept as FP32).
**Text encoder (INT8 only):** 309 tensors are quantized: `embed_tokens` (per-row, rotated), all language-model attention / linear-attention / MLP projectionsexcept `linear_attn.in_proj_a` and `in_proj_b`, and the vision-tower block linears. The rotation group is the largest power of 4 (at most 256) that dividesthe input dimension: 256, 64, or 16 for `visual.*.linear_fc2`. Norms, biases, `A_log`, `dt_bias`, `conv1d`, `in_proj_a/b`, the vision merger, patch embed andposition embedding stay BF16.
## Validation
**GPU image-quality and speed benchmarks were not run for this release.** There are no PSNR / SSIM / LPIPS / CLIP numbers,VRAM measurements or s/it figures here. Please evaluate on your own prompts and hardware, and compare against the BF16 model, before relying on these files.INT4 W4A4 also quantizes activations, so expect visible differences from BF16, larger than with INT8.
What was checked:
**Per-layer weight reconstruction error** (relative Frobenius error of the dequantized weight vs the BF16 weight, over all quantized layers):
| File | Quantized layers | Mean rel. error | Max rel. error || :-- | --: | --: | --: || INT8 ConvRot DiT | 252 | 0.868% | 0.980% || INT8 ConvRot text encoder | 309 | 0.868% | 1.020% || INT4 ConvRot W4A4 DiT | 252 | 15.7% | 17.7% |
This measures weight error only. It does not include INT4 activation quantization or the effect on generated images.
**Format fidelity:** the same converter (`quantize_moss.py`), applied to MOSS-Image-SFT layers, reproduces the quantized weights and scales of[toxicdog/MOSS-Image-SFT-INT4-ConvRot-ComfyUI](https://huggingface.co/toxicdog/MOSS-Image-SFT-INT4-ConvRot-ComfyUI) and[Abiray/MOSS-Image-SFT-INT8-convrot](https://huggingface.co/Abiray/MOSS-Image-SFT-INT8-convrot) bit-exactly on the layers tested.The DiT files have the same tensor names, shapes and dtypes and the same quantization configs as those repos. The one difference is `rope.bands`,which is FP32 in MOSS-Image-Base and is kept as FP32. The INT8 text encoder has the same keys, shapes and dtypes as Abiray's, and the tensors sampled are byte-identical.
**ComfyUI load / generate test (CPU only):** in headless ComfyUI `bdc63e7` with the official MOSS-Image plugin `1f808b7`:- Both DiT files and the INT8 text encoder load through `MOSSImageUNETLoader` / `MOSSImageCLIPLoader`.- The files appear in the loader lists.- An API-format prompt (INT4 DiT + INT8 TE + VAE, low resolution, 2 steps) ran end to end and saved an image. The INT8 DiT generated an image the same way.
On CPU, ComfyUI dequantizes instead of using the int8 / int4 GPU kernels. So this test confirms the files are valid and loadable,not GPU kernel behavior, output quality or speed.
## ComfyUI usage
Requirements:- A recent ComfyUI with comfy-kitchen >= 0.2.37. It must have INT4 ConvRot (`convrot_w4a4`) and ConvRot INT8 support; tested with ComfyUI `bdc63e7`.- PyTorch built for CUDA 13.0 or newer, so the comfy-kitchen CUDA kernels are enabled.- The official **MOSS-Image** plugin: search "MOSS-Image" in ComfyUI Manager, or copy [`comfyui/moss-image`](https://github.com/OpenMOSS/MOSS-Image/tree/main/comfyui) into `ComfyUI/custom_nodes/`. Tested with plugin `1f808b7`.
On GPUs or devices without int8 compute, ComfyUI falls back to dequantize-then-matmul. This still saves memory but is not faster.
1. Download the files into your ComfyUI models directory, keeping the folder names: ```python from huggingface_hub import hf_hub_download for f in ["diffusion_models/moss-image-base-dit-int8-convrot.safetensors", # or ...-int4-convrot.safetensors "text_encoders/moss-image-qwen35-int8-convrot.safetensors", "vae/moss-image-vae.safetensors"]: hf_hub_download("SumomoLee/MOSS-Image-Base-ConvRot-ComfyUI", f, local_dir="/path/to/ComfyUI/models") ```2. Load `workflows/moss-image-base-int8-convrot.json` or `workflows/moss-image-base-int4-convrot.json` in ComfyUI. The `*-api.json` files are for the HTTP API.3. The nodes are **MOSS-Image Load Diffusion Model** (`MOSSImageUNETLoader`, keep `weight_dtype = default`), **MOSS-Image Load Qwen3.5** (`MOSSImageCLIPLoader`), and the standard **Load VAE**.
Recommended settings for the base model, from the official user guide: 50 steps, CFG 3 (3 to 6; raise it for short prompts), shift 5 (ModelSamplingSD3),Euler / sgm_uniform, uncond skip-layer guidance on layer 22 (SkipLayerGuidanceDiTSimple), and 1 to 2 MP resolutions in multiples of 16.Recommended negative prompt: `nsfw, worst quality, bad anatomy, watermark, jpeg artifact`.
## Checksums (SHA-256)
```text1f42fac88a1b94f23ea3b49db6149243493ff1d6b962bb599a20417fe4aa71ea diffusion_models/moss-image-base-dit-int4-convrot.safetensorsf47c21a1397f846fa0d01c75e4b88fa6088783b47171399a465d92b1769ba0eb diffusion_models/moss-image-base-dit-int8-convrot.safetensors41e7637a983b624f18c715f558fe24669c5d12d960331b655aeed50e7c609d6c text_encoders/moss-image-qwen35-int8-convrot.safetensorsc3bdf94dc67ec69b30ea9fe1fa8340085679cae64d019f7c7e4a9921f1a7f17a vae/moss-image-vae.safetensors```
## License and attribution
- **Model:** MOSS-Image-Base by the OpenMOSS Team ([Hugging Face](https://huggingface.co/OpenMOSS-Team/MOSS-Image-Base), [GitHub](https://github.com/OpenMOSS/MOSS-Image)), revision `5f40f07a304541840b6019d2d34d30f966756787`, released under the Apache License 2.0. These files are a modified (quantized) derivative of that model. A copy of the license is in [`LICENSE`](LICENSE). All credit for the model goes to the OpenMOSS Team.- **Quantization recipe:** the INT4 ConvRot layout and layer selection follow [toxicdog/MOSS-Image-SFT-INT4-ConvRot-ComfyUI](https://huggingface.co/toxicdog/MOSS-Image-SFT-INT4-ConvRot-ComfyUI). The INT8 ConvRot DiT and text-encoder recipe and the workflow layout follow [Abiray/MOSS-Image-SFT-INT8-convrot](https://huggingface.co/Abiray/MOSS-Image-SFT-INT8-convrot). Both use the ConvRot / comfy-kitchen layouts by Comfy Org.- This is an unofficial community conversion, not affiliated with or endorsed by OpenMOSS. Check output quality on your own prompts before relying on it.12341f42fac88a1b94f23ea3b49db6149243493ff1d6b962bb599a20417fe4aa71ea diffusion_models/moss-image-base-dit-int4-convrot.safetensorsf47c21a1397f846fa0d01c75e4b88fa6088783b47171399a465d92b1769ba0eb diffusion_models/moss-image-base-dit-int8-convrot.safetensors41e7637a983b624f18c715f558fe24669c5d12d960331b655aeed50e7c609d6c text_encoders/moss-image-qwen35-int8-convrot.safetensorsc3bdf94dc67ec69b30ea9fe1fa8340085679cae64d019f7c7e4a9921f1a7f17a vae/moss-image-vae.safetensors123version https://git-lfs.github.com/spec/v1oid sha256:1f42fac88a1b94f23ea3b49db6149243493ff1d6b962bb599a20417fe4aa71easize 3035537344123version https://git-lfs.github.com/spec/v1oid sha256:f47c21a1397f846fa0d01c75e4b88fa6088783b47171399a465d92b1769ba0ebsize 5413723800123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687"""Quantize MOSS-Image components into ComfyUI-native ConvRot formats (comfy-kitchen layouts).
dit int4 : convrot_w4a4 (group 256, kernel group 64), header _quantization_metadata (= toxicdog/MOSS-Image-SFT-INT4-ConvRot-ComfyUI)dit int8 : int8_tensorwise + convrot (per-row scale), per-layer .comfy_quant tensors (= Abiray/MOSS-Image-SFT-INT8-convrot)te int8 : same as Abiray text encoder (embed_tokens + LM linears except in_proj_a/b + vision block linears)"""import argparse, json, os, re, sys, timeimport torchfrom safetensors import safe_openfrom safetensors.torch import save_filefrom comfy_kitchen.tensor import TensorWiseINT8Layout, TensorCoreConvRotW4A4Layout
DIT_RE = re.compile(r"^layers\.\d+\.proj\.(q|k|v|o|ffn_up_gate|ffn_down)\.weight$")TE_RE = re.compile(r"^(language_model\.embed_tokens|language_model\.layers\.\d+\.(linear_attn\.(in_proj_qkv|in_proj_z|out_proj)|mlp\.(gate|up|down)_proj|self_attn\.(q|k|v|o)_proj)|visual\.blocks\.\d+\.(attn\.(qkv|proj)|mlp\.linear_fc[12]))\.weight$")
def te_group(k): for g in (256, 64, 16, 4): if k % g == 0: return g return None
def load_index(d, index): m = json.load(open(os.path.join(d, index)))["weight_map"] by = {} for k, f in m.items(): by.setdefault(f, []).append(k) return by
def main(): ap = argparse.ArgumentParser() ap.add_argument("--component", choices=["dit", "te"], required=True) ap.add_argument("--mode", choices=["int8", "int4"], required=True) ap.add_argument("--src", required=True, help="MOSS-Image pipeline dir") ap.add_argument("--out", required=True) ap.add_argument("--device", default="cpu") ap.add_argument("--threads", type=int, default=32) a = ap.parse_args() torch.set_num_threads(a.threads) if os.path.exists(a.out): sys.exit(f"exists: {a.out}") sub, index = ("transformer", "diffusion_pytorch_model.safetensors.index.json") if a.component == "dit" else ("text_encoder", "model.safetensors.index.json") d = os.path.join(a.src, sub) rx = DIT_RE if a.component == "dit" else TE_RE out, layers, stats = {}, {}, [] t0 = time.time() for fn, keys in sorted(load_index(d, index).items()): with safe_open(os.path.join(d, fn), "pt") as f: for k in sorted(keys): w = f.get_tensor(k) if not rx.match(k): out[k] = w.contiguous() continue name = k[: -len(".weight")] wf = w.to(a.device, torch.float32) if a.mode == "int4": q, p = TensorCoreConvRotW4A4Layout.quantize(wf, convrot_groupsize=256) deq = TensorCoreConvRotW4A4Layout.dequantize(q, p) out[name + ".weight"] = q.cpu().contiguous() out[name + ".weight_scale"] = p.scale.float().reshape(-1).cpu().contiguous() layers[name] = {"format": "convrot_w4a4", "convrot_groupsize": 256, "quant_group_size": 64} else: g = 256 if a.component == "dit" else te_group(wf.shape[1]) q, p = TensorWiseINT8Layout.quantize(wf, is_weight=True, per_channel=True, convrot=True, convrot_groupsize=g) deq = TensorWiseINT8Layout.dequantize(q, p) out[name + ".weight"] = q.cpu().contiguous() out[name + ".weight_scale"] = p.scale.float().reshape(-1, 1).cpu().contiguous() conf = {"format": "int8_tensorwise", "convrot": True, "convrot_groupsize": g} out[name + ".comfy_quant"] = torch.frombuffer(bytearray(json.dumps(conf).encode()), dtype=torch.uint8).clone() layers[name] = conf deq = deq.float() rel = ((deq - wf).norm() / wf.norm()).item() cos = torch.nn.functional.cosine_similarity(deq.flatten(), wf.flatten(), dim=0).item() stats.append((name, list(wf.shape), rel, cos)) print(f"{name} {list(wf.shape)} rel={rel:.5f} cos={cos:.6f}", flush=True) meta = {"format": "pt", "model": "moss-image"} if a.mode == "int4": meta["_quantization_metadata"] = json.dumps({"format_version": "1.0", "layers": layers}) tmp = a.out + ".partial" os.makedirs(os.path.dirname(os.path.abspath(a.out)), exist_ok=True) save_file(out, tmp, metadata=meta) os.rename(tmp, a.out) json.dump(stats, open(a.out + ".stats.json", "w")) rels = [s[2] for s in stats] print(f"DONE {a.out} layers={len(stats)} tensors={len(out)} mean_rel={sum(rels)/len(rels):.5f} max_rel={max(rels):.5f} min_cos={min(s[3] for s in stats):.6f} size={os.path.getsize(a.out)} t={time.time()-t0:.0f}s")
if __name__ == "__main__": main()123version https://git-lfs.github.com/spec/v1oid sha256:41e7637a983b624f18c715f558fe24669c5d12d960331b655aeed50e7c609d6csize 8452951644123version https://git-lfs.github.com/spec/v1oid sha256:c3bdf94dc67ec69b30ea9fe1fa8340085679cae64d019f7c7e4a9921f1a7f17asize 249521372123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123{ "1": { "class_type": "MOSSImageUNETLoader", "inputs": { "unet_name": "moss-image-base-dit-int4-convrot.safetensors", "weight_dtype": "default" } }, "2": { "class_type": "MOSSImageCLIPLoader", "inputs": { "clip_name": "moss-image-qwen35-int8-convrot.safetensors", "device": "default" } }, "3": { "class_type": "VAELoader", "inputs": { "vae_name": "moss-image-vae.safetensors" } }, "4": { "class_type": "CLIPTextEncode", "inputs": { "text": "A red fox sitting in a snowy pine forest at dawn.", "clip": [ "2", 0 ] } }, "5": { "class_type": "CLIPTextEncode", "inputs": { "text": "nsfw, worst quality, bad anatomy, watermark, jpeg artifact", "clip": [ "2", 0 ] } }, "6": { "class_type": "EmptyFlux2LatentImage", "inputs": { "width": 1024, "height": 1024, "batch_size": 1 } }, "15": { "class_type": "ModelSamplingSD3", "inputs": { "shift": 5, "model": [ "1", 0 ] } }, "13": { "class_type": "SkipLayerGuidanceDiTSimple", "inputs": { "double_layers": "", "single_layers": "22", "start_percent": 0, "end_percent": 1, "model": [ "15", 0 ] } }, "16": { "class_type": "KSampler", "inputs": { "seed": 42, "steps": 50, "cfg": 3, "sampler_name": "euler", "scheduler": "sgm_uniform", "denoise": 1, "model": [ "13", 0 ], "positive": [ "4", 0 ], "negative": [ "5", 0 ], "latent_image": [ "6", 0 ] } }, "17": { "class_type": "VAEDecode", "inputs": { "samples": [ "16", 0 ], "vae": [ "3", 0 ] } }, "18": { "class_type": "SaveImage", "inputs": { "filename_prefix": "moss-image-base", "images": [ "17", 0 ] } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576{ "id": "602a9b4a-8b28-4c64-a19e-fb35024af9c8", "revision": 2, "last_node_id": 22, "last_link_id": 30, "nodes": [ { "id": 4, "type": "CLIPTextEncode", "pos": [ 590.980723946239, 282.97746942714315 ], "size": [ 430, 240 ], "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 28 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 18 ] } ], "title": "moss-image Positive", "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "A wide view of a refrigerator beside a kitchen counter with a fruit bowl. A small sticky note on the refrigerator door is handwritten in Chinese:\n\"记得买牛奶和鸡蛋!\n牛奶两盒,鸡蛋一打。\n顺便带一袋面包。\"" ], "widgets_values_named": { "text": "A wide view of a refrigerator beside a kitchen counter with a fruit bowl. A small sticky note on the refrigerator door is handwritten in Chinese:\n\"记得买牛奶和鸡蛋!\n牛奶两盒,鸡蛋一打。\n顺便带一袋面包。\"" } }, { "id": 5, "type": "CLIPTextEncode", "pos": [ 592.3876751767972, 586.4494144007078 ], "size": [ 430, 200 ], "flags": {}, "order": 6, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 29 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 19 ] } ], "title": "moss-image Negative", "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "nsfw, worst quality, bad anatomy, watermark, jpeg artifact" ], "widgets_values_named": { "text": "" } }, { "id": 6, "type": "EmptyFlux2LatentImage", "pos": [ 1076.8709415117667, 40.14629806728207 ], "size": [ 300, 180 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 20 ] } ], "properties": { "Node name for S&R": "EmptyFlux2LatentImage" }, "widgets_values": [ 1024, 1024, 1 ], "widgets_values_named": { "width": 1024, "height": 1024, "batch_size": 1 } }, { "id": 13, "type": "SkipLayerGuidanceDiTSimple", "pos": [ 1085.9671994568102, 810.0057777710338 ], "size": [ 340, 260 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 16 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 17 ] } ], "title": "Uncond skip (empty = off)", "properties": { "Node name for S&R": "SkipLayerGuidanceDiTSimple" }, "widgets_values": [ "", "22", 0, 1 ], "widgets_values_named": { "double_layers": "", "single_layers": "22", "start_percent": 0, "end_percent": 1 } }, { "id": 15, "type": "ModelSamplingSD3", "pos": [ 635.5243515640974, 833.754663701251 ], "size": [ 310, 90 ], "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 27 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 16 ] } ], "title": "Official Flow sigma shift", "properties": { "Node name for S&R": "ModelSamplingSD3" }, "widgets_values": [ 5 ], "widgets_values_named": { "shift": 5 } }, { "id": 16, "type": "KSampler", "pos": [ 1462.4773114331942, 579.4775120615249 ], "size": [ 270, 474 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 17 }, { "name": "positive", "type": "CONDITIONING", "link": 18 }, { "name": "negative", "type": "CONDITIONING", "link": 19 }, { "name": "latent_image", "type": "LATENT", "link": 20 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 22 ] } ], "properties": { "Node name for S&R": "KSampler" }, "widgets_values": [ 42, "fixed", 50, 3, "euler", "sgm_uniform", 1 ], "widgets_values_named": { "seed": 42, "control_after_generate": "fixed", "steps": 50, "cfg": 3, "sampler_name": "euler", "scheduler": "sgm_uniform", "denoise": 1 } }, { "id": 17, "type": "VAEDecode", "pos": [ 1866.0458086602723, 593.1343463769351 ], "size": [ 300, 180 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 22 }, { "name": "vae", "type": "VAE", "link": 30 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 21 ] } ], "properties": { "Node name for S&R": "VAEDecode" } }, { "id": 18, "type": "SaveImage", "pos": [ 2267.030358480412, 597.7554837229761 ], "size": [ 480, 600 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 21 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": [] } ], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "moss-image" ], "widgets_values_named": { "filename_prefix": "moss-image" } }, { "id": 20, "type": "MOSSImageUNETLoader", "pos": [ 108.25581677741914, 534.5600783323451 ], "size": [ 333.183203125, 82 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 27 ] } ], "properties": { "Node name for S&R": "MOSSImageUNETLoader" }, "widgets_values": [ "moss-image-base-dit-int4-convrot.safetensors", "default" ], "widgets_values_named": { "unet_name": "moss-image-sft-dit-int8.safetensors", "weight_dtype": "default" } }, { "id": 21, "type": "MOSSImageCLIPLoader", "pos": [ 103.86961675746264, 699.8493345306907 ], "size": [ 287.8609375, 82 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "links": [ 28, 29 ] } ], "properties": { "Node name for S&R": "MOSSImageCLIPLoader" }, "widgets_values": [ "moss-image-qwen35-int8-convrot.safetensors", "default" ], "widgets_values_named": { "clip_name": "moss-image-sft-qwen35-int8.safetensors", "device": "default" } }, { "id": 22, "type": "VAELoader", "pos": [ 127.82638152549406, 874.154368339856 ], "size": [ 270, 58 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 30 ] } ], "properties": { "Node name for S&R": "VAELoader" }, "widgets_values": [ "moss-image-vae.safetensors" ], "widgets_values_named": { "vae_name": "diffusion_pytorch_model.safetensors" } } ], "links": [ [ 16, 15, 0, 13, 0, "MODEL" ], [ 17, 13, 0, 16, 0, "MODEL" ], [ 18, 4, 0, 16, 1, "CONDITIONING" ], [ 19, 5, 0, 16, 2, "CONDITIONING" ], [ 20, 6, 0, 16, 3, "LATENT" ], [ 21, 17, 0, 18, 0, "IMAGE" ], [ 22, 16, 0, 17, 0, "LATENT" ], [ 27, 20, 0, 15, 0, "MODEL" ], [ 28, 21, 0, 4, 0, "CLIP" ], [ 29, 21, 0, 5, 0, "CLIP" ], [ 30, 22, 0, 17, 1, "VAE" ] ], "groups": [], "config": {}, "extra": { "ds": { "scale": 0.8052550000000055, "offset": [ -622.1472402618422, -410.32581838321397 ] }, "frontendVersion": "1.55.17" }, "version": 0.4}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123{ "1": { "class_type": "MOSSImageUNETLoader", "inputs": { "unet_name": "moss-image-base-dit-int8-convrot.safetensors", "weight_dtype": "default" } }, "2": { "class_type": "MOSSImageCLIPLoader", "inputs": { "clip_name": "moss-image-qwen35-int8-convrot.safetensors", "device": "default" } }, "3": { "class_type": "VAELoader", "inputs": { "vae_name": "moss-image-vae.safetensors" } }, "4": { "class_type": "CLIPTextEncode", "inputs": { "text": "A red fox sitting in a snowy pine forest at dawn.", "clip": [ "2", 0 ] } }, "5": { "class_type": "CLIPTextEncode", "inputs": { "text": "nsfw, worst quality, bad anatomy, watermark, jpeg artifact", "clip": [ "2", 0 ] } }, "6": { "class_type": "EmptyFlux2LatentImage", "inputs": { "width": 1024, "height": 1024, "batch_size": 1 } }, "15": { "class_type": "ModelSamplingSD3", "inputs": { "shift": 5, "model": [ "1", 0 ] } }, "13": { "class_type": "SkipLayerGuidanceDiTSimple", "inputs": { "double_layers": "", "single_layers": "22", "start_percent": 0, "end_percent": 1, "model": [ "15", 0 ] } }, "16": { "class_type": "KSampler", "inputs": { "seed": 42, "steps": 50, "cfg": 3, "sampler_name": "euler", "scheduler": "sgm_uniform", "denoise": 1, "model": [ "13", 0 ], "positive": [ "4", 0 ], "negative": [ "5", 0 ], "latent_image": [ "6", 0 ] } }, "17": { "class_type": "VAEDecode", "inputs": { "samples": [ "16", 0 ], "vae": [ "3", 0 ] } }, "18": { "class_type": "SaveImage", "inputs": { "filename_prefix": "moss-image-base", "images": [ "17", 0 ] } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576{ "id": "602a9b4a-8b28-4c64-a19e-fb35024af9c8", "revision": 2, "last_node_id": 22, "last_link_id": 30, "nodes": [ { "id": 4, "type": "CLIPTextEncode", "pos": [ 590.980723946239, 282.97746942714315 ], "size": [ 430, 240 ], "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 28 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 18 ] } ], "title": "moss-image Positive", "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "A wide view of a refrigerator beside a kitchen counter with a fruit bowl. A small sticky note on the refrigerator door is handwritten in Chinese:\n\"记得买牛奶和鸡蛋!\n牛奶两盒,鸡蛋一打。\n顺便带一袋面包。\"" ], "widgets_values_named": { "text": "A wide view of a refrigerator beside a kitchen counter with a fruit bowl. A small sticky note on the refrigerator door is handwritten in Chinese:\n\"记得买牛奶和鸡蛋!\n牛奶两盒,鸡蛋一打。\n顺便带一袋面包。\"" } }, { "id": 5, "type": "CLIPTextEncode", "pos": [ 592.3876751767972, 586.4494144007078 ], "size": [ 430, 200 ], "flags": {}, "order": 6, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 29 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 19 ] } ], "title": "moss-image Negative", "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "nsfw, worst quality, bad anatomy, watermark, jpeg artifact" ], "widgets_values_named": { "text": "" } }, { "id": 6, "type": "EmptyFlux2LatentImage", "pos": [ 1076.8709415117667, 40.14629806728207 ], "size": [ 300, 180 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 20 ] } ], "properties": { "Node name for S&R": "EmptyFlux2LatentImage" }, "widgets_values": [ 1024, 1024, 1 ], "widgets_values_named": { "width": 1024, "height": 1024, "batch_size": 1 } }, { "id": 13, "type": "SkipLayerGuidanceDiTSimple", "pos": [ 1085.9671994568102, 810.0057777710338 ], "size": [ 340, 260 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 16 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 17 ] } ], "title": "Uncond skip (empty = off)", "properties": { "Node name for S&R": "SkipLayerGuidanceDiTSimple" }, "widgets_values": [ "", "22", 0, 1 ], "widgets_values_named": { "double_layers": "", "single_layers": "22", "start_percent": 0, "end_percent": 1 } }, { "id": 15, "type": "ModelSamplingSD3", "pos": [ 635.5243515640974, 833.754663701251 ], "size": [ 310, 90 ], "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 27 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 16 ] } ], "title": "Official Flow sigma shift", "properties": { "Node name for S&R": "ModelSamplingSD3" }, "widgets_values": [ 5 ], "widgets_values_named": { "shift": 5 } }, { "id": 16, "type": "KSampler", "pos": [ 1462.4773114331942, 579.4775120615249 ], "size": [ 270, 474 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 17 }, { "name": "positive", "type": "CONDITIONING", "link": 18 }, { "name": "negative", "type": "CONDITIONING", "link": 19 }, { "name": "latent_image", "type": "LATENT", "link": 20 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 22 ] } ], "properties": { "Node name for S&R": "KSampler" }, "widgets_values": [ 42, "fixed", 50, 3, "euler", "sgm_uniform", 1 ], "widgets_values_named": { "seed": 42, "control_after_generate": "fixed", "steps": 50, "cfg": 3, "sampler_name": "euler", "scheduler": "sgm_uniform", "denoise": 1 } }, { "id": 17, "type": "VAEDecode", "pos": [ 1866.0458086602723, 593.1343463769351 ], "size": [ 300, 180 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 22 }, { "name": "vae", "type": "VAE", "link": 30 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 21 ] } ], "properties": { "Node name for S&R": "VAEDecode" } }, { "id": 18, "type": "SaveImage", "pos": [ 2267.030358480412, 597.7554837229761 ], "size": [ 480, 600 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 21 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": [] } ], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "moss-image" ], "widgets_values_named": { "filename_prefix": "moss-image" } }, { "id": 20, "type": "MOSSImageUNETLoader", "pos": [ 108.25581677741914, 534.5600783323451 ], "size": [ 333.183203125, 82 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 27 ] } ], "properties": { "Node name for S&R": "MOSSImageUNETLoader" }, "widgets_values": [ "moss-image-base-dit-int8-convrot.safetensors", "default" ], "widgets_values_named": { "unet_name": "moss-image-sft-dit-int8.safetensors", "weight_dtype": "default" } }, { "id": 21, "type": "MOSSImageCLIPLoader", "pos": [ 103.86961675746264, 699.8493345306907 ], "size": [ 287.8609375, 82 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "links": [ 28, 29 ] } ], "properties": { "Node name for S&R": "MOSSImageCLIPLoader" }, "widgets_values": [ "moss-image-qwen35-int8-convrot.safetensors", "default" ], "widgets_values_named": { "clip_name": "moss-image-sft-qwen35-int8.safetensors", "device": "default" } }, { "id": 22, "type": "VAELoader", "pos": [ 127.82638152549406, 874.154368339856 ], "size": [ 270, 58 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 30 ] } ], "properties": { "Node name for S&R": "VAELoader" }, "widgets_values": [ "moss-image-vae.safetensors" ], "widgets_values_named": { "vae_name": "diffusion_pytorch_model.safetensors" } } ], "links": [ [ 16, 15, 0, 13, 0, "MODEL" ], [ 17, 13, 0, 16, 0, "MODEL" ], [ 18, 4, 0, 16, 1, "CONDITIONING" ], [ 19, 5, 0, 16, 2, "CONDITIONING" ], [ 20, 6, 0, 16, 3, "LATENT" ], [ 21, 17, 0, 18, 0, "IMAGE" ], [ 22, 16, 0, 17, 0, "LATENT" ], [ 27, 20, 0, 15, 0, "MODEL" ], [ 28, 21, 0, 4, 0, "CLIP" ], [ 29, 21, 0, 5, 0, "CLIP" ], [ 30, 22, 0, 17, 1, "VAE" ] ], "groups": [], "config": {}, "extra": { "ds": { "scale": 0.8052550000000055, "offset": [ -622.1472402618422, -410.32581838321397 ] }, "frontendVersion": "1.55.17" }, "version": 0.4}LICENSEAdded+202
README.mdAdded+153
SHA256SUMS.txtAdded+4
diffusion_models/moss-image-base-dit-int4-convrot.safetensorsAdded+3
diffusion_models/moss-image-base-dit-int8-convrot.safetensorsAdded+3
quantize_moss.pyAdded+87
text_encoders/moss-image-qwen35-int8-convrot.safetensorsAdded+3
vae/moss-image-vae.safetensorsAdded+3
workflows/moss-image-base-int4-convrot-api.jsonAdded+123
workflows/moss-image-base-int4-convrot.jsonAdded+576
workflows/moss-image-base-int8-convrot-api.jsonAdded+123
workflows/moss-image-base-int8-convrot.jsonAdded+576