Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
clover-image
diffusion
stable-diffusion
knowledge-distillation
compact
local-inference
Instructions to use neonforestmist/Clover-Image-Tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use neonforestmist/Clover-Image-Tiny with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("neonforestmist/Clover-Image-Tiny", torch_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
Publish validated Clover Image Tiny research preview
Browse files- .gitattributes +2 -0
- DATA_PROVENANCE.md +78 -0
- LICENSE +82 -0
- LICENSE-CODE +165 -0
- LICENSE-MODEL-CREATIVEML-OPENRAIL-M.txt +82 -0
- MODEL_DATA_LICENSES.md +57 -0
- README.md +194 -0
- assets/clover-image-tiny-local-mps-library-seed-1469.png +3 -0
- assets/clover-image-tiny-paired-contact-sheet.png +3 -0
- checksums.json +31 -0
- evidence/clover-image-tiny-local-mps-library-seed-1469.json +1 -0
- evidence/stage-b-inference-checksums.json +18 -0
- examples/generate.py +94 -0
- feature_extractor/preprocessor_config.json +27 -0
- model_index.json +37 -0
- requirements.txt +11 -0
- research_preview.json +168 -0
- safety_checker/config.json +46 -0
- safety_checker/model.safetensors +3 -0
- scheduler/scheduler_config.json +15 -0
- stage_b_config.json +74 -0
- text_encoder/config.json +24 -0
- text_encoder/model.safetensors +3 -0
- tokenizer/merges.txt +0 -0
- tokenizer/special_tokens_map.json +24 -0
- tokenizer/tokenizer_config.json +31 -0
- tokenizer/vocab.json +0 -0
- unet/config.json +65 -0
- unet/diffusion_pytorch_model.safetensors +3 -0
- vae/config.json +38 -0
- vae/diffusion_pytorch_model.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
assets/clover-image-tiny-local-mps-library-seed-1469.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/clover-image-tiny-paired-contact-sheet.png filter=lfs diff=lfs merge=lfs -text
|
DATA_PROVENANCE.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Data Provenance — Clover Image Tiny Research Preview
|
| 2 |
+
|
| 3 |
+
This document records the portable data identity for the exact Stage B
|
| 4 |
+
calibration checkpoint in this package. It deliberately contains no local
|
| 5 |
+
machine paths, private storage locations, or source-image payloads.
|
| 6 |
+
|
| 7 |
+
## Clover fine-tuning corpus
|
| 8 |
+
|
| 9 |
+
| Field | Value |
|
| 10 |
+
|---|---|
|
| 11 |
+
| Dataset | `Spawning/PD3M` |
|
| 12 |
+
| Pinned revision | `2a5eb24a8dccf245acd8e56341761aee06da0bdf` |
|
| 13 |
+
| Accepted records | 1,000 image-caption pairs |
|
| 14 |
+
| Split | 973 train / 17 validation / 10 test |
|
| 15 |
+
| Shards | 1 deterministic checksummed shard |
|
| 16 |
+
| Dataset gate license | `CDLA-Permissive-2.0` |
|
| 17 |
+
| Item status | CC0-1.0 or Public Domain Mark 1.0, recorded per item |
|
| 18 |
+
| Manifest SHA-256 | `50c1249f1cb0d8d690a9acc451ca10c9432eb5a7f4e26f34acb5462096e72322` |
|
| 19 |
+
| Preprocessing version | `clover-pd3m-center-crop-512-jpeg95-v1` |
|
| 20 |
+
|
| 21 |
+
Every accepted manifest row records a stable item ID, caption, split, source
|
| 22 |
+
organization and URL, item-level status, source MD5, transformed SHA-256,
|
| 23 |
+
original dimensions and MIME type, crop/resize details, filtering result, and
|
| 24 |
+
removal status. Preprocessing applies EXIF transpose, a deterministic square
|
| 25 |
+
center crop, Lanczos resize to 512×512, and JPEG encoding with stripped
|
| 26 |
+
metadata, quality 95, and subsampling 0.
|
| 27 |
+
|
| 28 |
+
The captions paired with these accepted items were used as the Stage B training
|
| 29 |
+
text. They are not represented as a separate, untracked prompt corpus. Neither
|
| 30 |
+
the source images nor the gated training shard is distributed in this model
|
| 31 |
+
package.
|
| 32 |
+
|
| 33 |
+
## Checkpoint binding
|
| 34 |
+
|
| 35 |
+
The data identity above is bound to:
|
| 36 |
+
|
| 37 |
+
- experiment `clover-kd-20260712T050925Z-01KXABNHP0`;
|
| 38 |
+
- optimizer step 500, microstep 4,000, sample position 4,000;
|
| 39 |
+
- checkpoint SHA-256
|
| 40 |
+
`4a5b99ff18478742528a0d31c97dcee939b166a51be858721d40ad5984110893`;
|
| 41 |
+
- checkpoint-bundle SHA-256
|
| 42 |
+
`384b6515f5f26838aea33ec9a941e06610a20764f0b8637c8b7b0667bfc0d447`;
|
| 43 |
+
- resolved-config SHA-256
|
| 44 |
+
`80cf9395d1f587dc0c1d440d9f5b55c55c20703187998509bb306d19d463f597`.
|
| 45 |
+
|
| 46 |
+
The bundle digest includes checkpoint metadata in addition to the format-2
|
| 47 |
+
resume artifacts, preventing the data identity from being relabeled without
|
| 48 |
+
changing the approved bundle identity.
|
| 49 |
+
|
| 50 |
+
## Engineering gallery prompts
|
| 51 |
+
|
| 52 |
+
The bundled paired contact sheet uses eight fixed project-authored prompts from
|
| 53 |
+
the 256-prompt `clover-eval-v1` suite. It is evaluation input, not training
|
| 54 |
+
data. Each row fixes the prompt and seed and compares the pinned starting model
|
| 55 |
+
on the left with this Stage B checkpoint on the right. The contact sheet
|
| 56 |
+
SHA-256 is
|
| 57 |
+
`8653d1105b7b0c56e2385a127336dbe9b3a1a03c8518edb4934353a9d8e13bfa`.
|
| 58 |
+
|
| 59 |
+
This subset checks that the pipeline produces finite, nonblank images. It does
|
| 60 |
+
not establish representative quality, prompt alignment, diversity, fairness,
|
| 61 |
+
or human preference.
|
| 62 |
+
|
| 63 |
+
## Foundational upstream provenance limitation
|
| 64 |
+
|
| 65 |
+
The 1,000-pair manifest fully describes only the additional Clover calibration
|
| 66 |
+
data. It does not replace or erase the pretraining lineage already embedded in
|
| 67 |
+
the starting student and frozen teacher.
|
| 68 |
+
|
| 69 |
+
The pinned BK-SDM-Tiny-2M model card names LAION-Aesthetics V2 6.25+ and
|
| 70 |
+
2,256,472 pairs, but does not supply the per-record license and provenance
|
| 71 |
+
evidence required by Clover's full release policy. Complete per-record
|
| 72 |
+
provenance for all foundational data behind the upstream student and teacher is
|
| 73 |
+
therefore not available to this project. The upstream checkpoints and their
|
| 74 |
+
declared CreativeML OpenRAIL-M licenses are pinned and disclosed, but that is
|
| 75 |
+
not equivalent to a complete foundational dataset audit.
|
| 76 |
+
|
| 77 |
+
This inherited limitation is material. The weights are distributed only as a
|
| 78 |
+
**RESEARCH PREVIEW · PRODUCTION PILOT · NOT RELEASE-READY** artifact.
|
LICENSE
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2022 Robin Rombach and Patrick Esser and contributors
|
| 2 |
+
|
| 3 |
+
CreativeML Open RAIL-M
|
| 4 |
+
dated August 22, 2022
|
| 5 |
+
|
| 6 |
+
Section I: PREAMBLE
|
| 7 |
+
|
| 8 |
+
Multimodal generative models are being widely adopted and used, and have the potential to transform the way artists, among other individuals, conceive and benefit from AI or ML technologies as a tool for content creation.
|
| 9 |
+
|
| 10 |
+
Notwithstanding the current and potential benefits that these artifacts can bring to society at large, there are also concerns about potential misuses of them, either due to their technical limitations or ethical considerations.
|
| 11 |
+
|
| 12 |
+
In short, this license strives for both the open and responsible downstream use of the accompanying model. When it comes to the open character, we took inspiration from open source permissive licenses regarding the grant of IP rights. Referring to the downstream responsible use, we added use-based restrictions not permitting the use of the Model in very specific scenarios, in order for the licensor to be able to enforce the license in case potential misuses of the Model may occur. At the same time, we strive to promote open and responsible research on generative models for art and content generation.
|
| 13 |
+
|
| 14 |
+
Even though downstream derivative versions of the model could be released under different licensing terms, the latter will always have to include - at minimum - the same use-based restrictions as the ones in the original license (this license). We believe in the intersection between open and responsible AI development; thus, this License aims to strike a balance between both in order to enable responsible open-science in the field of AI.
|
| 15 |
+
|
| 16 |
+
This License governs the use of the model (and its derivatives) and is informed by the model card associated with the model.
|
| 17 |
+
|
| 18 |
+
NOW THEREFORE, You and Licensor agree as follows:
|
| 19 |
+
|
| 20 |
+
1. Definitions
|
| 21 |
+
|
| 22 |
+
- "License" means the terms and conditions for use, reproduction, and Distribution as defined in this document.
|
| 23 |
+
- "Data" means a collection of information and/or content extracted from the dataset used with the Model, including to train, pretrain, or otherwise evaluate the Model. The Data is not licensed under this License.
|
| 24 |
+
- "Output" means the results of operating a Model as embodied in informational content resulting therefrom.
|
| 25 |
+
- "Model" means any accompanying machine-learning based assemblies (including checkpoints), consisting of learnt weights, parameters (including optimizer states), corresponding to the model architecture as embodied in the Complementary Material, that have been trained or tuned, in whole or in part on the Data, using the Complementary Material.
|
| 26 |
+
- "Derivatives of the Model" means all modifications to the Model, works based on the Model, or any other model which is created or initialized by transfer of patterns of the weights, parameters, activations or output of the Model, to the other model, in order to cause the other model to perform similarly to the Model, including - but not limited to - distillation methods entailing the use of intermediate data representations or methods based on the generation of synthetic data by the Model for training the other model.
|
| 27 |
+
- "Complementary Material" means the accompanying source code and scripts used to define, run, load, benchmark or evaluate the Model, and used to prepare data for training or evaluation, if any. This includes any accompanying documentation, tutorials, examples, etc, if any.
|
| 28 |
+
- "Distribution" means any transmission, reproduction, publication or other sharing of the Model or Derivatives of the Model to a third party, including providing the Model as a hosted service made available by electronic or other remote means - e.g. API-based or web access.
|
| 29 |
+
- "Licensor" means the copyright owner or entity authorized by the copyright owner that is granting the License, including the persons or entities that may have rights in the Model and/or distributing the Model.
|
| 30 |
+
- "You" (or "Your") means an individual or Legal Entity exercising permissions granted by this License and/or making use of the Model for whichever purpose and in any field of use, including usage of the Model in an end-use application - e.g. chatbot, translator, image generator.
|
| 31 |
+
- "Third Parties" means individuals or legal entities that are not under common control with Licensor or You.
|
| 32 |
+
- "Contribution" means any work of authorship, including the original version of the Model and any modifications or additions to that Model or Derivatives of the Model thereof, that is intentionally submitted to Licensor for inclusion in the Model 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 Model, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
| 33 |
+
- "Contributor" means Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Model.
|
| 34 |
+
|
| 35 |
+
Section II: INTELLECTUAL PROPERTY RIGHTS
|
| 36 |
+
|
| 37 |
+
Both copyright and patent grants apply to the Model, Derivatives of the Model and Complementary Material. The Model and Derivatives of the Model are subject to additional terms as described in Section III.
|
| 38 |
+
|
| 39 |
+
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, publicly display, publicly perform, sublicense, and distribute the Complementary Material, the Model, and Derivatives of the Model.
|
| 40 |
+
3. Grant of Patent License. Subject to the terms and conditions of this License and where and as applicable, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this paragraph) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Model and the Complementary Material, 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 Model 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 Model and/or Complementary Material or a Contribution incorporated within the Model and/or Complementary Material constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for the Model and/or Work shall terminate as of the date such litigation is asserted or filed.
|
| 41 |
+
|
| 42 |
+
Section III: CONDITIONS OF USAGE, DISTRIBUTION AND REDISTRIBUTION
|
| 43 |
+
|
| 44 |
+
4. Distribution and Redistribution. You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications, provided that You meet the following conditions:
|
| 45 |
+
Use-based restrictions as referenced in paragraph 5 MUST be included as an enforceable provision by You in any type of legal agreement (e.g. a license) governing the use and/or distribution of the Model or Derivatives of the Model, and You shall give notice to subsequent users You Distribute to, that the Model or Derivatives of the Model are subject to paragraph 5. This provision does not apply to the use of Complementary Material.
|
| 46 |
+
You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License;
|
| 47 |
+
You must cause any modified files to carry prominent notices stating that You changed the files;
|
| 48 |
+
You must retain all copyright, patent, trademark, and attribution notices excluding those notices that do not pertain to any part of the Model, Derivatives of the Model.
|
| 49 |
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions - respecting paragraph 4.a. - for use, reproduction, or Distribution of Your modifications, or for any such Derivatives of the Model as a whole, provided Your use, reproduction, and Distribution of the Model otherwise complies with the conditions stated in this License.
|
| 50 |
+
5. Use-based restrictions. The restrictions set forth in Attachment A are considered Use-based restrictions. Therefore You cannot use the Model and the Derivatives of the Model for the specified restricted uses. You may use the Model subject to this License, including only for lawful purposes and in accordance with the License. Use may include creating any content with, finetuning, updating, running, training, evaluating and/or reparametrizing the Model. You shall require all of Your users who use the Model or a Derivative of the Model to comply with the terms of this paragraph (paragraph 5).
|
| 51 |
+
6. The Output You Generate. Except as set forth herein, Licensor claims no rights in the Output You generate using the Model. You are accountable for the Output you generate and its subsequent uses. No use of the output can contravene any provision as stated in the License.
|
| 52 |
+
|
| 53 |
+
Section IV: OTHER PROVISIONS
|
| 54 |
+
|
| 55 |
+
7. Updates and Runtime Restrictions. To the maximum extent permitted by law, Licensor reserves the right to restrict (remotely or otherwise) usage of the Model in violation of this License, update the Model through electronic means, or modify the Output of the Model based on updates. You shall undertake reasonable efforts to use the latest version of the Model.
|
| 56 |
+
8. Trademarks and related. Nothing in this License permits You to make use of Licensors’ trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between the parties; and any rights not expressly granted herein are reserved by the Licensors.
|
| 57 |
+
9. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Model and the Complementary Material (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 Model, Derivatives of the Model, and the Complementary Material and assume any risks associated with Your exercise of permissions under this License.
|
| 58 |
+
10. 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 Model and the Complementary Material (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.
|
| 59 |
+
11. Accepting Warranty or Additional Liability. While redistributing the Model, Derivatives of the Model and the Complementary Material 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.
|
| 60 |
+
12. If any provision of this License is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.
|
| 61 |
+
|
| 62 |
+
END OF TERMS AND CONDITIONS
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
Attachment A
|
| 68 |
+
|
| 69 |
+
Use Restrictions
|
| 70 |
+
|
| 71 |
+
You agree not to use the Model or Derivatives of the Model:
|
| 72 |
+
- In any way that violates any applicable national, federal, state, local or international law or regulation;
|
| 73 |
+
- For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;
|
| 74 |
+
- To generate or disseminate verifiably false information and/or content with the purpose of harming others;
|
| 75 |
+
- To generate or disseminate personal identifiable information that can be used to harm an individual;
|
| 76 |
+
- To defame, disparage or otherwise harass others;
|
| 77 |
+
- For fully automated decision making that adversely impacts an individual’s legal rights or otherwise creates or modifies a binding, enforceable obligation;
|
| 78 |
+
- For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics;
|
| 79 |
+
- To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;
|
| 80 |
+
- For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories;
|
| 81 |
+
- To provide medical advice and medical results interpretation;
|
| 82 |
+
- To generate or disseminate information for the purpose to be used for administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and arbitrarily-targeted use).
|
LICENSE-CODE
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work.
|
| 38 |
+
|
| 39 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 40 |
+
form, that is based on (or derived from) the Work and for which the
|
| 41 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 42 |
+
represent, as a whole, an original work of authorship. Derivative Works
|
| 43 |
+
shall not include works that remain separable from, or merely link (or
|
| 44 |
+
bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
| 45 |
+
|
| 46 |
+
"Contribution" shall mean any work of authorship, including the
|
| 47 |
+
original version of the Work and any modifications or additions to
|
| 48 |
+
that Work or Derivative Works thereof, that is intentionally
|
| 49 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 50 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 51 |
+
the copyright owner. "Submitted" means any form of electronic, verbal,
|
| 52 |
+
or written communication sent to the Licensor or its representatives,
|
| 53 |
+
including but not limited to communication on electronic mailing lists,
|
| 54 |
+
source code control systems, and issue tracking systems that are managed
|
| 55 |
+
by, or on behalf of, the Licensor for the purpose of discussing and
|
| 56 |
+
improving the Work, but excluding communication that is conspicuously
|
| 57 |
+
marked or otherwise designated in writing by the copyright owner as
|
| 58 |
+
"Not a Contribution."
|
| 59 |
+
|
| 60 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 61 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 62 |
+
subsequently incorporated within the Work.
|
| 63 |
+
|
| 64 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 65 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 66 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 67 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 68 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 69 |
+
Work and such Derivative Works in Source or Object form.
|
| 70 |
+
|
| 71 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 72 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 73 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 74 |
+
(except as stated in this section) patent license to make, have made,
|
| 75 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 76 |
+
where such license applies only to those patent claims licensable
|
| 77 |
+
by such Contributor that are necessarily infringed by their
|
| 78 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 79 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 80 |
+
institute patent litigation against any entity (including a
|
| 81 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 82 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 83 |
+
or contributory patent infringement, then any patent licenses
|
| 84 |
+
granted to You under this License for that Work shall terminate
|
| 85 |
+
as of the date such litigation is filed.
|
| 86 |
+
|
| 87 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 88 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 89 |
+
modifications, and in Source or Object form, provided that You
|
| 90 |
+
meet the following conditions:
|
| 91 |
+
|
| 92 |
+
(a) You must give any other recipients of the Work or
|
| 93 |
+
Derivative Works a copy of this License; and
|
| 94 |
+
|
| 95 |
+
(b) You must cause any modified files to carry prominent notices
|
| 96 |
+
stating that You changed the files; and
|
| 97 |
+
|
| 98 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 99 |
+
that You distribute, all copyright, patent, trademark, and
|
| 100 |
+
attribution notices from the Source form of the Work,
|
| 101 |
+
excluding those notices that do not pertain to any part of
|
| 102 |
+
the Derivative Works; and
|
| 103 |
+
|
| 104 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 105 |
+
distribution, then any Derivative Works that You distribute must
|
| 106 |
+
include a readable copy of the attribution notices contained
|
| 107 |
+
within such NOTICE file, excluding those notices that do not
|
| 108 |
+
pertain to any part of the Derivative Works, in at least one
|
| 109 |
+
of the following places: within a NOTICE text file distributed
|
| 110 |
+
as part of the Derivative Works; within the Source form or
|
| 111 |
+
documentation, if provided along with the Derivative Works; or,
|
| 112 |
+
within a display generated by the Derivative Works, if and
|
| 113 |
+
wherever such third-party notices normally appear. The contents
|
| 114 |
+
of the NOTICE file are for informational purposes only and
|
| 115 |
+
do not modify the License. You may add Your own attribution
|
| 116 |
+
notices within Derivative Works that You distribute, alongside
|
| 117 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 118 |
+
that such additional attribution notices cannot be construed
|
| 119 |
+
as modifying the License.
|
| 120 |
+
|
| 121 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 122 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 123 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 124 |
+
this License, without any additional terms or conditions.
|
| 125 |
+
|
| 126 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 127 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 128 |
+
except as required for reasonable and customary use in describing the
|
| 129 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 130 |
+
|
| 131 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 132 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 133 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 134 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 135 |
+
implied, including, without limitation, any warranties or conditions
|
| 136 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 137 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 138 |
+
appropriateness of using or redistributing the Work and assume any
|
| 139 |
+
risks associated with Your exercise of permissions under this License.
|
| 140 |
+
|
| 141 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 142 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 143 |
+
unless required by applicable law (such as deliberate and grossly
|
| 144 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 145 |
+
liable to You for damages, including any direct, indirect, special,
|
| 146 |
+
incidental, or consequential damages of any character arising as a
|
| 147 |
+
result of this License or out of the use or inability to use the
|
| 148 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 149 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 150 |
+
other commercial damages or losses), even if such Contributor
|
| 151 |
+
has been advised of the possibility of such damages.
|
| 152 |
+
|
| 153 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 154 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 155 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 156 |
+
or other liability obligations and/or rights consistent with this
|
| 157 |
+
License. However, in accepting such obligations, You may act only
|
| 158 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 159 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 160 |
+
defend, and hold each Contributor harmless for any liability
|
| 161 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 162 |
+
of your accepting any such warranty or additional liability.
|
| 163 |
+
|
| 164 |
+
END OF TERMS AND CONDITIONS
|
| 165 |
+
|
LICENSE-MODEL-CREATIVEML-OPENRAIL-M.txt
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2022 Robin Rombach and Patrick Esser and contributors
|
| 2 |
+
|
| 3 |
+
CreativeML Open RAIL-M
|
| 4 |
+
dated August 22, 2022
|
| 5 |
+
|
| 6 |
+
Section I: PREAMBLE
|
| 7 |
+
|
| 8 |
+
Multimodal generative models are being widely adopted and used, and have the potential to transform the way artists, among other individuals, conceive and benefit from AI or ML technologies as a tool for content creation.
|
| 9 |
+
|
| 10 |
+
Notwithstanding the current and potential benefits that these artifacts can bring to society at large, there are also concerns about potential misuses of them, either due to their technical limitations or ethical considerations.
|
| 11 |
+
|
| 12 |
+
In short, this license strives for both the open and responsible downstream use of the accompanying model. When it comes to the open character, we took inspiration from open source permissive licenses regarding the grant of IP rights. Referring to the downstream responsible use, we added use-based restrictions not permitting the use of the Model in very specific scenarios, in order for the licensor to be able to enforce the license in case potential misuses of the Model may occur. At the same time, we strive to promote open and responsible research on generative models for art and content generation.
|
| 13 |
+
|
| 14 |
+
Even though downstream derivative versions of the model could be released under different licensing terms, the latter will always have to include - at minimum - the same use-based restrictions as the ones in the original license (this license). We believe in the intersection between open and responsible AI development; thus, this License aims to strike a balance between both in order to enable responsible open-science in the field of AI.
|
| 15 |
+
|
| 16 |
+
This License governs the use of the model (and its derivatives) and is informed by the model card associated with the model.
|
| 17 |
+
|
| 18 |
+
NOW THEREFORE, You and Licensor agree as follows:
|
| 19 |
+
|
| 20 |
+
1. Definitions
|
| 21 |
+
|
| 22 |
+
- "License" means the terms and conditions for use, reproduction, and Distribution as defined in this document.
|
| 23 |
+
- "Data" means a collection of information and/or content extracted from the dataset used with the Model, including to train, pretrain, or otherwise evaluate the Model. The Data is not licensed under this License.
|
| 24 |
+
- "Output" means the results of operating a Model as embodied in informational content resulting therefrom.
|
| 25 |
+
- "Model" means any accompanying machine-learning based assemblies (including checkpoints), consisting of learnt weights, parameters (including optimizer states), corresponding to the model architecture as embodied in the Complementary Material, that have been trained or tuned, in whole or in part on the Data, using the Complementary Material.
|
| 26 |
+
- "Derivatives of the Model" means all modifications to the Model, works based on the Model, or any other model which is created or initialized by transfer of patterns of the weights, parameters, activations or output of the Model, to the other model, in order to cause the other model to perform similarly to the Model, including - but not limited to - distillation methods entailing the use of intermediate data representations or methods based on the generation of synthetic data by the Model for training the other model.
|
| 27 |
+
- "Complementary Material" means the accompanying source code and scripts used to define, run, load, benchmark or evaluate the Model, and used to prepare data for training or evaluation, if any. This includes any accompanying documentation, tutorials, examples, etc, if any.
|
| 28 |
+
- "Distribution" means any transmission, reproduction, publication or other sharing of the Model or Derivatives of the Model to a third party, including providing the Model as a hosted service made available by electronic or other remote means - e.g. API-based or web access.
|
| 29 |
+
- "Licensor" means the copyright owner or entity authorized by the copyright owner that is granting the License, including the persons or entities that may have rights in the Model and/or distributing the Model.
|
| 30 |
+
- "You" (or "Your") means an individual or Legal Entity exercising permissions granted by this License and/or making use of the Model for whichever purpose and in any field of use, including usage of the Model in an end-use application - e.g. chatbot, translator, image generator.
|
| 31 |
+
- "Third Parties" means individuals or legal entities that are not under common control with Licensor or You.
|
| 32 |
+
- "Contribution" means any work of authorship, including the original version of the Model and any modifications or additions to that Model or Derivatives of the Model thereof, that is intentionally submitted to Licensor for inclusion in the Model 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 Model, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
| 33 |
+
- "Contributor" means Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Model.
|
| 34 |
+
|
| 35 |
+
Section II: INTELLECTUAL PROPERTY RIGHTS
|
| 36 |
+
|
| 37 |
+
Both copyright and patent grants apply to the Model, Derivatives of the Model and Complementary Material. The Model and Derivatives of the Model are subject to additional terms as described in Section III.
|
| 38 |
+
|
| 39 |
+
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, publicly display, publicly perform, sublicense, and distribute the Complementary Material, the Model, and Derivatives of the Model.
|
| 40 |
+
3. Grant of Patent License. Subject to the terms and conditions of this License and where and as applicable, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this paragraph) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Model and the Complementary Material, 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 Model 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 Model and/or Complementary Material or a Contribution incorporated within the Model and/or Complementary Material constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for the Model and/or Work shall terminate as of the date such litigation is asserted or filed.
|
| 41 |
+
|
| 42 |
+
Section III: CONDITIONS OF USAGE, DISTRIBUTION AND REDISTRIBUTION
|
| 43 |
+
|
| 44 |
+
4. Distribution and Redistribution. You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications, provided that You meet the following conditions:
|
| 45 |
+
Use-based restrictions as referenced in paragraph 5 MUST be included as an enforceable provision by You in any type of legal agreement (e.g. a license) governing the use and/or distribution of the Model or Derivatives of the Model, and You shall give notice to subsequent users You Distribute to, that the Model or Derivatives of the Model are subject to paragraph 5. This provision does not apply to the use of Complementary Material.
|
| 46 |
+
You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License;
|
| 47 |
+
You must cause any modified files to carry prominent notices stating that You changed the files;
|
| 48 |
+
You must retain all copyright, patent, trademark, and attribution notices excluding those notices that do not pertain to any part of the Model, Derivatives of the Model.
|
| 49 |
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions - respecting paragraph 4.a. - for use, reproduction, or Distribution of Your modifications, or for any such Derivatives of the Model as a whole, provided Your use, reproduction, and Distribution of the Model otherwise complies with the conditions stated in this License.
|
| 50 |
+
5. Use-based restrictions. The restrictions set forth in Attachment A are considered Use-based restrictions. Therefore You cannot use the Model and the Derivatives of the Model for the specified restricted uses. You may use the Model subject to this License, including only for lawful purposes and in accordance with the License. Use may include creating any content with, finetuning, updating, running, training, evaluating and/or reparametrizing the Model. You shall require all of Your users who use the Model or a Derivative of the Model to comply with the terms of this paragraph (paragraph 5).
|
| 51 |
+
6. The Output You Generate. Except as set forth herein, Licensor claims no rights in the Output You generate using the Model. You are accountable for the Output you generate and its subsequent uses. No use of the output can contravene any provision as stated in the License.
|
| 52 |
+
|
| 53 |
+
Section IV: OTHER PROVISIONS
|
| 54 |
+
|
| 55 |
+
7. Updates and Runtime Restrictions. To the maximum extent permitted by law, Licensor reserves the right to restrict (remotely or otherwise) usage of the Model in violation of this License, update the Model through electronic means, or modify the Output of the Model based on updates. You shall undertake reasonable efforts to use the latest version of the Model.
|
| 56 |
+
8. Trademarks and related. Nothing in this License permits You to make use of Licensors’ trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between the parties; and any rights not expressly granted herein are reserved by the Licensors.
|
| 57 |
+
9. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Model and the Complementary Material (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 Model, Derivatives of the Model, and the Complementary Material and assume any risks associated with Your exercise of permissions under this License.
|
| 58 |
+
10. 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 Model and the Complementary Material (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.
|
| 59 |
+
11. Accepting Warranty or Additional Liability. While redistributing the Model, Derivatives of the Model and the Complementary Material 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.
|
| 60 |
+
12. If any provision of this License is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.
|
| 61 |
+
|
| 62 |
+
END OF TERMS AND CONDITIONS
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
Attachment A
|
| 68 |
+
|
| 69 |
+
Use Restrictions
|
| 70 |
+
|
| 71 |
+
You agree not to use the Model or Derivatives of the Model:
|
| 72 |
+
- In any way that violates any applicable national, federal, state, local or international law or regulation;
|
| 73 |
+
- For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;
|
| 74 |
+
- To generate or disseminate verifiably false information and/or content with the purpose of harming others;
|
| 75 |
+
- To generate or disseminate personal identifiable information that can be used to harm an individual;
|
| 76 |
+
- To defame, disparage or otherwise harass others;
|
| 77 |
+
- For fully automated decision making that adversely impacts an individual’s legal rights or otherwise creates or modifies a binding, enforceable obligation;
|
| 78 |
+
- For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics;
|
| 79 |
+
- To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;
|
| 80 |
+
- For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories;
|
| 81 |
+
- To provide medical advice and medical results interpretation;
|
| 82 |
+
- To generate or disseminate information for the purpose to be used for administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and arbitrarily-targeted use).
|
MODEL_DATA_LICENSES.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Model and Data Licenses — Clover Image Tiny Research Preview
|
| 2 |
+
|
| 3 |
+
This is a conservative license and provenance ledger for the exact research
|
| 4 |
+
preview. The complete bundled license texts control over this summary. This is
|
| 5 |
+
not legal advice.
|
| 6 |
+
|
| 7 |
+
| Component | Exact identity | License/status | Consequence |
|
| 8 |
+
|---|---|---|---|
|
| 9 |
+
| Preview model weights | Stage B step 500; checkpoint `4a5b99ff18478742528a0d31c97dcee939b166a51be858721d40ad5984110893` | CreativeML OpenRAIL-M derivative | Retain the complete terms, attribution, modification notice, and use restrictions |
|
| 10 |
+
| Starting student | `nota-ai/bk-sdm-tiny-2m@aad3e0e8ba61b7cb9f64869dc4e586f8ad9d3665` | Pinned model card declares CreativeML OpenRAIL-M | Derivative-weight obligations apply |
|
| 11 |
+
| Frozen teacher | `CompVis/stable-diffusion-v1-4@133a221b8aa7292a167afc5127cb63fb5005638b` | Pinned model card declares CreativeML OpenRAIL-M | Distillation from outputs and activations retains derivative-weight obligations |
|
| 12 |
+
| Tokenizer and text encoder | Byte-identical components in the two pinned pipelines | CreativeML OpenRAIL-M lineage | Bundled as upstream model components |
|
| 13 |
+
| VAE | Byte-identical component in the two pinned pipelines | CreativeML OpenRAIL-M lineage | Bundled as an upstream model component |
|
| 14 |
+
| Clover fine-tuning data | `Spawning/PD3M@2a5eb24a8dccf245acd8e56341761aee06da0bdf`; manifest `50c1249f1cb0d8d690a9acc451ca10c9432eb5a7f4e26f34acb5462096e72322` | Dataset declaration: CDLA-Permissive-2.0; accepted items: CC0-1.0 or Public Domain Mark 1.0 | Dataset and item terms remain separate from the model license; raw data is not bundled |
|
| 15 |
+
| Calibration captions | Captions paired with the exact accepted PD3M items | Same recorded item/dataset lineage | Not a separate untracked training corpus |
|
| 16 |
+
| Example and packaging code | Files authored by the Clover-Image project | Apache-2.0 | Code license does not relicense model weights or data |
|
| 17 |
+
| Runtime dependencies | Pinned packages listed in `requirements.txt` | Their own upstream licenses | Installed separately; no dependency is relicensed by this package |
|
| 18 |
+
|
| 19 |
+
## Weight-license selection
|
| 20 |
+
|
| 21 |
+
Both pinned upstream weight repositories declare CreativeML OpenRAIL-M. The
|
| 22 |
+
Stage B process modified the starting BK-SDM-Tiny-2M weights using task/output
|
| 23 |
+
and feature distillation from the frozen Stable Diffusion v1.4 teacher plus the
|
| 24 |
+
licensed calibration corpus. The resulting weights are therefore labeled as a
|
| 25 |
+
CreativeML OpenRAIL-M derivative rather than Apache-2.0.
|
| 26 |
+
|
| 27 |
+
The bundled canonical CreativeML OpenRAIL-M file is 14,385 bytes with SHA-256
|
| 28 |
+
`be351ebe7ac01bcdbb018639aadcfd38f136b7dc3f2a3d4d3a24db51d1b210ef`.
|
| 29 |
+
The separately bundled Apache-2.0 project-code license is 9,147 bytes with
|
| 30 |
+
SHA-256
|
| 31 |
+
`e26a0375b714267325c27905ba947fdc41ebc0b7a36940a49ae12379ed6208d6`.
|
| 32 |
+
|
| 33 |
+
Calling this artifact a research preview does not create a new weight license
|
| 34 |
+
or waive OpenRAIL-M restrictions. Users must review and follow the complete
|
| 35 |
+
terms for copying, redistribution, modification, and use.
|
| 36 |
+
|
| 37 |
+
## Data terms
|
| 38 |
+
|
| 39 |
+
The fine-tuning dataset gate is `CDLA-Permissive-2.0`, while each accepted item
|
| 40 |
+
retains its recorded CC0-1.0 declaration or Public Domain Mark 1.0 status.
|
| 41 |
+
Neither the model-weight license nor the project-code license replaces those
|
| 42 |
+
data terms. Source images and the gated training shard are not redistributed in
|
| 43 |
+
this package.
|
| 44 |
+
|
| 45 |
+
## Known unresolved provenance scope
|
| 46 |
+
|
| 47 |
+
The Clover calibration set has an exact 1,000-row manifest. The upstream
|
| 48 |
+
foundational data does not have equivalent per-record evidence in this project.
|
| 49 |
+
The pinned BK-SDM model card identifies LAION-Aesthetics V2 6.25+ and 2,256,472
|
| 50 |
+
pairs, but not the item-level evidence demanded by Clover's full release policy.
|
| 51 |
+
The project likewise does not claim a complete per-record audit of every
|
| 52 |
+
foundational example behind the upstream teacher.
|
| 53 |
+
|
| 54 |
+
Pinned model IDs, revisions, and license declarations are evidence of weight
|
| 55 |
+
lineage; they are not substitutes for foundational data provenance. This
|
| 56 |
+
unresolved inherited scope is a principal reason the package remains
|
| 57 |
+
**RESEARCH PREVIEW · PRODUCTION PILOT · NOT RELEASE-READY**.
|
README.md
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: diffusers
|
| 3 |
+
pipeline_tag: text-to-image
|
| 4 |
+
inference: false
|
| 5 |
+
base_model: nota-ai/bk-sdm-tiny-2m
|
| 6 |
+
license: creativeml-openrail-m
|
| 7 |
+
tags:
|
| 8 |
+
- text-to-image
|
| 9 |
+
- diffusion
|
| 10 |
+
- stable-diffusion
|
| 11 |
+
- knowledge-distillation
|
| 12 |
+
- research-preview
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Clover Image Tiny — Research Preview
|
| 16 |
+
|
| 17 |
+
This is **Clover Image Tiny**, an early conventional knowledge-distillation
|
| 18 |
+
checkpoint released as a research preview. It is a production-data pilot, not
|
| 19 |
+
a release-ready model. It uses the compact BK-SDM-Tiny-2M architecture, a
|
| 20 |
+
conventional 50-step PNDM schedule, 512×512 output, and classifier-free
|
| 21 |
+
guidance 7.5.
|
| 22 |
+
|
| 23 |
+
The checkpoint is useful for inspecting an early, licensed-data quality-refresh
|
| 24 |
+
experiment. It is not a finished Clover release, a quality benchmark, or a
|
| 25 |
+
claim of uniformly better output than its starting model.
|
| 26 |
+
|
| 27 |
+
## Exact artifact identity
|
| 28 |
+
|
| 29 |
+
| Field | Value |
|
| 30 |
+
|---|---|
|
| 31 |
+
| Repository | `neonforestmist/Clover-Image-Tiny` |
|
| 32 |
+
| Status | **RESEARCH PREVIEW · PRODUCTION PILOT · NOT RELEASE-READY** |
|
| 33 |
+
| Experiment | `clover-kd-20260712T050925Z-01KXABNHP0` |
|
| 34 |
+
| Training stage | Stage B knowledge distillation |
|
| 35 |
+
| Optimizer step | 500 |
|
| 36 |
+
| Checkpoint SHA-256 | `4a5b99ff18478742528a0d31c97dcee939b166a51be858721d40ad5984110893` |
|
| 37 |
+
| Checkpoint-bundle SHA-256 | `384b6515f5f26838aea33ec9a941e06610a20764f0b8637c8b7b0667bfc0d447` |
|
| 38 |
+
| Resolved-config SHA-256 | `80cf9395d1f587dc0c1d440d9f5b55c55c20703187998509bb306d19d463f597` |
|
| 39 |
+
| Dataset-manifest SHA-256 | `50c1249f1cb0d8d690a9acc451ca10c9432eb5a7f4e26f34acb5462096e72322` |
|
| 40 |
+
| Package bytes | `1671489892` |
|
| 41 |
+
| Package files | `30` |
|
| 42 |
+
| Validated Stage B source-package checksums SHA-256 | `d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc` |
|
| 43 |
+
| Builder source commit | `1880c3eb55133e8b7b1786ddea8e732d16a2f902` |
|
| 44 |
+
|
| 45 |
+
The checkpoint completed 500 optimizer steps, 4,000 microsteps, and 4,000
|
| 46 |
+
sample presentations. All 500 recorded training rows were finite and had a
|
| 47 |
+
nonzero gradient. Those are training-integrity observations, not image-quality
|
| 48 |
+
scores.
|
| 49 |
+
|
| 50 |
+
## Example gallery
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
|
| 54 |
+
Each row uses the same prompt and seed. The **left column is the pinned
|
| 55 |
+
BK-SDM-Tiny-2M baseline; only the right column is this Stage B checkpoint**.
|
| 56 |
+
The gallery was generated on an NVIDIA L4 in bfloat16 with 50 PNDM steps,
|
| 57 |
+
guidance 7.5, an empty negative prompt, and 512×512 output.
|
| 58 |
+
With the pinned Diffusers 0.39.0 scheduler, those 50 requested PNDM steps use
|
| 59 |
+
51 U-Net invocations because PLMS repeats its first retained timestep.
|
| 60 |
+
|
| 61 |
+
All eight Stage B gallery images were finite, nonblank, nonblack, and returned
|
| 62 |
+
clear from the packaged upstream safety checker in that measured run. This
|
| 63 |
+
small engineering subset is not a general safety or quality evaluation. The
|
| 64 |
+
changes are modest and not uniformly better: the bottle example loses prompt
|
| 65 |
+
fidelity, hands remain weak, and some details change without clear improvement.
|
| 66 |
+
|
| 67 |
+
## Run with Diffusers
|
| 68 |
+
|
| 69 |
+
Install the pinned preview environment:
|
| 70 |
+
|
| 71 |
+
```bash
|
| 72 |
+
python -m pip install -r requirements.txt
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
Then generate with the conventional configuration used for the gallery:
|
| 76 |
+
|
| 77 |
+
```python
|
| 78 |
+
import torch
|
| 79 |
+
from diffusers import DiffusionPipeline, PNDMScheduler
|
| 80 |
+
|
| 81 |
+
model_id = "neonforestmist/Clover-Image-Tiny"
|
| 82 |
+
if torch.cuda.is_available():
|
| 83 |
+
device = "cuda"
|
| 84 |
+
elif torch.backends.mps.is_available():
|
| 85 |
+
device = "mps"
|
| 86 |
+
else:
|
| 87 |
+
device = "cpu"
|
| 88 |
+
dtype = torch.float16 if device in {"cuda", "mps"} else torch.float32
|
| 89 |
+
|
| 90 |
+
pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=dtype)
|
| 91 |
+
pipe.scheduler = PNDMScheduler.from_config(pipe.scheduler.config)
|
| 92 |
+
pipe = pipe.to(device)
|
| 93 |
+
|
| 94 |
+
generator_device = "cuda" if device == "cuda" else "cpu"
|
| 95 |
+
generator = torch.Generator(device=generator_device).manual_seed(1337)
|
| 96 |
+
result = pipe(
|
| 97 |
+
prompt="a tiny greenhouse glowing in a moonlit garden",
|
| 98 |
+
negative_prompt="",
|
| 99 |
+
num_inference_steps=50,
|
| 100 |
+
guidance_scale=7.5,
|
| 101 |
+
height=512,
|
| 102 |
+
width=512,
|
| 103 |
+
generator=generator,
|
| 104 |
+
)
|
| 105 |
+
result.images[0].save("clover-image-tiny.png")
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
The bundled `examples/generate.py` chooses CUDA, MPS, or CPU safely and writes
|
| 109 |
+
the resolved settings next to the PNG:
|
| 110 |
+
|
| 111 |
+
```bash
|
| 112 |
+
python examples/generate.py \
|
| 113 |
+
--model "neonforestmist/Clover-Image-Tiny" \
|
| 114 |
+
--prompt "a tiny greenhouse glowing in a moonlit garden" \
|
| 115 |
+
--output clover-image-tiny.png
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
Seeded generation is repeatable only within the limits of the selected runtime.
|
| 119 |
+
Different devices, dtypes, kernels, and dependency builds can produce different
|
| 120 |
+
pixels. The bundled Mac example below was measured locally on an Apple M4 Pro
|
| 121 |
+
with MPS and fp16: 18.21 seconds, exactly 51 U-Net calls, and 631,341,056 bytes
|
| 122 |
+
of process-lifetime maximum RSS. It used the prompt “a compact modern library
|
| 123 |
+
with arched windows” and seed 1469. The packaged safety checker ran and returned
|
| 124 |
+
clear. This does not promise identical pixels or performance on another Mac.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
|
| 128 |
+
Its machine-readable evidence is bundled at
|
| 129 |
+
`evidence/clover-image-tiny-local-mps-library-seed-1469.json`; the image
|
| 130 |
+
SHA-256 is
|
| 131 |
+
`f8830346f2a9c2b9a8c2a01d8f90e6925c93d667c1bcf998aa904a150589a742`.
|
| 132 |
+
|
| 133 |
+
## Training lineage
|
| 134 |
+
|
| 135 |
+
- Starting student:
|
| 136 |
+
`nota-ai/bk-sdm-tiny-2m@aad3e0e8ba61b7cb9f64869dc4e586f8ad9d3665`
|
| 137 |
+
- Frozen teacher:
|
| 138 |
+
`CompVis/stable-diffusion-v1-4@133a221b8aa7292a167afc5127cb63fb5005638b`
|
| 139 |
+
- Fine-tuning data: exactly 1,000 accepted image-caption pairs from
|
| 140 |
+
`Spawning/PD3M@2a5eb24a8dccf245acd8e56341761aee06da0bdf`
|
| 141 |
+
- Split: 973 train, 17 validation, and 10 test records in one checksummed shard
|
| 142 |
+
- Data gate: `CDLA-Permissive-2.0`; accepted items retain CC0-1.0 or Public
|
| 143 |
+
Domain Mark 1.0 provenance
|
| 144 |
+
- Preprocessing: deterministic center crop and 512×512 JPEG conversion,
|
| 145 |
+
version `clover-pd3m-center-crop-512-jpeg95-v1`
|
| 146 |
+
|
| 147 |
+
The 1,000 records describe only this Clover fine-tuning run. The starting
|
| 148 |
+
student and teacher already contain knowledge learned from much larger upstream
|
| 149 |
+
corpora. Their pinned model cards and weight licenses were verified, but the
|
| 150 |
+
project does not have complete per-record provenance for all foundational
|
| 151 |
+
pretraining behind those weights. In particular, the BK-SDM model card names
|
| 152 |
+
LAION-Aesthetics V2 6.25+ and 2,256,472 pairs without the per-record evidence
|
| 153 |
+
required by Clover's full release policy. This inherited gap is a material
|
| 154 |
+
reason the package is labeled a research preview and not release-ready.
|
| 155 |
+
|
| 156 |
+
See `DATA_PROVENANCE.md`, `MODEL_DATA_LICENSES.md`, the bundled CreativeML Open
|
| 157 |
+
RAIL-M terms, and the package checksums for the portable evidence included here.
|
| 158 |
+
|
| 159 |
+
## Intended use
|
| 160 |
+
|
| 161 |
+
- Research and inspection of compact Stable Diffusion knowledge distillation
|
| 162 |
+
- Reproducing the fixed conventional 50-step engineering examples
|
| 163 |
+
- Comparing this early calibration checkpoint with its pinned starting student
|
| 164 |
+
- Non-consequential creative experimentation subject to the model license
|
| 165 |
+
|
| 166 |
+
## Limitations
|
| 167 |
+
|
| 168 |
+
- The model was fine-tuned for only 500 optimizer steps on 1,000 pairs.
|
| 169 |
+
- The eight-prompt gallery is an engineering-health subset, not a representative
|
| 170 |
+
quality, alignment, diversity, bias, or human-preference evaluation.
|
| 171 |
+
- Results may omit requested objects, lose relationships or counts, produce
|
| 172 |
+
malformed anatomy and hands, render text poorly, or preserve/amplify biases
|
| 173 |
+
from upstream models and data.
|
| 174 |
+
- The Stage B changes are modest and can make individual prompts worse.
|
| 175 |
+
- The included pipeline is the conventional PyTorch/Diffusers path only.
|
| 176 |
+
|
| 177 |
+
## Safety and out-of-scope use
|
| 178 |
+
|
| 179 |
+
The upstream safety checker is included and was exercised in the recorded
|
| 180 |
+
gallery run, but it is not a complete safety system and can miss harmful output
|
| 181 |
+
or over-filter benign output. Applications should add appropriate prompt and
|
| 182 |
+
output controls, human review, and policy enforcement.
|
| 183 |
+
|
| 184 |
+
Do not use this preview for consequential decisions, identity claims, medical
|
| 185 |
+
or legal conclusions, harassment, exploitation, illegal activity, or any use
|
| 186 |
+
prohibited by CreativeML OpenRAIL-M. Review outputs before sharing them.
|
| 187 |
+
|
| 188 |
+
## Licenses
|
| 189 |
+
|
| 190 |
+
The model weights are a derivative under **CreativeML OpenRAIL-M**. The small
|
| 191 |
+
example and packaging code is licensed separately under **Apache-2.0**. The
|
| 192 |
+
PD3M dataset declaration and each accepted item's public-domain status remain
|
| 193 |
+
separate from both licenses. Read the bundled license files and
|
| 194 |
+
`MODEL_DATA_LICENSES.md`; this summary is not legal advice.
|
assets/clover-image-tiny-local-mps-library-seed-1469.png
ADDED
|
Git LFS Details
|
assets/clover-image-tiny-paired-contact-sheet.png
ADDED
|
Git LFS Details
|
checksums.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"DATA_PROVENANCE.md": "1be188980913e7b68490228ed17878f4cb0d9e6f30ab0c8485864da80d18a591",
|
| 3 |
+
"LICENSE": "be351ebe7ac01bcdbb018639aadcfd38f136b7dc3f2a3d4d3a24db51d1b210ef",
|
| 4 |
+
"LICENSE-CODE": "e26a0375b714267325c27905ba947fdc41ebc0b7a36940a49ae12379ed6208d6",
|
| 5 |
+
"LICENSE-MODEL-CREATIVEML-OPENRAIL-M.txt": "be351ebe7ac01bcdbb018639aadcfd38f136b7dc3f2a3d4d3a24db51d1b210ef",
|
| 6 |
+
"MODEL_DATA_LICENSES.md": "8f6b712826f9904561fb32038635612722be61cfd776da58fb61a4848a03148e",
|
| 7 |
+
"README.md": "b7e880416cb80103e2de5659256cad36e10ec6f05fd6a82e14d928d9905e7573",
|
| 8 |
+
"assets/clover-image-tiny-local-mps-library-seed-1469.png": "f8830346f2a9c2b9a8c2a01d8f90e6925c93d667c1bcf998aa904a150589a742",
|
| 9 |
+
"assets/clover-image-tiny-paired-contact-sheet.png": "8653d1105b7b0c56e2385a127336dbe9b3a1a03c8518edb4934353a9d8e13bfa",
|
| 10 |
+
"evidence/clover-image-tiny-local-mps-library-seed-1469.json": "1ddd86de0be992987214266720e0f341f25791402aae637065d6d09a6ea67b27",
|
| 11 |
+
"evidence/stage-b-inference-checksums.json": "d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc",
|
| 12 |
+
"examples/generate.py": "bba645e9a5ac0959da22e1ef61fd1ab24a2974221e77a95c6fdb4c4c03715840",
|
| 13 |
+
"feature_extractor/preprocessor_config.json": "205d45875859846dc1ca211b9a19f5db72f47e953b396954ee34d48d8e95c3c6",
|
| 14 |
+
"model_index.json": "792073e269e5caff40b3f8c553387540c17a5d900ed0e9cbfab309d650e708dd",
|
| 15 |
+
"requirements.txt": "9dbb74869a34e3b610f737bce8a9d2a20691fd0fa416cf6bb42354b78e0a3861",
|
| 16 |
+
"research_preview.json": "9d4e1ce0f592135a7bcd12a1ce9f1cd85558a650ce4f5661e38ffba58a4049bf",
|
| 17 |
+
"safety_checker/config.json": "241bd8fb1ba6feff0d7421f7af0f85743711c5d76353626f71f7e2cc8009ac7c",
|
| 18 |
+
"safety_checker/model.safetensors": "57ecdfa243b170f9b4cb3eefaf0f64552ef78fc0bf0eb1c5b9675308447184f6",
|
| 19 |
+
"scheduler/scheduler_config.json": "184bc33ed887951dd86e37f20c878710c4e18e1c5fd4461256a3825679b53d15",
|
| 20 |
+
"stage_b_config.json": "4f915bdda1d3de4f383b41b8846b7a8d634bb37ff710f5127ac94ed0b5c76b94",
|
| 21 |
+
"text_encoder/config.json": "7fb4396af311adfc5247f22655b607c44223dbf4c143a07b2e8b2d024d7e31f0",
|
| 22 |
+
"text_encoder/model.safetensors": "660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cdd",
|
| 23 |
+
"tokenizer/merges.txt": "9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a",
|
| 24 |
+
"tokenizer/special_tokens_map.json": "c4864a9376a8401918425bed71fc14fc0e81f9b59ec45c1cf96cccb2df508eac",
|
| 25 |
+
"tokenizer/tokenizer_config.json": "c19f835a5e93d299b21dfee61c8f6a7cd06f5d83c8e828c013c25d2f36b47ccf",
|
| 26 |
+
"tokenizer/vocab.json": "4e6a66b6903c12d273a1a6645f761a2de07e239facfc52fd797b83a75014ca78",
|
| 27 |
+
"unet/config.json": "59f07bfeb2e53d480207436ce0ea2a30c0a3608d3bbf44c98458440167eff606",
|
| 28 |
+
"unet/diffusion_pytorch_model.safetensors": "f6e52380508473fcc355aae0288578205a06b324c7d873ee3b76b00e97beefc3",
|
| 29 |
+
"vae/config.json": "a51192fd731f5826ef0db722dc032b8c6f10456c5f626bc54da0e8514b899b40",
|
| 30 |
+
"vae/diffusion_pytorch_model.safetensors": "4fbcf0ebe55a0984f5a5e00d8c4521d52359af7229bb4d81890039d2aa16dd7c"
|
| 31 |
+
}
|
evidence/clover-image-tiny-local-mps-library-seed-1469.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"generation":{"denoiser_calls":51,"device":"mps","dtype":"float16","elapsed_seconds":18.208059416996548,"guidance_scale":7.5,"height":512,"negative_prompt":"","num_inference_steps":50,"prompt":"a compact modern library with arched windows","scheduler":"PNDMScheduler","seed":1469,"width":512},"image":{"filename":"library-seed-1469.png","format":"PNG","height":512,"mode":"RGB","pixel_mean":114.8316281636556,"pixel_standard_deviation":69.02280620757928,"sha256":"f8830346f2a9c2b9a8c2a01d8f90e6925c93d667c1bcf998aa904a150589a742","width":512},"kind":"clover-stage-b-local-generation-evidence","limitations":{"cross_hardware_pixel_identity":"not_claimed","iphone_or_coreml_result":false,"release_quality":"not_measured"},"memory":{"process_lifetime_max_rss_bytes":631341056,"rss_after_bytes":631341056,"rss_before_bytes":402030592,"sampled_process_peak_rss_bytes":624803840,"sampling_interval_seconds":0.05},"model":{"checkpoint_bundle_checksum":"384b6515f5f26838aea33ec9a941e06610a20764f0b8637c8b7b0667bfc0d447","checkpoint_checksum":"4a5b99ff18478742528a0d31c97dcee939b166a51be858721d40ad5984110893","config_hash":"80cf9395d1f587dc0c1d440d9f5b55c55c20703187998509bb306d19d463f597","dataset_manifest_checksum":"50c1249f1cb0d8d690a9acc451ca10c9432eb5a7f4e26f34acb5462096e72322","experiment_id":"clover-kd-20260712T050925Z-01KXABNHP0","optimizer_step":500,"package_checksums_sha256":"d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc"},"runtime":{"platform":"macOS-27.0-arm64-arm-64bit","python":"3.12.13","torch":"2.7.0"},"safety":{"host_review_note":"Automated filtering is imperfect; review generated output before sharing.","nsfw_content_detected":false,"packaged_checker_invoked":true},"schema_version":1}
|
evidence/stage-b-inference-checksums.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"feature_extractor/preprocessor_config.json": "205d45875859846dc1ca211b9a19f5db72f47e953b396954ee34d48d8e95c3c6",
|
| 3 |
+
"model_index.json": "792073e269e5caff40b3f8c553387540c17a5d900ed0e9cbfab309d650e708dd",
|
| 4 |
+
"safety_checker/config.json": "241bd8fb1ba6feff0d7421f7af0f85743711c5d76353626f71f7e2cc8009ac7c",
|
| 5 |
+
"safety_checker/model.safetensors": "57ecdfa243b170f9b4cb3eefaf0f64552ef78fc0bf0eb1c5b9675308447184f6",
|
| 6 |
+
"scheduler/scheduler_config.json": "184bc33ed887951dd86e37f20c878710c4e18e1c5fd4461256a3825679b53d15",
|
| 7 |
+
"stage_b_config.json": "4f915bdda1d3de4f383b41b8846b7a8d634bb37ff710f5127ac94ed0b5c76b94",
|
| 8 |
+
"text_encoder/config.json": "7fb4396af311adfc5247f22655b607c44223dbf4c143a07b2e8b2d024d7e31f0",
|
| 9 |
+
"text_encoder/model.safetensors": "660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cdd",
|
| 10 |
+
"tokenizer/merges.txt": "9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a",
|
| 11 |
+
"tokenizer/special_tokens_map.json": "c4864a9376a8401918425bed71fc14fc0e81f9b59ec45c1cf96cccb2df508eac",
|
| 12 |
+
"tokenizer/tokenizer_config.json": "c19f835a5e93d299b21dfee61c8f6a7cd06f5d83c8e828c013c25d2f36b47ccf",
|
| 13 |
+
"tokenizer/vocab.json": "4e6a66b6903c12d273a1a6645f761a2de07e239facfc52fd797b83a75014ca78",
|
| 14 |
+
"unet/config.json": "59f07bfeb2e53d480207436ce0ea2a30c0a3608d3bbf44c98458440167eff606",
|
| 15 |
+
"unet/diffusion_pytorch_model.safetensors": "f6e52380508473fcc355aae0288578205a06b324c7d873ee3b76b00e97beefc3",
|
| 16 |
+
"vae/config.json": "a51192fd731f5826ef0db722dc032b8c6f10456c5f626bc54da0e8514b899b40",
|
| 17 |
+
"vae/diffusion_pytorch_model.safetensors": "4fbcf0ebe55a0984f5a5e00d8c4521d52359af7229bb4d81890039d2aa16dd7c"
|
| 18 |
+
}
|
examples/generate.py
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Generate one conventional 50-step Clover Image Tiny preview image."""
|
| 3 |
+
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
import argparse
|
| 7 |
+
import json
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
|
| 10 |
+
import torch
|
| 11 |
+
from diffusers import DiffusionPipeline, PNDMScheduler
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def _runtime(requested: str) -> tuple[torch.device, torch.dtype]:
|
| 15 |
+
if requested == "auto":
|
| 16 |
+
if torch.cuda.is_available():
|
| 17 |
+
device = torch.device("cuda")
|
| 18 |
+
elif torch.backends.mps.is_available():
|
| 19 |
+
device = torch.device("mps")
|
| 20 |
+
else:
|
| 21 |
+
device = torch.device("cpu")
|
| 22 |
+
else:
|
| 23 |
+
device = torch.device(requested)
|
| 24 |
+
if device.type == "cuda" and not torch.cuda.is_available():
|
| 25 |
+
raise RuntimeError("CUDA was requested but is unavailable")
|
| 26 |
+
if device.type == "mps" and not torch.backends.mps.is_available():
|
| 27 |
+
raise RuntimeError("MPS was requested but is unavailable")
|
| 28 |
+
dtype = torch.float16 if device.type in {"cuda", "mps"} else torch.float32
|
| 29 |
+
return device, dtype
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def _parser() -> argparse.ArgumentParser:
|
| 33 |
+
parser = argparse.ArgumentParser(
|
| 34 |
+
description="Run Clover Image Tiny with its fixed conventional preview settings."
|
| 35 |
+
)
|
| 36 |
+
parser.add_argument("--model", required=True, help="Hub repository ID or local directory")
|
| 37 |
+
parser.add_argument("--prompt", required=True)
|
| 38 |
+
parser.add_argument("--seed", type=int, default=1337)
|
| 39 |
+
parser.add_argument("--output", type=Path, default=Path("clover-image-tiny.png"))
|
| 40 |
+
parser.add_argument("--device", choices=("auto", "cuda", "mps", "cpu"), default="auto")
|
| 41 |
+
parser.add_argument("--local-files-only", action="store_true")
|
| 42 |
+
return parser
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def main() -> int:
|
| 46 |
+
args = _parser().parse_args()
|
| 47 |
+
device, dtype = _runtime(args.device)
|
| 48 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 49 |
+
args.model,
|
| 50 |
+
torch_dtype=dtype,
|
| 51 |
+
local_files_only=args.local_files_only,
|
| 52 |
+
)
|
| 53 |
+
pipe.scheduler = PNDMScheduler.from_config(pipe.scheduler.config)
|
| 54 |
+
pipe = pipe.to(device)
|
| 55 |
+
generator_device = "cuda" if device.type == "cuda" else "cpu"
|
| 56 |
+
generator = torch.Generator(device=generator_device).manual_seed(args.seed)
|
| 57 |
+
with torch.inference_mode():
|
| 58 |
+
result = pipe(
|
| 59 |
+
prompt=args.prompt,
|
| 60 |
+
negative_prompt="",
|
| 61 |
+
num_inference_steps=50,
|
| 62 |
+
guidance_scale=7.5,
|
| 63 |
+
height=512,
|
| 64 |
+
width=512,
|
| 65 |
+
generator=generator,
|
| 66 |
+
)
|
| 67 |
+
if not result.images:
|
| 68 |
+
raise RuntimeError("the pipeline returned no images")
|
| 69 |
+
args.output.parent.mkdir(parents=True, exist_ok=True)
|
| 70 |
+
result.images[0].save(args.output)
|
| 71 |
+
metadata = {
|
| 72 |
+
"model": args.model,
|
| 73 |
+
"prompt": args.prompt,
|
| 74 |
+
"negative_prompt": "",
|
| 75 |
+
"seed": args.seed,
|
| 76 |
+
"scheduler": type(pipe.scheduler).__name__,
|
| 77 |
+
"num_inference_steps": 50,
|
| 78 |
+
"guidance_scale": 7.5,
|
| 79 |
+
"height": 512,
|
| 80 |
+
"width": 512,
|
| 81 |
+
"device": device.type,
|
| 82 |
+
"dtype": str(dtype).removeprefix("torch."),
|
| 83 |
+
"nsfw_content_detected": getattr(result, "nsfw_content_detected", None),
|
| 84 |
+
"cross_device_pixel_identity_claimed": False,
|
| 85 |
+
"usage_label": "RESEARCH PREVIEW - PRODUCTION PILOT - NOT RELEASE-READY",
|
| 86 |
+
}
|
| 87 |
+
metadata_path = args.output.with_suffix(args.output.suffix + ".json")
|
| 88 |
+
metadata_path.write_text(json.dumps(metadata, indent=2) + "\n", encoding="utf-8")
|
| 89 |
+
print(json.dumps({"output": str(args.output), "metadata": str(metadata_path), **metadata}))
|
| 90 |
+
return 0
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
if __name__ == "__main__":
|
| 94 |
+
raise SystemExit(main())
|
feature_extractor/preprocessor_config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 224,
|
| 4 |
+
"width": 224
|
| 5 |
+
},
|
| 6 |
+
"do_center_crop": true,
|
| 7 |
+
"do_convert_rgb": true,
|
| 8 |
+
"do_normalize": true,
|
| 9 |
+
"do_rescale": true,
|
| 10 |
+
"do_resize": true,
|
| 11 |
+
"image_mean": [
|
| 12 |
+
0.48145466,
|
| 13 |
+
0.4578275,
|
| 14 |
+
0.40821073
|
| 15 |
+
],
|
| 16 |
+
"image_processor_type": "CLIPImageProcessor",
|
| 17 |
+
"image_std": [
|
| 18 |
+
0.26862954,
|
| 19 |
+
0.26130258,
|
| 20 |
+
0.27577711
|
| 21 |
+
],
|
| 22 |
+
"resample": 3,
|
| 23 |
+
"rescale_factor": 0.00392156862745098,
|
| 24 |
+
"size": {
|
| 25 |
+
"shortest_edge": 224
|
| 26 |
+
}
|
| 27 |
+
}
|
model_index.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "StableDiffusionPipeline",
|
| 3 |
+
"_diffusers_version": "0.39.0",
|
| 4 |
+
"feature_extractor": [
|
| 5 |
+
"transformers",
|
| 6 |
+
"CLIPImageProcessor"
|
| 7 |
+
],
|
| 8 |
+
"image_encoder": [
|
| 9 |
+
null,
|
| 10 |
+
null
|
| 11 |
+
],
|
| 12 |
+
"requires_safety_checker": true,
|
| 13 |
+
"safety_checker": [
|
| 14 |
+
"stable_diffusion",
|
| 15 |
+
"StableDiffusionSafetyChecker"
|
| 16 |
+
],
|
| 17 |
+
"scheduler": [
|
| 18 |
+
"diffusers",
|
| 19 |
+
"PNDMScheduler"
|
| 20 |
+
],
|
| 21 |
+
"text_encoder": [
|
| 22 |
+
"transformers",
|
| 23 |
+
"CLIPTextModel"
|
| 24 |
+
],
|
| 25 |
+
"tokenizer": [
|
| 26 |
+
"transformers",
|
| 27 |
+
"CLIPTokenizer"
|
| 28 |
+
],
|
| 29 |
+
"unet": [
|
| 30 |
+
"diffusers",
|
| 31 |
+
"UNet2DConditionModel"
|
| 32 |
+
],
|
| 33 |
+
"vae": [
|
| 34 |
+
"diffusers",
|
| 35 |
+
"AutoencoderKL"
|
| 36 |
+
]
|
| 37 |
+
}
|
requirements.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
accelerate==1.14.0
|
| 2 |
+
diffusers==0.39.0
|
| 3 |
+
ftfy==6.3.1
|
| 4 |
+
huggingface-hub==0.36.2
|
| 5 |
+
numpy==2.2.6
|
| 6 |
+
pillow==12.3.0
|
| 7 |
+
safetensors==0.8.0
|
| 8 |
+
tokenizers==0.22.2
|
| 9 |
+
torch==2.7.0
|
| 10 |
+
torchvision==0.22.0
|
| 11 |
+
transformers==4.57.6
|
research_preview.json
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"build": {
|
| 3 |
+
"repository_commit": "1880c3eb55133e8b7b1786ddea8e732d16a2f902",
|
| 4 |
+
"sources": {
|
| 5 |
+
"LICENSE-CODE": {
|
| 6 |
+
"sha256": "e26a0375b714267325c27905ba947fdc41ebc0b7a36940a49ae12379ed6208d6",
|
| 7 |
+
"tracked_at_commit": true
|
| 8 |
+
},
|
| 9 |
+
"LICENSE-MODEL-CREATIVEML-OPENRAIL-M.txt": {
|
| 10 |
+
"sha256": "be351ebe7ac01bcdbb018639aadcfd38f136b7dc3f2a3d4d3a24db51d1b210ef",
|
| 11 |
+
"tracked_at_commit": true
|
| 12 |
+
},
|
| 13 |
+
"assets/model-examples/clover-image-tiny-local-mps-v1/library-seed-1469.png": {
|
| 14 |
+
"sha256": "f8830346f2a9c2b9a8c2a01d8f90e6925c93d667c1bcf998aa904a150589a742",
|
| 15 |
+
"tracked_at_commit": true
|
| 16 |
+
},
|
| 17 |
+
"assets/model-examples/clover-image-tiny-local-mps-v1/library-seed-1469.png.json": {
|
| 18 |
+
"sha256": "1ddd86de0be992987214266720e0f341f25791402aae637065d6d09a6ea67b27",
|
| 19 |
+
"tracked_at_commit": true
|
| 20 |
+
},
|
| 21 |
+
"hf/stage_b_preview/DATA_PROVENANCE.md": {
|
| 22 |
+
"sha256": "1be188980913e7b68490228ed17878f4cb0d9e6f30ab0c8485864da80d18a591",
|
| 23 |
+
"tracked_at_commit": true
|
| 24 |
+
},
|
| 25 |
+
"hf/stage_b_preview/MODEL_DATA_LICENSES.md": {
|
| 26 |
+
"sha256": "8f6b712826f9904561fb32038635612722be61cfd776da58fb61a4848a03148e",
|
| 27 |
+
"tracked_at_commit": true
|
| 28 |
+
},
|
| 29 |
+
"hf/stage_b_preview/README.template.md": {
|
| 30 |
+
"sha256": "9a6c017d19564282be41e89ad3886375551a1ecb56a1e6a672a9f8a1358a2bff",
|
| 31 |
+
"tracked_at_commit": true
|
| 32 |
+
},
|
| 33 |
+
"hf/stage_b_preview/examples/generate.py": {
|
| 34 |
+
"sha256": "bba645e9a5ac0959da22e1ef61fd1ab24a2974221e77a95c6fdb4c4c03715840",
|
| 35 |
+
"tracked_at_commit": true
|
| 36 |
+
},
|
| 37 |
+
"hf/stage_b_preview/requirements.txt": {
|
| 38 |
+
"sha256": "9dbb74869a34e3b610f737bce8a9d2a20691fd0fa416cf6bb42354b78e0a3861",
|
| 39 |
+
"tracked_at_commit": true
|
| 40 |
+
},
|
| 41 |
+
"scripts/build_hf_stage_b_preview.py": {
|
| 42 |
+
"sha256": "340b8db4f06ab7fbba107db1242de5ae3938cb0151b97908831695350df4c980",
|
| 43 |
+
"tracked_at_commit": true
|
| 44 |
+
},
|
| 45 |
+
"scripts/publish_hf_stage_b_preview.py": {
|
| 46 |
+
"sha256": "4ff6ea2e0f4d04ec1b2c7de04b0ba831fefc65faae0a8fa362ada52bbb820916",
|
| 47 |
+
"tracked_at_commit": true
|
| 48 |
+
},
|
| 49 |
+
"scripts/validate_hf_stage_b_preview.py": {
|
| 50 |
+
"sha256": "6c521dc2dd332ccbafd2764ee2d1ee3f618901b5061e2efaca56534dbdd17be5",
|
| 51 |
+
"tracked_at_commit": true
|
| 52 |
+
},
|
| 53 |
+
"src/clover_image/release_licenses.py": {
|
| 54 |
+
"sha256": "371fdf7f30c2e0268d417c6be3e5edaaf662372685eeb19831bed49d096f9557",
|
| 55 |
+
"tracked_at_commit": true
|
| 56 |
+
},
|
| 57 |
+
"src/clover_image/stage_b_inference.py": {
|
| 58 |
+
"sha256": "2c4a92f2af4eb4ec633b8b163fbd129efe4a63b52055f9fadd5e283020ffd6f7",
|
| 59 |
+
"tracked_at_commit": true
|
| 60 |
+
},
|
| 61 |
+
"src/clover_image/stage_b_preview.py": {
|
| 62 |
+
"sha256": "c7448cc70c771ecd0501eae803a01a6d7ea8dd12958a8922503a9d4d01e7ed5c",
|
| 63 |
+
"tracked_at_commit": true
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
"checkpoint": {
|
| 68 |
+
"checkpoint_bundle_checksum": "384b6515f5f26838aea33ec9a941e06610a20764f0b8637c8b7b0667bfc0d447",
|
| 69 |
+
"checkpoint_checksum": "4a5b99ff18478742528a0d31c97dcee939b166a51be858721d40ad5984110893",
|
| 70 |
+
"config_hash": "80cf9395d1f587dc0c1d440d9f5b55c55c20703187998509bb306d19d463f597",
|
| 71 |
+
"experiment_id": "clover-kd-20260712T050925Z-01KXABNHP0",
|
| 72 |
+
"optimizer_step": 500
|
| 73 |
+
},
|
| 74 |
+
"data": {
|
| 75 |
+
"dataset_id": "Spawning/PD3M",
|
| 76 |
+
"dataset_license_id": "CDLA-Permissive-2.0",
|
| 77 |
+
"dataset_revision": "2a5eb24a8dccf245acd8e56341761aee06da0bdf",
|
| 78 |
+
"manifest_sha256": "50c1249f1cb0d8d690a9acc451ca10c9432eb5a7f4e26f34acb5462096e72322",
|
| 79 |
+
"raw_data_bundled": false,
|
| 80 |
+
"record_count": 1000,
|
| 81 |
+
"split_counts": {
|
| 82 |
+
"test": 10,
|
| 83 |
+
"train": 973,
|
| 84 |
+
"validation": 17
|
| 85 |
+
}
|
| 86 |
+
},
|
| 87 |
+
"gallery": {
|
| 88 |
+
"bundled_path": "assets/clover-image-tiny-paired-contact-sheet.png",
|
| 89 |
+
"contact_sheet_sha256": "8653d1105b7b0c56e2385a127336dbe9b3a1a03c8518edb4934353a9d8e13bfa",
|
| 90 |
+
"evaluation_scope": "eight-prompt-engineering-health-subset",
|
| 91 |
+
"human_review": "not_measured",
|
| 92 |
+
"image_pair_count": 8,
|
| 93 |
+
"kind": "stage-b-paired-engineering-gallery",
|
| 94 |
+
"quality_decisional": false,
|
| 95 |
+
"source_completion_sha256": "344823dd2b7816fcca8119344de84a3e214b399d9cb267600a0d369dfc7a20df",
|
| 96 |
+
"source_records_sha256": "36fecf6eebe43b7baba7ca7b9c57de32343b74d0075b8dc83cfb6062692e7315",
|
| 97 |
+
"source_report_sha256": "d09ca159c4face6d4ab895f67afe5c52fa03adf2647d01121527be4f501f4c71",
|
| 98 |
+
"status": "validated"
|
| 99 |
+
},
|
| 100 |
+
"hf_repo_id": "neonforestmist/Clover-Image-Tiny",
|
| 101 |
+
"kind": "clover-stage-b-hf-research-preview",
|
| 102 |
+
"licenses": {
|
| 103 |
+
"code": {
|
| 104 |
+
"id": "Apache-2.0",
|
| 105 |
+
"path": "LICENSE-CODE",
|
| 106 |
+
"sha256": "e26a0375b714267325c27905ba947fdc41ebc0b7a36940a49ae12379ed6208d6"
|
| 107 |
+
},
|
| 108 |
+
"model_weights": {
|
| 109 |
+
"id": "CreativeML OpenRAIL-M",
|
| 110 |
+
"path": "LICENSE-MODEL-CREATIVEML-OPENRAIL-M.txt",
|
| 111 |
+
"sha256": "be351ebe7ac01bcdbb018639aadcfd38f136b7dc3f2a3d4d3a24db51d1b210ef"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"limitations": {
|
| 115 |
+
"foundational_data_provenance": "incomplete_upstream_per_record_evidence",
|
| 116 |
+
"human_review": "not_measured",
|
| 117 |
+
"quality_evaluation": "not_measured"
|
| 118 |
+
},
|
| 119 |
+
"metadata_sha256": "1a576e9daff3bc2065fee31e4147ea4f9c2c39e4f9012bb62fa26ee0a0a4b191",
|
| 120 |
+
"release_ready": false,
|
| 121 |
+
"runtime_contract": {
|
| 122 |
+
"denoiser_calls": 51,
|
| 123 |
+
"guidance_scale": 7.5,
|
| 124 |
+
"height": 512,
|
| 125 |
+
"negative_prompt": "",
|
| 126 |
+
"num_inference_steps": 50,
|
| 127 |
+
"pipeline": "StableDiffusionPipeline",
|
| 128 |
+
"scheduler": "PNDMScheduler",
|
| 129 |
+
"width": 512
|
| 130 |
+
},
|
| 131 |
+
"schema_version": 1,
|
| 132 |
+
"source_package": {
|
| 133 |
+
"checksums_path": "evidence/stage-b-inference-checksums.json",
|
| 134 |
+
"checksums_sha256": "d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc",
|
| 135 |
+
"validation": {
|
| 136 |
+
"checkpoint_bundle_checksum": "384b6515f5f26838aea33ec9a941e06610a20764f0b8637c8b7b0667bfc0d447",
|
| 137 |
+
"checkpoint_checksum": "4a5b99ff18478742528a0d31c97dcee939b166a51be858721d40ad5984110893",
|
| 138 |
+
"config_hash": "80cf9395d1f587dc0c1d440d9f5b55c55c20703187998509bb306d19d463f597",
|
| 139 |
+
"dataset_manifest_checksum": "50c1249f1cb0d8d690a9acc451ca10c9432eb5a7f4e26f34acb5462096e72322",
|
| 140 |
+
"experiment_id": "clover-kd-20260712T050925Z-01KXABNHP0",
|
| 141 |
+
"file_count": 17,
|
| 142 |
+
"guidance_scale": 7.5,
|
| 143 |
+
"inference_steps": 50,
|
| 144 |
+
"optimizer_step": 500,
|
| 145 |
+
"package_checksums_sha256": "d9a28d5fe6f5b675ee1b9db52e6d0493c8d3d357bb824eac590911acbd5c3ebc",
|
| 146 |
+
"parameter_count": 323384964,
|
| 147 |
+
"resolution": 512,
|
| 148 |
+
"status": "valid",
|
| 149 |
+
"total_size_bytes": 1669943733,
|
| 150 |
+
"upstream_model_id": "nota-ai/bk-sdm-tiny-2m",
|
| 151 |
+
"upstream_revision": "aad3e0e8ba61b7cb9f64869dc4e586f8ad9d3665",
|
| 152 |
+
"weight_dtype": "float16"
|
| 153 |
+
}
|
| 154 |
+
},
|
| 155 |
+
"status": "research_preview",
|
| 156 |
+
"training_stage": "stage_b_knowledge_distillation",
|
| 157 |
+
"upstream": {
|
| 158 |
+
"student": {
|
| 159 |
+
"model_id": "nota-ai/bk-sdm-tiny-2m",
|
| 160 |
+
"revision": "aad3e0e8ba61b7cb9f64869dc4e586f8ad9d3665"
|
| 161 |
+
},
|
| 162 |
+
"teacher": {
|
| 163 |
+
"model_id": "CompVis/stable-diffusion-v1-4",
|
| 164 |
+
"revision": "133a221b8aa7292a167afc5127cb63fb5005638b"
|
| 165 |
+
}
|
| 166 |
+
},
|
| 167 |
+
"usage_label": "RESEARCH PREVIEW - PRODUCTION PILOT - NOT RELEASE-READY"
|
| 168 |
+
}
|
safety_checker/config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"StableDiffusionSafetyChecker"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "float16",
|
| 6 |
+
"initializer_factor": 1.0,
|
| 7 |
+
"logit_scale_init_value": 2.6592,
|
| 8 |
+
"model_type": "clip",
|
| 9 |
+
"projection_dim": 768,
|
| 10 |
+
"text_config": {
|
| 11 |
+
"attention_dropout": 0.0,
|
| 12 |
+
"dropout": 0.0,
|
| 13 |
+
"dtype": "float16",
|
| 14 |
+
"hidden_act": "quick_gelu",
|
| 15 |
+
"hidden_size": 768,
|
| 16 |
+
"initializer_factor": 1.0,
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 3072,
|
| 19 |
+
"layer_norm_eps": 1e-05,
|
| 20 |
+
"max_position_embeddings": 77,
|
| 21 |
+
"model_type": "clip_text_model",
|
| 22 |
+
"num_attention_heads": 12,
|
| 23 |
+
"num_hidden_layers": 12,
|
| 24 |
+
"projection_dim": 512,
|
| 25 |
+
"vocab_size": 49408
|
| 26 |
+
},
|
| 27 |
+
"transformers_version": "4.57.6",
|
| 28 |
+
"vision_config": {
|
| 29 |
+
"attention_dropout": 0.0,
|
| 30 |
+
"dropout": 0.0,
|
| 31 |
+
"dtype": "float16",
|
| 32 |
+
"hidden_act": "quick_gelu",
|
| 33 |
+
"hidden_size": 1024,
|
| 34 |
+
"image_size": 224,
|
| 35 |
+
"initializer_factor": 1.0,
|
| 36 |
+
"initializer_range": 0.02,
|
| 37 |
+
"intermediate_size": 4096,
|
| 38 |
+
"layer_norm_eps": 1e-05,
|
| 39 |
+
"model_type": "clip_vision_model",
|
| 40 |
+
"num_attention_heads": 16,
|
| 41 |
+
"num_channels": 3,
|
| 42 |
+
"num_hidden_layers": 24,
|
| 43 |
+
"patch_size": 14,
|
| 44 |
+
"projection_dim": 512
|
| 45 |
+
}
|
| 46 |
+
}
|
safety_checker/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57ecdfa243b170f9b4cb3eefaf0f64552ef78fc0bf0eb1c5b9675308447184f6
|
| 3 |
+
size 608016280
|
scheduler/scheduler_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "PNDMScheduler",
|
| 3 |
+
"_diffusers_version": "0.39.0",
|
| 4 |
+
"beta_end": 0.012,
|
| 5 |
+
"beta_schedule": "scaled_linear",
|
| 6 |
+
"beta_start": 0.00085,
|
| 7 |
+
"clip_sample": false,
|
| 8 |
+
"num_train_timesteps": 1000,
|
| 9 |
+
"prediction_type": "epsilon",
|
| 10 |
+
"set_alpha_to_one": false,
|
| 11 |
+
"skip_prk_steps": true,
|
| 12 |
+
"steps_offset": 1,
|
| 13 |
+
"timestep_spacing": "leading",
|
| 14 |
+
"trained_betas": null
|
| 15 |
+
}
|
stage_b_config.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "StableDiffusionPipeline",
|
| 3 |
+
"base_components": {
|
| 4 |
+
"adaptations": [
|
| 5 |
+
{
|
| 6 |
+
"input_sha256": "e089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349",
|
| 7 |
+
"output_sha256": "4e6a66b6903c12d273a1a6645f761a2de07e239facfc52fd797b83a75014ca78",
|
| 8 |
+
"path": "tokenizer/vocab.json",
|
| 9 |
+
"reason": "remove machine-specific source paths"
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"input_sha256": "3ff772e0199995e0dc5c5d5cc0e269483d0e565a2b13a694d6342225d00a08f4",
|
| 13 |
+
"output_sha256": "a51192fd731f5826ef0db722dc032b8c6f10456c5f626bc54da0e8514b899b40",
|
| 14 |
+
"path": "vae/config.json",
|
| 15 |
+
"reason": "remove machine-specific source paths"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"input_sha256": "4d81f5325e0a6daba814c9bd2bfd2d9bdbdf294b71bac2ee7456edf172dd6ada",
|
| 19 |
+
"output_sha256": "59f07bfeb2e53d480207436ce0ea2a30c0a3608d3bbf44c98458440167eff606",
|
| 20 |
+
"path": "unet/config.json",
|
| 21 |
+
"reason": "instantiate the independently pinned conventional Stage B architecture and remove its machine-specific source path"
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
"copied_components": [
|
| 25 |
+
"feature_extractor",
|
| 26 |
+
"safety_checker",
|
| 27 |
+
"scheduler",
|
| 28 |
+
"text_encoder",
|
| 29 |
+
"tokenizer",
|
| 30 |
+
"vae"
|
| 31 |
+
],
|
| 32 |
+
"package_checksums_sha256": "8483be0cde3b32493ce30d5c8762ac71303eee015e90535389e846d7ec5aea40",
|
| 33 |
+
"source_file_count": 18
|
| 34 |
+
},
|
| 35 |
+
"checkpoint": {
|
| 36 |
+
"checkpoint_bundle_checksum": "384b6515f5f26838aea33ec9a941e06610a20764f0b8637c8b7b0667bfc0d447",
|
| 37 |
+
"checkpoint_checksum": "4a5b99ff18478742528a0d31c97dcee939b166a51be858721d40ad5984110893",
|
| 38 |
+
"config_hash": "80cf9395d1f587dc0c1d440d9f5b55c55c20703187998509bb306d19d463f597",
|
| 39 |
+
"dataset_manifest_checksum": "50c1249f1cb0d8d690a9acc451ca10c9432eb5a7f4e26f34acb5462096e72322",
|
| 40 |
+
"experiment_id": "clover-kd-20260712T050925Z-01KXABNHP0",
|
| 41 |
+
"optimizer_step": 500,
|
| 42 |
+
"source_checksums": {
|
| 43 |
+
"metadata.json": "7b75556689e047b09da657a001bf49c42198531bd130daff4a44fa3c4afc7299",
|
| 44 |
+
"model.safetensors": "d827005c60bb737053795aa12d7aff8215469cbb4b3dc327ab35c217b3863f8c",
|
| 45 |
+
"training_state.pt": "f9c7552da28b956044128027e1c216f6350da7e3f7e78d2263caa89c9cde824a"
|
| 46 |
+
}
|
| 47 |
+
},
|
| 48 |
+
"kind": "clover-stage-b-calibration-local-inference",
|
| 49 |
+
"leaf_steps_supported": false,
|
| 50 |
+
"limitations": {
|
| 51 |
+
"host_output_review_required": true,
|
| 52 |
+
"physical_device_validation": "not_measured",
|
| 53 |
+
"quality_evaluation": "not_measured"
|
| 54 |
+
},
|
| 55 |
+
"parameter_count": 323384964,
|
| 56 |
+
"release_ready": false,
|
| 57 |
+
"runtime_contract": {
|
| 58 |
+
"classifier_free_guidance": true,
|
| 59 |
+
"denoiser_calls": 51,
|
| 60 |
+
"guidance_scale_default": 7.5,
|
| 61 |
+
"height": 512,
|
| 62 |
+
"negative_prompt": "",
|
| 63 |
+
"num_inference_steps": 50,
|
| 64 |
+
"scheduler": "PNDMScheduler",
|
| 65 |
+
"width": 512
|
| 66 |
+
},
|
| 67 |
+
"schema_version": 1,
|
| 68 |
+
"upstream": {
|
| 69 |
+
"model_id": "nota-ai/bk-sdm-tiny-2m",
|
| 70 |
+
"revision": "aad3e0e8ba61b7cb9f64869dc4e586f8ad9d3665"
|
| 71 |
+
},
|
| 72 |
+
"usage_label": "PRODUCTION PILOT \u2014 NOT RELEASE-READY",
|
| 73 |
+
"weight_dtype": "float16"
|
| 74 |
+
}
|
text_encoder/config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"CLIPTextModel"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"dropout": 0.0,
|
| 8 |
+
"dtype": "float16",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "quick_gelu",
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"initializer_factor": 1.0,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 3072,
|
| 15 |
+
"layer_norm_eps": 1e-05,
|
| 16 |
+
"max_position_embeddings": 77,
|
| 17 |
+
"model_type": "clip_text_model",
|
| 18 |
+
"num_attention_heads": 12,
|
| 19 |
+
"num_hidden_layers": 12,
|
| 20 |
+
"pad_token_id": 1,
|
| 21 |
+
"projection_dim": 512,
|
| 22 |
+
"transformers_version": "4.57.6",
|
| 23 |
+
"vocab_size": 49408
|
| 24 |
+
}
|
text_encoder/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cdd
|
| 3 |
+
size 246144152
|
tokenizer/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer/special_tokens_map.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|startoftext|>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": true,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|endoftext|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": true,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": "<|endoftext|>",
|
| 17 |
+
"unk_token": {
|
| 18 |
+
"content": "<|endoftext|>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": true,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
}
|
| 24 |
+
}
|
tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"49406": {
|
| 5 |
+
"content": "<|startoftext|>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"49407": {
|
| 13 |
+
"content": "<|endoftext|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": true,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
}
|
| 20 |
+
},
|
| 21 |
+
"bos_token": "<|startoftext|>",
|
| 22 |
+
"clean_up_tokenization_spaces": false,
|
| 23 |
+
"do_lower_case": true,
|
| 24 |
+
"eos_token": "<|endoftext|>",
|
| 25 |
+
"errors": "replace",
|
| 26 |
+
"extra_special_tokens": {},
|
| 27 |
+
"model_max_length": 77,
|
| 28 |
+
"pad_token": "<|endoftext|>",
|
| 29 |
+
"tokenizer_class": "CLIPTokenizer",
|
| 30 |
+
"unk_token": "<|endoftext|>"
|
| 31 |
+
}
|
tokenizer/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
unet/config.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "UNet2DConditionModel",
|
| 3 |
+
"_diffusers_version": "0.39.0",
|
| 4 |
+
"_name_or_path": "nota-ai/bk-sdm-tiny-2m",
|
| 5 |
+
"act_fn": "silu",
|
| 6 |
+
"addition_embed_type": null,
|
| 7 |
+
"addition_embed_type_num_heads": 64,
|
| 8 |
+
"addition_time_embed_dim": null,
|
| 9 |
+
"attention_head_dim": 8,
|
| 10 |
+
"attention_type": "default",
|
| 11 |
+
"block_out_channels": [
|
| 12 |
+
320,
|
| 13 |
+
640,
|
| 14 |
+
1280
|
| 15 |
+
],
|
| 16 |
+
"center_input_sample": false,
|
| 17 |
+
"class_embed_type": null,
|
| 18 |
+
"class_embeddings_concat": false,
|
| 19 |
+
"conv_in_kernel": 3,
|
| 20 |
+
"conv_out_kernel": 3,
|
| 21 |
+
"cross_attention_dim": 768,
|
| 22 |
+
"cross_attention_norm": null,
|
| 23 |
+
"down_block_types": [
|
| 24 |
+
"CrossAttnDownBlock2D",
|
| 25 |
+
"CrossAttnDownBlock2D",
|
| 26 |
+
"CrossAttnDownBlock2D"
|
| 27 |
+
],
|
| 28 |
+
"downsample_padding": 1,
|
| 29 |
+
"dropout": 0.0,
|
| 30 |
+
"dual_cross_attention": false,
|
| 31 |
+
"encoder_hid_dim": null,
|
| 32 |
+
"encoder_hid_dim_type": null,
|
| 33 |
+
"flip_sin_to_cos": true,
|
| 34 |
+
"freq_shift": 0,
|
| 35 |
+
"in_channels": 4,
|
| 36 |
+
"layers_per_block": 1,
|
| 37 |
+
"mid_block_only_cross_attention": null,
|
| 38 |
+
"mid_block_scale_factor": 1,
|
| 39 |
+
"mid_block_type": null,
|
| 40 |
+
"norm_eps": 1e-05,
|
| 41 |
+
"norm_num_groups": 32,
|
| 42 |
+
"num_attention_heads": null,
|
| 43 |
+
"num_class_embeds": null,
|
| 44 |
+
"only_cross_attention": false,
|
| 45 |
+
"out_channels": 4,
|
| 46 |
+
"projection_class_embeddings_input_dim": null,
|
| 47 |
+
"resnet_out_scale_factor": 1.0,
|
| 48 |
+
"resnet_skip_time_act": false,
|
| 49 |
+
"resnet_time_scale_shift": "default",
|
| 50 |
+
"reverse_transformer_layers_per_block": null,
|
| 51 |
+
"sample_size": 64,
|
| 52 |
+
"time_cond_proj_dim": null,
|
| 53 |
+
"time_embedding_act_fn": null,
|
| 54 |
+
"time_embedding_dim": null,
|
| 55 |
+
"time_embedding_type": "positional",
|
| 56 |
+
"timestep_post_act": null,
|
| 57 |
+
"transformer_layers_per_block": 1,
|
| 58 |
+
"up_block_types": [
|
| 59 |
+
"CrossAttnUpBlock2D",
|
| 60 |
+
"CrossAttnUpBlock2D",
|
| 61 |
+
"CrossAttnUpBlock2D"
|
| 62 |
+
],
|
| 63 |
+
"upcast_attention": false,
|
| 64 |
+
"use_linear_projection": false
|
| 65 |
+
}
|
unet/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6e52380508473fcc355aae0288578205a06b324c7d873ee3b76b00e97beefc3
|
| 3 |
+
size 646813304
|
vae/config.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "AutoencoderKL",
|
| 3 |
+
"_diffusers_version": "0.39.0",
|
| 4 |
+
"_name_or_path": "nota-ai/bk-sdm-tiny-2m",
|
| 5 |
+
"act_fn": "silu",
|
| 6 |
+
"block_out_channels": [
|
| 7 |
+
128,
|
| 8 |
+
256,
|
| 9 |
+
512,
|
| 10 |
+
512
|
| 11 |
+
],
|
| 12 |
+
"down_block_types": [
|
| 13 |
+
"DownEncoderBlock2D",
|
| 14 |
+
"DownEncoderBlock2D",
|
| 15 |
+
"DownEncoderBlock2D",
|
| 16 |
+
"DownEncoderBlock2D"
|
| 17 |
+
],
|
| 18 |
+
"force_upcast": true,
|
| 19 |
+
"in_channels": 3,
|
| 20 |
+
"latent_channels": 4,
|
| 21 |
+
"latents_mean": null,
|
| 22 |
+
"latents_std": null,
|
| 23 |
+
"layers_per_block": 2,
|
| 24 |
+
"mid_block_add_attention": true,
|
| 25 |
+
"norm_num_groups": 32,
|
| 26 |
+
"out_channels": 3,
|
| 27 |
+
"sample_size": 512,
|
| 28 |
+
"scaling_factor": 0.18215,
|
| 29 |
+
"shift_factor": null,
|
| 30 |
+
"up_block_types": [
|
| 31 |
+
"UpDecoderBlock2D",
|
| 32 |
+
"UpDecoderBlock2D",
|
| 33 |
+
"UpDecoderBlock2D",
|
| 34 |
+
"UpDecoderBlock2D"
|
| 35 |
+
],
|
| 36 |
+
"use_post_quant_conv": true,
|
| 37 |
+
"use_quant_conv": true
|
| 38 |
+
}
|
vae/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4fbcf0ebe55a0984f5a5e00d8c4521d52359af7229bb4d81890039d2aa16dd7c
|
| 3 |
+
size 167335342
|