import{s as te,n as ae,o as ne}from"../chunks/scheduler.d6170356.js";import{S as oe,i as se,g as o,s,r as ie,A as le,h as i,f as a,c as l,j as Z,u as re,x as r,k as ee,y as de,a as n,v as ce,d as he,t as me,w as ue}from"../chunks/index.fcd4cc08.js";import{H as pe}from"../chunks/Heading.8660bd0e.js";function fe(O){let d,C,y,k,c,H,h,R="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.",L,m,U="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.",T,u,B="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.",P,p,D="With the launch of this Guidebook, we introduce several new resources and connect together previous work on Model Cards:",A,f,J='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.',z,g,K='2) An <a href="./model-card-annotated">Annotated Model Card Template</a>, which details how to fill the card out.',$,v,N='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.',W,w,Q='4) A <a href="./model-cards-user-studies">User Study</a> on Model Card usage at Hugging Face',q,b,V='5) A <a href="./model-card-landscape-analysis">Landscape Analysis and Literature Review</a> of the state of the art in model documentation.',F,M,X='We also include an <a href="./model-card-appendix">Appendix</a> with further details from this work.',E,G,I,_,Y=`<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>`,S,x,j;return c=new pe({props:{title:"Model Card Guidebook",local:"model-card-guidebook",headingTag:"h1"}}),{c(){d=o("meta"),C=s(),y=o("p"),k=s(),ie(c.$$.fragment),H=s(),h=o("p"),h.innerHTML=R,L=s(),m=o("p"),m.textContent=U,T=s(),u=o("p"),u.textContent=B,P=s(),p=o("p"),p.textContent=D,A=s(),f=o("p"),f.innerHTML=J,z=s(),g=o("p"),g.innerHTML=K,$=s(),v=o("p"),v.innerHTML=N,W=s(),w=o("p"),w.innerHTML=Q,q=s(),b=o("p"),b.innerHTML=V,F=s(),M=o("p"),M.innerHTML=X,E=s(),G=o("hr"),I=s(),_=o("p"),_.innerHTML=Y,S=s(),x=o("p"),this.h()},l(e){const t=le("svelte-u9bgzb",document.head);d=i(t,"META",{name:!0,content:!0}),t.forEach(a),C=l(e),y=i(e,"P",{}),Z(y).forEach(a),k=l(e),re(c.$$.fragment,e),H=l(e),h=i(e,"P",{"data-svelte-h":!0}),r(h)!=="svelte-1a5xz8k"&&(h.innerHTML=R),L=l(e),m=i(e,"P",{"data-svelte-h":!0}),r(m)!=="svelte-vw64ec"&&(m.textContent=U),T=l(e),u=i(e,"P",{"data-svelte-h":!0}),r(u)!=="svelte-l6dqu7"&&(u.textContent=B),P=l(e),p=i(e,"P",{"data-svelte-h":!0}),r(p)!=="svelte-vxfzz0"&&(p.textContent=D),A=l(e),f=i(e,"P",{"data-svelte-h":!0}),r(f)!=="svelte-1qlcnlc"&&(f.innerHTML=J),z=l(e),g=i(e,"P",{"data-svelte-h":!0}),r(g)!=="svelte-1s4j3oa"&&(g.innerHTML=K),$=l(e),v=i(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-1c3img8"&&(v.innerHTML=N),W=l(e),w=i(e,"P",{"data-svelte-h":!0}),r(w)!=="svelte-pl6zg9"&&(w.innerHTML=Q),q=l(e),b=i(e,"P",{"data-svelte-h":!0}),r(b)!=="svelte-hfq5gl"&&(b.innerHTML=V),F=l(e),M=i(e,"P",{"data-svelte-h":!0}),r(M)!=="svelte-1xlbgcm"&&(M.innerHTML=X),E=l(e),G=i(e,"HR",{}),I=l(e),_=i(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-qoter6"&&(_.innerHTML=Y),S=l(e),x=i(e,"P",{}),Z(x).forEach(a),this.h()},h(){ee(d,"name","hf:doc:metadata"),ee(d,"content",ge)},m(e,t){de(document.head,d),n(e,C,t),n(e,y,t),n(e,k,t),ce(c,e,t),n(e,H,t),n(e,h,t),n(e,L,t),n(e,m,t),n(e,T,t),n(e,u,t),n(e,P,t),n(e,p,t),n(e,A,t),n(e,f,t),n(e,z,t),n(e,g,t),n(e,$,t),n(e,v,t),n(e,W,t),n(e,w,t),n(e,q,t),n(e,b,t),n(e,F,t),n(e,M,t),n(e,E,t),n(e,G,t),n(e,I,t),n(e,_,t),n(e,S,t),n(e,x,t),j=!0},p:ae,i(e){j||(he(c.$$.fragment,e),j=!0)},o(e){me(c.$$.fragment,e),j=!1},d(e){e&&(a(C),a(y),a(k),a(H),a(h),a(L),a(m),a(T),a(u),a(P),a(p),a(A),a(f),a(z),a(g),a($),a(v),a(W),a(w),a(q),a(b),a(F),a(M),a(E),a(G),a(I),a(_),a(S),a(x)),a(d),ue(c,e)}}}const ge='{"title":"Model Card Guidebook","local":"model-card-guidebook","sections":[],"depth":1}';function ve(O){return ne(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _e extends oe{constructor(d){super(),se(this,d,ve,fe,te,{})}}export{_e as component};
