import{s as he,n as me,o as ue}from"../chunks/scheduler.9cda857a.js";import{S as pe,i as fe,e as s,s as o,c as D,h as ge,a as l,d as a,b as i,f as de,g as J,j as r,k as ce,l as ve,m as n,n as K,t as N,o as Q,p as V}from"../chunks/index.003612b0.js";import{C as be}from"../chunks/CopyLLMTxtMenu.44d08a39.js";import{H as we,E as Me}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.e5cfda8c.js";function ye(X){let d,H,C,L,c,$,h,T,m,Y="Model cards are an important documentation and transparency framework for machine learning models. We believe that model cards have the potential to serve as <em>boundary objects</em>, a single artefact that is accessible to users who have different backgrounds and goals when interacting with model cards – including developers, students, policymakers, ethicists, those impacted by machine learning models, and other stakeholders. We recognize that developing a single artefact to serve such multifaceted purposes is difficult and requires careful consideration of potential users and use cases. Our goal as part of the Hugging Face science team over the last several months has been to help operationalize model cards towards that vision, taking into account these challenges, both at Hugging Face and in the broader ML community.",P,u,Z="To work towards that goal, it is important to recognize the thoughtful, dedicated efforts that have helped model cards grow into what they are today, from the adoption of model cards as a standard practice at many large organisations to the development of sophisticated tools for hosting and generating model cards. Since model cards were proposed by Mitchell et al. (2018), the landscape of machine learning documentation has expanded and evolved. A plethora of documentation tools and templates for data, models, and ML systems have been proposed and have developed – reflecting the incredible work of hundreds of researchers, impacted community members, advocates, and other stakeholders. Important discussions about the relationship between ML documentation and theories of change in responsible AI have created continued important discussions, and at times, divergence. We also recognize the challenges facing model cards, which in some ways mirror the challenges facing machine learning documentation and responsible AI efforts more generally, and we see opportunities ahead to help shape both model cards and the ecosystems in which they function positively in the months and years ahead.",z,p,ee="Our work presents a view of where we think model cards stand right now and where they could go in the future, at Hugging Face and beyond. This work is a “snapshot” of the current state of model cards, informed by a landscape analysis of the many ways ML documentation artefacts have been instantiated. It represents one perspective amongst multiple about both the current state and more aspirational visions of model cards. In this blog post, we summarise our work, including a discussion of the broader, growing landscape of ML documentation tools, the diverse audiences for and opinions about model cards, and potential new templates for model card content. We also explore and develop model cards for machine learning models in the context of the Hugging Face Hub, using the Hub’s features to collaboratively create, discuss, and disseminate model cards for ML models.",A,f,te="With the launch of this Guidebook, we introduce several new resources and connect together previous work on Model Cards:",E,g,ae='1) An updated Model Card template, released in the <code>huggingface_hub</code> library <a href="https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md" rel="nofollow">modelcard_template.md file</a>, drawing together Model Card work in academia and throughout the industry.',W,v,ne='2) An <a href="./model-card-annotated">Annotated Model Card Template</a>, which details how to fill the card out.',q,b,oe='3) A <a href="https://huggingface.co/spaces/huggingface/Model_Cards_Writing_Tool" rel="nofollow">Model Card Creator Tool</a>, to ease card creation without needing to program, and to help teams share the work of different sections.',F,w,ie='4) A <a href="./model-cards-user-studies">User Study</a> on Model Card usage at Hugging Face',G,M,se='5) A <a href="./model-card-landscape-analysis">Landscape Analysis and Literature Review</a> of the state of the art in model documentation.',S,y,le='We also include an <a href="./model-card-appendix">Appendix</a> with further details from this work.',I,O,j,_,re=`<strong>Please cite as:</strong>
Ozoani, Ezi and Gerchick, Marissa and Mitchell, Margaret. Model Card Guidebook. Hugging Face, 2022. <a href="https://huggingface.co/docs/hub/en/model-card-guidebook" rel="nofollow">https://huggingface.co/docs/hub/en/model-card-guidebook</a>`,R,x,U,k,B;return c=new be({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),h=new we({props:{title:"Model Card Guidebook",local:"model-card-guidebook",headingTag:"h1"}}),x=new Me({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/model-card-guidebook.md"}}),{c(){d=s("meta"),H=o(),C=s("p"),L=o(),D(c.$$.fragment),$=o(),D(h.$$.fragment),T=o(),m=s("p"),m.innerHTML=Y,P=o(),u=s("p"),u.textContent=Z,z=o(),p=s("p"),p.textContent=ee,A=o(),f=s("p"),f.textContent=te,E=o(),g=s("p"),g.innerHTML=ae,W=o(),v=s("p"),v.innerHTML=ne,q=o(),b=s("p"),b.innerHTML=oe,F=o(),w=s("p"),w.innerHTML=ie,G=o(),M=s("p"),M.innerHTML=se,S=o(),y=s("p"),y.innerHTML=le,I=o(),O=s("hr"),j=o(),_=s("p"),_.innerHTML=re,R=o(),D(x.$$.fragment),U=o(),k=s("p"),this.h()},l(e){const t=ge("svelte-u9bgzb",document.head);d=l(t,"META",{name:!0,content:!0}),t.forEach(a),H=i(e),C=l(e,"P",{}),de(C).forEach(a),L=i(e),J(c.$$.fragment,e),$=i(e),J(h.$$.fragment,e),T=i(e),m=l(e,"P",{"data-svelte-h":!0}),r(m)!=="svelte-1a5xz8k"&&(m.innerHTML=Y),P=i(e),u=l(e,"P",{"data-svelte-h":!0}),r(u)!=="svelte-vw64ec"&&(u.textContent=Z),z=i(e),p=l(e,"P",{"data-svelte-h":!0}),r(p)!=="svelte-l6dqu7"&&(p.textContent=ee),A=i(e),f=l(e,"P",{"data-svelte-h":!0}),r(f)!=="svelte-vxfzz0"&&(f.textContent=te),E=i(e),g=l(e,"P",{"data-svelte-h":!0}),r(g)!=="svelte-1qlcnlc"&&(g.innerHTML=ae),W=i(e),v=l(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-1s4j3oa"&&(v.innerHTML=ne),q=i(e),b=l(e,"P",{"data-svelte-h":!0}),r(b)!=="svelte-1c3img8"&&(b.innerHTML=oe),F=i(e),w=l(e,"P",{"data-svelte-h":!0}),r(w)!=="svelte-pl6zg9"&&(w.innerHTML=ie),G=i(e),M=l(e,"P",{"data-svelte-h":!0}),r(M)!=="svelte-hfq5gl"&&(M.innerHTML=se),S=i(e),y=l(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-1xlbgcm"&&(y.innerHTML=le),I=i(e),O=l(e,"HR",{}),j=i(e),_=l(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-qoter6"&&(_.innerHTML=re),R=i(e),J(x.$$.fragment,e),U=i(e),k=l(e,"P",{}),de(k).forEach(a),this.h()},h(){ce(d,"name","hf:doc:metadata"),ce(d,"content",_e)},m(e,t){ve(document.head,d),n(e,H,t),n(e,C,t),n(e,L,t),K(c,e,t),n(e,$,t),K(h,e,t),n(e,T,t),n(e,m,t),n(e,P,t),n(e,u,t),n(e,z,t),n(e,p,t),n(e,A,t),n(e,f,t),n(e,E,t),n(e,g,t),n(e,W,t),n(e,v,t),n(e,q,t),n(e,b,t),n(e,F,t),n(e,w,t),n(e,G,t),n(e,M,t),n(e,S,t),n(e,y,t),n(e,I,t),n(e,O,t),n(e,j,t),n(e,_,t),n(e,R,t),K(x,e,t),n(e,U,t),n(e,k,t),B=!0},p:me,i(e){B||(N(c.$$.fragment,e),N(h.$$.fragment,e),N(x.$$.fragment,e),B=!0)},o(e){Q(c.$$.fragment,e),Q(h.$$.fragment,e),Q(x.$$.fragment,e),B=!1},d(e){e&&(a(H),a(C),a(L),a($),a(T),a(m),a(P),a(u),a(z),a(p),a(A),a(f),a(E),a(g),a(W),a(v),a(q),a(b),a(F),a(w),a(G),a(M),a(S),a(y),a(I),a(O),a(j),a(_),a(R),a(U),a(k)),a(d),V(c,e),V(h,e),V(x,e)}}}const _e='{"title":"Model Card Guidebook","local":"model-card-guidebook","sections":[],"depth":1}';function xe(X){return ue(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class $e extends pe{constructor(d){super(),fe(this,d,xe,ye,he,{})}}export{$e as component};
