Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,103 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
base_model:
|
6 |
+
- black-forest-labs/FLUX.1-dev
|
7 |
+
new_version: black-forest-labs/FLUX.1-dev
|
8 |
+
pipeline_tag: text-to-image
|
9 |
+
library_name: diffusers
|
10 |
+
tags:
|
11 |
+
- art
|
12 |
+
---
|
13 |
+
### Model Card for FLUX.1 [dev] Abliterated
|
14 |
+
|
15 |
+
#### Model Overview
|
16 |
+
**Model Name:** FLUX.1 [dev] Abliterated
|
17 |
+
**Model Type:** Text-to-Image Generation
|
18 |
+
**Architecture:** Rectified Flow Transformer
|
19 |
+
**Parameter Size:** 12 Billion
|
20 |
+
**Base Model:** FLUX.1 [dev]
|
21 |
+
**Modification:** Abliteration (Removal of Refusal Mechanism)
|
22 |
+
|
23 |
+
#### Description
|
24 |
+
The **FLUX.1 [dev] Abliterated** model is a modified version of the original FLUX.1 [dev] text-to-image generation model. This version has undergone a process called **abliteration**, which removes the model's built-in refusal mechanism. This allows the model to respond to a wider range of prompts, including those that the original model might have deemed inappropriate or harmful.
|
25 |
+
|
26 |
+
The abliteration process involves identifying and isolating the specific components of the model responsible for refusal behavior and then modifying or ablating those components. This results in a model that is more flexible and responsive, while still maintaining the core capabilities of the original FLUX.1 [dev] model.
|
27 |
+
|
28 |
+
#### Key Features
|
29 |
+
- **Cutting-Edge Output Quality:** Retains the high-quality image generation capabilities of FLUX.1 [dev], producing visually stunning and detailed images.
|
30 |
+
- **Enhanced Flexibility:** The abliteration process allows the model to respond to a broader range of prompts, including those that might have been restricted in the original model.
|
31 |
+
- **Open Weights:** The model is open-source, enabling researchers, developers, and artists to explore and build upon its capabilities.
|
32 |
+
- **Efficient Inference:** Despite the modifications, the model remains efficient and can be run on consumer-grade GPUs.
|
33 |
+
- **Commercial Use:** Generated outputs can be used for personal, scientific, and commercial purposes, as described in the FLUX.1 [dev] Non-Commercial License.
|
34 |
+
|
35 |
+
#### Intended Use
|
36 |
+
The FLUX.1 [dev] Abliterated model is intended for use in:
|
37 |
+
- **Creative Applications:** Artists and designers can use the model to generate unique and imaginative visuals based on text prompts.
|
38 |
+
- **Research:** Researchers can explore the effects of abliteration on model behavior and study the mechanisms behind refusal in large language models.
|
39 |
+
- **Commercial Projects:** The model can be used in commercial applications, such as advertising, content creation, and more.
|
40 |
+
|
41 |
+
#### Limitations
|
42 |
+
- **Ethical Considerations:** The removal of the refusal mechanism means that the model may generate content that could be considered inappropriate or harmful. Users should exercise caution and implement additional safeguards when deploying this model.
|
43 |
+
- **Quality Degradation:** In some cases, the abliteration process may lead to a slight degradation in output quality or coherence. Fine-tuning or additional post-processing may be required to mitigate this.
|
44 |
+
- **Bias and Fairness:** Like all large language models, FLUX.1 [dev] Abliterated may exhibit biases present in the training data. Users should be aware of these biases and take steps to address them in their applications.
|
45 |
+
|
46 |
+
#### Usage
|
47 |
+
To use the FLUX.1 [dev] Abliterated model, you can load it via Hugging Face and generate images using the following code:
|
48 |
+
|
49 |
+
```python
|
50 |
+
import torch
|
51 |
+
from diffusers import AutoPipelineForText2Image
|
52 |
+
|
53 |
+
# Load the abliterated model
|
54 |
+
pipeline = AutoPipelineForText2Image.from_pretrained(
|
55 |
+
"aoxo/flux.1dev-abliterated",
|
56 |
+
torch_dtype=torch.float16,
|
57 |
+
token='your_hf_token'
|
58 |
+
).to('cuda')
|
59 |
+
|
60 |
+
# Generate an image from a text prompt
|
61 |
+
prompt = 'A girl in bikinis sipping on a margarita'
|
62 |
+
image = pipeline(prompt).images[0]
|
63 |
+
|
64 |
+
# Display the image
|
65 |
+
image.show()
|
66 |
+
```
|
67 |
+
|
68 |
+
#### Training Data
|
69 |
+
The FLUX.1 [dev] Abliterated model is based on the original FLUX.1 [dev] model, which was trained on a diverse dataset of text-image pairs. The training data includes a wide range of visual and textual content, ensuring that the model can generate images for a variety of prompts.
|
70 |
+
|
71 |
+
#### Ethical Considerations
|
72 |
+
- **Content Moderation:** Users should implement additional content moderation tools to filter out inappropriate or harmful outputs.
|
73 |
+
- **Bias Mitigation:** Be aware of potential biases in the model's outputs and take steps to mitigate them, especially in sensitive applications.
|
74 |
+
- **Transparency:** Clearly communicate to end-users that the model has been modified to remove refusal mechanisms, and that additional safeguards may be necessary.
|
75 |
+
|
76 |
+
#### License
|
77 |
+
The FLUX.1 [dev] Abliterated model is released under the same **FLUX.1 [dev] Non-Commercial License** as the original model. This license allows for personal, scientific, and commercial use, with certain restrictions. Please review the license terms before using the model in your projects.
|
78 |
+
|
79 |
+
#### Citation
|
80 |
+
If you use the FLUX.1 [dev] Abliterated model in your research or projects, please cite the original FLUX.1 [dev] model and the abliteration process as described in the blog post by Aloshdenny.
|
81 |
+
|
82 |
+
```bibtex
|
83 |
+
@misc{flux1dev,
|
84 |
+
author = {Flux Team},
|
85 |
+
title = {FLUX.1 [dev]: A 12 Billion Parameter Rectified Flow Transformer},
|
86 |
+
year = {2023},
|
87 |
+
howpublished = {\url{https://huggingface.co/aoxo/flux.1dev}},
|
88 |
+
}
|
89 |
+
|
90 |
+
@misc{aloshdenny2023abliteration,
|
91 |
+
author = {Aloshdenny},
|
92 |
+
title = {Uncensoring Flux.1 Dev: Abliteration},
|
93 |
+
year = {2025},
|
94 |
+
howpublished = {\url{https://medium.com/@aloshdenny/uncensoring-flux-1-dev-abliteration}},
|
95 |
+
}
|
96 |
+
```
|
97 |
+
|
98 |
+
#### Contact
|
99 |
+
For questions, feedback, or collaboration opportunities, please contact the Flux Team at [contact@flux.ai](mailto:contact@flux.ai).
|
100 |
+
|
101 |
+
---
|
102 |
+
|
103 |
+
This model card provides an overview of the FLUX.1 [dev] Abliterated model, its intended use, limitations, and ethical considerations. It is designed to help users understand the model's capabilities and make informed decisions about its deployment.
|