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