Text-to-Image
Diffusers
Safetensors
English
Chinese
orbitquant
w4a8
4-bit precision
gptq
quantized
moss-image
arxiv:2607.02461
Instructions to use WaveCut/MOSS-Image-SFT-OrbitQuant-W4A8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use WaveCut/MOSS-Image-SFT-OrbitQuant-W4A8 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("WaveCut/MOSS-Image-SFT-OrbitQuant-W4A8", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
MOSS-Image-SFT OrbitQuant W4A8: transformer and text encoder with GPTQ rounding
Browse filesFiles changed (27)
- .gitattributes+3
- LICENSEAdded+202
- README.mdAdded+139
- SHA256SUMSAdded+25
- assets/original_vs_orbitquant_w4a8.webpAdded
- assets/original_vs_orbitquant_w4a8_preview.webpAdded
- manifest.jsonAdded+58
- moss_orbitquant.pyAdded+132
- pipeline_moss_image.pyAdded+440
- requirements.txtAdded+8
- run_moss.pyAdded+42
- scheduler/scheduler_config.jsonAdded+19
- text_encoder/config.jsonAdded+121
- text_encoder/gptq-info.jsonAdded+654
- text_encoder/model.safetensorsAdded+3
- tokenizer/chat_template.jinjaAdded+154
- tokenizer/tokenizer.jsonAdded+3
- tokenizer/tokenizer_config.jsonAdded+32
- transformer/config.jsonAdded+12
- transformer/gptq-info.jsonAdded+1048
- transformer/model.safetensorsAdded+3
- transformer/orbitquant_codebooks.safetensorsAdded+3
- transformer/orbitquant_manifest.jsonAdded+2473
- transformer/orbitquant_rotations.safetensorsAdded+3
- transformer/quantization_config.jsonAdded+38
- vae/config.jsonAdded+45
- vae/diffusion_pytorch_model.safetensorsAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373832 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textassets/original_vs_orbitquant_w4a8.webp filter=lfs diff=lfs merge=lfs -textassets/original_vs_orbitquant_w4a8_preview.webp filter=lfs diff=lfs merge=lfs -texttokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
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.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139---license: apache-2.0base_model: OpenMOSS-Team/MOSS-Image-SFTbase_model_relation: quantizedpipeline_tag: text-to-imagelanguage:- en- zhtags:- orbitquant- w4a8- 4-bit- gptq- quantized- moss-image- text-to-image- arxiv:2607.02461---
# MOSS-Image-SFT OrbitQuant W4A8
[OrbitQuant](https://github.com/iamwavecut/OrbitQuant) 4-bit weights for [MOSS-Image-SFT](https://huggingface.co/OpenMOSS-Team/MOSS-Image-SFT), the OpenMOSS text-to-image model that renders text from prompts in many languages.The transformer and the Qwen3.5 text encoder both run 8-bit activations over 4-bit weights. The 4-bit codes were chosen with GPTQ rounding against calibration prompts that are not in the evaluation set.The runtime uses the model's own pipeline (`pipeline_moss_image.py`, 50 steps, CFG 3) and the ComfyUI-OrbitQuant nodes.The bundle is 8.8 GB. The original is 27.2 GB.
On one RTX 5090 a 1024×1024 image takes 13.7 s with 12.3 GiB of device memory at the peak.With `--offload` the peak is 9.4 GiB and the image takes 16.4 s. The original in BF16 with model offload takes 55.8 s. The [Performance](#performance) section has the details.
## Usage
Use Linux, Python 3.12 and an NVIDIA GPU with compute capability 8.0 or newer. The tested stack is Torch 2.12.1 with CUDA 13.0 on an RTX 5090 (driver 580.178.04).
```bashpython3.12 -m venv .venv && . .venv/bin/activatepip install torch==2.12.1 torchvision==0.27.1 --index-url https://download.pytorch.org/whl/cu130pip install huggingface_hubhf download WaveCut/MOSS-Image-SFT-OrbitQuant-W4A8 --local-dir moss-orbitquantcd moss-orbitquantpip install -r requirements.txt```
Text to image:
```bashpython run_moss.py --prompt '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: "记得买牛奶和鸡蛋!"' --seed 42 --out fridge.png```
Python, inside `moss-orbitquant`:
```pythonimport torchfrom moss_orbitquant import load_pipeline
pipe = load_pipeline(".")image = pipe("A prompt ...", height=1024, width=1024, num_inference_steps=50, guidance_scale=3.0, uncond_skip_layers=[22], generator=torch.Generator("cpu").manual_seed(42)).images[0]image.save("image.png")```
`load_pipeline` returns the original `MOSSImagePipeline`; call it with the original arguments. Options of `run_moss.py` (`load_pipeline` takes the same settings as arguments):
- `--offload`: keep the transformer, the text encoder and the autoencoder in host memory. Each moves to the GPU for its own stage.- `--attention int8`: INT8 Q·K attention. An image takes 12.2 s instead of 13.7 s, and it changes slightly.- `--width`, `--height` (multiples of 16), `--steps`, `--cfg`, `--seed`, `--negative-prompt`.
Sampling defaults follow the original model: 50 Euler steps, CFG 3 with layer 22 skipped in the negative branch, shift 5. The [user guide](https://github.com/OpenMOSS/MOSS-Image/blob/main/USERGUIDE.md) of the original has prompt and resolution advice.
### ComfyUI
[ComfyUI-OrbitQuant](https://github.com/iamwavecut/ComfyUI-OrbitQuant) 0.8.0 lists this release as `WaveCut/MOSS-Image-SFT-OrbitQuant-W4A8`.Connect **OrbitQuant Model Loader** to **OrbitQuant Generate Image** and save the result with a standard save node.The generator runs in the Python environment that `python_executable` selects. Install the packages of the Usage section there.
- `profile`: `default`, `model-offload` or `int8-attention`.- `keep_loaded` (on by default): the worker keeps the model for the next request. On the RTX 5090 the first request took 32.4 s with loading and the next request 15.1 s.
Through ComfyUI v0.41.2 the device peak was 12.8 GiB with `default` and 9.9 GiB with `model-offload` (38.4 s in a new worker), including the 1.0 GiB that the idle ComfyUI server holds. The images were pixel-identical to the output of `run_moss.py`.
## Quality
All numbers compare against the original BF16 model with the same prompt, seed and sampler, at 1024×1024.
| Measure | Result || --- | --- || Mean LPIPS to BF16, 33 images (lower is closer) | 0.190 || Same, 16 images of seed 20261009 (no calibration prompt at this seed) | 0.205 || Two BF16 attention backends against each other, 8 images | 0.055 || Blind checklist, 26 images with 3–7 checks each: OrbitQuant W4A8 / BF16 | 92 / 118 and 93 / 118 checks || Blind preference, 6 portraits and the refrigerator photo: W4A8 / tie / BF16 | 3 / 3 / 1 |
The 33 prompts are 14 tasks of the [OpenRouter Image Benchmarks](https://openrouter.ai/blog/announcements/image-benchmarks/) and two extra tasks (a long Russian text and attribute binding), each at two seeds, plus the refrigerator prompt of the original README.The checklist was judged blind: the two images of each prompt were shown in random order without labels.Most differences are details and layout. The largest loss is in the four-script sign: BF16 rendered the Korean and Arabic lines correctly at both seeds, and W4A8 broke the Arabic line at both seeds and the Korean line at one. Long English and Russian text came out as good as or better than BF16 in this set.
[](assets/original_vs_orbitquant_w4a8.webp)
## Performance
One RTX 5090 (575 W, driver 580.178.04), Torch 2.12.1 with CUDA 13.0. One process per configuration, batch size 1, 1024×1024, 50 steps, CFG 3.Time is the median of 3 runs after 1 warm-up run; for BF16 it is the mean of 2 runs after 1 warm-up run. It covers prompt encoding, sampling and VAE decoding, with CUDA synchronized at both ends.Device peak is the total from NVML at 5 ms intervals, including the CUDA context. Tensor peak is the PyTorch allocator peak. Host RAM is the peak resident set of the process, including loading.
| Configuration | Time | Device peak | Tensor peak | Host RAM peak | Checkpoint || --- | ---: | ---: | ---: | ---: | ---: || **OrbitQuant W4A8** | **13.7 s** | **12.3 GiB** | **11.2 GiB** | **6.5 GiB** | **8.8 GB** || OrbitQuant W4A8, INT8 attention | 12.2 s | 12.3 GiB | 11.2 GiB | 6.5 GiB | 8.8 GB || **OrbitQuant W4A8, offload** | **16.4 s** | **9.4 GiB** | **8.4 GiB** | **14.3 GiB** | **8.8 GB** || BF16 (original), offload | 55.8 s | 16.8 GiB | 15.7 GiB | 31.0 GiB | 27.2 GB |
Sampling alone, with the prompt embeddings computed in advance: 13.5 s for W4A8 and 31.4 s for BF16, with device peaks of 9.7 and 16.9 GiB.The loader keeps the 2 GiB token-embedding table of the text encoder in host memory and enables expandable allocator segments when `PYTORCH_CUDA_ALLOC_CONF` is empty.Transformers prints that `causal_conv1d` and `flash-linear-attention` are missing; the text encoder then uses their reference PyTorch paths, which these measurements include. Other GPUs are untested.
## Components
| Component | Precision | Size || --- | --- | ---: || Transformer, 5.1B parameters | OrbitQuant 4-bit weights with GPTQ rounding and 8-bit activations for the 252 projections of the 42 joint blocks. BF16 input embedders, text refiner, time embedding, shared modulation and output head. | 3.03 GB || Text encoder, Qwen3.5 language model | OrbitQuant 4-bit weights with GPTQ rounding and 8-bit activations for 200 projections. BF16 token embeddings, norms and the small gate projections `in_proj_a` and `in_proj_b`. The vision tower is not included: the pipeline encodes text only. | 5.51 GB || Autoencoder (FLUX.2 small decoder) | FP32, unchanged | 0.25 GB |
With nearest rounding (plain OrbitQuant, no calibration) the 4-bit transformer gave a mean LPIPS of 0.371 on 8 prompts; GPTQ rounding lowered it to 0.209 with the same codebook, bit width and file format.GPTQ calibration: 10 prompts (8 OpenRouter tasks at seed 20261010 and 2 extra text prompts) at 12 of the 50 sampling steps for the transformer; 600 prompts (DrawBench, PartiPrompts, DiffusionDB and 40 multilingual prompts) for the text encoder.`transformer/gptq-info.json` and `text_encoder/gptq-info.json` list the error of each projection group before and after GPTQ rounding.
## Files
- `transformer/`: the packed transformer (`model.safetensors`), its codebooks, rotations, OrbitQuant configuration and manifest, and the original `config.json`.- `text_encoder/`: the quantized Qwen3.5 language model. `tokenizer/`, `scheduler/`, `vae/`: the files of the original model.- `pipeline_moss_image.py`: the original pipeline. `moss_orbitquant.py`: the loader. `run_moss.py`: the command-line entry point. The fused transformer blocks come from `orbitquant` 0.14.- `manifest.json`: the components and the runtime pins. `SHA256SUMS`: the checksums of all files.
## Limits and license
- The fused blocks run one sample at a time, as the original transformer does.- Text in rarer scripts (Arabic and Korean in the evaluation) fails more often than in BF16. Small text, counts and negation can fail, as in the original model.
This release is a quantized version of MOSS-Image-SFT by OpenMOSS under the Apache License 2.0 (see `LICENSE`). OpenMOSS did not create, endorse or validate this release.12345678910111213141516171819202122232425cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE6c7f6bbc5317f88427fbb4a36d784e6bc022f3fc9b1526ea8e7c3fa077730bd8 README.md2f9f6e457782be4e286acb3b8ab2e0fa5ea711bd7dfb4d7705a84369a91885a8 assets/original_vs_orbitquant_w4a8.webpeaaa8ad63bbaeba0c87f1adaa4ddcede77f266f2521da19b2f3a3bf62e11f84f assets/original_vs_orbitquant_w4a8_preview.webp271bf3e9bb3354af5ade0b886911fe6072c31103c4096af2df4b3e370f806cdd manifest.json17dfc772779b692fa7901b0be737f0f7fca7b397bf0be8f7149e8bdf8f7889d1 moss_orbitquant.py1dac1aca9feb1bfdfc727a401e4b67d61a505d3190706d1b7d2d784f88678b31 pipeline_moss_image.py76047421de7f44f3391919ad224ca5df1e499d5211844005b9ff2a8d6cfaaf74 requirements.txt6b4fa663e3fc38110642539a3c6d30e408ab8b8ce2dfa599ec82c27bebc310a8 run_moss.py707322832cc507dfb8c51c0e0cd04d44ee2d30a9b036b6f3c47d6c17aa71adf0 scheduler/scheduler_config.jsone3aff83cd38a875f014ea4fe96d8726014486b3bf5bb3d749376744e19dced1a text_encoder/config.jsonb15bf4268a0489b081ebdce650f9298779dcdfd8801dcc2988483e1c7f883409 text_encoder/gptq-info.json20500a3b0bddc1d1d60fcfc30444210a9907542bcb5a16368f48408a2d776e49 text_encoder/model.safetensorsa4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715 tokenizer/chat_template.jinja06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523 tokenizer/tokenizer.jsonbee8eba30f0eb4af73c0fe2cd06d0f89b657d7819941c438157ec42f7c80ea87 tokenizer/tokenizer_config.json3291c3a1c7adc22b8182a0de25ca8ec97474d72715ce84adbab09cc0be24f666 transformer/config.json64cba9fd501a1d81a1ab1877010c46ba2fe094e4ffffb8c902d25c79e4a085e1 transformer/gptq-info.jsonfa1db04a47b04eda09fd6ff2f0534110c2111bb0dc2b44b4b6d81ecb241301f3 transformer/model.safetensors061d1725029f3f5742de3ffd258512a279e7e60a5da5c69c806c52fa1eedcbab transformer/orbitquant_codebooks.safetensorsb373839c183ebe5591bf71e6ff7f423952288beea334e61dda7378554fe84525 transformer/orbitquant_manifest.json4c8c3e25e2e822da906970e4ba744f3d79ce9576aaffe2ac5eb4521f457ef004 transformer/orbitquant_rotations.safetensors9535aa914d82aa9cc23a5dcec8b4381d89c2cb4d42985905094ecbf0150f5edf transformer/quantization_config.jsoncc77f3f0ce0357039c71018dc19edaa4fcceb0c2f7488fdc2b9c0580d6baafa1 vae/config.jsonc3bdf94dc67ec69b30ea9fe1fa8340085679cae64d019f7c7e4a9921f1a7f17a vae/diffusion_pytorch_model.safetensors12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ "format": "moss-image-orbitquant", "format_version": 1, "source_model": "OpenMOSS-Team/MOSS-Image-SFT", "source_revision": "daf706d2e1c7a6369c17b6d1658671aee6db1ebe", "source_license": "apache-2.0", "runtime": { "orbitquant": "0.14.0", "torch": "2.12.1", "transformers": "5.20.1", "diffusers": "0.41.0" }, "sampling": { "steps": 50, "guidance_scale": 3.0, "uncond_skip_layers": [ 22 ] }, "components": { "transformer": { "precision": "OrbitQuant 4-bit weights with GPTQ rounding; 8-bit activations at run time", "quantized_projections": 252, "bf16": [ "video_embedder", "text_embedder.proj", "text_embedder.blocks.0.qkv", "text_embedder.blocks.0.proj", "text_embedder.blocks.0.ffn_gate", "text_embedder.blocks.0.ffn_up", "text_embedder.blocks.0.ffn_down", "text_embedder.blocks.1.qkv", "text_embedder.blocks.1.proj", "text_embedder.blocks.1.ffn_gate", "text_embedder.blocks.1.ffn_up", "text_embedder.blocks.1.ffn_down", "time_embedding.0", "time_embedding.2", "shared_block_modulation", "final_linear_video", "video_head_modulation" ], "bytes": 3033111154 }, "text_encoder": { "precision": "OrbitQuant 4-bit weights with GPTQ rounding; 8-bit activations at run time", "quantized_projections": 200, "not_included": [ "visual" ], "bytes": 5507989268 }, "vae": { "precision": "FP32 (original)", "bytes": 249522210 } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132"""Load MOSS-Image-SFT with OrbitQuant W4A8 components into the model's own pipeline (``pipeline_moss_image.py``)."""
from __future__ import annotations
import dataclassesimport jsonimport osimport sysfrom pathlib import Path
import torchfrom torch import nn
GROUPS = ("qkv", "mlp", "attn_out", "mlp_out")
def _allocator(device: str) -> None: # Growable segments return the transient blocks of one stage to the next. An explicit setting is left untouched. if not device.startswith("cuda") or {"PYTORCH_CUDA_ALLOC_CONF", "PYTORCH_ALLOC_CONF"} & set(os.environ): return if not torch.cuda.is_initialized(): os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True" else: setter = getattr(torch._C, "_accelerator_setAllocatorSettings", None) (setter or torch.cuda.memory._set_allocator_settings)("expandable_segments:True")
def _load_transformer(path: Path, transformer_class, device: str, fused: bool, attention: str, activation_bits: int): import orbitquant # noqa: F401 -- registers the OrbitQuant layers from orbitquant.adaln import RTNInt4Linear from orbitquant.artifacts.manifest import OrbitQuantManifest from orbitquant.config import OrbitQuantConfig from orbitquant.layers import OrbitQuantLinear from orbitquant.modeling import _parent_and_child, _set_child from safetensors.torch import load_file
config = OrbitQuantConfig.from_dict(json.loads((path / "quantization_config.json").read_text())) manifest = OrbitQuantManifest.from_dict(json.loads((path / "orbitquant_manifest.json").read_text())) with torch.device("meta"): model = transformer_class.from_config(transformer_class.load_config(str(path))) for name in manifest.quantized_modules: bits = manifest.module_bits.get(name) layer_config = dataclasses.replace(config, weight_bits=bits) if bits and bits != config.weight_bits else config parent, child = _parent_and_child(model, name) _set_child(parent, child, OrbitQuantLinear.empty_from_linear( model.get_submodule(name), config=layer_config, module_name=name)) for name in manifest.adaln_modules: parent, child = _parent_and_child(model, name) _set_child(parent, child, RTNInt4Linear.empty_from_linear(model.get_submodule(name), config=config, module_name=name)) model.load_state_dict(load_file(str(path / "model.safetensors"), device=device), strict=True, assign=True) model = model.to(device).eval() if fused: from orbitquant.fused import fuse
widths = dict.fromkeys(GROUPS, activation_bits) if activation_bits != config.activation_bits else None fuse(model, config=config, attention=attention, activation_bits=widths) return model
def _park(model: nn.Module) -> None: """Move a component to host memory right after its GPU build, so the next build does not stack on it.""" from orbitquant.fused import release
release(model) model.to("cpu") torch.cuda.empty_cache()
class HostEmbedding(nn.Module): """Token embedding kept in host memory: a prompt reads a few hundred of its 248k rows, so the 2 GiB table stays off the GPU. The table is not a registered parameter, so moving the text encoder does not move it."""
def __init__(self, embedding: nn.Embedding): super().__init__() self.__dict__["table"] = embedding.weight.detach().to("cpu") self.num_embeddings, self.embedding_dim = self.table.shape
@property def weight(self): return self.table
def forward(self, ids: torch.Tensor) -> torch.Tensor: return nn.functional.embedding(ids.cpu(), self.table).to(ids.device, non_blocking=True)
def _load_text_encoder(path: Path, device: str, fused: bool, activation_bits: int, host_embedding: bool): import orbitquant # noqa: F401 -- registers the OrbitQuant backend with Transformers from transformers import AutoModel
model = AutoModel.from_pretrained(str(path), dtype=torch.bfloat16, device_map={"": device}).eval() if fused: from orbitquant.fused import fuse_linears
fuse_linears(model, activation_bits=activation_bits) if host_embedding: model.embed_tokens = HostEmbedding(model.embed_tokens) return model
def load_pipeline(path: str | Path, device: str = "cuda", attention: str = "cudnn", offload: bool = False, fused: bool | None = None, activation_bits: int = 8, host_embedding: bool = True): """MOSS-Image pipeline with the W4A8 transformer and text encoder; call it as the original pipeline.
``attention`` is ``cudnn`` (default), ``flash``, ``sdpa`` or ``int8`` (faster, changes the image slightly). ``offload`` keeps the components in host memory and moves each to the GPU only while it runs. ``fused=None`` fuses the projections on CUDA devices with compute capability 8.0 or newer (needed for 8-bit activations).""" path = Path(path) _allocator(device) if str(path) not in sys.path: sys.path.insert(0, str(path)) from diffusers import AutoencoderKLFlux2 from pipeline_moss_image import MOSSImagePipeline, MOSSImageScheduler, MOSSImageTransformer from transformers import AutoTokenizer
if fused is None: fused = device.startswith("cuda") and torch.cuda.get_device_capability(device) >= (8, 0) # The transformer is fused on the GPU even with offload: on the host the group build runs many small parallel # copies, which stall for minutes when a container's CPU quota is far below its visible core count. transformer = _load_transformer(path / "transformer", MOSSImageTransformer, device, fused, attention, activation_bits) if offload: _park(transformer) text_encoder = _load_text_encoder(path / "text_encoder", device, fused, activation_bits, host_embedding) if offload: _park(text_encoder) vae = AutoencoderKLFlux2.from_pretrained(str(path / "vae"), torch_dtype=torch.float32) vae = vae.to("cpu" if offload else device).eval() tokenizer = AutoTokenizer.from_pretrained(str(path / "tokenizer")) pipeline = MOSSImagePipeline(transformer, MOSSImageScheduler(), text_encoder, tokenizer, vae) if offload: pipeline.enable_model_cpu_offload(device=device) torch.cuda.empty_cache() return pipeline123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440"""MOSSImage modeling and text-to-image pipeline (no Motor/TorchTitan imports).
Dependencies: torch>=2.9, diffusers>=0.38, transformers>=5.3, safetensors,accelerate, Pillow. Copy this file anywhere and import it normally.
import torch # Import MOSSImagePipeline from this file for component-level loading. pipe = MOSSImagePipeline.from_components_pretrained( transformer_path="exported_transformer", # save_pretrained directory text_encoder_path="Qwen/Qwen3.5-9B", vae_path="black-forest-labs/FLUX.2-klein-4B", ).to("cuda") pipe("A cat", generator=torch.Generator("cuda").manual_seed(42)).images[0].save("cat.png")
Default guidance uses CFG 3 and skips block 22 only in the negative branch(zero-based main DiT block indices; two forwards per sampling step): pipe("A cat", guidance_scale=3.0, uncond_skip_layers=[22]) pipe("A cat", uncond_skip_layers=[]) # disable negative-branch skippingOptional additional positive-branch SLG adds a third forward: pipe("A cat", slg_layers=[24], slg_scale=3.0)The additional SLG layer/scale above illustrates the API, not a quality-tuned setting.
For a consolidated training state dict, create MOSSImageTransformer andcall load_training_state_dict(state), then save_pretrained("exported_transformer").Select raw or EMA weights explicitly before calling it; distributed checkpointshards/optimizer states are not model state dicts. Defaults match the finalized dense MOSSImage model,not MoE, CFG-distilled, video, or reference-image variants. Prompt strings arealready-rendered captions (dataset-specific quality/domain tags are not added).
First-release defaults: bf16 DiT/text-encoder weights, fp32 RoPE frequenciesand phase/sin/cos calculation, then RoPE cast to the video activation dtype.Initial Gaussian noise is sampled directly in fp32, including with bf16 weights.CFG and Euler latent updates use fp32; VAE decoding defaults to fp32. Schedulershift defaults to 5.0. Exact numerical parity with the original fp32-masterinference pipeline is not a release requirement."""from __future__ import annotations
import mathfrom pathlib import Path
import torchfrom torch import nnfrom torch.nn import functional as Ffrom diffusers import AutoencoderKLFlux2, DiffusionPipeline, FlowMatchEulerDiscreteSchedulerfrom diffusers.schedulers.scheduling_utils import SchedulerMixin # Required by custom-component discovery.from diffusers.configuration_utils import ConfigMixin, register_to_configfrom diffusers.image_processor import VaeImageProcessorfrom diffusers.models.modeling_utils import ModelMixinfrom diffusers.models.modeling_outputs import Transformer2DModelOutputfrom diffusers.pipelines.pipeline_utils import ImagePipelineOutputfrom diffusers.utils.torch_utils import randn_tensorfrom transformers import AutoModel, AutoTokenizer
class _RMSNorm(nn.Module): def __init__(self, dim): super().__init__() self.weight = nn.Parameter(torch.ones(dim))
def forward(self, x): y = x.float() * torch.rsqrt(x.float().square().mean(-1, keepdim=True) + 1e-6) return y.to(x.dtype) * self.weight
def _situ(hidden, gate): return (4.0 * torch.tanh(gate / 4.0) * torch.sigmoid(gate)) * (25.0 * torch.tanh(hidden / 25.0))
def _validate_skip_layers(layers, depth, name='skip_layers'): layers = () if layers is None else tuple(layers) if any(type(index) is not int or not 0 <= index < depth for index in layers): raise ValueError(f'{name} must contain integer block indices in [0, {depth}).') return frozenset(layers)
def _rotate(x, rope): sin, cos = rope.chunk(2, -1) sin = torch.cat((sin, sin), -1).unsqueeze(-2) cos = torch.cat((cos, cos), -1).unsqueeze(-2) a, b = x.chunk(2, -1) return x * cos + torch.cat((-b, a), -1) * sin
def _attention(q, k, v, rope, heads): shape = (*q.shape[:2], heads, q.shape[-1] // heads) q = _rotate(q.reshape(shape), rope).transpose(1, 2) k = _rotate(k.reshape(shape), rope).transpose(1, 2) v = v.reshape(shape).transpose(1, 2) return F.scaled_dot_product_attention(q.to(v.dtype), k.to(v.dtype), v).transpose(1, 2).flatten(2)
class _TextBlock(nn.Module): def __init__(self, dim, ffn_dim, heads): super().__init__() self.heads = heads self.norm1, self.norm2 = _RMSNorm(dim), _RMSNorm(dim) self.q_norm, self.k_norm = _RMSNorm(dim // heads), _RMSNorm(dim // heads) self.qkv = nn.Linear(dim, 3 * dim) self.proj = nn.Linear(dim, dim) self.ffn_gate, self.ffn_up = nn.Linear(dim, ffn_dim), nn.Linear(dim, ffn_dim) self.ffn_down = nn.Linear(ffn_dim, dim)
def forward(self, x, rope): q, k, v = self.qkv(self.norm1(x)).chunk(3, -1) q = self.q_norm(q.unflatten(-1, (self.heads, -1))).flatten(2) k = self.k_norm(k.unflatten(-1, (self.heads, -1))).flatten(2) x = x + self.proj(_attention(q, k, v, rope, self.heads)) y = self.norm2(x) return x + self.ffn_down(_situ(self.ffn_up(y), self.ffn_gate(y)))
class _TextProjection(nn.Module): def __init__(self, text_dim, dim, ffn_dim, heads): super().__init__() self.proj = nn.Linear(text_dim, dim) self.blocks = nn.ModuleList([_TextBlock(dim, ffn_dim, heads) for _ in range(2)])
def forward(self, x, rope): x = self.proj(x.to(self.proj.weight.dtype)) for block in self.blocks: x = block(x, rope) return x
class _Block(nn.Module): def __init__(self, dim, ffn_dim, heads): super().__init__() self.heads = heads self.norm1, self.norm2 = _RMSNorm(dim), _RMSNorm(dim) self.q_norm, self.k_norm = _RMSNorm(dim // heads), _RMSNorm(dim // heads) self.proj = nn.ModuleDict({ name: nn.Linear(dim, dim, bias=False) for name in ('q', 'k', 'v', 'o') }) self.proj['ffn_up_gate'] = nn.Linear(dim, 2 * ffn_dim, bias=False) self.proj['ffn_down'] = nn.Linear(ffn_dim, dim, bias=False)
def forward(self, x, rope, modulation): shift_a, scale_a, gate_a, shift_f, scale_f, gate_f = modulation.unbind(1) y = self.norm1(x) * (1 + scale_a[:, None]) + shift_a[:, None] dtype = self.proj['q'].weight.dtype y = y.to(dtype) q = self.q_norm(self.proj['q'](y).unflatten(-1, (self.heads, -1))).flatten(2) k = self.k_norm(self.proj['k'](y).unflatten(-1, (self.heads, -1))).flatten(2) x = x + self.proj['o'](_attention(q, k, self.proj['v'](y), rope, self.heads)) * gate_a[:, None] y = self.norm2(x) * (1 + scale_f[:, None]) + shift_f[:, None] hidden, gate = self.proj['ffn_up_gate'](y.to(dtype)).chunk(2, -1) return x + self.proj['ffn_down'](_situ(hidden, gate)) * gate_f[:, None]
class _RoPE(nn.Module): def __init__(self, head_dim, base): super().__init__() self.num_bands = head_dim // 8 self.base = base self.register_buffer('bands', self._default_bands(torch.device('cpu')))
def _default_bands(self, device): # Match training's CPU fp32 construction, including under meta init. exponent = torch.arange(self.num_bands, device='cpu', dtype=torch.float32) / self.num_bands return (1 / (self.base ** exponent)).to(device)
def _apply(self, fn, recurse=True): super()._apply(fn, recurse=recurse) # .float() cannot recover frequencies already rounded by .to(bf16). self.bands = self._default_bands(self.bands.device) return self
def _load_from_state_dict(self, *args, **kwargs): super()._load_from_state_dict(*args, **kwargs) # Frequencies are derived constants; retain the key for checkpoint compatibility. self.bands = self._default_bands(self.bands.device)
def forward(self, height, width, text_length, device): # Diffusers/Accelerate can install tensors directly, bypassing load hooks. if self.bands.dtype != torch.float32: self.bands = self._default_bands(device) # Coordinates: (r, f, h, w); sequence order is image followed by text. h, w = torch.meshgrid(torch.arange(height, device=device), torch.arange(width, device=device), indexing='ij') image = torch.stack((torch.zeros_like(h), torch.full_like(h, text_length), h, w), -1).flatten(0, 1).float() image[:, 2] -= (height - 1) / 2 image[:, 3] -= (width - 1) / 2 text = torch.zeros(text_length, 4, device=device, dtype=torch.float32) text[:, 1] = torch.arange(text_length, device=device) phase = torch.cat((image, text), 0).unsqueeze(-1) * self.bands return torch.cat((phase.sin(), phase.cos()), -2).flatten(-2).unsqueeze(0)
class MOSSImageTransformer(ModelMixin, ConfigMixin): """MOSSImage DiT with training-compatible state-dict names and SDPA attention.
Each sample is evaluated at its true text length, including text refinement; padded tokens cannot influence either text or joint attention. """ @register_to_config def __init__(self, dim=3072, ffn_dim=8192, num_heads=24, num_layers=42, text_dim=4096, freq_dim=256, latent_channels=128, rope_base=10000.0): super().__init__() if dim % num_heads or (dim // num_heads) % 8 or freq_dim % 2: raise ValueError('Require dim divisible by heads, head_dim divisible by 8, and even freq_dim.') self.video_embedder = nn.Linear(latent_channels, dim) self.text_embedder = _TextProjection(text_dim, dim, ffn_dim, num_heads) self.rope = _RoPE(dim // num_heads, rope_base) self.time_embedding = nn.Sequential(nn.Linear(freq_dim, dim), nn.SiLU(), nn.Linear(dim, dim)) self.shared_block_modulation = nn.Linear(dim, 6 * dim) self.layers = nn.ModuleList([_Block(dim, ffn_dim, num_heads) for _ in range(num_layers)]) self.final_norm_video = _RMSNorm(dim) self.final_linear_video = nn.Linear(dim, latent_channels, bias=False) self.video_head_modulation = nn.Linear(dim, 2 * dim)
def load_training_state_dict(self, state_dict, *, prefix=''): """Load a consolidated raw/EMA model mapping, strictly; no silent key drops.""" if prefix: if any(not key.startswith(prefix) for key in state_dict): raise ValueError('All keys must start with the explicit prefix.') state_dict = {key[len(prefix):]: value for key, value in state_dict.items()} return self.load_state_dict(state_dict, strict=True)
def forward(self, hidden_states, timestep, encoder_hidden_states, encoder_attention_mask=None, return_dict=True, skip_layers=None): skip_layers = _validate_skip_layers(skip_layers, len(self.layers)) if hidden_states.ndim != 4 or hidden_states.shape[1] != self.config.latent_channels: raise ValueError('hidden_states must be [B, latent_channels, H, W].') batch, _, height, width = hidden_states.shape if encoder_hidden_states.ndim != 3 or encoder_hidden_states.shape[0] != batch: raise ValueError('encoder_hidden_states must be [B, S, text_dim].') mask = encoder_attention_mask if mask is None: mask = torch.ones(encoder_hidden_states.shape[:2], dtype=torch.bool, device=hidden_states.device) if mask.shape != encoder_hidden_states.shape[:2] or not torch.all((mask == 0) | (mask == 1)): raise ValueError('encoder_attention_mask must be a binary [B, S] mask.') times = torch.as_tensor(timestep, device=hidden_states.device, dtype=torch.float32).reshape(-1) times = times.expand(batch) # Training computes the sinusoid in float64 and feeds float32 into its MLP. half = self.config.freq_dim // 2 freq = 10000 ** (-torch.arange(half, device=times.device, dtype=torch.float64) / half) phase = times.double()[:, None] * freq embedding = torch.cat((phase.cos(), phase.sin()), -1).float() time = self.time_embedding(embedding.to(self.time_embedding[0].weight.dtype)).float() mod = self.shared_block_modulation(time.to(self.shared_block_modulation.weight.dtype)).view(batch, 6, -1) head = self.video_head_modulation(time.to(self.video_head_modulation.weight.dtype)).view(batch, 2, -1) outputs = [] for index in range(batch): context = encoder_hidden_states[index:index + 1, mask[index].bool()] if context.shape[1] == 0: raise ValueError('Each sample needs at least one valid text token.') video = hidden_states[index:index + 1].flatten(2).transpose(1, 2) video = self.video_embedder(video.to(self.video_embedder.weight.dtype).contiguous()) # Match the reference activation dtype under fp32 weights + autocast. rope = self.rope(height, width, context.shape[1], hidden_states.device).to(video.dtype) text = self.text_embedder(context, rope[:, height * width:]) x = torch.cat((video, text), 1) for layer_index, layer in enumerate(self.layers): if layer_index not in skip_layers: x = layer(x, rope, mod[index:index + 1]) x = self.final_norm_video(x[:, :height * width].to(self.final_norm_video.weight.dtype)) x = x * (1 + head[index:index + 1, 1, None]) + head[index:index + 1, 0, None] x = self.final_linear_video(x.to(self.final_linear_video.weight.dtype)) outputs.append(x.transpose(1, 2).reshape(1, -1, height, width)) sample = torch.cat(outputs) return Transformer2DModelOutput(sample=sample) if return_dict else (sample,)
class MOSSImageScheduler(FlowMatchEulerDiscreteScheduler): """Euler integration using the training project's V2, nearest-grid schedule.""" @register_to_config def __init__(self, num_train_timesteps=1000, shift=5.0, training_shift=1.0): super().__init__(num_train_timesteps=num_train_timesteps, shift=1.0) self.register_to_config(shift=shift, training_shift=training_shift)
def set_timesteps(self, num_inference_steps=50, device=None): if num_inference_steps < 1 or self.config.shift <= 0 or self.config.training_shift <= 0: raise ValueError('Steps and shifts must be positive.') total = self.config.num_train_timesteps def grid(count, shift): lower = shift / (total + shift - 1) values = torch.linspace(1, lower, count) return shift * values / (1 + (shift - 1) * values) sigmas = grid(num_inference_steps, self.config.shift) training = grid(total, self.config.training_shift).flip(0) upper = torch.searchsorted(training, sigmas).clamp(max=total - 1) lower = (upper - 1).clamp(min=0) nearest = torch.where((sigmas - training[lower]).abs() <= (training[upper] - sigmas).abs(), lower, upper) sigmas = torch.unique_consecutive(training[nearest]) # Our sigmas have already been shifted and snapped. Avoid a second shift. self._shift = 1.0 super().set_timesteps(device=device, sigmas=sigmas.tolist())
class MOSSImagePipeline(DiffusionPipeline): model_cpu_offload_seq = 'text_encoder->transformer->vae' _optional_components = ['text_encoder', 'tokenizer', 'vae']
def __init__(self, transformer: MOSSImageTransformer, scheduler: MOSSImageScheduler, text_encoder=None, tokenizer=None, vae=None): super().__init__() self.register_modules(transformer=transformer, scheduler=scheduler, text_encoder=text_encoder, tokenizer=tokenizer, vae=vae) self.image_processor = VaeImageProcessor(vae_scale_factor=16)
@classmethod def from_components_pretrained(cls, transformer_path, text_encoder_path, vae_path, torch_dtype=torch.bfloat16, vae_dtype=torch.float32, local_files_only=False): common = dict(local_files_only=local_files_only) transformer = MOSSImageTransformer.from_pretrained(transformer_path, torch_dtype=torch_dtype, **common) tokenizer = AutoTokenizer.from_pretrained(text_encoder_path, **common) text_encoder = AutoModel.from_pretrained(text_encoder_path, dtype=torch_dtype, **common).eval() subfolder = None if (Path(vae_path) / 'config.json').is_file() else 'vae' vae = AutoencoderKLFlux2.from_pretrained(vae_path, subfolder=subfolder, torch_dtype=vae_dtype, **common).eval() return cls(transformer.eval(), MOSSImageScheduler(), text_encoder, tokenizer, vae)
@torch.no_grad() def encode_prompt(self, prompt, max_sequence_length=4096): if self.text_encoder is None or self.tokenizer is None: raise ValueError('Text encoder/tokenizer required for string prompts.') prompts = [prompt] if isinstance(prompt, str) else list(prompt) if not prompts or not all(isinstance(p, str) for p in prompts): raise ValueError('prompt must be a string or a nonempty list of strings.') rows = [] # Unpadded individual forwards also avoid padding effects in Qwen GDN. for value in prompts: formatted = self.tokenizer.apply_chat_template( [{'role': 'user', 'content': value}], tokenize=False, add_generation_prompt=True, enable_thinking=True) inputs = self.tokenizer(formatted, return_tensors='pt', truncation=True, max_length=max_sequence_length).to(self._execution_device) output = self.text_encoder(**inputs, use_cache=False, return_dict=True) rows.append(output.last_hidden_state[0]) length = max(row.shape[0] for row in rows) embeds = rows[0].new_zeros(len(rows), length, rows[0].shape[-1]) mask = torch.zeros(len(rows), length, device=embeds.device, dtype=torch.bool) for index, row in enumerate(rows): embeds[index, :row.shape[0]] = row mask[index, :row.shape[0]] = True return embeds, mask
@torch.no_grad() def __call__(self, prompt=None, *, height=1024, width=1024, num_inference_steps=50, guidance_scale=3.0, negative_prompt='', num_images_per_prompt=1, generator=None, latents=None, prompt_embeds=None, prompt_attention_mask=None, negative_prompt_embeds=None, negative_prompt_attention_mask=None, max_sequence_length=4096, output_type='pil', return_dict=True, uncond_skip_layers=(22,), slg_layers=None, slg_scale=0.0, slg_start=0.0, slg_stop=1.0): """Generate images with optional full-block skipping (zero-based indices).
uncond_skip_layers defaults to (22,) and replaces CFG's negative-prompt prediction with a skipped-block prediction, retaining two forwards per step. Pass None or an empty sequence to disable skipping. slg_layers adds a skipped positive-prompt forward and the fp32 correction slg_scale * (cond - cond_skip) to CFG. With guidance_scale=1, active SLG uses cond_skip + slg_scale * (cond - cond_skip), matching Diffusers' default SkipLayerGuidance formulation, with two forwards and no negative branch. Both options can combine. slg_scale=1 then gives normal cond. Both uncond skipping and SLG are active where slg_start <= step_index / num_steps < slg_stop; the interval follows denoising order, from initial noise to final image. Outside it, inference uses normal CFG without skipping. slg_scale=0 or empty slg_layers disables the additional forward. """ uncond_skip_layers = _validate_skip_layers( uncond_skip_layers, len(self.transformer.layers), 'uncond_skip_layers') slg_layers = _validate_skip_layers(slg_layers, len(self.transformer.layers), 'slg_layers') if not math.isfinite(slg_scale) or slg_scale < 0: raise ValueError('slg_scale must be finite and nonnegative.') if not 0 <= slg_start <= slg_stop <= 1: raise ValueError('Require 0 <= slg_start <= slg_stop <= 1.') if height <= 0 or width <= 0 or height % 16 or width % 16: raise ValueError('height and width must be positive multiples of 16.') if output_type not in {'pil', 'np', 'pt', 'latent'}: raise ValueError('output_type must be pil, np, pt or latent.') if num_images_per_prompt < 1 or not math.isfinite(guidance_scale) or guidance_scale < 0: raise ValueError('Invalid image count or guidance scale.') if not 1 <= max_sequence_length <= 4096: raise ValueError('max_sequence_length must be between 1 and 4096.') if (prompt is None) == (prompt_embeds is None): raise ValueError('Provide exactly one of prompt and prompt_embeds.') device = self._execution_device if prompt_embeds is None: prompt_embeds, prompt_attention_mask = self.encode_prompt(prompt, max_sequence_length) batch = prompt_embeds.shape[0] def prepare(embeds, mask): if embeds.ndim != 3 or embeds.shape[0] != batch: raise ValueError('Prompt embeddings must be [B, S, C] with matching batch size.') if mask is None: mask = torch.ones(embeds.shape[:2], dtype=torch.bool, device=embeds.device) return (embeds.to(device).repeat_interleave(num_images_per_prompt, 0), mask.to(device).repeat_interleave(num_images_per_prompt, 0)) positive, positive_mask = prepare(prompt_embeds, prompt_attention_mask) do_cfg = guidance_scale != 1.0 if do_cfg: if negative_prompt_embeds is None: negatives = [negative_prompt] * batch if isinstance(negative_prompt, str) else negative_prompt if len(negatives) != batch: raise ValueError('negative_prompt must match prompt batch size.') negative_prompt_embeds, negative_prompt_attention_mask = self.encode_prompt(negatives, max_sequence_length) negative, negative_mask = prepare(negative_prompt_embeds, negative_prompt_attention_mask) shape = (batch * num_images_per_prompt, self.transformer.config.latent_channels, height // 16, width // 16) if latents is None: # Sample in fp32: promoting bf16 noise afterward cannot restore its precision. latents = randn_tensor(shape, generator=generator, device=device, dtype=torch.float32) elif tuple(latents.shape) != shape: raise ValueError(f'latents must have shape {shape}.') else: latents = latents.to(device=device, dtype=torch.float32) self.scheduler.set_timesteps(num_inference_steps, device=device) num_steps = len(self.scheduler.timesteps) for step_index, timestep in enumerate(self.progress_bar(self.scheduler.timesteps)): skip_active = slg_start <= step_index / num_steps < slg_stop # CFG must combine fp32 predictions, even when the DiT runs in bf16. # Converting only the combined velocity would preserve rounding errors. prediction = self.transformer(latents, timestep, positive, positive_mask).sample.float() conditional = prediction if do_cfg: skip_kwargs = {'skip_layers': uncond_skip_layers} if uncond_skip_layers and skip_active else {} uncond = self.transformer(latents, timestep, negative, negative_mask, **skip_kwargs).sample.float() prediction = uncond + guidance_scale * (prediction - uncond) if slg_layers and slg_scale > 0 and skip_active: skipped = self.transformer( latents, timestep, positive, positive_mask, skip_layers=slg_layers).sample.float() if not do_cfg: prediction = skipped prediction = prediction + slg_scale * (conditional - skipped) latents = self.scheduler.step(prediction, timestep, latents, return_dict=False)[0] if output_type == 'latent': images = latents else: if self.vae is None: raise ValueError('A FLUX.2 VAE is required for decoded output.') z = latents.to(dtype=self.vae.dtype) bn = self.vae.bn eps = self.vae.config.batch_norm_eps z = z * (bn.running_var + eps).sqrt().to(z).view(1, -1, 1, 1) + bn.running_mean.to(z).view(1, -1, 1, 1) b, c, h, w = z.shape z = z.reshape(b, c // 4, 2, 2, h, w).permute(0, 1, 4, 2, 5, 3).reshape(b, c // 4, 2 * h, 2 * w) images = self.vae.decode(z, return_dict=False)[0].clamp(-1, 1) images = self.image_processor.postprocess(images, output_type=output_type) self.maybe_free_model_hooks() return ImagePipelineOutput(images=images) if return_dict else (images,)12345678orbitquant[hf]==0.14.0transformers==5.20.1diffusers==0.41.0huggingface_hubsafetensorsacceleratepillownumpy123456789101112131415161718192021222324252627282930313233343536373839404142"""Generate one image with MOSS-Image-SFT OrbitQuant W4A8.
python run_moss.py --prompt "A cat" --out cat.png [--width 1024 --height 1024 --steps 50 --cfg 3 --seed 42]"""import argparseimport osimport sysimport timefrom pathlib import Path
os.environ.setdefault("PYTORCH_CUDA_ALLOC_CONF", "expandable_segments:True")
import torch # noqa: E402
HERE = Path(__file__).resolve().parentsys.path.insert(0, str(HERE))from moss_orbitquant import load_pipeline # noqa: E402
ap = argparse.ArgumentParser()ap.add_argument("--model", default=str(HERE), help="release directory")ap.add_argument("--prompt", required=True)ap.add_argument("--negative-prompt", default="")ap.add_argument("--width", type=int, default=1024)ap.add_argument("--height", type=int, default=1024)ap.add_argument("--steps", type=int, default=50)ap.add_argument("--cfg", type=float, default=3.0)ap.add_argument("--seed", type=int, default=42)ap.add_argument("--attention", default="cudnn", choices=["cudnn", "flash", "sdpa", "int8"])ap.add_argument("--offload", action="store_true", help="keep components in host memory between stages")ap.add_argument("--out", default="image.png")args = ap.parse_args()
t0 = time.perf_counter()pipe = load_pipeline(args.model, attention=args.attention, offload=args.offload)print(f"loaded in {time.perf_counter() - t0:.1f} s", flush=True)t0 = time.perf_counter()image = pipe(args.prompt, height=args.height, width=args.width, num_inference_steps=args.steps, guidance_scale=args.cfg, negative_prompt=args.negative_prompt, uncond_skip_layers=[22], generator=torch.Generator("cpu").manual_seed(args.seed)).images[0]torch.cuda.synchronize()print(f"generated in {time.perf_counter() - t0:.1f} s, device peak {torch.cuda.max_memory_allocated() / 2**30:.2f} GiB", flush=True)image.save(args.out)12345678910111213141516171819{ "_class_name": "MOSSImageScheduler", "_diffusers_version": "0.38.0", "base_image_seq_len": 256, "base_shift": 0.5, "invert_sigmas": false, "max_image_seq_len": 4096, "max_shift": 1.15, "num_train_timesteps": 1000, "shift": 5.0, "shift_terminal": null, "stochastic_sampling": false, "time_shift_type": "exponential", "training_shift": 1.0, "use_beta_sigmas": false, "use_dynamic_shifting": false, "use_exponential_sigmas": false, "use_karras_sigmas": false}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121{ "architectures": [ "Qwen3_5TextModel" ], "attention_bias": false, "attention_dropout": 0.0, "attn_output_gate": true, "bos_token_id": null, "dtype": "bfloat16", "eos_token_id": 248044, "full_attention_interval": 4, "head_dim": 256, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 12288, "layer_types": [ "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention" ], "linear_conv_kernel_dim": 4, "linear_key_head_dim": 128, "linear_num_key_heads": 16, "linear_num_value_heads": 32, "linear_value_head_dim": 128, "mamba_ssm_dtype": "float32", "max_position_embeddings": 262144, "mlp_only_layers": [], "model_type": "qwen3_5_text", "mtp_num_hidden_layers": 1, "mtp_use_dedicated_embeddings": false, "num_attention_heads": 16, "num_hidden_layers": 32, "num_key_value_heads": 4, "pad_token_id": null, "quantization_config": { "activation_bits": 4, "activation_eps": 1e-10, "activation_kernel_backend": "auto", "activation_norm_dtype": "float32", "adaln_group_size": 64, "adaln_policy": "int4_rtn", "artifact_format_version": 1, "block_size": "paper", "codebook": "lloyd_max", "codebook_dtype": "float32", "codebook_version": 2, "fused_layout": null, "lowbit_boundary_protection": "auto", "lowbit_interior_protection": "auto", "lowbit_protected_bits": 4, "lowbit_protected_blocks": 4, "modules_dtype_dict": {}, "modules_to_convert": [], "modules_to_not_convert": [ "in_proj_a", "in_proj_b" ], "modules_to_use_adaln": [], "packed_matmul_block_k": 128, "packed_matmul_block_m": 64, "packed_matmul_block_n": 64, "packed_matmul_num_warps": 4, "quant_method": "orbitquant", "rotation": "rpbh", "rotation_seed": 0, "row_norm_dtype": "bfloat16", "runtime_mode": "auto_fused", "target_policy": "universal", "w4a4_int8_weight_cache": false, "weight_bits": 4, "weight_pack_dtype": "uint8", "weight_row_tile_size": 256 }, "rms_norm_eps": 1e-06, "rope_parameters": { "mrope_interleaved": true, "mrope_section": [ 11, 11, 10 ], "partial_rotary_factor": 0.25, "rope_theta": 10000000, "rope_type": "default" }, "tie_word_embeddings": false, "transformers_version": "5.20.1", "use_cache": true, "vocab_size": 248320}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654{ "prompts": 600, "tokens": 21829, "damp": 0.01, "chunk": 8, "sequential": true, "groups": { "layers.0.linear_attn.in_proj_qkv": { "rtn": 0.001601, "gptq": 0.000249, "damp": 0.009999999776482582 }, "layers.0.linear_attn.out_proj": { "rtn": 0.003866, "gptq": 4.5e-05, "damp": 0.009999999776482582 }, "layers.0.mlp.gate_proj": { "rtn": 0.006393, "gptq": 0.001384, "damp": 0.009999999776482582 }, "layers.0.mlp.down_proj": { "rtn": 0.003788, "gptq": 0.000436, "damp": 0.009999999776482582 }, "layers.1.linear_attn.in_proj_qkv": { "rtn": 0.012253, "gptq": 0.000733, "damp": 0.009999999776482582 }, "layers.1.linear_attn.out_proj": { "rtn": 0.002667, "gptq": 0.000492, "damp": 0.009999999776482582 }, "layers.1.mlp.gate_proj": { "rtn": 0.00693, "gptq": 0.001846, "damp": 0.009999999776482582 }, "layers.1.mlp.down_proj": { "rtn": 0.006888, "gptq": 0.001332, "damp": 0.009999999776482582 }, "layers.2.linear_attn.in_proj_qkv": { "rtn": 0.011632, "gptq": 0.000905, "damp": 0.009999999776482582 }, "layers.2.linear_attn.out_proj": { "rtn": 0.006217, "gptq": 0.001083, "damp": 0.009999999776482582 }, "layers.2.mlp.gate_proj": { "rtn": 0.007538, "gptq": 0.002235, "damp": 0.009999999776482582 }, "layers.2.mlp.down_proj": { "rtn": 0.008113, "gptq": 0.000752, "damp": 0.009999999776482582 }, "layers.3.self_attn.q_proj": { "rtn": 0.002717, "gptq": 0.000169, "damp": 0.009999999776482582 }, "layers.3.self_attn.o_proj": { "rtn": 0.001891, "gptq": 0.000157, "damp": 0.009999999776482582 }, "layers.3.mlp.gate_proj": { "rtn": 0.006958, "gptq": 0.002129, "damp": 0.009999999776482582 }, "layers.3.mlp.down_proj": { "rtn": 0.007789, "gptq": 0.001564, "damp": 0.009999999776482582 }, "layers.4.linear_attn.in_proj_qkv": { "rtn": 0.010648, "gptq": 0.001284, "damp": 0.009999999776482582 }, "layers.4.linear_attn.out_proj": { "rtn": 0.007482, "gptq": 0.001562, "damp": 0.009999999776482582 }, "layers.4.mlp.gate_proj": { "rtn": 0.009073, "gptq": 0.00201, "damp": 0.009999999776482582 }, "layers.4.mlp.down_proj": { "rtn": 0.008731, "gptq": 0.001728, "damp": 0.009999999776482582 }, "layers.5.linear_attn.in_proj_qkv": { "rtn": 0.009389, "gptq": 0.000888, "damp": 0.009999999776482582 }, "layers.5.linear_attn.out_proj": { "rtn": 0.012583, "gptq": 0.00148, "damp": 0.009999999776482582 }, "layers.5.mlp.gate_proj": { "rtn": 0.008706, "gptq": 0.001707, "damp": 0.009999999776482582 }, "layers.5.mlp.down_proj": { "rtn": 0.007878, "gptq": 0.001781, "damp": 0.009999999776482582 }, "layers.6.linear_attn.in_proj_qkv": { "rtn": 0.008068, "gptq": 0.000697, "damp": 0.009999999776482582 }, "layers.6.linear_attn.out_proj": { "rtn": 0.015936, "gptq": 0.000639, "damp": 0.009999999776482582 }, "layers.6.mlp.gate_proj": { "rtn": 0.010188, "gptq": 0.001371, "damp": 0.009999999776482582 }, "layers.6.mlp.down_proj": { "rtn": 0.010008, "gptq": 0.000807, "damp": 0.009999999776482582 }, "layers.7.self_attn.q_proj": { "rtn": 0.003735, "gptq": 0.00021, "damp": 0.009999999776482582 }, "layers.7.self_attn.o_proj": { "rtn": 0.009451, "gptq": 0.001129, "damp": 0.009999999776482582 }, "layers.7.mlp.gate_proj": { "rtn": 0.007419, "gptq": 0.001337, "damp": 0.009999999776482582 }, "layers.7.mlp.down_proj": { "rtn": 0.008043, "gptq": 0.001801, "damp": 0.009999999776482582 }, "layers.8.linear_attn.in_proj_qkv": { "rtn": 0.007941, "gptq": 0.000791, "damp": 0.009999999776482582 }, "layers.8.linear_attn.out_proj": { "rtn": 0.011114, "gptq": 0.002313, "damp": 0.009999999776482582 }, "layers.8.mlp.gate_proj": { "rtn": 0.008482, "gptq": 0.001436, "damp": 0.009999999776482582 }, "layers.8.mlp.down_proj": { "rtn": 0.008219, "gptq": 0.001786, "damp": 0.009999999776482582 }, "layers.9.linear_attn.in_proj_qkv": { "rtn": 0.007078, "gptq": 0.000646, "damp": 0.009999999776482582 }, "layers.9.linear_attn.out_proj": { "rtn": 0.013095, "gptq": 0.001971, "damp": 0.009999999776482582 }, "layers.9.mlp.gate_proj": { "rtn": 0.009299, "gptq": 0.001488, "damp": 0.009999999776482582 }, "layers.9.mlp.down_proj": { "rtn": 0.008131, "gptq": 0.001798, "damp": 0.009999999776482582 }, "layers.10.linear_attn.in_proj_qkv": { "rtn": 0.007152, "gptq": 0.000603, "damp": 0.009999999776482582 }, "layers.10.linear_attn.out_proj": { "rtn": 0.011701, "gptq": 0.001312, "damp": 0.009999999776482582 }, "layers.10.mlp.gate_proj": { "rtn": 0.010376, "gptq": 0.00136, "damp": 0.009999999776482582 }, "layers.10.mlp.down_proj": { "rtn": 0.008947, "gptq": 0.000995, "damp": 0.009999999776482582 }, "layers.11.self_attn.q_proj": { "rtn": 0.004199, "gptq": 0.000225, "damp": 0.009999999776482582 }, "layers.11.self_attn.o_proj": { "rtn": 0.016331, "gptq": 0.001506, "damp": 0.009999999776482582 }, "layers.11.mlp.gate_proj": { "rtn": 0.009307, "gptq": 0.001284, "damp": 0.009999999776482582 }, "layers.11.mlp.down_proj": { "rtn": 0.008282, "gptq": 0.001729, "damp": 0.009999999776482582 }, "layers.12.linear_attn.in_proj_qkv": { "rtn": 0.007186, "gptq": 0.000531, "damp": 0.009999999776482582 }, "layers.12.linear_attn.out_proj": { "rtn": 0.013316, "gptq": 0.002409, "damp": 0.009999999776482582 }, "layers.12.mlp.gate_proj": { "rtn": 0.009153, "gptq": 0.001209, "damp": 0.009999999776482582 }, "layers.12.mlp.down_proj": { "rtn": 0.008848, "gptq": 0.001734, "damp": 0.009999999776482582 }, "layers.13.linear_attn.in_proj_qkv": { "rtn": 0.006928, "gptq": 0.000495, "damp": 0.009999999776482582 }, "layers.13.linear_attn.out_proj": { "rtn": 0.011886, "gptq": 0.002231, "damp": 0.009999999776482582 }, "layers.13.mlp.gate_proj": { "rtn": 0.00963, "gptq": 0.001229, "damp": 0.009999999776482582 }, "layers.13.mlp.down_proj": { "rtn": 0.008818, "gptq": 0.001661, "damp": 0.009999999776482582 }, "layers.14.linear_attn.in_proj_qkv": { "rtn": 0.007298, "gptq": 0.000494, "damp": 0.009999999776482582 }, "layers.14.linear_attn.out_proj": { "rtn": 0.010473, "gptq": 0.001344, "damp": 0.009999999776482582 }, "layers.14.mlp.gate_proj": { "rtn": 0.010755, "gptq": 0.001149, "damp": 0.009999999776482582 }, "layers.14.mlp.down_proj": { "rtn": 0.007766, "gptq": 0.001227, "damp": 0.009999999776482582 }, "layers.15.self_attn.q_proj": { "rtn": 0.003974, "gptq": 0.000215, "damp": 0.009999999776482582 }, "layers.15.self_attn.o_proj": { "rtn": 0.017837, "gptq": 0.001287, "damp": 0.009999999776482582 }, "layers.15.mlp.gate_proj": { "rtn": 0.010293, "gptq": 0.001182, "damp": 0.009999999776482582 }, "layers.15.mlp.down_proj": { "rtn": 0.008099, "gptq": 0.001345, "damp": 0.009999999776482582 }, "layers.16.linear_attn.in_proj_qkv": { "rtn": 0.007046, "gptq": 0.000509, "damp": 0.009999999776482582 }, "layers.16.linear_attn.out_proj": { "rtn": 0.012942, "gptq": 0.001851, "damp": 0.009999999776482582 }, "layers.16.mlp.gate_proj": { "rtn": 0.009323, "gptq": 0.001109, "damp": 0.009999999776482582 }, "layers.16.mlp.down_proj": { "rtn": 0.008972, "gptq": 0.001345, "damp": 0.009999999776482582 }, "layers.17.linear_attn.in_proj_qkv": { "rtn": 0.006286, "gptq": 0.00045, "damp": 0.009999999776482582 }, "layers.17.linear_attn.out_proj": { "rtn": 0.011461, "gptq": 0.001775, "damp": 0.009999999776482582 }, "layers.17.mlp.gate_proj": { "rtn": 0.009453, "gptq": 0.00106, "damp": 0.009999999776482582 }, "layers.17.mlp.down_proj": { "rtn": 0.009385, "gptq": 0.001206, "damp": 0.009999999776482582 }, "layers.18.linear_attn.in_proj_qkv": { "rtn": 0.007008, "gptq": 0.000486, "damp": 0.009999999776482582 }, "layers.18.linear_attn.out_proj": { "rtn": 0.01192, "gptq": 0.001033, "damp": 0.009999999776482582 }, "layers.18.mlp.gate_proj": { "rtn": 0.008478, "gptq": 0.000766, "damp": 0.009999999776482582 }, "layers.18.mlp.down_proj": { "rtn": 0.008764, "gptq": 0.000668, "damp": 0.009999999776482582 }, "layers.19.self_attn.q_proj": { "rtn": 0.003836, "gptq": 0.000254, "damp": 0.009999999776482582 }, "layers.19.self_attn.o_proj": { "rtn": 0.009501, "gptq": 0.000589, "damp": 0.009999999776482582 }, "layers.19.mlp.gate_proj": { "rtn": 0.007108, "gptq": 0.000807, "damp": 0.009999999776482582 }, "layers.19.mlp.down_proj": { "rtn": 0.00924, "gptq": 0.000965, "damp": 0.009999999776482582 }, "layers.20.linear_attn.in_proj_qkv": { "rtn": 0.004126, "gptq": 0.000379, "damp": 0.009999999776482582 }, "layers.20.linear_attn.out_proj": { "rtn": 0.012, "gptq": 0.000835, "damp": 0.009999999776482582 }, "layers.20.mlp.gate_proj": { "rtn": 0.006033, "gptq": 0.000781, "damp": 0.009999999776482582 }, "layers.20.mlp.down_proj": { "rtn": 0.009448, "gptq": 0.001235, "damp": 0.009999999776482582 }, "layers.21.linear_attn.in_proj_qkv": { "rtn": 0.004038, "gptq": 0.000417, "damp": 0.009999999776482582 }, "layers.21.linear_attn.out_proj": { "rtn": 0.012091, "gptq": 0.000888, "damp": 0.009999999776482582 }, "layers.21.mlp.gate_proj": { "rtn": 0.00579, "gptq": 0.000801, "damp": 0.009999999776482582 }, "layers.21.mlp.down_proj": { "rtn": 0.009449, "gptq": 0.001191, "damp": 0.009999999776482582 }, "layers.22.linear_attn.in_proj_qkv": { "rtn": 0.004116, "gptq": 0.000471, "damp": 0.009999999776482582 }, "layers.22.linear_attn.out_proj": { "rtn": 0.010257, "gptq": 0.000827, "damp": 0.009999999776482582 }, "layers.22.mlp.gate_proj": { "rtn": 0.004498, "gptq": 0.000618, "damp": 0.009999999776482582 }, "layers.22.mlp.down_proj": { "rtn": 0.008549, "gptq": 0.000507, "damp": 0.009999999776482582 }, "layers.23.self_attn.q_proj": { "rtn": 0.003514, "gptq": 0.000365, "damp": 0.009999999776482582 }, "layers.23.self_attn.o_proj": { "rtn": 0.011313, "gptq": 0.00114, "damp": 0.009999999776482582 }, "layers.23.mlp.gate_proj": { "rtn": 0.00496, "gptq": 0.000875, "damp": 0.009999999776482582 }, "layers.23.mlp.down_proj": { "rtn": 0.009189, "gptq": 0.001229, "damp": 0.009999999776482582 }, "layers.24.linear_attn.in_proj_qkv": { "rtn": 0.003562, "gptq": 0.000546, "damp": 0.009999999776482582 }, "layers.24.linear_attn.out_proj": { "rtn": 0.010468, "gptq": 0.000917, "damp": 0.009999999776482582 }, "layers.24.mlp.gate_proj": { "rtn": 0.004748, "gptq": 0.000897, "damp": 0.009999999776482582 }, "layers.24.mlp.down_proj": { "rtn": 0.009615, "gptq": 0.001346, "damp": 0.009999999776482582 }, "layers.25.linear_attn.in_proj_qkv": { "rtn": 0.003197, "gptq": 0.000512, "damp": 0.009999999776482582 }, "layers.25.linear_attn.out_proj": { "rtn": 0.010927, "gptq": 0.001031, "damp": 0.009999999776482582 }, "layers.25.mlp.gate_proj": { "rtn": 0.004411, "gptq": 0.00087, "damp": 0.009999999776482582 }, "layers.25.mlp.down_proj": { "rtn": 0.009658, "gptq": 0.001245, "damp": 0.009999999776482582 }, "layers.26.linear_attn.in_proj_qkv": { "rtn": 0.003484, "gptq": 0.000604, "damp": 0.009999999776482582 }, "layers.26.linear_attn.out_proj": { "rtn": 0.010898, "gptq": 0.000813, "damp": 0.009999999776482582 }, "layers.26.mlp.gate_proj": { "rtn": 0.004409, "gptq": 0.000884, "damp": 0.009999999776482582 }, "layers.26.mlp.down_proj": { "rtn": 0.008563, "gptq": 0.000413, "damp": 0.009999999776482582 }, "layers.27.self_attn.q_proj": { "rtn": 0.003347, "gptq": 0.000446, "damp": 0.009999999776482582 }, "layers.27.self_attn.o_proj": { "rtn": 0.016413, "gptq": 0.000514, "damp": 0.009999999776482582 }, "layers.27.mlp.gate_proj": { "rtn": 0.004398, "gptq": 0.000935, "damp": 0.009999999776482582 }, "layers.27.mlp.down_proj": { "rtn": 0.007826, "gptq": 0.00085, "damp": 0.009999999776482582 }, "layers.28.linear_attn.in_proj_qkv": { "rtn": 0.002794, "gptq": 0.000529, "damp": 0.009999999776482582 }, "layers.28.linear_attn.out_proj": { "rtn": 0.012065, "gptq": 0.000749, "damp": 0.009999999776482582 }, "layers.28.mlp.gate_proj": { "rtn": 0.004195, "gptq": 0.000865, "damp": 0.009999999776482582 }, "layers.28.mlp.down_proj": { "rtn": 0.010167, "gptq": 0.001278, "damp": 0.009999999776482582 }, "layers.29.linear_attn.in_proj_qkv": { "rtn": 0.003321, "gptq": 0.000622, "damp": 0.009999999776482582 }, "layers.29.linear_attn.out_proj": { "rtn": 0.0104, "gptq": 0.000825, "damp": 0.009999999776482582 }, "layers.29.mlp.gate_proj": { "rtn": 0.003742, "gptq": 0.000743, "damp": 0.009999999776482582 }, "layers.29.mlp.down_proj": { "rtn": 0.010005, "gptq": 0.001044, "damp": 0.009999999776482582 }, "layers.30.linear_attn.in_proj_qkv": { "rtn": 0.002981, "gptq": 0.00049, "damp": 0.009999999776482582 }, "layers.30.linear_attn.out_proj": { "rtn": 0.010443, "gptq": 0.000422, "damp": 0.009999999776482582 }, "layers.30.mlp.gate_proj": { "rtn": 0.003345, "gptq": 0.000607, "damp": 0.009999999776482582 }, "layers.30.mlp.down_proj": { "rtn": 0.009635, "gptq": 0.000706, "damp": 0.009999999776482582 }, "layers.31.self_attn.q_proj": { "rtn": 0.002148, "gptq": 0.000334, "damp": 0.009999999776482582 }, "layers.31.self_attn.o_proj": { "rtn": 0.011071, "gptq": 0.000703, "damp": 0.009999999776482582 }, "layers.31.mlp.gate_proj": { "rtn": 0.002334, "gptq": 0.000388, "damp": 0.009999999776482582 }, "layers.31.mlp.down_proj": { "rtn": 0.006, "gptq": 0.000167, "damp": 0.009999999776482582 } }, "mean": { "rtn": 0.008025, "gptq": 0.000997 }, "seconds": 241.9}123version https://git-lfs.github.com/spec/v1oid sha256:20500a3b0bddc1d1d60fcfc30444210a9907542bcb5a16368f48408a2d776e49size 5507971640123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154{%- set image_count = namespace(value=0) %}{%- set video_count = namespace(value=0) %}{%- macro render_content(content, do_vision_count, is_system_content=false) %} {%- if content is string %} {{- content }} {%- elif content is iterable and content is not mapping %} {%- for item in content %} {%- if 'image' in item or 'image_url' in item or item.type == 'image' %} {%- if is_system_content %} {{- raise_exception('System message cannot contain images.') }} {%- endif %} {%- if do_vision_count %} {%- set image_count.value = image_count.value + 1 %} {%- endif %} {%- if add_vision_id %} {{- 'Picture ' ~ image_count.value ~ ': ' }} {%- endif %} {{- '<|vision_start|><|image_pad|><|vision_end|>' }} {%- elif 'video' in item or item.type == 'video' %} {%- if is_system_content %} {{- raise_exception('System message cannot contain videos.') }} {%- endif %} {%- if do_vision_count %} {%- set video_count.value = video_count.value + 1 %} {%- endif %} {%- if add_vision_id %} {{- 'Video ' ~ video_count.value ~ ': ' }} {%- endif %} {{- '<|vision_start|><|video_pad|><|vision_end|>' }} {%- elif 'text' in item %} {{- item.text }} {%- else %} {{- raise_exception('Unexpected item type in content.') }} {%- endif %} {%- endfor %} {%- elif content is none or content is undefined %} {{- '' }} {%- else %} {{- raise_exception('Unexpected content type.') }} {%- endif %}{%- endmacro %}{%- if not messages %} {{- raise_exception('No messages provided.') }}{%- endif %}{%- if tools and tools is iterable and tools is not mapping %} {{- '<|im_start|>system\n' }} {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>" }} {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }} {%- if messages[0].role == 'system' %} {%- set content = render_content(messages[0].content, false, true)|trim %} {%- if content %} {{- '\n\n' + content }} {%- endif %} {%- endif %} {{- '<|im_end|>\n' }}{%- else %} {%- if messages[0].role == 'system' %} {%- set content = render_content(messages[0].content, false, true)|trim %} {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }} {%- endif %}{%- endif %}{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}{%- for message in messages[::-1] %} {%- set index = (messages|length - 1) - loop.index0 %} {%- if ns.multi_step_tool and message.role == "user" %} {%- set content = render_content(message.content, false)|trim %} {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %} {%- set ns.multi_step_tool = false %} {%- set ns.last_query_index = index %} {%- endif %} {%- endif %}{%- endfor %}{%- if ns.multi_step_tool %} {{- raise_exception('No user query found in messages.') }}{%- endif %}{%- for message in messages %} {%- set content = render_content(message.content, true)|trim %} {%- if message.role == "system" %} {%- if not loop.first %} {{- raise_exception('System message must be at the beginning.') }} {%- endif %} {%- elif message.role == "user" %} {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {%- set reasoning_content = '' %} {%- if message.reasoning_content is string %} {%- set reasoning_content = message.reasoning_content %} {%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n') %} {%- endif %} {%- endif %} {%- set reasoning_content = reasoning_content|trim %} {%- if loop.index0 > ns.last_query_index %} {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {%- if loop.first %} {%- if content|trim %} {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- else %} {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- endif %} {%- else %} {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- endif %} {%- if tool_call.arguments is defined %} {%- for args_name, args_value in tool_call.arguments|items %} {{- '<parameter=' + args_name + '>\n' }} {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %} {{- args_value }} {{- '\n</parameter>\n' }} {%- endfor %} {%- endif %} {{- '</function>\n</tool_call>' }} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if loop.previtem and loop.previtem.role != "tool" %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- content }} {{- '\n</tool_response>' }} {%- if not loop.last and loop.nextitem.role != "tool" %} {{- '<|im_end|>\n' }} {%- elif loop.last %} {{- '<|im_end|>\n' }} {%- endif %} {%- else %} {{- raise_exception('Unexpected message role.') }} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- if enable_thinking is defined and enable_thinking is false %} {{- '<think>\n\n</think>\n\n' }} {%- else %} {{- '<think>\n' }} {%- endif %}{%- endif %}123version https://git-lfs.github.com/spec/v1oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523size 199893251234567891011121314151617181920212223242526272829303132{ "add_prefix_space": false, "audio_bos_token": "<|audio_start|>", "audio_eos_token": "<|audio_end|>", "audio_token": "<|audio_pad|>", "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "image_token": "<|image_pad|>", "is_local": true, "local_files_only": true, "model_max_length": 262144, "model_specific_special_tokens": { "audio_bos_token": "<|audio_start|>", "audio_eos_token": "<|audio_end|>", "audio_token": "<|audio_pad|>", "image_token": "<|image_pad|>", "video_token": "<|video_pad|>", "vision_bos_token": "<|vision_start|>", "vision_eos_token": "<|vision_end|>" }, "pad_token": "<|endoftext|>", "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null, "video_token": "<|video_pad|>", "vision_bos_token": "<|vision_start|>", "vision_eos_token": "<|vision_end|>"}123456789101112{ "_class_name": "MOSSImageTransformer", "_diffusers_version": "0.38.0", "dim": 3072, "ffn_dim": 8192, "freq_dim": 256, "latent_channels": 128, "num_heads": 24, "num_layers": 42, "rope_base": 10000.0, "text_dim": 4096}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048{ "calibration": [ "full-glass-20261010", "closed-umbrellas-20261010", "three-fingers-20261010", "occlusion-20261010", "mirror-20261010", "plain-zebra-20261010", "candid-outdoors-20261010", "close-up-20261010", "calib-menu", "calib-sign-ru" ], "steps": [ 0, 4, 8, 12, 16, 20, 25, 30, 35, 40, 45, 49 ], "damp": 0.01, "act_order": true, "forwards": 240, "layers": { "0.qkv": { "rtn_match": 0.996772, "rtn": 0.00115, "gptq": 2.5e-05, "gptq_fit": 2.5e-05 }, "0.o": { "rtn_match": 0.996292, "rtn": 0.001388, "gptq": 7e-06, "gptq_fit": 7e-06 }, "0.up": { "rtn_match": 0.996503, "rtn": 0.009636, "gptq": 0.000236, "gptq_fit": 0.000236 }, "0.down": { "rtn_match": 0.995948, "rtn": 0.002801, "gptq": 2.7e-05, "gptq_fit": 2.7e-05 }, "1.qkv": { "rtn_match": 0.996778, "rtn": 0.002731, "gptq": 0.00015, "gptq_fit": 0.00015 }, "1.o": { "rtn_match": 0.997058, "rtn": 0.004865, "gptq": 0.000257, "gptq_fit": 0.000257 }, "1.up": { "rtn_match": 0.99665, "rtn": 0.012106, "gptq": 0.000539, "gptq_fit": 0.000539 }, "1.down": { "rtn_match": 0.996059, "rtn": 0.005529, "gptq": 0.000353, "gptq_fit": 0.000353 }, "2.qkv": { "rtn_match": 0.996645, "rtn": 0.004171, "gptq": 0.00036, "gptq_fit": 0.00036 }, "2.o": { "rtn_match": 0.996317, "rtn": 0.006155, "gptq": 0.000427, "gptq_fit": 0.000427 }, "2.up": { "rtn_match": 0.996634, "rtn": 0.013084, "gptq": 0.000758, "gptq_fit": 0.000758 }, "2.down": { "rtn_match": 0.995976, "rtn": 0.0043, "gptq": 0.000137, "gptq_fit": 0.000137 }, "3.qkv": { "rtn_match": 0.996696, "rtn": 0.0049, "gptq": 0.00054, "gptq_fit": 0.00054 }, "3.o": { "rtn_match": 0.996104, "rtn": 0.006626, "gptq": 0.000442, "gptq_fit": 0.000442 }, "3.up": { "rtn_match": 0.996666, "rtn": 0.01113, "gptq": 0.000735, "gptq_fit": 0.000734 }, "3.down": { "rtn_match": 0.996076, "rtn": 0.006432, "gptq": 0.000442, "gptq_fit": 0.000442 }, "4.qkv": { "rtn_match": 0.996548, "rtn": 0.004438, "gptq": 0.000483, "gptq_fit": 0.000483 }, "4.o": { "rtn_match": 0.996199, "rtn": 0.006778, "gptq": 0.000574, "gptq_fit": 0.000573 }, "4.up": { "rtn_match": 0.996689, "rtn": 0.010802, "gptq": 0.000934, "gptq_fit": 0.000934 }, "4.down": { "rtn_match": 0.995998, "rtn": 0.006963, "gptq": 0.000667, "gptq_fit": 0.000667 }, "5.qkv": { "rtn_match": 0.996464, "rtn": 0.004425, "gptq": 0.000546, "gptq_fit": 0.000546 }, "5.o": { "rtn_match": 0.996077, "rtn": 0.007095, "gptq": 0.000814, "gptq_fit": 0.000814 }, "5.up": { "rtn_match": 0.996682, "rtn": 0.010475, "gptq": 0.001085, "gptq_fit": 0.001085 }, "5.down": { "rtn_match": 0.99598, "rtn": 0.006151, "gptq": 0.000652, "gptq_fit": 0.000652 }, "6.qkv": { "rtn_match": 0.996479, "rtn": 0.004012, "gptq": 0.000519, "gptq_fit": 0.000519 }, "6.o": { "rtn_match": 0.99609, "rtn": 0.006718, "gptq": 0.000724, "gptq_fit": 0.000724 }, "6.up": { "rtn_match": 0.996649, "rtn": 0.010006, "gptq": 0.001161, "gptq_fit": 0.001161 }, "6.down": { "rtn_match": 0.995933, "rtn": 0.006459, "gptq": 0.000777, "gptq_fit": 0.000777 }, "7.qkv": { "rtn_match": 0.996584, "rtn": 0.004305, "gptq": 0.000639, "gptq_fit": 0.000639 }, "7.o": { "rtn_match": 0.996169, "rtn": 0.006488, "gptq": 0.000771, "gptq_fit": 0.000771 }, "7.up": { "rtn_match": 0.996628, "rtn": 0.009499, "gptq": 0.001161, "gptq_fit": 0.001161 }, "7.down": { "rtn_match": 0.995861, "rtn": 0.004878, "gptq": 0.00076, "gptq_fit": 0.00076 }, "8.qkv": { "rtn_match": 0.996662, "rtn": 0.004109, "gptq": 0.000559, "gptq_fit": 0.000559 }, "8.o": { "rtn_match": 0.996169, "rtn": 0.006249, "gptq": 0.000697, "gptq_fit": 0.000697 }, "8.up": { "rtn_match": 0.99662, "rtn": 0.008374, "gptq": 0.001081, "gptq_fit": 0.001081 }, "8.down": { "rtn_match": 0.995906, "rtn": 0.005619, "gptq": 0.000735, "gptq_fit": 0.000735 }, "9.qkv": { "rtn_match": 0.996479, "rtn": 0.005002, "gptq": 0.000765, "gptq_fit": 0.000765 }, "9.o": { "rtn_match": 0.996327, "rtn": 0.005818, "gptq": 0.000484, "gptq_fit": 0.000484 }, "9.up": { "rtn_match": 0.996617, "rtn": 0.008473, "gptq": 0.001125, "gptq_fit": 0.001125 }, "9.down": { "rtn_match": 0.99591, "rtn": 0.005921, "gptq": 0.001163, "gptq_fit": 0.001163 }, "10.qkv": { "rtn_match": 0.996516, "rtn": 0.00482, "gptq": 0.00081, "gptq_fit": 0.00081 }, "10.o": { "rtn_match": 0.996248, "rtn": 0.006193, "gptq": 0.000546, "gptq_fit": 0.000546 }, "10.up": { "rtn_match": 0.996578, "rtn": 0.008981, "gptq": 0.001347, "gptq_fit": 0.001347 }, "10.down": { "rtn_match": 0.995845, "rtn": 0.006528, "gptq": 0.001771, "gptq_fit": 0.001771 }, "11.qkv": { "rtn_match": 0.996638, "rtn": 0.004457, "gptq": 0.000853, "gptq_fit": 0.000853 }, "11.o": { "rtn_match": 0.996222, "rtn": 0.00722, "gptq": 0.000971, "gptq_fit": 0.000971 }, "11.up": { "rtn_match": 0.996572, "rtn": 0.008444, "gptq": 0.001363, "gptq_fit": 0.001363 }, "11.down": { "rtn_match": 0.995815, "rtn": 0.005917, "gptq": 0.001288, "gptq_fit": 0.001288 }, "12.qkv": { "rtn_match": 0.996577, "rtn": 0.004283, "gptq": 0.000797, "gptq_fit": 0.000797 }, "12.o": { "rtn_match": 0.996084, "rtn": 0.005799, "gptq": 0.000488, "gptq_fit": 0.000488 }, "12.up": { "rtn_match": 0.996585, "rtn": 0.008524, "gptq": 0.001406, "gptq_fit": 0.001405 }, "12.down": { "rtn_match": 0.99586, "rtn": 0.005925, "gptq": 0.001512, "gptq_fit": 0.001512 }, "13.qkv": { "rtn_match": 0.996493, "rtn": 0.004045, "gptq": 0.00077, "gptq_fit": 0.00077 }, "13.o": { "rtn_match": 0.996106, "rtn": 0.006391, "gptq": 0.000552, "gptq_fit": 0.000552 }, "13.up": { "rtn_match": 0.996593, "rtn": 0.00877, "gptq": 0.001489, "gptq_fit": 0.001489 }, "13.down": { "rtn_match": 0.995909, "rtn": 0.006977, "gptq": 0.001879, "gptq_fit": 0.001879 }, "14.qkv": { "rtn_match": 0.996652, "rtn": 0.004037, "gptq": 0.000821, "gptq_fit": 0.000821 }, "14.o": { "rtn_match": 0.996126, "rtn": 0.007217, "gptq": 0.000994, "gptq_fit": 0.000994 }, "14.up": { "rtn_match": 0.996616, "rtn": 0.008137, "gptq": 0.001369, "gptq_fit": 0.001368 }, "14.down": { "rtn_match": 0.995972, "rtn": 0.005457, "gptq": 0.001103, "gptq_fit": 0.001103 }, "15.qkv": { "rtn_match": 0.99653, "rtn": 0.004145, "gptq": 0.000747, "gptq_fit": 0.000747 }, "15.o": { "rtn_match": 0.996058, "rtn": 0.006312, "gptq": 0.000632, "gptq_fit": 0.000632 }, "15.up": { "rtn_match": 0.996587, "rtn": 0.007584, "gptq": 0.001307, "gptq_fit": 0.001307 }, "15.down": { "rtn_match": 0.995816, "rtn": 0.006075, "gptq": 0.00127, "gptq_fit": 0.00127 }, "16.qkv": { "rtn_match": 0.996641, "rtn": 0.004098, "gptq": 0.000772, "gptq_fit": 0.000772 }, "16.o": { "rtn_match": 0.996122, "rtn": 0.006327, "gptq": 0.00067, "gptq_fit": 0.00067 }, "16.up": { "rtn_match": 0.996623, "rtn": 0.007741, "gptq": 0.001304, "gptq_fit": 0.001304 }, "16.down": { "rtn_match": 0.995987, "rtn": 0.005769, "gptq": 0.00124, "gptq_fit": 0.00124 }, "17.qkv": { "rtn_match": 0.996673, "rtn": 0.004005, "gptq": 0.000752, "gptq_fit": 0.000752 }, "17.o": { "rtn_match": 0.996187, "rtn": 0.00713, "gptq": 0.000869, "gptq_fit": 0.000869 }, "17.up": { "rtn_match": 0.996599, "rtn": 0.008442, "gptq": 0.001538, "gptq_fit": 0.001538 }, "17.down": { "rtn_match": 0.995912, "rtn": 0.006464, "gptq": 0.001832, "gptq_fit": 0.001832 }, "18.qkv": { "rtn_match": 0.99639, "rtn": 0.004717, "gptq": 0.00106, "gptq_fit": 0.00106 }, "18.o": { "rtn_match": 0.996387, "rtn": 0.008132, "gptq": 0.001216, "gptq_fit": 0.001216 }, "18.up": { "rtn_match": 0.996613, "rtn": 0.008555, "gptq": 0.001674, "gptq_fit": 0.001674 }, "18.down": { "rtn_match": 0.9959, "rtn": 0.004516, "gptq": 0.000891, "gptq_fit": 0.000891 }, "19.qkv": { "rtn_match": 0.996494, "rtn": 0.005188, "gptq": 0.001238, "gptq_fit": 0.001238 }, "19.o": { "rtn_match": 0.996401, "rtn": 0.008568, "gptq": 0.001249, "gptq_fit": 0.001249 }, "19.up": { "rtn_match": 0.996629, "rtn": 0.008356, "gptq": 0.001722, "gptq_fit": 0.001722 }, "19.down": { "rtn_match": 0.995915, "rtn": 0.00395, "gptq": 0.00069, "gptq_fit": 0.00069 }, "20.qkv": { "rtn_match": 0.996329, "rtn": 0.004832, "gptq": 0.001129, "gptq_fit": 0.001129 }, "20.o": { "rtn_match": 0.996372, "rtn": 0.008384, "gptq": 0.001199, "gptq_fit": 0.001199 }, "20.up": { "rtn_match": 0.996576, "rtn": 0.007965, "gptq": 0.001657, "gptq_fit": 0.001657 }, "20.down": { "rtn_match": 0.995813, "rtn": 0.004237, "gptq": 0.000876, "gptq_fit": 0.000876 }, "21.qkv": { "rtn_match": 0.996442, "rtn": 0.005112, "gptq": 0.001163, "gptq_fit": 0.001163 }, "21.o": { "rtn_match": 0.996547, "rtn": 0.010703, "gptq": 0.001443, "gptq_fit": 0.001442 }, "21.up": { "rtn_match": 0.996575, "rtn": 0.008042, "gptq": 0.001678, "gptq_fit": 0.001678 }, "21.down": { "rtn_match": 0.995946, "rtn": 0.004904, "gptq": 0.001306, "gptq_fit": 0.001306 }, "22.qkv": { "rtn_match": 0.996428, "rtn": 0.004424, "gptq": 0.000969, "gptq_fit": 0.000969 }, "22.o": { "rtn_match": 0.99655, "rtn": 0.010721, "gptq": 0.001764, "gptq_fit": 0.001764 }, "22.up": { "rtn_match": 0.996616, "rtn": 0.007823, "gptq": 0.001583, "gptq_fit": 0.001583 }, "22.down": { "rtn_match": 0.995934, "rtn": 0.005406, "gptq": 0.001378, "gptq_fit": 0.001378 }, "23.qkv": { "rtn_match": 0.996538, "rtn": 0.004702, "gptq": 0.001136, "gptq_fit": 0.001136 }, "23.o": { "rtn_match": 0.996594, "rtn": 0.011326, "gptq": 0.001622, "gptq_fit": 0.001621 }, "23.up": { "rtn_match": 0.996627, "rtn": 0.007156, "gptq": 0.001513, "gptq_fit": 0.001513 }, "23.down": { "rtn_match": 0.995952, "rtn": 0.006313, "gptq": 0.001769, "gptq_fit": 0.001769 }, "24.qkv": { "rtn_match": 0.996444, "rtn": 0.004325, "gptq": 0.000923, "gptq_fit": 0.000923 }, "24.o": { "rtn_match": 0.996707, "rtn": 0.013555, "gptq": 0.00165, "gptq_fit": 0.00165 }, "24.up": { "rtn_match": 0.996608, "rtn": 0.00621, "gptq": 0.001253, "gptq_fit": 0.001253 }, "24.down": { "rtn_match": 0.996076, "rtn": 0.005841, "gptq": 0.00124, "gptq_fit": 0.00124 }, "25.qkv": { "rtn_match": 0.996487, "rtn": 0.004172, "gptq": 0.000814, "gptq_fit": 0.000814 }, "25.o": { "rtn_match": 0.99676, "rtn": 0.012765, "gptq": 0.001683, "gptq_fit": 0.001683 }, "25.up": { "rtn_match": 0.996543, "rtn": 0.006153, "gptq": 0.001204, "gptq_fit": 0.001204 }, "25.down": { "rtn_match": 0.996058, "rtn": 0.006868, "gptq": 0.001511, "gptq_fit": 0.001511 }, "26.qkv": { "rtn_match": 0.996461, "rtn": 0.005076, "gptq": 0.00094, "gptq_fit": 0.000939 }, "26.o": { "rtn_match": 0.996831, "rtn": 0.018504, "gptq": 0.001675, "gptq_fit": 0.001675 }, "26.up": { "rtn_match": 0.996518, "rtn": 0.006651, "gptq": 0.001215, "gptq_fit": 0.001214 }, "26.down": { "rtn_match": 0.996011, "rtn": 0.006783, "gptq": 0.001572, "gptq_fit": 0.001572 }, "27.qkv": { "rtn_match": 0.996416, "rtn": 0.005313, "gptq": 0.001042, "gptq_fit": 0.001042 }, "27.o": { "rtn_match": 0.996795, "rtn": 0.016116, "gptq": 0.001825, "gptq_fit": 0.001824 }, "27.up": { "rtn_match": 0.996491, "rtn": 0.007829, "gptq": 0.001383, "gptq_fit": 0.001383 }, "27.down": { "rtn_match": 0.996064, "rtn": 0.007952, "gptq": 0.002092, "gptq_fit": 0.002092 }, "28.qkv": { "rtn_match": 0.996551, "rtn": 0.005122, "gptq": 0.000976, "gptq_fit": 0.000975 }, "28.o": { "rtn_match": 0.996723, "rtn": 0.017327, "gptq": 0.002015, "gptq_fit": 0.002014 }, "28.up": { "rtn_match": 0.996507, "rtn": 0.007756, "gptq": 0.001396, "gptq_fit": 0.001396 }, "28.down": { "rtn_match": 0.995976, "rtn": 0.007346, "gptq": 0.001823, "gptq_fit": 0.001823 }, "29.qkv": { "rtn_match": 0.996554, "rtn": 0.004991, "gptq": 0.000922, "gptq_fit": 0.000922 }, "29.o": { "rtn_match": 0.996859, "rtn": 0.016939, "gptq": 0.00173, "gptq_fit": 0.00173 }, "29.up": { "rtn_match": 0.996526, "rtn": 0.007586, "gptq": 0.001292, "gptq_fit": 0.001292 }, "29.down": { "rtn_match": 0.996096, "rtn": 0.007439, "gptq": 0.001795, "gptq_fit": 0.001795 }, "30.qkv": { "rtn_match": 0.996551, "rtn": 0.004875, "gptq": 0.000828, "gptq_fit": 0.000828 }, "30.o": { "rtn_match": 0.996875, "rtn": 0.016876, "gptq": 0.001782, "gptq_fit": 0.001781 }, "30.up": { "rtn_match": 0.996584, "rtn": 0.00758, "gptq": 0.001277, "gptq_fit": 0.001277 }, "30.down": { "rtn_match": 0.996087, "rtn": 0.008473, "gptq": 0.00209, "gptq_fit": 0.00209 }, "31.qkv": { "rtn_match": 0.99657, "rtn": 0.004329, "gptq": 0.000753, "gptq_fit": 0.000753 }, "31.o": { "rtn_match": 0.997012, "rtn": 0.019816, "gptq": 0.00204, "gptq_fit": 0.002039 }, "31.up": { "rtn_match": 0.996664, "rtn": 0.007571, "gptq": 0.001286, "gptq_fit": 0.001286 }, "31.down": { "rtn_match": 0.996279, "rtn": 0.008265, "gptq": 0.00207, "gptq_fit": 0.00207 }, "32.qkv": { "rtn_match": 0.996577, "rtn": 0.004817, "gptq": 0.000869, "gptq_fit": 0.000869 }, "32.o": { "rtn_match": 0.996982, "rtn": 0.013909, "gptq": 0.001761, "gptq_fit": 0.001761 }, "32.up": { "rtn_match": 0.996639, "rtn": 0.00746, "gptq": 0.001269, "gptq_fit": 0.001269 }, "32.down": { "rtn_match": 0.996337, "rtn": 0.008961, "gptq": 0.002033, "gptq_fit": 0.002033 }, "33.qkv": { "rtn_match": 0.996632, "rtn": 0.004884, "gptq": 0.000968, "gptq_fit": 0.000968 }, "33.o": { "rtn_match": 0.997041, "rtn": 0.015265, "gptq": 0.00153, "gptq_fit": 0.00153 }, "33.up": { "rtn_match": 0.996707, "rtn": 0.006349, "gptq": 0.001076, "gptq_fit": 0.001075 }, "33.down": { "rtn_match": 0.996472, "rtn": 0.009903, "gptq": 0.001552, "gptq_fit": 0.001552 }, "34.qkv": { "rtn_match": 0.996651, "rtn": 0.004728, "gptq": 0.000935, "gptq_fit": 0.000935 }, "34.o": { "rtn_match": 0.997175, "rtn": 0.01469, "gptq": 0.001766, "gptq_fit": 0.001766 }, "34.up": { "rtn_match": 0.996742, "rtn": 0.005933, "gptq": 0.000995, "gptq_fit": 0.000995 }, "34.down": { "rtn_match": 0.996446, "rtn": 0.014028, "gptq": 0.001939, "gptq_fit": 0.001939 }, "35.qkv": { "rtn_match": 0.996719, "rtn": 0.005095, "gptq": 0.001036, "gptq_fit": 0.001035 }, "35.o": { "rtn_match": 0.997316, "rtn": 0.014891, "gptq": 0.001419, "gptq_fit": 0.001419 }, "35.up": { "rtn_match": 0.996752, "rtn": 0.005169, "gptq": 0.000767, "gptq_fit": 0.000766 }, "35.down": { "rtn_match": 0.996412, "rtn": 0.016302, "gptq": 0.001533, "gptq_fit": 0.001533 }, "36.qkv": { "rtn_match": 0.996758, "rtn": 0.005154, "gptq": 0.000938, "gptq_fit": 0.000937 }, "36.o": { "rtn_match": 0.997411, "rtn": 0.013447, "gptq": 0.001022, "gptq_fit": 0.001021 }, "36.up": { "rtn_match": 0.996805, "rtn": 0.004888, "gptq": 0.000595, "gptq_fit": 0.000595 }, "36.down": { "rtn_match": 0.996567, "rtn": 0.021463, "gptq": 0.001343, "gptq_fit": 0.001343 }, "37.qkv": { "rtn_match": 0.996743, "rtn": 0.004141, "gptq": 0.000685, "gptq_fit": 0.000685 }, "37.o": { "rtn_match": 0.997358, "rtn": 0.014374, "gptq": 0.001248, "gptq_fit": 0.001248 }, "37.up": { "rtn_match": 0.996828, "rtn": 0.005011, "gptq": 0.000619, "gptq_fit": 0.000619 }, "37.down": { "rtn_match": 0.996515, "rtn": 0.02223, "gptq": 0.001461, "gptq_fit": 0.001461 }, "38.qkv": { "rtn_match": 0.996784, "rtn": 0.004411, "gptq": 0.000704, "gptq_fit": 0.000703 }, "38.o": { "rtn_match": 0.997471, "rtn": 0.01416, "gptq": 0.00128, "gptq_fit": 0.001279 }, "38.up": { "rtn_match": 0.996756, "rtn": 0.005292, "gptq": 0.000691, "gptq_fit": 0.000691 }, "38.down": { "rtn_match": 0.996706, "rtn": 0.021301, "gptq": 0.001702, "gptq_fit": 0.001701 }, "39.qkv": { "rtn_match": 0.996854, "rtn": 0.004377, "gptq": 0.00069, "gptq_fit": 0.00069 }, "39.o": { "rtn_match": 0.996572, "rtn": 0.014645, "gptq": 0.001076, "gptq_fit": 0.001075 }, "39.up": { "rtn_match": 0.996796, "rtn": 0.005374, "gptq": 0.000667, "gptq_fit": 0.000666 }, "39.down": { "rtn_match": 0.996831, "rtn": 0.019898, "gptq": 0.001478, "gptq_fit": 0.001478 }, "40.qkv": { "rtn_match": 0.996723, "rtn": 0.003834, "gptq": 0.000485, "gptq_fit": 0.000485 }, "40.o": { "rtn_match": 0.996216, "rtn": 0.014349, "gptq": 0.000888, "gptq_fit": 0.000888 }, "40.up": { "rtn_match": 0.996834, "rtn": 0.006704, "gptq": 0.000725, "gptq_fit": 0.000725 }, "40.down": { "rtn_match": 0.997018, "rtn": 0.016418, "gptq": 0.001162, "gptq_fit": 0.001162 }, "41.qkv": { "rtn_match": 0.996774, "rtn": 0.002071, "gptq": 0.000198, "gptq_fit": 0.000198 }, "41.o": { "rtn_match": 0.996801, "rtn": 0.009656, "gptq": 0.000601, "gptq_fit": 0.000601 }, "41.up": { "rtn_match": 0.996921, "rtn": 0.006444, "gptq": 0.000704, "gptq_fit": 0.000704 }, "41.down": { "rtn_match": 0.996894, "rtn": 0.003034, "gptq": 0.000156, "gptq_fit": 0.000156 } }, "mean": { "rtn_match": 0.996479, "rtn": 0.007761, "gptq": 0.001071, "gptq_fit": 0.001071 }, "seconds": 828.8}123version https://git-lfs.github.com/spec/v1oid sha256:fa1db04a47b04eda09fd6ff2f0534110c2111bb0dc2b44b4b6d81ecb241301f3size 3032845728123version https://git-lfs.github.com/spec/v1oid sha256:061d1725029f3f5742de3ffd258512a279e7e60a5da5c69c806c52fa1eedcbabsize 5761234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473{ "artifact_format": "orbitquant-v1", "source_model_id": "OpenMOSS-Team/MOSS-Image-SFT", "source_revision": "daf706d2e1c7a6369c17b6d1658671aee6db1ebe", "source_license": "apache-2.0", "quant_method": "orbitquant", "paper": "https://arxiv.org/abs/2607.02461", "weight_bits": 4, "activation_bits": 4, "rotation": "rpbh", "rotation_seed": 0, "block_size": "paper", "block_size_policy": "largest_power_of_two_dividing_dim", "codebook": "lloyd_max", "codebook_version": 2, "row_norm_dtype": "bfloat16", "runtime_mode": "auto_fused", "activation_kernel_backend": "auto", "activation_eps": 1e-10, "adaln_group_size": 64, "quantization_device": "cuda", "weight_quantization_backend": "triton_cuda", "quantization_staging_mode": "streaming", "target_policy": "universal", "adaln_policy": "int4_rtn_group64_bf16_activation", "quantized_modules": [ "layers.0.proj.q", "layers.0.proj.k", "layers.0.proj.v", "layers.0.proj.o", "layers.0.proj.ffn_up_gate", "layers.0.proj.ffn_down", "layers.1.proj.q", "layers.1.proj.k", "layers.1.proj.v", "layers.1.proj.o", "layers.1.proj.ffn_up_gate", "layers.1.proj.ffn_down", "layers.2.proj.q", "layers.2.proj.k", "layers.2.proj.v", "layers.2.proj.o", "layers.2.proj.ffn_up_gate", "layers.2.proj.ffn_down", "layers.3.proj.q", "layers.3.proj.k", "layers.3.proj.v", "layers.3.proj.o", "layers.3.proj.ffn_up_gate", "layers.3.proj.ffn_down", "layers.4.proj.q", "layers.4.proj.k", "layers.4.proj.v", "layers.4.proj.o", "layers.4.proj.ffn_up_gate", "layers.4.proj.ffn_down", "layers.5.proj.q", "layers.5.proj.k", "layers.5.proj.v", "layers.5.proj.o", "layers.5.proj.ffn_up_gate", "layers.5.proj.ffn_down", "layers.6.proj.q", "layers.6.proj.k", "layers.6.proj.v", "layers.6.proj.o", "layers.6.proj.ffn_up_gate", "layers.6.proj.ffn_down", "layers.7.proj.q", "layers.7.proj.k", "layers.7.proj.v", "layers.7.proj.o", "layers.7.proj.ffn_up_gate", "layers.7.proj.ffn_down", "layers.8.proj.q", "layers.8.proj.k", "layers.8.proj.v", "layers.8.proj.o", "layers.8.proj.ffn_up_gate", "layers.8.proj.ffn_down", "layers.9.proj.q", "layers.9.proj.k", "layers.9.proj.v", "layers.9.proj.o", "layers.9.proj.ffn_up_gate", "layers.9.proj.ffn_down", "layers.10.proj.q", "layers.10.proj.k", "layers.10.proj.v", "layers.10.proj.o", "layers.10.proj.ffn_up_gate", "layers.10.proj.ffn_down", "layers.11.proj.q", "layers.11.proj.k", "layers.11.proj.v", "layers.11.proj.o", "layers.11.proj.ffn_up_gate", "layers.11.proj.ffn_down", "layers.12.proj.q", "layers.12.proj.k", "layers.12.proj.v", "layers.12.proj.o", "layers.12.proj.ffn_up_gate", "layers.12.proj.ffn_down", "layers.13.proj.q", "layers.13.proj.k", "layers.13.proj.v", "layers.13.proj.o", "layers.13.proj.ffn_up_gate", "layers.13.proj.ffn_down", "layers.14.proj.q", "layers.14.proj.k", "layers.14.proj.v", "layers.14.proj.o", "layers.14.proj.ffn_up_gate", "layers.14.proj.ffn_down", "layers.15.proj.q", "layers.15.proj.k", "layers.15.proj.v", "layers.15.proj.o", "layers.15.proj.ffn_up_gate", "layers.15.proj.ffn_down", "layers.16.proj.q", "layers.16.proj.k", "layers.16.proj.v", "layers.16.proj.o", "layers.16.proj.ffn_up_gate", "layers.16.proj.ffn_down", "layers.17.proj.q", "layers.17.proj.k", "layers.17.proj.v", "layers.17.proj.o", "layers.17.proj.ffn_up_gate", "layers.17.proj.ffn_down", "layers.18.proj.q", "layers.18.proj.k", "layers.18.proj.v", "layers.18.proj.o", "layers.18.proj.ffn_up_gate", "layers.18.proj.ffn_down", "layers.19.proj.q", "layers.19.proj.k", "layers.19.proj.v", "layers.19.proj.o", "layers.19.proj.ffn_up_gate", "layers.19.proj.ffn_down", "layers.20.proj.q", "layers.20.proj.k", "layers.20.proj.v", "layers.20.proj.o", "layers.20.proj.ffn_up_gate", "layers.20.proj.ffn_down", "layers.21.proj.q", "layers.21.proj.k", "layers.21.proj.v", "layers.21.proj.o", "layers.21.proj.ffn_up_gate", "layers.21.proj.ffn_down", "layers.22.proj.q", "layers.22.proj.k", "layers.22.proj.v", "layers.22.proj.o", "layers.22.proj.ffn_up_gate", "layers.22.proj.ffn_down", "layers.23.proj.q", "layers.23.proj.k", "layers.23.proj.v", "layers.23.proj.o", "layers.23.proj.ffn_up_gate", "layers.23.proj.ffn_down", "layers.24.proj.q", "layers.24.proj.k", "layers.24.proj.v", "layers.24.proj.o", "layers.24.proj.ffn_up_gate", "layers.24.proj.ffn_down", "layers.25.proj.q", "layers.25.proj.k", "layers.25.proj.v", "layers.25.proj.o", "layers.25.proj.ffn_up_gate", "layers.25.proj.ffn_down", "layers.26.proj.q", "layers.26.proj.k", "layers.26.proj.v", "layers.26.proj.o", "layers.26.proj.ffn_up_gate", "layers.26.proj.ffn_down", "layers.27.proj.q", "layers.27.proj.k", "layers.27.proj.v", "layers.27.proj.o", "layers.27.proj.ffn_up_gate", "layers.27.proj.ffn_down", "layers.28.proj.q", "layers.28.proj.k", "layers.28.proj.v", "layers.28.proj.o", "layers.28.proj.ffn_up_gate", "layers.28.proj.ffn_down", "layers.29.proj.q", "layers.29.proj.k", "layers.29.proj.v", "layers.29.proj.o", "layers.29.proj.ffn_up_gate", "layers.29.proj.ffn_down", "layers.30.proj.q", "layers.30.proj.k", "layers.30.proj.v", "layers.30.proj.o", "layers.30.proj.ffn_up_gate", "layers.30.proj.ffn_down", "layers.31.proj.q", "layers.31.proj.k", "layers.31.proj.v", "layers.31.proj.o", "layers.31.proj.ffn_up_gate", "layers.31.proj.ffn_down", "layers.32.proj.q", "layers.32.proj.k", "layers.32.proj.v", "layers.32.proj.o", "layers.32.proj.ffn_up_gate", "layers.32.proj.ffn_down", "layers.33.proj.q", "layers.33.proj.k", "layers.33.proj.v", "layers.33.proj.o", "layers.33.proj.ffn_up_gate", "layers.33.proj.ffn_down", "layers.34.proj.q", "layers.34.proj.k", "layers.34.proj.v", "layers.34.proj.o", "layers.34.proj.ffn_up_gate", "layers.34.proj.ffn_down", "layers.35.proj.q", "layers.35.proj.k", "layers.35.proj.v", "layers.35.proj.o", "layers.35.proj.ffn_up_gate", "layers.35.proj.ffn_down", "layers.36.proj.q", "layers.36.proj.k", "layers.36.proj.v", "layers.36.proj.o", "layers.36.proj.ffn_up_gate", "layers.36.proj.ffn_down", "layers.37.proj.q", "layers.37.proj.k", "layers.37.proj.v", "layers.37.proj.o", "layers.37.proj.ffn_up_gate", "layers.37.proj.ffn_down", "layers.38.proj.q", "layers.38.proj.k", "layers.38.proj.v", "layers.38.proj.o", "layers.38.proj.ffn_up_gate", "layers.38.proj.ffn_down", "layers.39.proj.q", "layers.39.proj.k", "layers.39.proj.v", "layers.39.proj.o", "layers.39.proj.ffn_up_gate", "layers.39.proj.ffn_down", "layers.40.proj.q", "layers.40.proj.k", "layers.40.proj.v", "layers.40.proj.o", "layers.40.proj.ffn_up_gate", "layers.40.proj.ffn_down", "layers.41.proj.q", "layers.41.proj.k", "layers.41.proj.v", "layers.41.proj.o", "layers.41.proj.ffn_up_gate", "layers.41.proj.ffn_down" ], "adaln_modules": [], "skipped_modules": [ "video_embedder", "text_embedder.proj", "text_embedder.blocks.0.qkv", "text_embedder.blocks.0.proj", "text_embedder.blocks.0.ffn_gate", "text_embedder.blocks.0.ffn_up", "text_embedder.blocks.0.ffn_down", "text_embedder.blocks.1.qkv", "text_embedder.blocks.1.proj", "text_embedder.blocks.1.ffn_gate", "text_embedder.blocks.1.ffn_up", "text_embedder.blocks.1.ffn_down", "time_embedding.0", "time_embedding.2", "shared_block_modulation", "final_linear_video", "video_head_modulation" ], "module_shapes": { "video_embedder.weight": [ 3072, 128 ], "video_embedder.bias": [ 3072 ], "text_embedder.proj.weight": [ 3072, 4096 ], "text_embedder.proj.bias": [ 3072 ], "text_embedder.blocks.0.norm1.weight": [ 3072 ], "text_embedder.blocks.0.norm2.weight": [ 3072 ], "text_embedder.blocks.0.q_norm.weight": [ 128 ], "text_embedder.blocks.0.k_norm.weight": [ 128 ], "text_embedder.blocks.0.qkv.weight": [ 9216, 3072 ], "text_embedder.blocks.0.qkv.bias": [ 9216 ], "text_embedder.blocks.0.proj.weight": [ 3072, 3072 ], "text_embedder.blocks.0.proj.bias": [ 3072 ], "text_embedder.blocks.0.ffn_gate.weight": [ 8192, 3072 ], "text_embedder.blocks.0.ffn_gate.bias": [ 8192 ], "text_embedder.blocks.0.ffn_up.weight": [ 8192, 3072 ], "text_embedder.blocks.0.ffn_up.bias": [ 8192 ], "text_embedder.blocks.0.ffn_down.weight": [ 3072, 8192 ], "text_embedder.blocks.0.ffn_down.bias": [ 3072 ], "text_embedder.blocks.1.norm1.weight": [ 3072 ], "text_embedder.blocks.1.norm2.weight": [ 3072 ], "text_embedder.blocks.1.q_norm.weight": [ 128 ], "text_embedder.blocks.1.k_norm.weight": [ 128 ], "text_embedder.blocks.1.qkv.weight": [ 9216, 3072 ], "text_embedder.blocks.1.qkv.bias": [ 9216 ], "text_embedder.blocks.1.proj.weight": [ 3072, 3072 ], "text_embedder.blocks.1.proj.bias": [ 3072 ], "text_embedder.blocks.1.ffn_gate.weight": [ 8192, 3072 ], "text_embedder.blocks.1.ffn_gate.bias": [ 8192 ], "text_embedder.blocks.1.ffn_up.weight": [ 8192, 3072 ], "text_embedder.blocks.1.ffn_up.bias": [ 8192 ], "text_embedder.blocks.1.ffn_down.weight": [ 3072, 8192 ], "text_embedder.blocks.1.ffn_down.bias": [ 3072 ], "rope.bands": [ 16 ], "time_embedding.0.weight": [ 3072, 256 ], "time_embedding.0.bias": [ 3072 ], "time_embedding.2.weight": [ 3072, 3072 ], "time_embedding.2.bias": [ 3072 ], "shared_block_modulation.weight": [ 18432, 3072 ], "shared_block_modulation.bias": [ 18432 ], "layers.0.norm1.weight": [ 3072 ], "layers.0.norm2.weight": [ 3072 ], "layers.0.q_norm.weight": [ 128 ], "layers.0.k_norm.weight": [ 128 ], "layers.0.proj.q.packed_weight_indices": [ 4718592 ], "layers.0.proj.q.row_norms": [ 3072 ], "layers.0.proj.k.packed_weight_indices": [ 4718592 ], "layers.0.proj.k.row_norms": [ 3072 ], "layers.0.proj.v.packed_weight_indices": [ 4718592 ], "layers.0.proj.v.row_norms": [ 3072 ], "layers.0.proj.o.packed_weight_indices": [ 4718592 ], "layers.0.proj.o.row_norms": [ 3072 ], "layers.0.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.0.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.0.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.0.proj.ffn_down.row_norms": [ 3072 ], "layers.1.norm1.weight": [ 3072 ], "layers.1.norm2.weight": [ 3072 ], "layers.1.q_norm.weight": [ 128 ], "layers.1.k_norm.weight": [ 128 ], "layers.1.proj.q.packed_weight_indices": [ 4718592 ], "layers.1.proj.q.row_norms": [ 3072 ], "layers.1.proj.k.packed_weight_indices": [ 4718592 ], "layers.1.proj.k.row_norms": [ 3072 ], "layers.1.proj.v.packed_weight_indices": [ 4718592 ], "layers.1.proj.v.row_norms": [ 3072 ], "layers.1.proj.o.packed_weight_indices": [ 4718592 ], "layers.1.proj.o.row_norms": [ 3072 ], "layers.1.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.1.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.1.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.1.proj.ffn_down.row_norms": [ 3072 ], "layers.2.norm1.weight": [ 3072 ], "layers.2.norm2.weight": [ 3072 ], "layers.2.q_norm.weight": [ 128 ], "layers.2.k_norm.weight": [ 128 ], "layers.2.proj.q.packed_weight_indices": [ 4718592 ], "layers.2.proj.q.row_norms": [ 3072 ], "layers.2.proj.k.packed_weight_indices": [ 4718592 ], "layers.2.proj.k.row_norms": [ 3072 ], "layers.2.proj.v.packed_weight_indices": [ 4718592 ], "layers.2.proj.v.row_norms": [ 3072 ], "layers.2.proj.o.packed_weight_indices": [ 4718592 ], "layers.2.proj.o.row_norms": [ 3072 ], "layers.2.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.2.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.2.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.2.proj.ffn_down.row_norms": [ 3072 ], "layers.3.norm1.weight": [ 3072 ], "layers.3.norm2.weight": [ 3072 ], "layers.3.q_norm.weight": [ 128 ], "layers.3.k_norm.weight": [ 128 ], "layers.3.proj.q.packed_weight_indices": [ 4718592 ], "layers.3.proj.q.row_norms": [ 3072 ], "layers.3.proj.k.packed_weight_indices": [ 4718592 ], "layers.3.proj.k.row_norms": [ 3072 ], "layers.3.proj.v.packed_weight_indices": [ 4718592 ], "layers.3.proj.v.row_norms": [ 3072 ], "layers.3.proj.o.packed_weight_indices": [ 4718592 ], "layers.3.proj.o.row_norms": [ 3072 ], "layers.3.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.3.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.3.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.3.proj.ffn_down.row_norms": [ 3072 ], "layers.4.norm1.weight": [ 3072 ], "layers.4.norm2.weight": [ 3072 ], "layers.4.q_norm.weight": [ 128 ], "layers.4.k_norm.weight": [ 128 ], "layers.4.proj.q.packed_weight_indices": [ 4718592 ], "layers.4.proj.q.row_norms": [ 3072 ], "layers.4.proj.k.packed_weight_indices": [ 4718592 ], "layers.4.proj.k.row_norms": [ 3072 ], "layers.4.proj.v.packed_weight_indices": [ 4718592 ], "layers.4.proj.v.row_norms": [ 3072 ], "layers.4.proj.o.packed_weight_indices": [ 4718592 ], "layers.4.proj.o.row_norms": [ 3072 ], "layers.4.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.4.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.4.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.4.proj.ffn_down.row_norms": [ 3072 ], "layers.5.norm1.weight": [ 3072 ], "layers.5.norm2.weight": [ 3072 ], "layers.5.q_norm.weight": [ 128 ], "layers.5.k_norm.weight": [ 128 ], "layers.5.proj.q.packed_weight_indices": [ 4718592 ], "layers.5.proj.q.row_norms": [ 3072 ], "layers.5.proj.k.packed_weight_indices": [ 4718592 ], "layers.5.proj.k.row_norms": [ 3072 ], "layers.5.proj.v.packed_weight_indices": [ 4718592 ], "layers.5.proj.v.row_norms": [ 3072 ], "layers.5.proj.o.packed_weight_indices": [ 4718592 ], "layers.5.proj.o.row_norms": [ 3072 ], "layers.5.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.5.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.5.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.5.proj.ffn_down.row_norms": [ 3072 ], "layers.6.norm1.weight": [ 3072 ], "layers.6.norm2.weight": [ 3072 ], "layers.6.q_norm.weight": [ 128 ], "layers.6.k_norm.weight": [ 128 ], "layers.6.proj.q.packed_weight_indices": [ 4718592 ], "layers.6.proj.q.row_norms": [ 3072 ], "layers.6.proj.k.packed_weight_indices": [ 4718592 ], "layers.6.proj.k.row_norms": [ 3072 ], "layers.6.proj.v.packed_weight_indices": [ 4718592 ], "layers.6.proj.v.row_norms": [ 3072 ], "layers.6.proj.o.packed_weight_indices": [ 4718592 ], "layers.6.proj.o.row_norms": [ 3072 ], "layers.6.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.6.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.6.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.6.proj.ffn_down.row_norms": [ 3072 ], "layers.7.norm1.weight": [ 3072 ], "layers.7.norm2.weight": [ 3072 ], "layers.7.q_norm.weight": [ 128 ], "layers.7.k_norm.weight": [ 128 ], "layers.7.proj.q.packed_weight_indices": [ 4718592 ], "layers.7.proj.q.row_norms": [ 3072 ], "layers.7.proj.k.packed_weight_indices": [ 4718592 ], "layers.7.proj.k.row_norms": [ 3072 ], "layers.7.proj.v.packed_weight_indices": [ 4718592 ], "layers.7.proj.v.row_norms": [ 3072 ], "layers.7.proj.o.packed_weight_indices": [ 4718592 ], "layers.7.proj.o.row_norms": [ 3072 ], "layers.7.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.7.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.7.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.7.proj.ffn_down.row_norms": [ 3072 ], "layers.8.norm1.weight": [ 3072 ], "layers.8.norm2.weight": [ 3072 ], "layers.8.q_norm.weight": [ 128 ], "layers.8.k_norm.weight": [ 128 ], "layers.8.proj.q.packed_weight_indices": [ 4718592 ], "layers.8.proj.q.row_norms": [ 3072 ], "layers.8.proj.k.packed_weight_indices": [ 4718592 ], "layers.8.proj.k.row_norms": [ 3072 ], "layers.8.proj.v.packed_weight_indices": [ 4718592 ], "layers.8.proj.v.row_norms": [ 3072 ], "layers.8.proj.o.packed_weight_indices": [ 4718592 ], "layers.8.proj.o.row_norms": [ 3072 ], "layers.8.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.8.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.8.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.8.proj.ffn_down.row_norms": [ 3072 ], "layers.9.norm1.weight": [ 3072 ], "layers.9.norm2.weight": [ 3072 ], "layers.9.q_norm.weight": [ 128 ], "layers.9.k_norm.weight": [ 128 ], "layers.9.proj.q.packed_weight_indices": [ 4718592 ], "layers.9.proj.q.row_norms": [ 3072 ], "layers.9.proj.k.packed_weight_indices": [ 4718592 ], "layers.9.proj.k.row_norms": [ 3072 ], "layers.9.proj.v.packed_weight_indices": [ 4718592 ], "layers.9.proj.v.row_norms": [ 3072 ], "layers.9.proj.o.packed_weight_indices": [ 4718592 ], "layers.9.proj.o.row_norms": [ 3072 ], "layers.9.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.9.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.9.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.9.proj.ffn_down.row_norms": [ 3072 ], "layers.10.norm1.weight": [ 3072 ], "layers.10.norm2.weight": [ 3072 ], "layers.10.q_norm.weight": [ 128 ], "layers.10.k_norm.weight": [ 128 ], "layers.10.proj.q.packed_weight_indices": [ 4718592 ], "layers.10.proj.q.row_norms": [ 3072 ], "layers.10.proj.k.packed_weight_indices": [ 4718592 ], "layers.10.proj.k.row_norms": [ 3072 ], "layers.10.proj.v.packed_weight_indices": [ 4718592 ], "layers.10.proj.v.row_norms": [ 3072 ], "layers.10.proj.o.packed_weight_indices": [ 4718592 ], "layers.10.proj.o.row_norms": [ 3072 ], "layers.10.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.10.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.10.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.10.proj.ffn_down.row_norms": [ 3072 ], "layers.11.norm1.weight": [ 3072 ], "layers.11.norm2.weight": [ 3072 ], "layers.11.q_norm.weight": [ 128 ], "layers.11.k_norm.weight": [ 128 ], "layers.11.proj.q.packed_weight_indices": [ 4718592 ], "layers.11.proj.q.row_norms": [ 3072 ], "layers.11.proj.k.packed_weight_indices": [ 4718592 ], "layers.11.proj.k.row_norms": [ 3072 ], "layers.11.proj.v.packed_weight_indices": [ 4718592 ], "layers.11.proj.v.row_norms": [ 3072 ], "layers.11.proj.o.packed_weight_indices": [ 4718592 ], "layers.11.proj.o.row_norms": [ 3072 ], "layers.11.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.11.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.11.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.11.proj.ffn_down.row_norms": [ 3072 ], "layers.12.norm1.weight": [ 3072 ], "layers.12.norm2.weight": [ 3072 ], "layers.12.q_norm.weight": [ 128 ], "layers.12.k_norm.weight": [ 128 ], "layers.12.proj.q.packed_weight_indices": [ 4718592 ], "layers.12.proj.q.row_norms": [ 3072 ], "layers.12.proj.k.packed_weight_indices": [ 4718592 ], "layers.12.proj.k.row_norms": [ 3072 ], "layers.12.proj.v.packed_weight_indices": [ 4718592 ], "layers.12.proj.v.row_norms": [ 3072 ], "layers.12.proj.o.packed_weight_indices": [ 4718592 ], "layers.12.proj.o.row_norms": [ 3072 ], "layers.12.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.12.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.12.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.12.proj.ffn_down.row_norms": [ 3072 ], "layers.13.norm1.weight": [ 3072 ], "layers.13.norm2.weight": [ 3072 ], "layers.13.q_norm.weight": [ 128 ], "layers.13.k_norm.weight": [ 128 ], "layers.13.proj.q.packed_weight_indices": [ 4718592 ], "layers.13.proj.q.row_norms": [ 3072 ], "layers.13.proj.k.packed_weight_indices": [ 4718592 ], "layers.13.proj.k.row_norms": [ 3072 ], "layers.13.proj.v.packed_weight_indices": [ 4718592 ], "layers.13.proj.v.row_norms": [ 3072 ], "layers.13.proj.o.packed_weight_indices": [ 4718592 ], "layers.13.proj.o.row_norms": [ 3072 ], "layers.13.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.13.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.13.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.13.proj.ffn_down.row_norms": [ 3072 ], "layers.14.norm1.weight": [ 3072 ], "layers.14.norm2.weight": [ 3072 ], "layers.14.q_norm.weight": [ 128 ], "layers.14.k_norm.weight": [ 128 ], "layers.14.proj.q.packed_weight_indices": [ 4718592 ], "layers.14.proj.q.row_norms": [ 3072 ], "layers.14.proj.k.packed_weight_indices": [ 4718592 ], "layers.14.proj.k.row_norms": [ 3072 ], "layers.14.proj.v.packed_weight_indices": [ 4718592 ], "layers.14.proj.v.row_norms": [ 3072 ], "layers.14.proj.o.packed_weight_indices": [ 4718592 ], "layers.14.proj.o.row_norms": [ 3072 ], "layers.14.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.14.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.14.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.14.proj.ffn_down.row_norms": [ 3072 ], "layers.15.norm1.weight": [ 3072 ], "layers.15.norm2.weight": [ 3072 ], "layers.15.q_norm.weight": [ 128 ], "layers.15.k_norm.weight": [ 128 ], "layers.15.proj.q.packed_weight_indices": [ 4718592 ], "layers.15.proj.q.row_norms": [ 3072 ], "layers.15.proj.k.packed_weight_indices": [ 4718592 ], "layers.15.proj.k.row_norms": [ 3072 ], "layers.15.proj.v.packed_weight_indices": [ 4718592 ], "layers.15.proj.v.row_norms": [ 3072 ], "layers.15.proj.o.packed_weight_indices": [ 4718592 ], "layers.15.proj.o.row_norms": [ 3072 ], "layers.15.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.15.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.15.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.15.proj.ffn_down.row_norms": [ 3072 ], "layers.16.norm1.weight": [ 3072 ], "layers.16.norm2.weight": [ 3072 ], "layers.16.q_norm.weight": [ 128 ], "layers.16.k_norm.weight": [ 128 ], "layers.16.proj.q.packed_weight_indices": [ 4718592 ], "layers.16.proj.q.row_norms": [ 3072 ], "layers.16.proj.k.packed_weight_indices": [ 4718592 ], "layers.16.proj.k.row_norms": [ 3072 ], "layers.16.proj.v.packed_weight_indices": [ 4718592 ], "layers.16.proj.v.row_norms": [ 3072 ], "layers.16.proj.o.packed_weight_indices": [ 4718592 ], "layers.16.proj.o.row_norms": [ 3072 ], "layers.16.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.16.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.16.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.16.proj.ffn_down.row_norms": [ 3072 ], "layers.17.norm1.weight": [ 3072 ], "layers.17.norm2.weight": [ 3072 ], "layers.17.q_norm.weight": [ 128 ], "layers.17.k_norm.weight": [ 128 ], "layers.17.proj.q.packed_weight_indices": [ 4718592 ], "layers.17.proj.q.row_norms": [ 3072 ], "layers.17.proj.k.packed_weight_indices": [ 4718592 ], "layers.17.proj.k.row_norms": [ 3072 ], "layers.17.proj.v.packed_weight_indices": [ 4718592 ], "layers.17.proj.v.row_norms": [ 3072 ], "layers.17.proj.o.packed_weight_indices": [ 4718592 ], "layers.17.proj.o.row_norms": [ 3072 ], "layers.17.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.17.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.17.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.17.proj.ffn_down.row_norms": [ 3072 ], "layers.18.norm1.weight": [ 3072 ], "layers.18.norm2.weight": [ 3072 ], "layers.18.q_norm.weight": [ 128 ], "layers.18.k_norm.weight": [ 128 ], "layers.18.proj.q.packed_weight_indices": [ 4718592 ], "layers.18.proj.q.row_norms": [ 3072 ], "layers.18.proj.k.packed_weight_indices": [ 4718592 ], "layers.18.proj.k.row_norms": [ 3072 ], "layers.18.proj.v.packed_weight_indices": [ 4718592 ], "layers.18.proj.v.row_norms": [ 3072 ], "layers.18.proj.o.packed_weight_indices": [ 4718592 ], "layers.18.proj.o.row_norms": [ 3072 ], "layers.18.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.18.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.18.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.18.proj.ffn_down.row_norms": [ 3072 ], "layers.19.norm1.weight": [ 3072 ], "layers.19.norm2.weight": [ 3072 ], "layers.19.q_norm.weight": [ 128 ], "layers.19.k_norm.weight": [ 128 ], "layers.19.proj.q.packed_weight_indices": [ 4718592 ], "layers.19.proj.q.row_norms": [ 3072 ], "layers.19.proj.k.packed_weight_indices": [ 4718592 ], "layers.19.proj.k.row_norms": [ 3072 ], "layers.19.proj.v.packed_weight_indices": [ 4718592 ], "layers.19.proj.v.row_norms": [ 3072 ], "layers.19.proj.o.packed_weight_indices": [ 4718592 ], "layers.19.proj.o.row_norms": [ 3072 ], "layers.19.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.19.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.19.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.19.proj.ffn_down.row_norms": [ 3072 ], "layers.20.norm1.weight": [ 3072 ], "layers.20.norm2.weight": [ 3072 ], "layers.20.q_norm.weight": [ 128 ], "layers.20.k_norm.weight": [ 128 ], "layers.20.proj.q.packed_weight_indices": [ 4718592 ], "layers.20.proj.q.row_norms": [ 3072 ], "layers.20.proj.k.packed_weight_indices": [ 4718592 ], "layers.20.proj.k.row_norms": [ 3072 ], "layers.20.proj.v.packed_weight_indices": [ 4718592 ], "layers.20.proj.v.row_norms": [ 3072 ], "layers.20.proj.o.packed_weight_indices": [ 4718592 ], "layers.20.proj.o.row_norms": [ 3072 ], "layers.20.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.20.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.20.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.20.proj.ffn_down.row_norms": [ 3072 ], "layers.21.norm1.weight": [ 3072 ], "layers.21.norm2.weight": [ 3072 ], "layers.21.q_norm.weight": [ 128 ], "layers.21.k_norm.weight": [ 128 ], "layers.21.proj.q.packed_weight_indices": [ 4718592 ], "layers.21.proj.q.row_norms": [ 3072 ], "layers.21.proj.k.packed_weight_indices": [ 4718592 ], "layers.21.proj.k.row_norms": [ 3072 ], "layers.21.proj.v.packed_weight_indices": [ 4718592 ], "layers.21.proj.v.row_norms": [ 3072 ], "layers.21.proj.o.packed_weight_indices": [ 4718592 ], "layers.21.proj.o.row_norms": [ 3072 ], "layers.21.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.21.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.21.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.21.proj.ffn_down.row_norms": [ 3072 ], "layers.22.norm1.weight": [ 3072 ], "layers.22.norm2.weight": [ 3072 ], "layers.22.q_norm.weight": [ 128 ], "layers.22.k_norm.weight": [ 128 ], "layers.22.proj.q.packed_weight_indices": [ 4718592 ], "layers.22.proj.q.row_norms": [ 3072 ], "layers.22.proj.k.packed_weight_indices": [ 4718592 ], "layers.22.proj.k.row_norms": [ 3072 ], "layers.22.proj.v.packed_weight_indices": [ 4718592 ], "layers.22.proj.v.row_norms": [ 3072 ], "layers.22.proj.o.packed_weight_indices": [ 4718592 ], "layers.22.proj.o.row_norms": [ 3072 ], "layers.22.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.22.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.22.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.22.proj.ffn_down.row_norms": [ 3072 ], "layers.23.norm1.weight": [ 3072 ], "layers.23.norm2.weight": [ 3072 ], "layers.23.q_norm.weight": [ 128 ], "layers.23.k_norm.weight": [ 128 ], "layers.23.proj.q.packed_weight_indices": [ 4718592 ], "layers.23.proj.q.row_norms": [ 3072 ], "layers.23.proj.k.packed_weight_indices": [ 4718592 ], "layers.23.proj.k.row_norms": [ 3072 ], "layers.23.proj.v.packed_weight_indices": [ 4718592 ], "layers.23.proj.v.row_norms": [ 3072 ], "layers.23.proj.o.packed_weight_indices": [ 4718592 ], "layers.23.proj.o.row_norms": [ 3072 ], "layers.23.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.23.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.23.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.23.proj.ffn_down.row_norms": [ 3072 ], "layers.24.norm1.weight": [ 3072 ], "layers.24.norm2.weight": [ 3072 ], "layers.24.q_norm.weight": [ 128 ], "layers.24.k_norm.weight": [ 128 ], "layers.24.proj.q.packed_weight_indices": [ 4718592 ], "layers.24.proj.q.row_norms": [ 3072 ], "layers.24.proj.k.packed_weight_indices": [ 4718592 ], "layers.24.proj.k.row_norms": [ 3072 ], "layers.24.proj.v.packed_weight_indices": [ 4718592 ], "layers.24.proj.v.row_norms": [ 3072 ], "layers.24.proj.o.packed_weight_indices": [ 4718592 ], "layers.24.proj.o.row_norms": [ 3072 ], "layers.24.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.24.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.24.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.24.proj.ffn_down.row_norms": [ 3072 ], "layers.25.norm1.weight": [ 3072 ], "layers.25.norm2.weight": [ 3072 ], "layers.25.q_norm.weight": [ 128 ], "layers.25.k_norm.weight": [ 128 ], "layers.25.proj.q.packed_weight_indices": [ 4718592 ], "layers.25.proj.q.row_norms": [ 3072 ], "layers.25.proj.k.packed_weight_indices": [ 4718592 ], "layers.25.proj.k.row_norms": [ 3072 ], "layers.25.proj.v.packed_weight_indices": [ 4718592 ], "layers.25.proj.v.row_norms": [ 3072 ], "layers.25.proj.o.packed_weight_indices": [ 4718592 ], "layers.25.proj.o.row_norms": [ 3072 ], "layers.25.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.25.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.25.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.25.proj.ffn_down.row_norms": [ 3072 ], "layers.26.norm1.weight": [ 3072 ], "layers.26.norm2.weight": [ 3072 ], "layers.26.q_norm.weight": [ 128 ], "layers.26.k_norm.weight": [ 128 ], "layers.26.proj.q.packed_weight_indices": [ 4718592 ], "layers.26.proj.q.row_norms": [ 3072 ], "layers.26.proj.k.packed_weight_indices": [ 4718592 ], "layers.26.proj.k.row_norms": [ 3072 ], "layers.26.proj.v.packed_weight_indices": [ 4718592 ], "layers.26.proj.v.row_norms": [ 3072 ], "layers.26.proj.o.packed_weight_indices": [ 4718592 ], "layers.26.proj.o.row_norms": [ 3072 ], "layers.26.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.26.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.26.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.26.proj.ffn_down.row_norms": [ 3072 ], "layers.27.norm1.weight": [ 3072 ], "layers.27.norm2.weight": [ 3072 ], "layers.27.q_norm.weight": [ 128 ], "layers.27.k_norm.weight": [ 128 ], "layers.27.proj.q.packed_weight_indices": [ 4718592 ], "layers.27.proj.q.row_norms": [ 3072 ], "layers.27.proj.k.packed_weight_indices": [ 4718592 ], "layers.27.proj.k.row_norms": [ 3072 ], "layers.27.proj.v.packed_weight_indices": [ 4718592 ], "layers.27.proj.v.row_norms": [ 3072 ], "layers.27.proj.o.packed_weight_indices": [ 4718592 ], "layers.27.proj.o.row_norms": [ 3072 ], "layers.27.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.27.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.27.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.27.proj.ffn_down.row_norms": [ 3072 ], "layers.28.norm1.weight": [ 3072 ], "layers.28.norm2.weight": [ 3072 ], "layers.28.q_norm.weight": [ 128 ], "layers.28.k_norm.weight": [ 128 ], "layers.28.proj.q.packed_weight_indices": [ 4718592 ], "layers.28.proj.q.row_norms": [ 3072 ], "layers.28.proj.k.packed_weight_indices": [ 4718592 ], "layers.28.proj.k.row_norms": [ 3072 ], "layers.28.proj.v.packed_weight_indices": [ 4718592 ], "layers.28.proj.v.row_norms": [ 3072 ], "layers.28.proj.o.packed_weight_indices": [ 4718592 ], "layers.28.proj.o.row_norms": [ 3072 ], "layers.28.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.28.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.28.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.28.proj.ffn_down.row_norms": [ 3072 ], "layers.29.norm1.weight": [ 3072 ], "layers.29.norm2.weight": [ 3072 ], "layers.29.q_norm.weight": [ 128 ], "layers.29.k_norm.weight": [ 128 ], "layers.29.proj.q.packed_weight_indices": [ 4718592 ], "layers.29.proj.q.row_norms": [ 3072 ], "layers.29.proj.k.packed_weight_indices": [ 4718592 ], "layers.29.proj.k.row_norms": [ 3072 ], "layers.29.proj.v.packed_weight_indices": [ 4718592 ], "layers.29.proj.v.row_norms": [ 3072 ], "layers.29.proj.o.packed_weight_indices": [ 4718592 ], "layers.29.proj.o.row_norms": [ 3072 ], "layers.29.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.29.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.29.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.29.proj.ffn_down.row_norms": [ 3072 ], "layers.30.norm1.weight": [ 3072 ], "layers.30.norm2.weight": [ 3072 ], "layers.30.q_norm.weight": [ 128 ], "layers.30.k_norm.weight": [ 128 ], "layers.30.proj.q.packed_weight_indices": [ 4718592 ], "layers.30.proj.q.row_norms": [ 3072 ], "layers.30.proj.k.packed_weight_indices": [ 4718592 ], "layers.30.proj.k.row_norms": [ 3072 ], "layers.30.proj.v.packed_weight_indices": [ 4718592 ], "layers.30.proj.v.row_norms": [ 3072 ], "layers.30.proj.o.packed_weight_indices": [ 4718592 ], "layers.30.proj.o.row_norms": [ 3072 ], "layers.30.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.30.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.30.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.30.proj.ffn_down.row_norms": [ 3072 ], "layers.31.norm1.weight": [ 3072 ], "layers.31.norm2.weight": [ 3072 ], "layers.31.q_norm.weight": [ 128 ], "layers.31.k_norm.weight": [ 128 ], "layers.31.proj.q.packed_weight_indices": [ 4718592 ], "layers.31.proj.q.row_norms": [ 3072 ], "layers.31.proj.k.packed_weight_indices": [ 4718592 ], "layers.31.proj.k.row_norms": [ 3072 ], "layers.31.proj.v.packed_weight_indices": [ 4718592 ], "layers.31.proj.v.row_norms": [ 3072 ], "layers.31.proj.o.packed_weight_indices": [ 4718592 ], "layers.31.proj.o.row_norms": [ 3072 ], "layers.31.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.31.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.31.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.31.proj.ffn_down.row_norms": [ 3072 ], "layers.32.norm1.weight": [ 3072 ], "layers.32.norm2.weight": [ 3072 ], "layers.32.q_norm.weight": [ 128 ], "layers.32.k_norm.weight": [ 128 ], "layers.32.proj.q.packed_weight_indices": [ 4718592 ], "layers.32.proj.q.row_norms": [ 3072 ], "layers.32.proj.k.packed_weight_indices": [ 4718592 ], "layers.32.proj.k.row_norms": [ 3072 ], "layers.32.proj.v.packed_weight_indices": [ 4718592 ], "layers.32.proj.v.row_norms": [ 3072 ], "layers.32.proj.o.packed_weight_indices": [ 4718592 ], "layers.32.proj.o.row_norms": [ 3072 ], "layers.32.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.32.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.32.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.32.proj.ffn_down.row_norms": [ 3072 ], "layers.33.norm1.weight": [ 3072 ], "layers.33.norm2.weight": [ 3072 ], "layers.33.q_norm.weight": [ 128 ], "layers.33.k_norm.weight": [ 128 ], "layers.33.proj.q.packed_weight_indices": [ 4718592 ], "layers.33.proj.q.row_norms": [ 3072 ], "layers.33.proj.k.packed_weight_indices": [ 4718592 ], "layers.33.proj.k.row_norms": [ 3072 ], "layers.33.proj.v.packed_weight_indices": [ 4718592 ], "layers.33.proj.v.row_norms": [ 3072 ], "layers.33.proj.o.packed_weight_indices": [ 4718592 ], "layers.33.proj.o.row_norms": [ 3072 ], "layers.33.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.33.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.33.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.33.proj.ffn_down.row_norms": [ 3072 ], "layers.34.norm1.weight": [ 3072 ], "layers.34.norm2.weight": [ 3072 ], "layers.34.q_norm.weight": [ 128 ], "layers.34.k_norm.weight": [ 128 ], "layers.34.proj.q.packed_weight_indices": [ 4718592 ], "layers.34.proj.q.row_norms": [ 3072 ], "layers.34.proj.k.packed_weight_indices": [ 4718592 ], "layers.34.proj.k.row_norms": [ 3072 ], "layers.34.proj.v.packed_weight_indices": [ 4718592 ], "layers.34.proj.v.row_norms": [ 3072 ], "layers.34.proj.o.packed_weight_indices": [ 4718592 ], "layers.34.proj.o.row_norms": [ 3072 ], "layers.34.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.34.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.34.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.34.proj.ffn_down.row_norms": [ 3072 ], "layers.35.norm1.weight": [ 3072 ], "layers.35.norm2.weight": [ 3072 ], "layers.35.q_norm.weight": [ 128 ], "layers.35.k_norm.weight": [ 128 ], "layers.35.proj.q.packed_weight_indices": [ 4718592 ], "layers.35.proj.q.row_norms": [ 3072 ], "layers.35.proj.k.packed_weight_indices": [ 4718592 ], "layers.35.proj.k.row_norms": [ 3072 ], "layers.35.proj.v.packed_weight_indices": [ 4718592 ], "layers.35.proj.v.row_norms": [ 3072 ], "layers.35.proj.o.packed_weight_indices": [ 4718592 ], "layers.35.proj.o.row_norms": [ 3072 ], "layers.35.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.35.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.35.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.35.proj.ffn_down.row_norms": [ 3072 ], "layers.36.norm1.weight": [ 3072 ], "layers.36.norm2.weight": [ 3072 ], "layers.36.q_norm.weight": [ 128 ], "layers.36.k_norm.weight": [ 128 ], "layers.36.proj.q.packed_weight_indices": [ 4718592 ], "layers.36.proj.q.row_norms": [ 3072 ], "layers.36.proj.k.packed_weight_indices": [ 4718592 ], "layers.36.proj.k.row_norms": [ 3072 ], "layers.36.proj.v.packed_weight_indices": [ 4718592 ], "layers.36.proj.v.row_norms": [ 3072 ], "layers.36.proj.o.packed_weight_indices": [ 4718592 ], "layers.36.proj.o.row_norms": [ 3072 ], "layers.36.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.36.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.36.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.36.proj.ffn_down.row_norms": [ 3072 ], "layers.37.norm1.weight": [ 3072 ], "layers.37.norm2.weight": [ 3072 ], "layers.37.q_norm.weight": [ 128 ], "layers.37.k_norm.weight": [ 128 ], "layers.37.proj.q.packed_weight_indices": [ 4718592 ], "layers.37.proj.q.row_norms": [ 3072 ], "layers.37.proj.k.packed_weight_indices": [ 4718592 ], "layers.37.proj.k.row_norms": [ 3072 ], "layers.37.proj.v.packed_weight_indices": [ 4718592 ], "layers.37.proj.v.row_norms": [ 3072 ], "layers.37.proj.o.packed_weight_indices": [ 4718592 ], "layers.37.proj.o.row_norms": [ 3072 ], "layers.37.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.37.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.37.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.37.proj.ffn_down.row_norms": [ 3072 ], "layers.38.norm1.weight": [ 3072 ], "layers.38.norm2.weight": [ 3072 ], "layers.38.q_norm.weight": [ 128 ], "layers.38.k_norm.weight": [ 128 ], "layers.38.proj.q.packed_weight_indices": [ 4718592 ], "layers.38.proj.q.row_norms": [ 3072 ], "layers.38.proj.k.packed_weight_indices": [ 4718592 ], "layers.38.proj.k.row_norms": [ 3072 ], "layers.38.proj.v.packed_weight_indices": [ 4718592 ], "layers.38.proj.v.row_norms": [ 3072 ], "layers.38.proj.o.packed_weight_indices": [ 4718592 ], "layers.38.proj.o.row_norms": [ 3072 ], "layers.38.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.38.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.38.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.38.proj.ffn_down.row_norms": [ 3072 ], "layers.39.norm1.weight": [ 3072 ], "layers.39.norm2.weight": [ 3072 ], "layers.39.q_norm.weight": [ 128 ], "layers.39.k_norm.weight": [ 128 ], "layers.39.proj.q.packed_weight_indices": [ 4718592 ], "layers.39.proj.q.row_norms": [ 3072 ], "layers.39.proj.k.packed_weight_indices": [ 4718592 ], "layers.39.proj.k.row_norms": [ 3072 ], "layers.39.proj.v.packed_weight_indices": [ 4718592 ], "layers.39.proj.v.row_norms": [ 3072 ], "layers.39.proj.o.packed_weight_indices": [ 4718592 ], "layers.39.proj.o.row_norms": [ 3072 ], "layers.39.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.39.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.39.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.39.proj.ffn_down.row_norms": [ 3072 ], "layers.40.norm1.weight": [ 3072 ], "layers.40.norm2.weight": [ 3072 ], "layers.40.q_norm.weight": [ 128 ], "layers.40.k_norm.weight": [ 128 ], "layers.40.proj.q.packed_weight_indices": [ 4718592 ], "layers.40.proj.q.row_norms": [ 3072 ], "layers.40.proj.k.packed_weight_indices": [ 4718592 ], "layers.40.proj.k.row_norms": [ 3072 ], "layers.40.proj.v.packed_weight_indices": [ 4718592 ], "layers.40.proj.v.row_norms": [ 3072 ], "layers.40.proj.o.packed_weight_indices": [ 4718592 ], "layers.40.proj.o.row_norms": [ 3072 ], "layers.40.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.40.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.40.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.40.proj.ffn_down.row_norms": [ 3072 ], "layers.41.norm1.weight": [ 3072 ], "layers.41.norm2.weight": [ 3072 ], "layers.41.q_norm.weight": [ 128 ], "layers.41.k_norm.weight": [ 128 ], "layers.41.proj.q.packed_weight_indices": [ 4718592 ], "layers.41.proj.q.row_norms": [ 3072 ], "layers.41.proj.k.packed_weight_indices": [ 4718592 ], "layers.41.proj.k.row_norms": [ 3072 ], "layers.41.proj.v.packed_weight_indices": [ 4718592 ], "layers.41.proj.v.row_norms": [ 3072 ], "layers.41.proj.o.packed_weight_indices": [ 4718592 ], "layers.41.proj.o.row_norms": [ 3072 ], "layers.41.proj.ffn_up_gate.packed_weight_indices": [ 25165824 ], "layers.41.proj.ffn_up_gate.row_norms": [ 16384 ], "layers.41.proj.ffn_down.packed_weight_indices": [ 12582912 ], "layers.41.proj.ffn_down.row_norms": [ 3072 ], "final_norm_video.weight": [ 3072 ], "final_linear_video.weight": [ 128, 3072 ], "video_head_modulation.weight": [ 6144, 3072 ], "video_head_modulation.bias": [ 6144 ] }, "checksums": { "model.safetensors": "e42f85032d560701920880e97884cd1e27dff1235c0b12464d523a624ae1fc4d", "orbitquant_codebooks.safetensors": "061d1725029f3f5742de3ffd258512a279e7e60a5da5c69c806c52fa1eedcbab", "orbitquant_rotations.safetensors": "4c8c3e25e2e822da906970e4ba744f3d79ce9576aaffe2ac5eb4521f457ef004", "quantization_config.json": "9535aa914d82aa9cc23a5dcec8b4381d89c2cb4d42985905094ecbf0150f5edf", "model_index.json": "1f5bdeea770322141325b1080ba335fdd852f1814082744f17db5fd1dc075aeb", "prompts.json": "04901c871e459b144335027156c61ccd8ff0ecf48851c3b4811c483ee123b658", "benchmark/summary.json": "e7533b220d7f50e10652530ab086adc54b4b3ae0b10d8332009bbdec2651c4ca" }}123version https://git-lfs.github.com/spec/v1oid sha256:4c8c3e25e2e822da906970e4ba744f3d79ce9576aaffe2ac5eb4521f457ef004size 1922961234567891011121314151617181920212223242526272829303132333435363738{ "quant_method": "orbitquant", "weight_bits": 4, "activation_bits": 4, "rotation": "rpbh", "rotation_seed": 0, "block_size": "paper", "codebook": "lloyd_max", "codebook_version": 2, "codebook_dtype": "float32", "row_norm_dtype": "bfloat16", "activation_norm_dtype": "float32", "activation_eps": 1e-10, "weight_pack_dtype": "uint8", "target_policy": "universal", "adaln_policy": "int4_rtn", "adaln_group_size": 64, "modules_to_convert": [ "layers.*.proj.*" ], "modules_to_use_adaln": [], "modules_to_not_convert": [], "modules_dtype_dict": {}, "artifact_format_version": 1, "runtime_mode": "auto_fused", "activation_kernel_backend": "auto", "packed_matmul_block_m": 64, "packed_matmul_block_n": 64, "packed_matmul_block_k": 128, "packed_matmul_num_warps": 4, "weight_row_tile_size": 256, "w4a4_int8_weight_cache": false, "lowbit_boundary_protection": "auto", "lowbit_protected_blocks": 4, "lowbit_protected_bits": 4, "lowbit_interior_protection": "auto", "fused_layout": null}123456789101112131415161718192021222324252627282930313233343536373839404142434445{ "_class_name": "AutoencoderKLFlux2", "_diffusers_version": "0.38.0", "act_fn": "silu", "batch_norm_eps": 0.0001, "batch_norm_momentum": 0.1, "block_out_channels": [ 128, 256, 512, 512 ], "decoder_block_out_channels": [ 96, 192, 384, 384 ], "down_block_types": [ "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D" ], "force_upcast": true, "in_channels": 3, "latent_channels": 32, "layers_per_block": 2, "mid_block_add_attention": true, "norm_num_groups": 32, "out_channels": 3, "patch_size": [ 2, 2 ], "sample_size": 1024, "up_block_types": [ "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D" ], "use_post_quant_conv": true, "use_quant_conv": true}123version https://git-lfs.github.com/spec/v1oid sha256:c3bdf94dc67ec69b30ea9fe1fa8340085679cae64d019f7c7e4a9921f1a7f17asize 249521372.gitattributes+3
LICENSEAdded+202
README.mdAdded+139
SHA256SUMSAdded+25
assets/original_vs_orbitquant_w4a8.webpAdded

Large File Pointer Details
- SHA256: 2f9f6e457782be4e286acb3b8ab2e0fa5ea711bd7dfb4d7705a84369a91885a8
- Pointer size: 132 Bytes
- Size of remote file: 1.17 MB
assets/original_vs_orbitquant_w4a8_preview.webpAdded

Large File Pointer Details
- SHA256: eaaa8ad63bbaeba0c87f1adaa4ddcede77f266f2521da19b2f3a3bf62e11f84f
- Pointer size: 131 Bytes
- Size of remote file: 254 kB
manifest.jsonAdded+58
moss_orbitquant.pyAdded+132
pipeline_moss_image.pyAdded+440
requirements.txtAdded+8
run_moss.pyAdded+42
scheduler/scheduler_config.jsonAdded+19
text_encoder/config.jsonAdded+121
text_encoder/gptq-info.jsonAdded+654
text_encoder/model.safetensorsAdded+3
tokenizer/chat_template.jinjaAdded+154
tokenizer/tokenizer.jsonAdded+3
tokenizer/tokenizer_config.jsonAdded+32
transformer/config.jsonAdded+12
transformer/gptq-info.jsonAdded+1048
transformer/model.safetensorsAdded+3
transformer/orbitquant_codebooks.safetensorsAdded+3
transformer/orbitquant_manifest.jsonAdded+2473
transformer/orbitquant_rotations.safetensorsAdded+3
transformer/quantization_config.jsonAdded+38
vae/config.jsonAdded+45
vae/diffusion_pytorch_model.safetensorsAdded+3