Text-to-Image
Diffusers
Safetensors
diffusion
stable-diffusion
lora
policy-distillation
reinforcement-learning
academic-research
Instructions to use quanhaol/DiffusionOPD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use quanhaol/DiffusionOPD with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-3.5-medium", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("quanhaol/DiffusionOPD") 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
Upload folder using huggingface_hub
Browse files- AesTeacher/lora/README.md +204 -0
- AesTeacher/lora/adapter_config.json +46 -0
- AesTeacher/lora/adapter_model.safetensors +3 -0
- GenEvalTeacher/lora/README.md +204 -0
- GenEvalTeacher/lora/adapter_config.json +46 -0
- GenEvalTeacher/lora/adapter_model.safetensors +3 -0
- OCRTeacher/lora/README.md +204 -0
- OCRTeacher/lora/adapter_config.json +46 -0
- OCRTeacher/lora/adapter_model.safetensors +3 -0
- README.md +100 -0
- Student/lora/README.md +204 -0
- Student/lora/adapter_config.json +46 -0
- Student/lora/adapter_model.safetensors +3 -0
AesTeacher/lora/README.md
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: /cpfs01/xingzhen/quanhao/pretrained_models/stabilityai/stable-diffusion-3.5-medium/transformer
|
| 3 |
+
library_name: peft
|
| 4 |
+
tags:
|
| 5 |
+
- lora
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Model Card for Model ID
|
| 9 |
+
|
| 10 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
### Model Description
|
| 17 |
+
|
| 18 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
- **Developed by:** [More Information Needed]
|
| 23 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 24 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 25 |
+
- **Model type:** [More Information Needed]
|
| 26 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 27 |
+
- **License:** [More Information Needed]
|
| 28 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 29 |
+
|
| 30 |
+
### Model Sources [optional]
|
| 31 |
+
|
| 32 |
+
<!-- Provide the basic links for the model. -->
|
| 33 |
+
|
| 34 |
+
- **Repository:** [More Information Needed]
|
| 35 |
+
- **Paper [optional]:** [More Information Needed]
|
| 36 |
+
- **Demo [optional]:** [More Information Needed]
|
| 37 |
+
|
| 38 |
+
## Uses
|
| 39 |
+
|
| 40 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 41 |
+
|
| 42 |
+
### Direct Use
|
| 43 |
+
|
| 44 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 45 |
+
|
| 46 |
+
[More Information Needed]
|
| 47 |
+
|
| 48 |
+
### Downstream Use [optional]
|
| 49 |
+
|
| 50 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 51 |
+
|
| 52 |
+
[More Information Needed]
|
| 53 |
+
|
| 54 |
+
### Out-of-Scope Use
|
| 55 |
+
|
| 56 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 57 |
+
|
| 58 |
+
[More Information Needed]
|
| 59 |
+
|
| 60 |
+
## Bias, Risks, and Limitations
|
| 61 |
+
|
| 62 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 63 |
+
|
| 64 |
+
[More Information Needed]
|
| 65 |
+
|
| 66 |
+
### Recommendations
|
| 67 |
+
|
| 68 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 69 |
+
|
| 70 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 71 |
+
|
| 72 |
+
## How to Get Started with the Model
|
| 73 |
+
|
| 74 |
+
Use the code below to get started with the model.
|
| 75 |
+
|
| 76 |
+
[More Information Needed]
|
| 77 |
+
|
| 78 |
+
## Training Details
|
| 79 |
+
|
| 80 |
+
### Training Data
|
| 81 |
+
|
| 82 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 83 |
+
|
| 84 |
+
[More Information Needed]
|
| 85 |
+
|
| 86 |
+
### Training Procedure
|
| 87 |
+
|
| 88 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 89 |
+
|
| 90 |
+
#### Preprocessing [optional]
|
| 91 |
+
|
| 92 |
+
[More Information Needed]
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
#### Training Hyperparameters
|
| 96 |
+
|
| 97 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 98 |
+
|
| 99 |
+
#### Speeds, Sizes, Times [optional]
|
| 100 |
+
|
| 101 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 102 |
+
|
| 103 |
+
[More Information Needed]
|
| 104 |
+
|
| 105 |
+
## Evaluation
|
| 106 |
+
|
| 107 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 108 |
+
|
| 109 |
+
### Testing Data, Factors & Metrics
|
| 110 |
+
|
| 111 |
+
#### Testing Data
|
| 112 |
+
|
| 113 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 114 |
+
|
| 115 |
+
[More Information Needed]
|
| 116 |
+
|
| 117 |
+
#### Factors
|
| 118 |
+
|
| 119 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 120 |
+
|
| 121 |
+
[More Information Needed]
|
| 122 |
+
|
| 123 |
+
#### Metrics
|
| 124 |
+
|
| 125 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 126 |
+
|
| 127 |
+
[More Information Needed]
|
| 128 |
+
|
| 129 |
+
### Results
|
| 130 |
+
|
| 131 |
+
[More Information Needed]
|
| 132 |
+
|
| 133 |
+
#### Summary
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
## Model Examination [optional]
|
| 138 |
+
|
| 139 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 140 |
+
|
| 141 |
+
[More Information Needed]
|
| 142 |
+
|
| 143 |
+
## Environmental Impact
|
| 144 |
+
|
| 145 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 146 |
+
|
| 147 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 148 |
+
|
| 149 |
+
- **Hardware Type:** [More Information Needed]
|
| 150 |
+
- **Hours used:** [More Information Needed]
|
| 151 |
+
- **Cloud Provider:** [More Information Needed]
|
| 152 |
+
- **Compute Region:** [More Information Needed]
|
| 153 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 154 |
+
|
| 155 |
+
## Technical Specifications [optional]
|
| 156 |
+
|
| 157 |
+
### Model Architecture and Objective
|
| 158 |
+
|
| 159 |
+
[More Information Needed]
|
| 160 |
+
|
| 161 |
+
### Compute Infrastructure
|
| 162 |
+
|
| 163 |
+
[More Information Needed]
|
| 164 |
+
|
| 165 |
+
#### Hardware
|
| 166 |
+
|
| 167 |
+
[More Information Needed]
|
| 168 |
+
|
| 169 |
+
#### Software
|
| 170 |
+
|
| 171 |
+
[More Information Needed]
|
| 172 |
+
|
| 173 |
+
## Citation [optional]
|
| 174 |
+
|
| 175 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 176 |
+
|
| 177 |
+
**BibTeX:**
|
| 178 |
+
|
| 179 |
+
[More Information Needed]
|
| 180 |
+
|
| 181 |
+
**APA:**
|
| 182 |
+
|
| 183 |
+
[More Information Needed]
|
| 184 |
+
|
| 185 |
+
## Glossary [optional]
|
| 186 |
+
|
| 187 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 188 |
+
|
| 189 |
+
[More Information Needed]
|
| 190 |
+
|
| 191 |
+
## More Information [optional]
|
| 192 |
+
|
| 193 |
+
[More Information Needed]
|
| 194 |
+
|
| 195 |
+
## Model Card Authors [optional]
|
| 196 |
+
|
| 197 |
+
[More Information Needed]
|
| 198 |
+
|
| 199 |
+
## Model Card Contact
|
| 200 |
+
|
| 201 |
+
[More Information Needed]
|
| 202 |
+
### Framework versions
|
| 203 |
+
|
| 204 |
+
- PEFT 0.17.1
|
AesTeacher/lora/adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": {
|
| 4 |
+
"base_model_class": "SD3Transformer2DModel",
|
| 5 |
+
"parent_library": "diffusers.models.transformers.transformer_sd3"
|
| 6 |
+
},
|
| 7 |
+
"base_model_name_or_path": null,
|
| 8 |
+
"bias": "none",
|
| 9 |
+
"corda_config": null,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": "gaussian",
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 64,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.0,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"qalora_group_size": 16,
|
| 27 |
+
"r": 32,
|
| 28 |
+
"rank_pattern": {},
|
| 29 |
+
"revision": null,
|
| 30 |
+
"target_modules": [
|
| 31 |
+
"attn.add_q_proj",
|
| 32 |
+
"attn.to_k",
|
| 33 |
+
"attn.add_k_proj",
|
| 34 |
+
"attn.add_v_proj",
|
| 35 |
+
"attn.to_add_out",
|
| 36 |
+
"attn.to_out.0",
|
| 37 |
+
"attn.to_q",
|
| 38 |
+
"attn.to_v"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": null,
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
AesTeacher/lora/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6fc5e8c646cecd439a7785300a88a9a95d39c17a22cd8f1d766636f7a53e24f3
|
| 3 |
+
size 75156544
|
GenEvalTeacher/lora/README.md
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: /mnt/workspace/quanhao/pretrained_models/stable-diffusion-3.5-medium/transformer
|
| 3 |
+
library_name: peft
|
| 4 |
+
tags:
|
| 5 |
+
- lora
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Model Card for Model ID
|
| 9 |
+
|
| 10 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
### Model Description
|
| 17 |
+
|
| 18 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
- **Developed by:** [More Information Needed]
|
| 23 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 24 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 25 |
+
- **Model type:** [More Information Needed]
|
| 26 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 27 |
+
- **License:** [More Information Needed]
|
| 28 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 29 |
+
|
| 30 |
+
### Model Sources [optional]
|
| 31 |
+
|
| 32 |
+
<!-- Provide the basic links for the model. -->
|
| 33 |
+
|
| 34 |
+
- **Repository:** [More Information Needed]
|
| 35 |
+
- **Paper [optional]:** [More Information Needed]
|
| 36 |
+
- **Demo [optional]:** [More Information Needed]
|
| 37 |
+
|
| 38 |
+
## Uses
|
| 39 |
+
|
| 40 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 41 |
+
|
| 42 |
+
### Direct Use
|
| 43 |
+
|
| 44 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 45 |
+
|
| 46 |
+
[More Information Needed]
|
| 47 |
+
|
| 48 |
+
### Downstream Use [optional]
|
| 49 |
+
|
| 50 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 51 |
+
|
| 52 |
+
[More Information Needed]
|
| 53 |
+
|
| 54 |
+
### Out-of-Scope Use
|
| 55 |
+
|
| 56 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 57 |
+
|
| 58 |
+
[More Information Needed]
|
| 59 |
+
|
| 60 |
+
## Bias, Risks, and Limitations
|
| 61 |
+
|
| 62 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 63 |
+
|
| 64 |
+
[More Information Needed]
|
| 65 |
+
|
| 66 |
+
### Recommendations
|
| 67 |
+
|
| 68 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 69 |
+
|
| 70 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 71 |
+
|
| 72 |
+
## How to Get Started with the Model
|
| 73 |
+
|
| 74 |
+
Use the code below to get started with the model.
|
| 75 |
+
|
| 76 |
+
[More Information Needed]
|
| 77 |
+
|
| 78 |
+
## Training Details
|
| 79 |
+
|
| 80 |
+
### Training Data
|
| 81 |
+
|
| 82 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 83 |
+
|
| 84 |
+
[More Information Needed]
|
| 85 |
+
|
| 86 |
+
### Training Procedure
|
| 87 |
+
|
| 88 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 89 |
+
|
| 90 |
+
#### Preprocessing [optional]
|
| 91 |
+
|
| 92 |
+
[More Information Needed]
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
#### Training Hyperparameters
|
| 96 |
+
|
| 97 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 98 |
+
|
| 99 |
+
#### Speeds, Sizes, Times [optional]
|
| 100 |
+
|
| 101 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 102 |
+
|
| 103 |
+
[More Information Needed]
|
| 104 |
+
|
| 105 |
+
## Evaluation
|
| 106 |
+
|
| 107 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 108 |
+
|
| 109 |
+
### Testing Data, Factors & Metrics
|
| 110 |
+
|
| 111 |
+
#### Testing Data
|
| 112 |
+
|
| 113 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 114 |
+
|
| 115 |
+
[More Information Needed]
|
| 116 |
+
|
| 117 |
+
#### Factors
|
| 118 |
+
|
| 119 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 120 |
+
|
| 121 |
+
[More Information Needed]
|
| 122 |
+
|
| 123 |
+
#### Metrics
|
| 124 |
+
|
| 125 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 126 |
+
|
| 127 |
+
[More Information Needed]
|
| 128 |
+
|
| 129 |
+
### Results
|
| 130 |
+
|
| 131 |
+
[More Information Needed]
|
| 132 |
+
|
| 133 |
+
#### Summary
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
## Model Examination [optional]
|
| 138 |
+
|
| 139 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 140 |
+
|
| 141 |
+
[More Information Needed]
|
| 142 |
+
|
| 143 |
+
## Environmental Impact
|
| 144 |
+
|
| 145 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 146 |
+
|
| 147 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 148 |
+
|
| 149 |
+
- **Hardware Type:** [More Information Needed]
|
| 150 |
+
- **Hours used:** [More Information Needed]
|
| 151 |
+
- **Cloud Provider:** [More Information Needed]
|
| 152 |
+
- **Compute Region:** [More Information Needed]
|
| 153 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 154 |
+
|
| 155 |
+
## Technical Specifications [optional]
|
| 156 |
+
|
| 157 |
+
### Model Architecture and Objective
|
| 158 |
+
|
| 159 |
+
[More Information Needed]
|
| 160 |
+
|
| 161 |
+
### Compute Infrastructure
|
| 162 |
+
|
| 163 |
+
[More Information Needed]
|
| 164 |
+
|
| 165 |
+
#### Hardware
|
| 166 |
+
|
| 167 |
+
[More Information Needed]
|
| 168 |
+
|
| 169 |
+
#### Software
|
| 170 |
+
|
| 171 |
+
[More Information Needed]
|
| 172 |
+
|
| 173 |
+
## Citation [optional]
|
| 174 |
+
|
| 175 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 176 |
+
|
| 177 |
+
**BibTeX:**
|
| 178 |
+
|
| 179 |
+
[More Information Needed]
|
| 180 |
+
|
| 181 |
+
**APA:**
|
| 182 |
+
|
| 183 |
+
[More Information Needed]
|
| 184 |
+
|
| 185 |
+
## Glossary [optional]
|
| 186 |
+
|
| 187 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 188 |
+
|
| 189 |
+
[More Information Needed]
|
| 190 |
+
|
| 191 |
+
## More Information [optional]
|
| 192 |
+
|
| 193 |
+
[More Information Needed]
|
| 194 |
+
|
| 195 |
+
## Model Card Authors [optional]
|
| 196 |
+
|
| 197 |
+
[More Information Needed]
|
| 198 |
+
|
| 199 |
+
## Model Card Contact
|
| 200 |
+
|
| 201 |
+
[More Information Needed]
|
| 202 |
+
### Framework versions
|
| 203 |
+
|
| 204 |
+
- PEFT 0.17.1
|
GenEvalTeacher/lora/adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": {
|
| 4 |
+
"base_model_class": "SD3Transformer2DModel",
|
| 5 |
+
"parent_library": "diffusers.models.transformers.transformer_sd3"
|
| 6 |
+
},
|
| 7 |
+
"base_model_name_or_path": null,
|
| 8 |
+
"bias": "none",
|
| 9 |
+
"corda_config": null,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": "gaussian",
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 64,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.0,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"qalora_group_size": 16,
|
| 27 |
+
"r": 32,
|
| 28 |
+
"rank_pattern": {},
|
| 29 |
+
"revision": null,
|
| 30 |
+
"target_modules": [
|
| 31 |
+
"attn.to_k",
|
| 32 |
+
"attn.to_add_out",
|
| 33 |
+
"attn.to_v",
|
| 34 |
+
"attn.to_q",
|
| 35 |
+
"attn.to_out.0",
|
| 36 |
+
"attn.add_q_proj",
|
| 37 |
+
"attn.add_k_proj",
|
| 38 |
+
"attn.add_v_proj"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": null,
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
GenEvalTeacher/lora/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5df2e1c6dfa14952e9ac893624973c8070e8937004d3da609a05400914d6965
|
| 3 |
+
size 75156544
|
OCRTeacher/lora/README.md
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: /mnt/workspace/quanhao/pretrained_models/stable-diffusion-3.5-medium/transformer
|
| 3 |
+
library_name: peft
|
| 4 |
+
tags:
|
| 5 |
+
- lora
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Model Card for Model ID
|
| 9 |
+
|
| 10 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
### Model Description
|
| 17 |
+
|
| 18 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
- **Developed by:** [More Information Needed]
|
| 23 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 24 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 25 |
+
- **Model type:** [More Information Needed]
|
| 26 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 27 |
+
- **License:** [More Information Needed]
|
| 28 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 29 |
+
|
| 30 |
+
### Model Sources [optional]
|
| 31 |
+
|
| 32 |
+
<!-- Provide the basic links for the model. -->
|
| 33 |
+
|
| 34 |
+
- **Repository:** [More Information Needed]
|
| 35 |
+
- **Paper [optional]:** [More Information Needed]
|
| 36 |
+
- **Demo [optional]:** [More Information Needed]
|
| 37 |
+
|
| 38 |
+
## Uses
|
| 39 |
+
|
| 40 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 41 |
+
|
| 42 |
+
### Direct Use
|
| 43 |
+
|
| 44 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 45 |
+
|
| 46 |
+
[More Information Needed]
|
| 47 |
+
|
| 48 |
+
### Downstream Use [optional]
|
| 49 |
+
|
| 50 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 51 |
+
|
| 52 |
+
[More Information Needed]
|
| 53 |
+
|
| 54 |
+
### Out-of-Scope Use
|
| 55 |
+
|
| 56 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 57 |
+
|
| 58 |
+
[More Information Needed]
|
| 59 |
+
|
| 60 |
+
## Bias, Risks, and Limitations
|
| 61 |
+
|
| 62 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 63 |
+
|
| 64 |
+
[More Information Needed]
|
| 65 |
+
|
| 66 |
+
### Recommendations
|
| 67 |
+
|
| 68 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 69 |
+
|
| 70 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 71 |
+
|
| 72 |
+
## How to Get Started with the Model
|
| 73 |
+
|
| 74 |
+
Use the code below to get started with the model.
|
| 75 |
+
|
| 76 |
+
[More Information Needed]
|
| 77 |
+
|
| 78 |
+
## Training Details
|
| 79 |
+
|
| 80 |
+
### Training Data
|
| 81 |
+
|
| 82 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 83 |
+
|
| 84 |
+
[More Information Needed]
|
| 85 |
+
|
| 86 |
+
### Training Procedure
|
| 87 |
+
|
| 88 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 89 |
+
|
| 90 |
+
#### Preprocessing [optional]
|
| 91 |
+
|
| 92 |
+
[More Information Needed]
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
#### Training Hyperparameters
|
| 96 |
+
|
| 97 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 98 |
+
|
| 99 |
+
#### Speeds, Sizes, Times [optional]
|
| 100 |
+
|
| 101 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 102 |
+
|
| 103 |
+
[More Information Needed]
|
| 104 |
+
|
| 105 |
+
## Evaluation
|
| 106 |
+
|
| 107 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 108 |
+
|
| 109 |
+
### Testing Data, Factors & Metrics
|
| 110 |
+
|
| 111 |
+
#### Testing Data
|
| 112 |
+
|
| 113 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 114 |
+
|
| 115 |
+
[More Information Needed]
|
| 116 |
+
|
| 117 |
+
#### Factors
|
| 118 |
+
|
| 119 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 120 |
+
|
| 121 |
+
[More Information Needed]
|
| 122 |
+
|
| 123 |
+
#### Metrics
|
| 124 |
+
|
| 125 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 126 |
+
|
| 127 |
+
[More Information Needed]
|
| 128 |
+
|
| 129 |
+
### Results
|
| 130 |
+
|
| 131 |
+
[More Information Needed]
|
| 132 |
+
|
| 133 |
+
#### Summary
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
## Model Examination [optional]
|
| 138 |
+
|
| 139 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 140 |
+
|
| 141 |
+
[More Information Needed]
|
| 142 |
+
|
| 143 |
+
## Environmental Impact
|
| 144 |
+
|
| 145 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 146 |
+
|
| 147 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 148 |
+
|
| 149 |
+
- **Hardware Type:** [More Information Needed]
|
| 150 |
+
- **Hours used:** [More Information Needed]
|
| 151 |
+
- **Cloud Provider:** [More Information Needed]
|
| 152 |
+
- **Compute Region:** [More Information Needed]
|
| 153 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 154 |
+
|
| 155 |
+
## Technical Specifications [optional]
|
| 156 |
+
|
| 157 |
+
### Model Architecture and Objective
|
| 158 |
+
|
| 159 |
+
[More Information Needed]
|
| 160 |
+
|
| 161 |
+
### Compute Infrastructure
|
| 162 |
+
|
| 163 |
+
[More Information Needed]
|
| 164 |
+
|
| 165 |
+
#### Hardware
|
| 166 |
+
|
| 167 |
+
[More Information Needed]
|
| 168 |
+
|
| 169 |
+
#### Software
|
| 170 |
+
|
| 171 |
+
[More Information Needed]
|
| 172 |
+
|
| 173 |
+
## Citation [optional]
|
| 174 |
+
|
| 175 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 176 |
+
|
| 177 |
+
**BibTeX:**
|
| 178 |
+
|
| 179 |
+
[More Information Needed]
|
| 180 |
+
|
| 181 |
+
**APA:**
|
| 182 |
+
|
| 183 |
+
[More Information Needed]
|
| 184 |
+
|
| 185 |
+
## Glossary [optional]
|
| 186 |
+
|
| 187 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 188 |
+
|
| 189 |
+
[More Information Needed]
|
| 190 |
+
|
| 191 |
+
## More Information [optional]
|
| 192 |
+
|
| 193 |
+
[More Information Needed]
|
| 194 |
+
|
| 195 |
+
## Model Card Authors [optional]
|
| 196 |
+
|
| 197 |
+
[More Information Needed]
|
| 198 |
+
|
| 199 |
+
## Model Card Contact
|
| 200 |
+
|
| 201 |
+
[More Information Needed]
|
| 202 |
+
### Framework versions
|
| 203 |
+
|
| 204 |
+
- PEFT 0.17.1
|
OCRTeacher/lora/adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": {
|
| 4 |
+
"base_model_class": "SD3Transformer2DModel",
|
| 5 |
+
"parent_library": "diffusers.models.transformers.transformer_sd3"
|
| 6 |
+
},
|
| 7 |
+
"base_model_name_or_path": null,
|
| 8 |
+
"bias": "none",
|
| 9 |
+
"corda_config": null,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": "gaussian",
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 64,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.0,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"qalora_group_size": 16,
|
| 27 |
+
"r": 32,
|
| 28 |
+
"rank_pattern": {},
|
| 29 |
+
"revision": null,
|
| 30 |
+
"target_modules": [
|
| 31 |
+
"attn.to_add_out",
|
| 32 |
+
"attn.to_v",
|
| 33 |
+
"attn.to_k",
|
| 34 |
+
"attn.to_q",
|
| 35 |
+
"attn.add_q_proj",
|
| 36 |
+
"attn.to_out.0",
|
| 37 |
+
"attn.add_v_proj",
|
| 38 |
+
"attn.add_k_proj"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": null,
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
OCRTeacher/lora/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4841ac88f977cfab57d22d3db482e4173e925a513c7b37dc61ae16dd61fd405e
|
| 3 |
+
size 75156544
|
README.md
CHANGED
|
@@ -1,3 +1,103 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
| 3 |
+
base_model: stabilityai/stable-diffusion-3.5-medium
|
| 4 |
+
library_name: diffusers
|
| 5 |
+
tags:
|
| 6 |
+
- diffusion
|
| 7 |
+
- stable-diffusion
|
| 8 |
+
- text-to-image
|
| 9 |
+
- lora
|
| 10 |
+
- policy-distillation
|
| 11 |
+
- reinforcement-learning
|
| 12 |
+
- academic-research
|
| 13 |
+
pipeline_tag: text-to-image
|
| 14 |
---
|
| 15 |
+
|
| 16 |
+
<h1 align="center">DiffusionOPD</h1>
|
| 17 |
+
<h3 align="center">A Unified Perspective of On-Policy Distillation in Diffusion Models</h3>
|
| 18 |
+
|
| 19 |
+
<div align="center">
|
| 20 |
+
<a href="https://arxiv.org/abs/2605.15055"><img src="https://img.shields.io/badge/Paper%20(arXiv)-2605.15055-red?logo=arxiv"></a>
|
| 21 |
+
<a href="https://quanhaol.github.io/DiffusionOPD-site/"><img src="https://img.shields.io/badge/Website-green?logo=homepage&logoColor=white"></a>
|
| 22 |
+
<a href="https://github.com/ali-vilab/DiffusionOPD"><img src="https://img.shields.io/badge/Code-9E95B7?logo=github"></a>
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
## Model Card
|
| 26 |
+
|
| 27 |
+
This Hugging Face repository hosts the released LoRA checkpoints for **DiffusionOPD**, an online policy distillation framework for multi-task diffusion alignment.
|
| 28 |
+
|
| 29 |
+
DiffusionOPD first trains task-specialized teacher models and then distills their capabilities into one unified student along the student's own rollout trajectories. The released checkpoints are intended to support reproducible academic research on diffusion alignment, reward optimization, and on-policy distillation.
|
| 30 |
+
|
| 31 |
+
## Released Checkpoints
|
| 32 |
+
|
| 33 |
+
The repository contains LoRA checkpoints trained from `stabilityai/stable-diffusion-3.5-medium`:
|
| 34 |
+
|
| 35 |
+
| Directory | Description |
|
| 36 |
+
| --- | --- |
|
| 37 |
+
| `Student/lora` | Unified DiffusionOPD student distilled from multiple task-specialized teachers. |
|
| 38 |
+
| `AesTeacher/lora` | Teacher optimized for aesthetic preference alignment. |
|
| 39 |
+
| `GenEvalTeacher/lora` | Teacher optimized for GenEval-style compositional generation. |
|
| 40 |
+
| `OCRTeacher/lora` | Teacher optimized for OCR/text rendering capability. |
|
| 41 |
+
|
| 42 |
+
## Base Model
|
| 43 |
+
|
| 44 |
+
These checkpoints are LoRA adapters for:
|
| 45 |
+
|
| 46 |
+
`stabilityai/stable-diffusion-3.5-medium`
|
| 47 |
+
|
| 48 |
+
Powered by Stability AI.
|
| 49 |
+
|
| 50 |
+
## Usage
|
| 51 |
+
|
| 52 |
+
Please use the official DiffusionOPD codebase for loading the LoRA checkpoints and running evaluation:
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
git clone https://github.com/ali-vilab/DiffusionOPD.git
|
| 56 |
+
cd DiffusionOPD
|
| 57 |
+
|
| 58 |
+
conda create -n DiffusionOPD python=3.10.16
|
| 59 |
+
conda activate DiffusionOPD
|
| 60 |
+
pip install torch==2.6.0 torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cu126
|
| 61 |
+
pip install -e .
|
| 62 |
+
|
| 63 |
+
bash scripts/single_node/eval.sh
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
The evaluation script supports datasets including `geneval`, `ocr`, `pickscore`, and `drawbench`.
|
| 67 |
+
|
| 68 |
+
## Intended Use
|
| 69 |
+
|
| 70 |
+
This project is released for academic research only. It is intended for studying diffusion model alignment, reward-guided optimization, on-policy distillation, and evaluation of text-to-image generation systems.
|
| 71 |
+
|
| 72 |
+
Users are responsible for ensuring that their use of these checkpoints complies with all applicable laws, research ethics requirements, the Creative Commons Attribution license for this release, and the license terms of the underlying Stability AI model.
|
| 73 |
+
|
| 74 |
+
## License
|
| 75 |
+
|
| 76 |
+
The DiffusionOPD released checkpoints and model card are provided under the **Creative Commons Attribution 4.0 International (CC BY 4.0)** license.
|
| 77 |
+
|
| 78 |
+
Because these checkpoints are based on `stabilityai/stable-diffusion-3.5-medium`, use of the base model is also governed by the Stability AI Community License:
|
| 79 |
+
|
| 80 |
+
https://huggingface.co/stabilityai/stable-diffusion-3.5-medium/blob/main/LICENSE.md
|
| 81 |
+
|
| 82 |
+
Required Stability AI attribution:
|
| 83 |
+
|
| 84 |
+
> "This Stability AI Model is licensed under the Stability AI Community License, Copyright © Stability AI Ltd. All Rights Reserved"
|
| 85 |
+
|
| 86 |
+
> Powered by Stability AI
|
| 87 |
+
|
| 88 |
+
## Citation
|
| 89 |
+
|
| 90 |
+
If you find this project useful, please cite:
|
| 91 |
+
|
| 92 |
+
```bibtex
|
| 93 |
+
@article{li2026diffusionopd,
|
| 94 |
+
title={DiffusionOPD: A Unified Perspective of On-Policy Distillation in Diffusion Models},
|
| 95 |
+
author={Li, Quanhao and Yu, Junqiu and Jiang, Kaixun and Wei, Yujie and Xing, Zhen and Li, Pandeng and Chu, Ruihang and Zhang, Shiwei and Liu, Yu and Wu, Zuxuan},
|
| 96 |
+
journal={arXiv preprint arXiv:2605.15055},
|
| 97 |
+
year={2026}
|
| 98 |
+
}
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
## Acknowledgements
|
| 102 |
+
|
| 103 |
+
We thank the [Flow-GRPO](https://github.com/yifan123/flow_grpo), [DiffusionNFT](https://github.com/NVlabs/DiffusionNFT), and [Stable Diffusion 3.5 Medium](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium) projects.
|
Student/lora/README.md
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: /mnt/workspace/quanhao/pretrained_models/stable-diffusion-3.5-medium/transformer
|
| 3 |
+
library_name: peft
|
| 4 |
+
tags:
|
| 5 |
+
- lora
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Model Card for Model ID
|
| 9 |
+
|
| 10 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
### Model Description
|
| 17 |
+
|
| 18 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
- **Developed by:** [More Information Needed]
|
| 23 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 24 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 25 |
+
- **Model type:** [More Information Needed]
|
| 26 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 27 |
+
- **License:** [More Information Needed]
|
| 28 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 29 |
+
|
| 30 |
+
### Model Sources [optional]
|
| 31 |
+
|
| 32 |
+
<!-- Provide the basic links for the model. -->
|
| 33 |
+
|
| 34 |
+
- **Repository:** [More Information Needed]
|
| 35 |
+
- **Paper [optional]:** [More Information Needed]
|
| 36 |
+
- **Demo [optional]:** [More Information Needed]
|
| 37 |
+
|
| 38 |
+
## Uses
|
| 39 |
+
|
| 40 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 41 |
+
|
| 42 |
+
### Direct Use
|
| 43 |
+
|
| 44 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 45 |
+
|
| 46 |
+
[More Information Needed]
|
| 47 |
+
|
| 48 |
+
### Downstream Use [optional]
|
| 49 |
+
|
| 50 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 51 |
+
|
| 52 |
+
[More Information Needed]
|
| 53 |
+
|
| 54 |
+
### Out-of-Scope Use
|
| 55 |
+
|
| 56 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 57 |
+
|
| 58 |
+
[More Information Needed]
|
| 59 |
+
|
| 60 |
+
## Bias, Risks, and Limitations
|
| 61 |
+
|
| 62 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 63 |
+
|
| 64 |
+
[More Information Needed]
|
| 65 |
+
|
| 66 |
+
### Recommendations
|
| 67 |
+
|
| 68 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 69 |
+
|
| 70 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 71 |
+
|
| 72 |
+
## How to Get Started with the Model
|
| 73 |
+
|
| 74 |
+
Use the code below to get started with the model.
|
| 75 |
+
|
| 76 |
+
[More Information Needed]
|
| 77 |
+
|
| 78 |
+
## Training Details
|
| 79 |
+
|
| 80 |
+
### Training Data
|
| 81 |
+
|
| 82 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 83 |
+
|
| 84 |
+
[More Information Needed]
|
| 85 |
+
|
| 86 |
+
### Training Procedure
|
| 87 |
+
|
| 88 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 89 |
+
|
| 90 |
+
#### Preprocessing [optional]
|
| 91 |
+
|
| 92 |
+
[More Information Needed]
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
#### Training Hyperparameters
|
| 96 |
+
|
| 97 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 98 |
+
|
| 99 |
+
#### Speeds, Sizes, Times [optional]
|
| 100 |
+
|
| 101 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 102 |
+
|
| 103 |
+
[More Information Needed]
|
| 104 |
+
|
| 105 |
+
## Evaluation
|
| 106 |
+
|
| 107 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 108 |
+
|
| 109 |
+
### Testing Data, Factors & Metrics
|
| 110 |
+
|
| 111 |
+
#### Testing Data
|
| 112 |
+
|
| 113 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 114 |
+
|
| 115 |
+
[More Information Needed]
|
| 116 |
+
|
| 117 |
+
#### Factors
|
| 118 |
+
|
| 119 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 120 |
+
|
| 121 |
+
[More Information Needed]
|
| 122 |
+
|
| 123 |
+
#### Metrics
|
| 124 |
+
|
| 125 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 126 |
+
|
| 127 |
+
[More Information Needed]
|
| 128 |
+
|
| 129 |
+
### Results
|
| 130 |
+
|
| 131 |
+
[More Information Needed]
|
| 132 |
+
|
| 133 |
+
#### Summary
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
## Model Examination [optional]
|
| 138 |
+
|
| 139 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 140 |
+
|
| 141 |
+
[More Information Needed]
|
| 142 |
+
|
| 143 |
+
## Environmental Impact
|
| 144 |
+
|
| 145 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 146 |
+
|
| 147 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 148 |
+
|
| 149 |
+
- **Hardware Type:** [More Information Needed]
|
| 150 |
+
- **Hours used:** [More Information Needed]
|
| 151 |
+
- **Cloud Provider:** [More Information Needed]
|
| 152 |
+
- **Compute Region:** [More Information Needed]
|
| 153 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 154 |
+
|
| 155 |
+
## Technical Specifications [optional]
|
| 156 |
+
|
| 157 |
+
### Model Architecture and Objective
|
| 158 |
+
|
| 159 |
+
[More Information Needed]
|
| 160 |
+
|
| 161 |
+
### Compute Infrastructure
|
| 162 |
+
|
| 163 |
+
[More Information Needed]
|
| 164 |
+
|
| 165 |
+
#### Hardware
|
| 166 |
+
|
| 167 |
+
[More Information Needed]
|
| 168 |
+
|
| 169 |
+
#### Software
|
| 170 |
+
|
| 171 |
+
[More Information Needed]
|
| 172 |
+
|
| 173 |
+
## Citation [optional]
|
| 174 |
+
|
| 175 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 176 |
+
|
| 177 |
+
**BibTeX:**
|
| 178 |
+
|
| 179 |
+
[More Information Needed]
|
| 180 |
+
|
| 181 |
+
**APA:**
|
| 182 |
+
|
| 183 |
+
[More Information Needed]
|
| 184 |
+
|
| 185 |
+
## Glossary [optional]
|
| 186 |
+
|
| 187 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 188 |
+
|
| 189 |
+
[More Information Needed]
|
| 190 |
+
|
| 191 |
+
## More Information [optional]
|
| 192 |
+
|
| 193 |
+
[More Information Needed]
|
| 194 |
+
|
| 195 |
+
## Model Card Authors [optional]
|
| 196 |
+
|
| 197 |
+
[More Information Needed]
|
| 198 |
+
|
| 199 |
+
## Model Card Contact
|
| 200 |
+
|
| 201 |
+
[More Information Needed]
|
| 202 |
+
### Framework versions
|
| 203 |
+
|
| 204 |
+
- PEFT 0.17.1
|
Student/lora/adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": {
|
| 4 |
+
"base_model_class": "SD3Transformer2DModel",
|
| 5 |
+
"parent_library": "diffusers.models.transformers.transformer_sd3"
|
| 6 |
+
},
|
| 7 |
+
"base_model_name_or_path": null,
|
| 8 |
+
"bias": "none",
|
| 9 |
+
"corda_config": null,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": "gaussian",
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 64,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.0,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"qalora_group_size": 16,
|
| 27 |
+
"r": 32,
|
| 28 |
+
"rank_pattern": {},
|
| 29 |
+
"revision": null,
|
| 30 |
+
"target_modules": [
|
| 31 |
+
"attn.add_v_proj",
|
| 32 |
+
"attn.to_k",
|
| 33 |
+
"attn.add_q_proj",
|
| 34 |
+
"attn.to_q",
|
| 35 |
+
"attn.to_add_out",
|
| 36 |
+
"attn.to_v",
|
| 37 |
+
"attn.to_out.0",
|
| 38 |
+
"attn.add_k_proj"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": null,
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
Student/lora/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea13e49b90bbab85edffb631a5f1af2c71392400cc33004e0de3f1a883e7f4f7
|
| 3 |
+
size 75156544
|