import{s as lt,n as rt,o as ct}from"../chunks/scheduler.7bc62968.js";import{S as gt,i as mt,g as s,s as a,r as g,A as ut,h as l,f as i,c as o,j as ot,u as m,x as r,k as st,y as ft,a as n,v as u,d as f,t as p,w as h}from"../chunks/index.2f8492b0.js";import{H as d}from"../chunks/Heading.14fb2476.js";function pt(De){let c,Y,K,Z,v,ee,w,Ie="We hope you liked exploring the unit on ethics and bias in computer vision. As we conclude this unit, let us take a look into the efforts by Hugging Face to improve ethics in society. This chapter will encourage you to explore the world of ethics and bias in AI in general, which is constantly evolving. Hugging Face’s core mission is to <em>democratize good machine learning</em>. So what is Good ML? There are some principles for Good ML.",te,y,ie,$,Ee=`<strong>1. Collaboration:</strong> Providing tools for easier collaboration with the open-source community. Some examples of these tools are:
a. <a href="https://huggingface.co/docs/hub/model-cards" rel="nofollow"><em>Model Cards</em></a> are files that accompany the models and provide information about the model, its intended uses and potential limitations (including ethical considerations), training parameters and experimental information, datasets used for training and evaluation results. This ensures that the models uploaded to the hub are transparent and open to the community.
b. <a href="https://huggingface.co/blog/eval-on-the-hub" rel="nofollow"><em>Evaluation</em></a> lets users to evaluate any model on any dataset that is openly available on the Hub without writing a single line of code. ,
c. <a href="https://huggingface.co/blog/community-update" rel="nofollow"><em>Community discussion</em></a> is important, whether you upload a model, dataset or a space or you just want to know more about them from the authors. Everyone can give feedback, flag a given Space, and improve or contribute directly to the repository via PRs.
d. <a href="https://discord.com/invite/JfAtkvEtRb" rel="nofollow"><em>Discord</em></a> group for the 🤗 community, where a wide range of channels discuss about different domains like reinforcement-learning, NLP, game development, audio, computer vision and so on.
<strong>2. Transparency:</strong> Being transparent about the intent, sources of data, model training and performance. Efforts in this direction include:
a. <a href="https://huggingface.co/blog/ethical-charter-multimodal" rel="nofollow"><em>Ethical charter for multimodal project</em></a> discusses the values of the multimodal learning group at 🤗. This is a project-specific charter.
b. <a href="https://huggingface.co/blog/us-national-ai-research-resource" rel="nofollow"><em>Work on AI policy @</em> 🤗</a> mentions the response of Hugging Face on U.S. National AI Research Resource Interim Report.
<strong>3. Responsibility:</strong> Assessing the impacts of ML models and tools, and making them more auditable and understandable even for people with less expertise on ML. Some efforts in this directions are:
a. <a href="https://huggingface.co/blog/education" rel="nofollow">🤗 <em>for Education Project</em></a> aims at educating people from all backgrounds, beginners and instructors. Various experts and team members organize meetups, conferences and workshops.<br/>
b. <a href="https://huggingface.co/spaces/huggingface/data-measurements-tool" rel="nofollow"><em>Data Measurement Tool</em></a> is an interactive interface and open-source library that lets dataset creators and users automatically calculate metrics that are meaningful and useful for responsible data development.`,ne,x,ae,C,je="As we move forward, let us now take a look into how spaces are categorized by Hugging Face. Hugging Face categorizes the spaces in 6 high levels based on the ethical aspects in Machine Learning. Hugging Face Spaces are categorized as:",oe,b,se,T,qe="Rigorous projects pay special attention to examining failure cases, protecting privacy through security measures, and ensuring that potential users (technical and non-technical) are informed of the project’s limitations. Some examples:",le,L,Fe="<li>Projects built with models that are well-documented with Model Cards.</li> <li>Tools that provide transparency into how a model was trained and how it behaves.</li> <li>Evaluations against cutting-edge benchmarks, with results reported against disaggregated sets.</li> <li>Demonstrations of models failing across gender, skin type, ethnicity, age or other attributes.</li> <li>Techniques for mitigating issues like over-fitting and training data memorization.</li> <li>Techniques for detoxifying language models.</li>",re,H,Re='An example space is the <a href="https://huggingface.co/spaces/society-ethics/DiffusionBiasExplorer" rel="nofollow"><strong>Diffusion Bias Explorer</strong></a> which lets the users compare three text-to-image models SD 1.4, SD 2.0 and Dall-E 2 for different prompts and how they represent different professions and adjectives.',ce,M,ge,_,Ue="Consentful technology supports the self-determination of people who use and are affected by these technologies. Some examples:",me,k,Be="<li>Demonstrating a commitment to acquiring data from willing, informed, and appropriately compensated sources.</li> <li>Designing systems that respect end-user autonomy, e.g. with privacy-preserving techniques.</li> <li>Avoiding extractive, chauvinist, “dark”, and otherwise “unethical” patterns of engagement.</li>",ue,S,Ge="Some example spaces for this category are:",fe,P,Oe='<li><a href="https://huggingface.co/spaces/AIML-TUDA/does-clip-know-my-face" rel="nofollow"><strong>Does CLIP Know My Face:</strong></a> this space lets you choose a model, enter your name and upload some pictures. Depending on this information, the model tries to predict your name from the images, if it predicts name correctly for multiple images there are high chances that you were part of the training data.</li> <li><a href="https://huggingface.co/spaces/RamAnanth1/photoguard" rel="nofollow"><strong>Photoguard:</strong></a> this space demonstrates an approach to safeguarding images against manipulation by ML-powered photo-editing models such as SD, through immunization of images.</li>',pe,A,he,z,Ve="Socially Conscious work shows us how machine learning can support efforts toward a stronger society. Some examples:",de,D,Ne="<li>Using machine learning as part of an effort to tackle climate change.</li> <li>Building tools to assist with medical research and practice.</li> <li>Models for text-to-speech, image captioning, and other tasks aimed at increasing accessibility.</li> <li>Creating systems for the digital humanities, such as for Indigenous language revitalization.</li>",ve,I,We="Some example spaces:",we,E,Qe='<li><a href="https://huggingface.co/spaces/Geonmo/socratic-models-image-captioning-with-BLOOM" rel="nofollow"><strong>Socratic Models Image Captioning</strong></a></li> <li><a href="https://huggingface.co/spaces/nielsr/comparing-captioning-models" rel="nofollow"><strong>Comparing Image Captioning Models</strong></a></li>',ye,j,$e,q,Je="This is work that highlights and explores techniques for making machine learning ecologically sustainable. Some examples:",xe,F,Ke="<li>Tracking emissions from training and running inferences on large language models.</li> <li>Quantization and distillation methods to reduce carbon footprints without sacrificing model quality.</li>",Ce,R,Xe='<li><a href="https://huggingface.co/spaces/adirik/efficientformer" rel="nofollow"><strong>EfficientFormer</strong></a></li> <li><a href="https://huggingface.co/spaces/Ron0420/EfficientNetV2_Deepfakes_Video_Detector" rel="nofollow"><strong>EfficientNetV2 Deepfakes Video Detector</strong></a></li>',be,U,Te,B,Ye="These are projects which broaden the scope of who builds and benefits in the machine learning world. Some examples:",Le,G,Ze="<li>Curating diverse datasets that increase the representation of underserved groups</li> <li>Training language models on languages that aren’t yet available on the Hugging Face Hub.</li> <li>Creating no-code and low-code frameworks that allow non-technical folk to engage with AI.</li>",He,O,et='An example space is <a href="https://huggingface.co/spaces/microsoft/Promptist" rel="nofollow"><strong>Promptist Demo</strong></a>.',Me,V,_e,N,tt="Some projects take a radical new approach to concepts which may have become commonplace. These projects, often rooted in critical theory, shine a light on inequities and power structures which challenge the community to rethink its relationship to technology. Some examples:",ke,W,it="<li>Reframing AI and machine learning from Indigenous perspectives.</li> <li>Highlighting LGBTQIA2S+ marginalization in AI.</li> <li>Critiquing the harms perpetuated by AI systems.</li> <li>Discussing the role of “openness” in AI research.</li>",Se,Q,nt='An example space is <a href="https://huggingface.co/spaces/merve/dataset-worldviews" rel="nofollow"><strong>PAIR: Datasets Have Worldviews</strong></a>.',Pe,J,at='Finally, if you would like to explore more about Hugging Face’s efforts, do check out the <a href="https://huggingface.co/society-ethics" rel="nofollow"><strong>Society and Ethics</strong></a> organzation on Hugging Face. Also check out the dedicated channel on <a href="https://discord.gg/hugging-face-879548962464493619" rel="nofollow"><strong>#ethics-and-society</strong></a>.',Ae,X,ze;return v=new d({props:{title:"Hugging Face’s efforts: Ethics and Society 🤗🌎",local:"hugging-faces-efforts-ethics-and-society-",headingTag:"h1"}}),y=new d({props:{title:"Democratizing Good ML 🤗",local:"democratizing-good-ml-",headingTag:"h2"}}),x=new d({props:{title:"Categories of Hugging Face Spaces",local:"categories-of-hugging-face-spaces",headingTag:"h2"}}),b=new d({props:{title:"✍️ Rigorous",local:"-rigorous",headingTag:"h3"}}),M=new d({props:{title:"🤝 Consentful",local:"-consentful",headingTag:"h3"}}),A=new d({props:{title:"👁️‍🗨️ Socially Conscious",local:"-socially-conscious",headingTag:"h3"}}),j=new d({props:{title:"🌎 Sustainable",local:"-sustainable",headingTag:"h3"}}),U=new d({props:{title:"🧑‍🤝‍🧑 Inclusive",local:"-inclusive",headingTag:"h3"}}),V=new d({props:{title:"🤔 Inquisitive",local:"-inquisitive",headingTag:"h3"}}),{c(){c=s("meta"),Y=a(),K=s("p"),Z=a(),g(v.$$.fragment),ee=a(),w=s("p"),w.innerHTML=Ie,te=a(),g(y.$$.fragment),ie=a(),$=s("p"),$.innerHTML=Ee,ne=a(),g(x.$$.fragment),ae=a(),C=s("p"),C.textContent=je,oe=a(),g(b.$$.fragment),se=a(),T=s("p"),T.textContent=qe,le=a(),L=s("ul"),L.innerHTML=Fe,re=a(),H=s("p"),H.innerHTML=Re,ce=a(),g(M.$$.fragment),ge=a(),_=s("p"),_.textContent=Ue,me=a(),k=s("ul"),k.innerHTML=Be,ue=a(),S=s("p"),S.textContent=Ge,fe=a(),P=s("ol"),P.innerHTML=Oe,pe=a(),g(A.$$.fragment),he=a(),z=s("p"),z.textContent=Ve,de=a(),D=s("ul"),D.innerHTML=Ne,ve=a(),I=s("p"),I.textContent=We,we=a(),E=s("ol"),E.innerHTML=Qe,ye=a(),g(j.$$.fragment),$e=a(),q=s("p"),q.textContent=Je,xe=a(),F=s("ul"),F.innerHTML=Ke,Ce=a(),R=s("ol"),R.innerHTML=Xe,be=a(),g(U.$$.fragment),Te=a(),B=s("p"),B.textContent=Ye,Le=a(),G=s("ul"),G.innerHTML=Ze,He=a(),O=s("p"),O.innerHTML=et,Me=a(),g(V.$$.fragment),_e=a(),N=s("p"),N.textContent=tt,ke=a(),W=s("ul"),W.innerHTML=it,Se=a(),Q=s("p"),Q.innerHTML=nt,Pe=a(),J=s("p"),J.innerHTML=at,Ae=a(),X=s("p"),this.h()},l(e){const t=ut("svelte-u9bgzb",document.head);c=l(t,"META",{name:!0,content:!0}),t.forEach(i),Y=o(e),K=l(e,"P",{}),ot(K).forEach(i),Z=o(e),m(v.$$.fragment,e),ee=o(e),w=l(e,"P",{"data-svelte-h":!0}),r(w)!=="svelte-1efpqzw"&&(w.innerHTML=Ie),te=o(e),m(y.$$.fragment,e),ie=o(e),$=l(e,"P",{"data-svelte-h":!0}),r($)!=="svelte-1yx93ur"&&($.innerHTML=Ee),ne=o(e),m(x.$$.fragment,e),ae=o(e),C=l(e,"P",{"data-svelte-h":!0}),r(C)!=="svelte-1wvga4p"&&(C.textContent=je),oe=o(e),m(b.$$.fragment,e),se=o(e),T=l(e,"P",{"data-svelte-h":!0}),r(T)!=="svelte-46a3g4"&&(T.textContent=qe),le=o(e),L=l(e,"UL",{"data-svelte-h":!0}),r(L)!=="svelte-1bni1se"&&(L.innerHTML=Fe),re=o(e),H=l(e,"P",{"data-svelte-h":!0}),r(H)!=="svelte-atg9y"&&(H.innerHTML=Re),ce=o(e),m(M.$$.fragment,e),ge=o(e),_=l(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-fioi3n"&&(_.textContent=Ue),me=o(e),k=l(e,"UL",{"data-svelte-h":!0}),r(k)!=="svelte-3hltui"&&(k.innerHTML=Be),ue=o(e),S=l(e,"P",{"data-svelte-h":!0}),r(S)!=="svelte-i9zcru"&&(S.textContent=Ge),fe=o(e),P=l(e,"OL",{"data-svelte-h":!0}),r(P)!=="svelte-16jekji"&&(P.innerHTML=Oe),pe=o(e),m(A.$$.fragment,e),he=o(e),z=l(e,"P",{"data-svelte-h":!0}),r(z)!=="svelte-eeobdf"&&(z.textContent=Ve),de=o(e),D=l(e,"UL",{"data-svelte-h":!0}),r(D)!=="svelte-7j1s8u"&&(D.innerHTML=Ne),ve=o(e),I=l(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-1civgnz"&&(I.textContent=We),we=o(e),E=l(e,"OL",{"data-svelte-h":!0}),r(E)!=="svelte-eecl4f"&&(E.innerHTML=Qe),ye=o(e),m(j.$$.fragment,e),$e=o(e),q=l(e,"P",{"data-svelte-h":!0}),r(q)!=="svelte-1zmd9n"&&(q.textContent=Je),xe=o(e),F=l(e,"UL",{"data-svelte-h":!0}),r(F)!=="svelte-ucq62j"&&(F.innerHTML=Ke),Ce=o(e),R=l(e,"OL",{"data-svelte-h":!0}),r(R)!=="svelte-744dzg"&&(R.innerHTML=Xe),be=o(e),m(U.$$.fragment,e),Te=o(e),B=l(e,"P",{"data-svelte-h":!0}),r(B)!=="svelte-zw6twt"&&(B.textContent=Ye),Le=o(e),G=l(e,"UL",{"data-svelte-h":!0}),r(G)!=="svelte-1s9mo4d"&&(G.innerHTML=Ze),He=o(e),O=l(e,"P",{"data-svelte-h":!0}),r(O)!=="svelte-1syct0j"&&(O.innerHTML=et),Me=o(e),m(V.$$.fragment,e),_e=o(e),N=l(e,"P",{"data-svelte-h":!0}),r(N)!=="svelte-1p66ki1"&&(N.textContent=tt),ke=o(e),W=l(e,"UL",{"data-svelte-h":!0}),r(W)!=="svelte-2s9fvm"&&(W.innerHTML=it),Se=o(e),Q=l(e,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-s1ugqh"&&(Q.innerHTML=nt),Pe=o(e),J=l(e,"P",{"data-svelte-h":!0}),r(J)!=="svelte-16v23z8"&&(J.innerHTML=at),Ae=o(e),X=l(e,"P",{}),ot(X).forEach(i),this.h()},h(){st(c,"name","hf:doc:metadata"),st(c,"content",ht)},m(e,t){ft(document.head,c),n(e,Y,t),n(e,K,t),n(e,Z,t),u(v,e,t),n(e,ee,t),n(e,w,t),n(e,te,t),u(y,e,t),n(e,ie,t),n(e,$,t),n(e,ne,t),u(x,e,t),n(e,ae,t),n(e,C,t),n(e,oe,t),u(b,e,t),n(e,se,t),n(e,T,t),n(e,le,t),n(e,L,t),n(e,re,t),n(e,H,t),n(e,ce,t),u(M,e,t),n(e,ge,t),n(e,_,t),n(e,me,t),n(e,k,t),n(e,ue,t),n(e,S,t),n(e,fe,t),n(e,P,t),n(e,pe,t),u(A,e,t),n(e,he,t),n(e,z,t),n(e,de,t),n(e,D,t),n(e,ve,t),n(e,I,t),n(e,we,t),n(e,E,t),n(e,ye,t),u(j,e,t),n(e,$e,t),n(e,q,t),n(e,xe,t),n(e,F,t),n(e,Ce,t),n(e,R,t),n(e,be,t),u(U,e,t),n(e,Te,t),n(e,B,t),n(e,Le,t),n(e,G,t),n(e,He,t),n(e,O,t),n(e,Me,t),u(V,e,t),n(e,_e,t),n(e,N,t),n(e,ke,t),n(e,W,t),n(e,Se,t),n(e,Q,t),n(e,Pe,t),n(e,J,t),n(e,Ae,t),n(e,X,t),ze=!0},p:rt,i(e){ze||(f(v.$$.fragment,e),f(y.$$.fragment,e),f(x.$$.fragment,e),f(b.$$.fragment,e),f(M.$$.fragment,e),f(A.$$.fragment,e),f(j.$$.fragment,e),f(U.$$.fragment,e),f(V.$$.fragment,e),ze=!0)},o(e){p(v.$$.fragment,e),p(y.$$.fragment,e),p(x.$$.fragment,e),p(b.$$.fragment,e),p(M.$$.fragment,e),p(A.$$.fragment,e),p(j.$$.fragment,e),p(U.$$.fragment,e),p(V.$$.fragment,e),ze=!1},d(e){e&&(i(Y),i(K),i(Z),i(ee),i(w),i(te),i(ie),i($),i(ne),i(ae),i(C),i(oe),i(se),i(T),i(le),i(L),i(re),i(H),i(ce),i(ge),i(_),i(me),i(k),i(ue),i(S),i(fe),i(P),i(pe),i(he),i(z),i(de),i(D),i(ve),i(I),i(we),i(E),i(ye),i($e),i(q),i(xe),i(F),i(Ce),i(R),i(be),i(Te),i(B),i(Le),i(G),i(He),i(O),i(Me),i(_e),i(N),i(ke),i(W),i(Se),i(Q),i(Pe),i(J),i(Ae),i(X)),i(c),h(v,e),h(y,e),h(x,e),h(b,e),h(M,e),h(A,e),h(j,e),h(U,e),h(V,e)}}}const ht='{"title":"Hugging Face’s efforts: Ethics and Society 🤗🌎","local":"hugging-faces-efforts-ethics-and-society-","sections":[{"title":"Democratizing Good ML 🤗","local":"democratizing-good-ml-","sections":[],"depth":2},{"title":"Categories of Hugging Face Spaces","local":"categories-of-hugging-face-spaces","sections":[{"title":"✍️ Rigorous","local":"-rigorous","sections":[],"depth":3},{"title":"🤝 Consentful","local":"-consentful","sections":[],"depth":3},{"title":"👁️‍🗨️ Socially Conscious","local":"-socially-conscious","sections":[],"depth":3},{"title":"🌎 Sustainable","local":"-sustainable","sections":[],"depth":3},{"title":"🧑‍🤝‍🧑 Inclusive","local":"-inclusive","sections":[],"depth":3},{"title":"🤔 Inquisitive","local":"-inquisitive","sections":[],"depth":3}],"depth":2}],"depth":1}';function dt(De){return ct(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class $t extends gt{constructor(c){super(),mt(this,c,dt,pt,lt,{})}}export{$t as component};
