import{S as Zi,i as el,s as tl,e as o,k as h,w as m,t as d,M as al,c as i,d as t,m as f,a as l,x as v,h as p,b as n,G as a,g as s,y as w,L as ol,q as b,o as y,B as g,v as il}from"../../chunks/vendor-hf-doc-builder.js";import{I as E}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as ll}from"../../chunks/CodeBlock-hf-doc-builder.js";import{C as rl}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";function sl(Do){let $,wt,k,C,Se,Z,va,Le,wa,bt,ee,yt,be,ba,gt,ye,ya,Et,F,ga,Ce,Ea,_a,_t,D,$a,te,ka,Aa,$t,ge,Pa,kt,u,Fe,Ta,xa,De,Ma,Ha,je,Ia,Na,ze,Sa,La,Oe,Ca,Fa,Be,Da,ja,Re,za,At,Ee,Oa,Pt,A,j,qe,ae,Ba,Ge,Ra,Tt,_e,qa,xt,P,z,Ue,oe,Ga,Ve,Ua,Mt,$e,Va,Ht,T,O,Je,ie,Ja,Ke,Ka,It,B,Qa,Qe,Wa,Xa,Nt,x,R,We,le,Ya,Xe,Za,St,ke,eo,Lt,M,q,Ye,re,to,Ze,ao,Ct,Ae,oo,Ft,H,G,et,se,io,tt,lo,Dt,Pe,ro,jt,I,U,at,ne,so,ot,no,zt,Te,ho,Ot,N,V,it,he,fo,lt,po,Bt,xe,uo,Rt,_,rt,de,st,co,mo,nt,fe,ht,vo,wo,dt,pe,ft,bo,qt,J,yo,ue,go,Eo,Gt,S,K,pt,ce,_o,ut,$o,Ut,Me,ko,Vt,L,Q,ct,me,Ao,mt,Po,Jt,He,To,Kt,W,xo,X,vt,Mo,Ho,Io,Qt,ve,Wt,Ie,No,Xt,Y,So,we,Lo,Co,Yt;return Z=new E({}),ee=new rl({props:{chapter:4,classNames:"absolute z-10 right-0 top-0"}}),ae=new E({}),oe=new E({}),ie=new E({}),le=new E({}),re=new E({}),se=new E({}),ne=new E({}),he=new E({}),ce=new E({}),me=new E({}),ve=new ll({props:{code:`---
language: fr
license: mit
datasets:
- oscar
---`,highlighted:`<span class="hljs-meta">---</span>
<span class="hljs-attr">language:</span> <span class="hljs-string">fr</span>
<span class="hljs-attr">license:</span> <span class="hljs-string">mit</span>
<span class="hljs-attr">datasets:</span>
<span class="hljs-bullet">-</span> <span class="hljs-string">oscar</span>
<span class="hljs-meta">---</span>`}}),{c(){$=o("meta"),wt=h(),k=o("h1"),C=o("a"),Se=o("span"),m(Z.$$.fragment),va=h(),Le=o("span"),wa=d("Building a model card"),bt=h(),m(ee.$$.fragment),yt=h(),be=o("p"),ba=d("The model card is a file which is arguably as important as the model and tokenizer files in a model repository. It is the central definition of the model, ensuring reusability by fellow community members and reproducibility of results, and providing a platform on which other members may build their artifacts."),gt=h(),ye=o("p"),ya=d("Documenting the training and evaluation process helps others understand what to expect of a model \u2014 and providing sufficient information regarding the data that was used and the preprocessing and postprocessing that were done ensures that the limitations, biases, and contexts in which the model is and is not useful can be identified and understood."),Et=h(),F=o("p"),ga=d("Therefore, creating a model card that clearly defines your model is a very important step. Here, we provide some tips that will help you with this. Creating the model card is done through the "),Ce=o("em"),Ea=d("README.md"),_a=d(" file you saw earlier, which is a Markdown file."),_t=h(),D=o("p"),$a=d("The \u201Cmodel card\u201D concept originates from a research direction from Google, first shared in the paper "),te=o("a"),ka=d("\u201CModel Cards for Model Reporting\u201D"),Aa=d(" by Margaret Mitchell et al. A lot of information contained here is based on that paper, and we recommend you take a look at it to understand why model cards are so important in a world that values reproducibility, reusability, and fairness."),$t=h(),ge=o("p"),Pa=d("The model card usually starts with a very brief, high-level overview of what the model is for, followed by additional details in the following sections:"),kt=h(),u=o("ul"),Fe=o("li"),Ta=d("Model description"),xa=h(),De=o("li"),Ma=d("Intended uses & limitations"),Ha=h(),je=o("li"),Ia=d("How to use"),Na=h(),ze=o("li"),Sa=d("Limitations and bias"),La=h(),Oe=o("li"),Ca=d("Training data"),Fa=h(),Be=o("li"),Da=d("Training procedure"),ja=h(),Re=o("li"),za=d("Evaluation results"),At=h(),Ee=o("p"),Oa=d("Let\u2019s take a look at what each of these sections should contain."),Pt=h(),A=o("h3"),j=o("a"),qe=o("span"),m(ae.$$.fragment),Ba=h(),Ge=o("span"),Ra=d("Model description"),Tt=h(),_e=o("p"),qa=d("The model description provides basic details about the model. This includes the architecture, version, if it was introduced in a paper, if an original implementation is available, the author, and general information about the model. Any copyright should be attributed here. General information about training procedures, parameters, and important disclaimers can also be mentioned in this section."),xt=h(),P=o("h3"),z=o("a"),Ue=o("span"),m(oe.$$.fragment),Ga=h(),Ve=o("span"),Ua=d("Intended uses & limitations"),Mt=h(),$e=o("p"),Va=d("Here you describe the use cases the model is intended for, including the languages, fields, and domains where it can be applied. This section of the model card can also document areas that are known to be out of scope for the model, or where it is likely to perform suboptimally."),Ht=h(),T=o("h3"),O=o("a"),Je=o("span"),m(ie.$$.fragment),Ja=h(),Ke=o("span"),Ka=d("How to use"),It=h(),B=o("p"),Qa=d("This section should include some examples of how to use the model. This can showcase usage of the "),Qe=o("code"),Wa=d("pipeline()"),Xa=d(" function, usage of the model and tokenizer classes, and any other code you think might be helpful."),Nt=h(),x=o("h3"),R=o("a"),We=o("span"),m(le.$$.fragment),Ya=h(),Xe=o("span"),Za=d("Training data"),St=h(),ke=o("p"),eo=d("This part should indicate which dataset(s) the model was trained on. A brief description of the dataset(s) is also welcome."),Lt=h(),M=o("h3"),q=o("a"),Ye=o("span"),m(re.$$.fragment),to=h(),Ze=o("span"),ao=d("Training procedure"),Ct=h(),Ae=o("p"),oo=d("In this section you should describe all the relevant aspects of training that are useful from a reproducibility perspective. This includes any preprocessing and postprocessing that were done on the data, as well as details such as the number of epochs the model was trained for, the batch size, the learning rate, and so on."),Ft=h(),H=o("h3"),G=o("a"),et=o("span"),m(se.$$.fragment),io=h(),tt=o("span"),lo=d("Variable and metrics"),Dt=h(),Pe=o("p"),ro=d("Here you should describe the metrics you use for evaluation, and the different factors you are mesuring. Mentioning which metric(s) were used, on which dataset and which dataset split, makes it easy to compare you model\u2019s performance compared to that of other models. These should be informed by the previous sections, such as the intended users and use cases."),jt=h(),I=o("h3"),U=o("a"),at=o("span"),m(ne.$$.fragment),so=h(),ot=o("span"),no=d("Evaluation results"),zt=h(),Te=o("p"),ho=d("Finally, provide an indication of how well the model performs on the evaluation dataset. If the model uses a decision threshold, either provide the decision threshold used in the evaluation, or provide details on evaluation at different thresholds for the intended uses."),Ot=h(),N=o("h2"),V=o("a"),it=o("span"),m(he.$$.fragment),fo=h(),lt=o("span"),po=d("Example"),Bt=h(),xe=o("p"),uo=d("Check out the following for a few examples of well-crafted model cards:"),Rt=h(),_=o("ul"),rt=o("li"),de=o("a"),st=o("code"),co=d("bert-base-cased"),mo=h(),nt=o("li"),fe=o("a"),ht=o("code"),vo=d("gpt2"),wo=h(),dt=o("li"),pe=o("a"),ft=o("code"),bo=d("distilbert"),qt=h(),J=o("p"),yo=d("More examples from different organizations and companies are available "),ue=o("a"),go=d("here"),Eo=d("."),Gt=h(),S=o("h2"),K=o("a"),pt=o("span"),m(ce.$$.fragment),_o=h(),ut=o("span"),$o=d("Note"),Ut=h(),Me=o("p"),ko=d("Model cards are not a requirement when publishing models, and you don\u2019t need to include all of the sections described above when you make one. However, explicit documentation of the model can only benefit future users, so we recommend that you fill in as many of the sections as possible to the best of your knowledge and ability."),Vt=h(),L=o("h2"),Q=o("a"),ct=o("span"),m(me.$$.fragment),Ao=h(),mt=o("span"),Po=d("Model card metadata"),Jt=h(),He=o("p"),To=d("If you have done a little exploring of the Hugging Face Hub, you should have seen that some models belong to certain categories: you can filter them by tasks, languages, libraries, and more. The categories a model belongs to are identified according to the metadata you add in the model card header."),Kt=h(),W=o("p"),xo=d("For example, if you take a look at the "),X=o("a"),vt=o("code"),Mo=d("camembert-base"),Ho=d(" model card"),Io=d(", you should see the following lines in the model card header:"),Qt=h(),m(ve.$$.fragment),Wt=h(),Ie=o("p"),No=d("This metadata is parsed by the Hugging Face Hub, which then identifies this model as being a French model, with an MIT license, trained on the Oscar dataset."),Xt=h(),Y=o("p"),So=d("The "),we=o("a"),Lo=d("full model card specification"),Co=d(" allows specifying languages, licenses, tags, datasets, metrics, as well as the evaluation results the model obtained when training."),this.h()},l(e){const r=al('[data-svelte="svelte-1phssyn"]',document.head);$=i(r,"META",{name:!0,content:!0}),r.forEach(t),wt=f(e),k=i(e,"H1",{class:!0});var Zt=l(k);C=i(Zt,"A",{id:!0,class:!0,href:!0});var jo=l(C);Se=i(jo,"SPAN",{});var zo=l(Se);v(Z.$$.fragment,zo),zo.forEach(t),jo.forEach(t),va=f(Zt),Le=i(Zt,"SPAN",{});var Oo=l(Le);wa=p(Oo,"Building a model card"),Oo.forEach(t),Zt.forEach(t),bt=f(e),v(ee.$$.fragment,e),yt=f(e),be=i(e,"P",{});var Bo=l(be);ba=p(Bo,"The model card is a file which is arguably as important as the model and tokenizer files in a model repository. It is the central definition of the model, ensuring reusability by fellow community members and reproducibility of results, and providing a platform on which other members may build their artifacts."),Bo.forEach(t),gt=f(e),ye=i(e,"P",{});var Ro=l(ye);ya=p(Ro,"Documenting the training and evaluation process helps others understand what to expect of a model \u2014 and providing sufficient information regarding the data that was used and the preprocessing and postprocessing that were done ensures that the limitations, biases, and contexts in which the model is and is not useful can be identified and understood."),Ro.forEach(t),Et=f(e),F=i(e,"P",{});var ea=l(F);ga=p(ea,"Therefore, creating a model card that clearly defines your model is a very important step. Here, we provide some tips that will help you with this. Creating the model card is done through the "),Ce=i(ea,"EM",{});var qo=l(Ce);Ea=p(qo,"README.md"),qo.forEach(t),_a=p(ea," file you saw earlier, which is a Markdown file."),ea.forEach(t),_t=f(e),D=i(e,"P",{});var ta=l(D);$a=p(ta,"The \u201Cmodel card\u201D concept originates from a research direction from Google, first shared in the paper "),te=i(ta,"A",{href:!0,rel:!0});var Go=l(te);ka=p(Go,"\u201CModel Cards for Model Reporting\u201D"),Go.forEach(t),Aa=p(ta," by Margaret Mitchell et al. A lot of information contained here is based on that paper, and we recommend you take a look at it to understand why model cards are so important in a world that values reproducibility, reusability, and fairness."),ta.forEach(t),$t=f(e),ge=i(e,"P",{});var Uo=l(ge);Pa=p(Uo,"The model card usually starts with a very brief, high-level overview of what the model is for, followed by additional details in the following sections:"),Uo.forEach(t),kt=f(e),u=i(e,"UL",{});var c=l(u);Fe=i(c,"LI",{});var Vo=l(Fe);Ta=p(Vo,"Model description"),Vo.forEach(t),xa=f(c),De=i(c,"LI",{});var Jo=l(De);Ma=p(Jo,"Intended uses & limitations"),Jo.forEach(t),Ha=f(c),je=i(c,"LI",{});var Ko=l(je);Ia=p(Ko,"How to use"),Ko.forEach(t),Na=f(c),ze=i(c,"LI",{});var Qo=l(ze);Sa=p(Qo,"Limitations and bias"),Qo.forEach(t),La=f(c),Oe=i(c,"LI",{});var Wo=l(Oe);Ca=p(Wo,"Training data"),Wo.forEach(t),Fa=f(c),Be=i(c,"LI",{});var Xo=l(Be);Da=p(Xo,"Training procedure"),Xo.forEach(t),ja=f(c),Re=i(c,"LI",{});var Yo=l(Re);za=p(Yo,"Evaluation results"),Yo.forEach(t),c.forEach(t),At=f(e),Ee=i(e,"P",{});var Zo=l(Ee);Oa=p(Zo,"Let\u2019s take a look at what each of these sections should contain."),Zo.forEach(t),Pt=f(e),A=i(e,"H3",{class:!0});var aa=l(A);j=i(aa,"A",{id:!0,class:!0,href:!0});var ei=l(j);qe=i(ei,"SPAN",{});var ti=l(qe);v(ae.$$.fragment,ti),ti.forEach(t),ei.forEach(t),Ba=f(aa),Ge=i(aa,"SPAN",{});var ai=l(Ge);Ra=p(ai,"Model description"),ai.forEach(t),aa.forEach(t),Tt=f(e),_e=i(e,"P",{});var oi=l(_e);qa=p(oi,"The model description provides basic details about the model. This includes the architecture, version, if it was introduced in a paper, if an original implementation is available, the author, and general information about the model. Any copyright should be attributed here. General information about training procedures, parameters, and important disclaimers can also be mentioned in this section."),oi.forEach(t),xt=f(e),P=i(e,"H3",{class:!0});var oa=l(P);z=i(oa,"A",{id:!0,class:!0,href:!0});var ii=l(z);Ue=i(ii,"SPAN",{});var li=l(Ue);v(oe.$$.fragment,li),li.forEach(t),ii.forEach(t),Ga=f(oa),Ve=i(oa,"SPAN",{});var ri=l(Ve);Ua=p(ri,"Intended uses & limitations"),ri.forEach(t),oa.forEach(t),Mt=f(e),$e=i(e,"P",{});var si=l($e);Va=p(si,"Here you describe the use cases the model is intended for, including the languages, fields, and domains where it can be applied. This section of the model card can also document areas that are known to be out of scope for the model, or where it is likely to perform suboptimally."),si.forEach(t),Ht=f(e),T=i(e,"H3",{class:!0});var ia=l(T);O=i(ia,"A",{id:!0,class:!0,href:!0});var ni=l(O);Je=i(ni,"SPAN",{});var hi=l(Je);v(ie.$$.fragment,hi),hi.forEach(t),ni.forEach(t),Ja=f(ia),Ke=i(ia,"SPAN",{});var di=l(Ke);Ka=p(di,"How to use"),di.forEach(t),ia.forEach(t),It=f(e),B=i(e,"P",{});var la=l(B);Qa=p(la,"This section should include some examples of how to use the model. This can showcase usage of the "),Qe=i(la,"CODE",{});var fi=l(Qe);Wa=p(fi,"pipeline()"),fi.forEach(t),Xa=p(la," function, usage of the model and tokenizer classes, and any other code you think might be helpful."),la.forEach(t),Nt=f(e),x=i(e,"H3",{class:!0});var ra=l(x);R=i(ra,"A",{id:!0,class:!0,href:!0});var pi=l(R);We=i(pi,"SPAN",{});var ui=l(We);v(le.$$.fragment,ui),ui.forEach(t),pi.forEach(t),Ya=f(ra),Xe=i(ra,"SPAN",{});var ci=l(Xe);Za=p(ci,"Training data"),ci.forEach(t),ra.forEach(t),St=f(e),ke=i(e,"P",{});var mi=l(ke);eo=p(mi,"This part should indicate which dataset(s) the model was trained on. A brief description of the dataset(s) is also welcome."),mi.forEach(t),Lt=f(e),M=i(e,"H3",{class:!0});var sa=l(M);q=i(sa,"A",{id:!0,class:!0,href:!0});var vi=l(q);Ye=i(vi,"SPAN",{});var wi=l(Ye);v(re.$$.fragment,wi),wi.forEach(t),vi.forEach(t),to=f(sa),Ze=i(sa,"SPAN",{});var bi=l(Ze);ao=p(bi,"Training procedure"),bi.forEach(t),sa.forEach(t),Ct=f(e),Ae=i(e,"P",{});var yi=l(Ae);oo=p(yi,"In this section you should describe all the relevant aspects of training that are useful from a reproducibility perspective. This includes any preprocessing and postprocessing that were done on the data, as well as details such as the number of epochs the model was trained for, the batch size, the learning rate, and so on."),yi.forEach(t),Ft=f(e),H=i(e,"H3",{class:!0});var na=l(H);G=i(na,"A",{id:!0,class:!0,href:!0});var gi=l(G);et=i(gi,"SPAN",{});var Ei=l(et);v(se.$$.fragment,Ei),Ei.forEach(t),gi.forEach(t),io=f(na),tt=i(na,"SPAN",{});var _i=l(tt);lo=p(_i,"Variable and metrics"),_i.forEach(t),na.forEach(t),Dt=f(e),Pe=i(e,"P",{});var $i=l(Pe);ro=p($i,"Here you should describe the metrics you use for evaluation, and the different factors you are mesuring. Mentioning which metric(s) were used, on which dataset and which dataset split, makes it easy to compare you model\u2019s performance compared to that of other models. These should be informed by the previous sections, such as the intended users and use cases."),$i.forEach(t),jt=f(e),I=i(e,"H3",{class:!0});var ha=l(I);U=i(ha,"A",{id:!0,class:!0,href:!0});var ki=l(U);at=i(ki,"SPAN",{});var Ai=l(at);v(ne.$$.fragment,Ai),Ai.forEach(t),ki.forEach(t),so=f(ha),ot=i(ha,"SPAN",{});var Pi=l(ot);no=p(Pi,"Evaluation results"),Pi.forEach(t),ha.forEach(t),zt=f(e),Te=i(e,"P",{});var Ti=l(Te);ho=p(Ti,"Finally, provide an indication of how well the model performs on the evaluation dataset. If the model uses a decision threshold, either provide the decision threshold used in the evaluation, or provide details on evaluation at different thresholds for the intended uses."),Ti.forEach(t),Ot=f(e),N=i(e,"H2",{class:!0});var da=l(N);V=i(da,"A",{id:!0,class:!0,href:!0});var xi=l(V);it=i(xi,"SPAN",{});var Mi=l(it);v(he.$$.fragment,Mi),Mi.forEach(t),xi.forEach(t),fo=f(da),lt=i(da,"SPAN",{});var Hi=l(lt);po=p(Hi,"Example"),Hi.forEach(t),da.forEach(t),Bt=f(e),xe=i(e,"P",{});var Ii=l(xe);uo=p(Ii,"Check out the following for a few examples of well-crafted model cards:"),Ii.forEach(t),Rt=f(e),_=i(e,"UL",{});var Ne=l(_);rt=i(Ne,"LI",{});var Ni=l(rt);de=i(Ni,"A",{href:!0,rel:!0});var Si=l(de);st=i(Si,"CODE",{});var Li=l(st);co=p(Li,"bert-base-cased"),Li.forEach(t),Si.forEach(t),Ni.forEach(t),mo=f(Ne),nt=i(Ne,"LI",{});var Ci=l(nt);fe=i(Ci,"A",{href:!0,rel:!0});var Fi=l(fe);ht=i(Fi,"CODE",{});var Di=l(ht);vo=p(Di,"gpt2"),Di.forEach(t),Fi.forEach(t),Ci.forEach(t),wo=f(Ne),dt=i(Ne,"LI",{});var ji=l(dt);pe=i(ji,"A",{href:!0,rel:!0});var zi=l(pe);ft=i(zi,"CODE",{});var Oi=l(ft);bo=p(Oi,"distilbert"),Oi.forEach(t),zi.forEach(t),ji.forEach(t),Ne.forEach(t),qt=f(e),J=i(e,"P",{});var fa=l(J);yo=p(fa,"More examples from different organizations and companies are available "),ue=i(fa,"A",{href:!0,rel:!0});var Bi=l(ue);go=p(Bi,"here"),Bi.forEach(t),Eo=p(fa,"."),fa.forEach(t),Gt=f(e),S=i(e,"H2",{class:!0});var pa=l(S);K=i(pa,"A",{id:!0,class:!0,href:!0});var Ri=l(K);pt=i(Ri,"SPAN",{});var qi=l(pt);v(ce.$$.fragment,qi),qi.forEach(t),Ri.forEach(t),_o=f(pa),ut=i(pa,"SPAN",{});var Gi=l(ut);$o=p(Gi,"Note"),Gi.forEach(t),pa.forEach(t),Ut=f(e),Me=i(e,"P",{});var Ui=l(Me);ko=p(Ui,"Model cards are not a requirement when publishing models, and you don\u2019t need to include all of the sections described above when you make one. However, explicit documentation of the model can only benefit future users, so we recommend that you fill in as many of the sections as possible to the best of your knowledge and ability."),Ui.forEach(t),Vt=f(e),L=i(e,"H2",{class:!0});var ua=l(L);Q=i(ua,"A",{id:!0,class:!0,href:!0});var Vi=l(Q);ct=i(Vi,"SPAN",{});var Ji=l(ct);v(me.$$.fragment,Ji),Ji.forEach(t),Vi.forEach(t),Ao=f(ua),mt=i(ua,"SPAN",{});var Ki=l(mt);Po=p(Ki,"Model card metadata"),Ki.forEach(t),ua.forEach(t),Jt=f(e),He=i(e,"P",{});var Qi=l(He);To=p(Qi,"If you have done a little exploring of the Hugging Face Hub, you should have seen that some models belong to certain categories: you can filter them by tasks, languages, libraries, and more. The categories a model belongs to are identified according to the metadata you add in the model card header."),Qi.forEach(t),Kt=f(e),W=i(e,"P",{});var ca=l(W);xo=p(ca,"For example, if you take a look at the "),X=i(ca,"A",{href:!0,rel:!0});var Fo=l(X);vt=i(Fo,"CODE",{});var Wi=l(vt);Mo=p(Wi,"camembert-base"),Wi.forEach(t),Ho=p(Fo," model card"),Fo.forEach(t),Io=p(ca,", you should see the following lines in the model card header:"),ca.forEach(t),Qt=f(e),v(ve.$$.fragment,e),Wt=f(e),Ie=i(e,"P",{});var Xi=l(Ie);No=p(Xi,"This metadata is parsed by the Hugging Face Hub, which then identifies this model as being a French model, with an MIT license, trained on the Oscar dataset."),Xi.forEach(t),Xt=f(e),Y=i(e,"P",{});var ma=l(Y);So=p(ma,"The "),we=i(ma,"A",{href:!0,rel:!0});var Yi=l(we);Lo=p(Yi,"full model card specification"),Yi.forEach(t),Co=p(ma," allows specifying languages, licenses, tags, datasets, metrics, as well as the evaluation results the model obtained when training."),ma.forEach(t),this.h()},h(){n($,"name","hf:doc:metadata"),n($,"content",JSON.stringify(nl)),n(C,"id","building-a-model-card"),n(C,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(C,"href","#building-a-model-card"),n(k,"class","relative group"),n(te,"href","https://arxiv.org/abs/1810.03993"),n(te,"rel","nofollow"),n(j,"id","model-description"),n(j,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(j,"href","#model-description"),n(A,"class","relative group"),n(z,"id","intended-uses-limitations"),n(z,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(z,"href","#intended-uses-limitations"),n(P,"class","relative group"),n(O,"id","how-to-use"),n(O,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(O,"href","#how-to-use"),n(T,"class","relative group"),n(R,"id","training-data"),n(R,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(R,"href","#training-data"),n(x,"class","relative group"),n(q,"id","training-procedure"),n(q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(q,"href","#training-procedure"),n(M,"class","relative group"),n(G,"id","variable-and-metrics"),n(G,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(G,"href","#variable-and-metrics"),n(H,"class","relative group"),n(U,"id","evaluation-results"),n(U,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(U,"href","#evaluation-results"),n(I,"class","relative group"),n(V,"id","example"),n(V,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(V,"href","#example"),n(N,"class","relative group"),n(de,"href","https://huggingface.co/bert-base-cased"),n(de,"rel","nofollow"),n(fe,"href","https://huggingface.co/gpt2"),n(fe,"rel","nofollow"),n(pe,"href","https://huggingface.co/distilbert-base-uncased"),n(pe,"rel","nofollow"),n(ue,"href","https://github.com/huggingface/model_card/blob/master/examples.md"),n(ue,"rel","nofollow"),n(K,"id","note"),n(K,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(K,"href","#note"),n(S,"class","relative group"),n(Q,"id","model-card-metadata"),n(Q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(Q,"href","#model-card-metadata"),n(L,"class","relative group"),n(X,"href","https://huggingface.co/camembert-base/blob/main/README.md"),n(X,"rel","nofollow"),n(we,"href","https://github.com/huggingface/hub-docs/blame/main/modelcard.md"),n(we,"rel","nofollow")},m(e,r){a(document.head,$),s(e,wt,r),s(e,k,r),a(k,C),a(C,Se),w(Z,Se,null),a(k,va),a(k,Le),a(Le,wa),s(e,bt,r),w(ee,e,r),s(e,yt,r),s(e,be,r),a(be,ba),s(e,gt,r),s(e,ye,r),a(ye,ya),s(e,Et,r),s(e,F,r),a(F,ga),a(F,Ce),a(Ce,Ea),a(F,_a),s(e,_t,r),s(e,D,r),a(D,$a),a(D,te),a(te,ka),a(D,Aa),s(e,$t,r),s(e,ge,r),a(ge,Pa),s(e,kt,r),s(e,u,r),a(u,Fe),a(Fe,Ta),a(u,xa),a(u,De),a(De,Ma),a(u,Ha),a(u,je),a(je,Ia),a(u,Na),a(u,ze),a(ze,Sa),a(u,La),a(u,Oe),a(Oe,Ca),a(u,Fa),a(u,Be),a(Be,Da),a(u,ja),a(u,Re),a(Re,za),s(e,At,r),s(e,Ee,r),a(Ee,Oa),s(e,Pt,r),s(e,A,r),a(A,j),a(j,qe),w(ae,qe,null),a(A,Ba),a(A,Ge),a(Ge,Ra),s(e,Tt,r),s(e,_e,r),a(_e,qa),s(e,xt,r),s(e,P,r),a(P,z),a(z,Ue),w(oe,Ue,null),a(P,Ga),a(P,Ve),a(Ve,Ua),s(e,Mt,r),s(e,$e,r),a($e,Va),s(e,Ht,r),s(e,T,r),a(T,O),a(O,Je),w(ie,Je,null),a(T,Ja),a(T,Ke),a(Ke,Ka),s(e,It,r),s(e,B,r),a(B,Qa),a(B,Qe),a(Qe,Wa),a(B,Xa),s(e,Nt,r),s(e,x,r),a(x,R),a(R,We),w(le,We,null),a(x,Ya),a(x,Xe),a(Xe,Za),s(e,St,r),s(e,ke,r),a(ke,eo),s(e,Lt,r),s(e,M,r),a(M,q),a(q,Ye),w(re,Ye,null),a(M,to),a(M,Ze),a(Ze,ao),s(e,Ct,r),s(e,Ae,r),a(Ae,oo),s(e,Ft,r),s(e,H,r),a(H,G),a(G,et),w(se,et,null),a(H,io),a(H,tt),a(tt,lo),s(e,Dt,r),s(e,Pe,r),a(Pe,ro),s(e,jt,r),s(e,I,r),a(I,U),a(U,at),w(ne,at,null),a(I,so),a(I,ot),a(ot,no),s(e,zt,r),s(e,Te,r),a(Te,ho),s(e,Ot,r),s(e,N,r),a(N,V),a(V,it),w(he,it,null),a(N,fo),a(N,lt),a(lt,po),s(e,Bt,r),s(e,xe,r),a(xe,uo),s(e,Rt,r),s(e,_,r),a(_,rt),a(rt,de),a(de,st),a(st,co),a(_,mo),a(_,nt),a(nt,fe),a(fe,ht),a(ht,vo),a(_,wo),a(_,dt),a(dt,pe),a(pe,ft),a(ft,bo),s(e,qt,r),s(e,J,r),a(J,yo),a(J,ue),a(ue,go),a(J,Eo),s(e,Gt,r),s(e,S,r),a(S,K),a(K,pt),w(ce,pt,null),a(S,_o),a(S,ut),a(ut,$o),s(e,Ut,r),s(e,Me,r),a(Me,ko),s(e,Vt,r),s(e,L,r),a(L,Q),a(Q,ct),w(me,ct,null),a(L,Ao),a(L,mt),a(mt,Po),s(e,Jt,r),s(e,He,r),a(He,To),s(e,Kt,r),s(e,W,r),a(W,xo),a(W,X),a(X,vt),a(vt,Mo),a(X,Ho),a(W,Io),s(e,Qt,r),w(ve,e,r),s(e,Wt,r),s(e,Ie,r),a(Ie,No),s(e,Xt,r),s(e,Y,r),a(Y,So),a(Y,we),a(we,Lo),a(Y,Co),Yt=!0},p:ol,i(e){Yt||(b(Z.$$.fragment,e),b(ee.$$.fragment,e),b(ae.$$.fragment,e),b(oe.$$.fragment,e),b(ie.$$.fragment,e),b(le.$$.fragment,e),b(re.$$.fragment,e),b(se.$$.fragment,e),b(ne.$$.fragment,e),b(he.$$.fragment,e),b(ce.$$.fragment,e),b(me.$$.fragment,e),b(ve.$$.fragment,e),Yt=!0)},o(e){y(Z.$$.fragment,e),y(ee.$$.fragment,e),y(ae.$$.fragment,e),y(oe.$$.fragment,e),y(ie.$$.fragment,e),y(le.$$.fragment,e),y(re.$$.fragment,e),y(se.$$.fragment,e),y(ne.$$.fragment,e),y(he.$$.fragment,e),y(ce.$$.fragment,e),y(me.$$.fragment,e),y(ve.$$.fragment,e),Yt=!1},d(e){t($),e&&t(wt),e&&t(k),g(Z),e&&t(bt),g(ee,e),e&&t(yt),e&&t(be),e&&t(gt),e&&t(ye),e&&t(Et),e&&t(F),e&&t(_t),e&&t(D),e&&t($t),e&&t(ge),e&&t(kt),e&&t(u),e&&t(At),e&&t(Ee),e&&t(Pt),e&&t(A),g(ae),e&&t(Tt),e&&t(_e),e&&t(xt),e&&t(P),g(oe),e&&t(Mt),e&&t($e),e&&t(Ht),e&&t(T),g(ie),e&&t(It),e&&t(B),e&&t(Nt),e&&t(x),g(le),e&&t(St),e&&t(ke),e&&t(Lt),e&&t(M),g(re),e&&t(Ct),e&&t(Ae),e&&t(Ft),e&&t(H),g(se),e&&t(Dt),e&&t(Pe),e&&t(jt),e&&t(I),g(ne),e&&t(zt),e&&t(Te),e&&t(Ot),e&&t(N),g(he),e&&t(Bt),e&&t(xe),e&&t(Rt),e&&t(_),e&&t(qt),e&&t(J),e&&t(Gt),e&&t(S),g(ce),e&&t(Ut),e&&t(Me),e&&t(Vt),e&&t(L),g(me),e&&t(Jt),e&&t(He),e&&t(Kt),e&&t(W),e&&t(Qt),g(ve,e),e&&t(Wt),e&&t(Ie),e&&t(Xt),e&&t(Y)}}}const nl={local:"building-a-model-card",sections:[{local:null,sections:[{local:"model-description",title:"Model description"},{local:"intended-uses-limitations",title:"Intended uses & limitations"},{local:"how-to-use",title:"How to use"},{local:"training-data",title:"Training data"},{local:"training-procedure",title:"Training procedure"},{local:"variable-and-metrics",title:"Variable and metrics"},{local:"evaluation-results",title:"Evaluation results"}],title:null},{local:"example",title:"Example"},{local:"note",title:"Note"},{local:"model-card-metadata",title:"Model card metadata"}],title:"Building a model card"};function hl(Do){return il(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class cl extends Zi{constructor($){super();el(this,$,hl,sl,tl,{})}}export{cl as default,nl as metadata};
