From af7b9a33b505a365b00fb202ad5cc08fa97d510b Mon Sep 17 00:00:00 2001 From: Giada Pistilli Date: Mon, 13 Feb 2023 10:07:01 +0100 Subject: [PATCH 1/6] add ethical guidelines --- .../Diffusers' ethical guidelines v.1.mdx | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/source/en/conceptual/Diffusers' ethical guidelines v.1.mdx diff --git a/docs/source/en/conceptual/Diffusers' ethical guidelines v.1.mdx b/docs/source/en/conceptual/Diffusers' ethical guidelines v.1.mdx new file mode 100644 index 000000000000..10fa771d9912 --- /dev/null +++ b/docs/source/en/conceptual/Diffusers' ethical guidelines v.1.mdx @@ -0,0 +1,42 @@ +# **🧨 Diffusers’ Ethical Guidelines** + +## Preamble +🤗 [Diffusers](https://huggingface.co/docs/diffusers/index) provides pre-trained diffusion models and serves as a modular toolbox for inference and training. + +Given its real case applications in the world and potential negative impacts on society, we think it is important to provide the project with ethical guidelines to guide the development, users’ contributions, and usage of the Diffusers library. + +The risks associated with using this technology are still being examined, but to name a few: copyrights issues for artists; deep-fake exploitation; sexual content generation in inappropriate contexts; non-consensual impersonation; harmful social biases perpetuating the oppression of marginalized groups. +We will keep tracking risks and adapt the following guidelines based on the community's responsiveness and valuable feedback. + +## Scope +The Diffusers community will apply the following ethical guidelines to the project’s development and help coordinate how the community will integrate the contributions, especially concerning sensitive topics related to ethical concerns. + +## Ethical guidelines +The following ethical guidelines apply generally, but we will primarily implement them when dealing with ethically sensitive issues while making a technical choice. Furthermore, we commit to adapting those ethical principles over time following emerging harms related to the state of the art of the technology in question. + +- **Transparency**: we are committed to being transparent in managing PRs, explaining our choices to users, and making technical decisions. + +- **Consistency**: we are committed to guaranteeing our users the same level of attention in project management, keeping it technically stable and consistent. + +- **Simplicity**: with a desire to make it easy to use and exploit the Diffusers library, we are committed to keeping the project’s goals lean and coherent. + +- **Accessibility**: the Diffusers project helps lower the entry bar for contributors who can help run it even without technical expertise. Doing so makes research artifacts more accessible to the community. + +- **Reproducibility**: we aim to be transparent about the reproducibility of upstream code, models, and datasets when made available through the Diffusers library. + +- **Responsibility**: as a community and through teamwork, we hold a collective responsibility to our users by anticipating and mitigating this technology's potential risks and dangers. + +## Examples of implementations: Safety features and Mechanisms +The team works daily to make the technical and non-technical tools available to deal with the potential ethical and social risks associated with diffusion technology. Moreover, the community's input is invaluable in ensuring these features' implementation and raising awareness with us. + +- [**Community tab**](https://huggingface.co/docs/hub/repositories-pull-requests-discussions): it enables the community to discuss and better collaborate on a project. + +- **Bias exploration and evaluation**: the Hugging Face team provides a [space](https://huggingface.co/spaces/society-ethics/DiffusionBiasExplorer) to demonstrate the biases in Stable Diffusion interactively. In this sense, we support and encourage bias explorers and evaluations. + +- **Encouraging safety in deployment** + + - [**Safe Stable Diffusion**](https://huggingface.co/docs/diffusers/main/en/api/pipelines/stable_diffusion_safe): It mitigates the well-known issue that models, like Stable Diffusion, that are trained on unfiltered, web-crawled datasets tend to suffer from inappropriate degeneration. Related paper: [Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Models](https://arxiv.org/abs/2211.05105). + +- **Staged released on the Hub**: in particularly sensitive situations, access to some repositories should be restricted. This staged release is an intermediary step that allows the repository’s authors to have more control over its use. + +- **Licensing**: [OpenRAILs](https://huggingface.co/blog/open_rail), a new type of licensing, allow us to ensure free access while having a set of restrictions that ensure more responsible use. From 21a3321aeabc6b84c02131f7da7481b98decf846 Mon Sep 17 00:00:00 2001 From: Giada Pistilli Date: Mon, 13 Feb 2023 10:11:58 +0100 Subject: [PATCH 2/6] update file name --- ...ffusers' ethical guidelines v.1.mdx => ethical guidelines.mdx} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/source/en/conceptual/{Diffusers' ethical guidelines v.1.mdx => ethical guidelines.mdx} (100%) diff --git a/docs/source/en/conceptual/Diffusers' ethical guidelines v.1.mdx b/docs/source/en/conceptual/ethical guidelines.mdx similarity index 100% rename from docs/source/en/conceptual/Diffusers' ethical guidelines v.1.mdx rename to docs/source/en/conceptual/ethical guidelines.mdx From cfc15480aba2edc213bae6309a47892e79f2db46 Mon Sep 17 00:00:00 2001 From: Giada Pistilli Date: Mon, 13 Feb 2023 10:13:17 +0100 Subject: [PATCH 3/6] edit file name --- .../conceptual/{ethical guidelines.mdx => ethical_guidelines.mdx} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/source/en/conceptual/{ethical guidelines.mdx => ethical_guidelines.mdx} (100%) diff --git a/docs/source/en/conceptual/ethical guidelines.mdx b/docs/source/en/conceptual/ethical_guidelines.mdx similarity index 100% rename from docs/source/en/conceptual/ethical guidelines.mdx rename to docs/source/en/conceptual/ethical_guidelines.mdx From d630b77a0ee0ab09aa7c6bbd6b294d9cbe0fcdbc Mon Sep 17 00:00:00 2001 From: Giada Pistilli Date: Mon, 13 Feb 2023 10:17:14 +0100 Subject: [PATCH 4/6] update toctree --- docs/source/en/_toctree.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/en/_toctree.yml b/docs/source/en/_toctree.yml index dd08e9f95d99..f3175e9b7f8a 100644 --- a/docs/source/en/_toctree.yml +++ b/docs/source/en/_toctree.yml @@ -85,6 +85,8 @@ title: Philosophy - local: conceptual/contribution title: How to contribute? + - local: conceptual/ethical_guidelines + title: Diffusers' Ethical Guidelines title: Conceptual Guides - sections: - sections: From d22dcf15eb9ac487366adebcc4049ac4bddd04e7 Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Mon, 13 Feb 2023 10:30:15 +0100 Subject: [PATCH 5/6] Update docs/source/en/conceptual/ethical_guidelines.mdx --- docs/source/en/conceptual/ethical_guidelines.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/conceptual/ethical_guidelines.mdx b/docs/source/en/conceptual/ethical_guidelines.mdx index 10fa771d9912..5d83bbc75ec1 100644 --- a/docs/source/en/conceptual/ethical_guidelines.mdx +++ b/docs/source/en/conceptual/ethical_guidelines.mdx @@ -1,4 +1,4 @@ -# **🧨 Diffusers’ Ethical Guidelines** +# 🧨 **Diffusers’ Ethical Guidelines** ## Preamble 🤗 [Diffusers](https://huggingface.co/docs/diffusers/index) provides pre-trained diffusion models and serves as a modular toolbox for inference and training. From 22ea9aa8bf5e093ae65884867731b203e38c0b85 Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Mon, 13 Feb 2023 10:32:50 +0100 Subject: [PATCH 6/6] Update docs/source/en/conceptual/ethical_guidelines.mdx --- docs/source/en/conceptual/ethical_guidelines.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/conceptual/ethical_guidelines.mdx b/docs/source/en/conceptual/ethical_guidelines.mdx index 5d83bbc75ec1..4b4baa435da0 100644 --- a/docs/source/en/conceptual/ethical_guidelines.mdx +++ b/docs/source/en/conceptual/ethical_guidelines.mdx @@ -1,4 +1,4 @@ -# 🧨 **Diffusers’ Ethical Guidelines** +# 🧨 Diffusers’ Ethical Guidelines ## Preamble 🤗 [Diffusers](https://huggingface.co/docs/diffusers/index) provides pre-trained diffusion models and serves as a modular toolbox for inference and training.