import{S as ze,i as De,s as Je,e as l,k as p,w as He,t as i,M as Oe,c as s,d as t,m as c,a as h,x as $e,h as n,b as r,G as a,g as f,y as Ee,L as Re,q as Pe,o as Ae,B as Te,v as Ue}from"../../chunks/vendor-hf-doc-builder.js";import{Y as Xe}from"../../chunks/Youtube-hf-doc-builder.js";import{I as Ze}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as Ke}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";function Qe(ke){let d,G,g,y,C,v,K,q,Q,M,_,Y,b,V,H,ee,te,j,u,ae,$,oe,ie,E,ne,re,P,le,se,A,he,fe,T,ue,me,B,x,pe,W,S,ce,z,w,de,k,ge,ye,D,I,be,J,F,O,N,we,L,ve,R;return v=new Ze({}),_=new Ke({props:{chapter:4,classNames:"absolute z-10 right-0 top-0"}}),F=new Xe({props:{id:"XvSGPZFEjDY"}}),{c(){d=l("meta"),G=p(),g=l("h1"),y=l("a"),C=l("span"),He(v.$$.fragment),K=p(),q=l("span"),Q=i("The Hugging Face Hub"),M=p(),He(_.$$.fragment),Y=p(),b=l("p"),V=i("The "),H=l("a"),ee=i("Hugging Face Hub"),te=i(" \u2013- our main website \u2013- is a central platform that enables anyone to discover, use, and contribute new state-of-the-art models and datasets. It hosts a wide variety of models, with more than 10,000 publicly available. We\u2019ll focus on the models in this chapter, and take a look at the datasets in Chapter 5."),j=p(),u=l("p"),ae=i("The models in the Hub are not limited to \u{1F917} Transformers or even NLP. There are models from "),$=l("a"),oe=i("Flair"),ie=i(" and "),E=l("a"),ne=i("AllenNLP"),re=i(" for NLP, "),P=l("a"),le=i("Asteroid"),se=i(" and "),A=l("a"),he=i("pyannote"),fe=i(" for speech, and "),T=l("a"),ue=i("timm"),me=i(" for vision, to name a few."),B=p(),x=l("p"),pe=i("Each of these models is hosted as a Git repository, which allows versioning and reproducibility. Sharing a model on the Hub means opening it up to the community and making it accessible to anyone looking to easily use it, in turn eliminating their need to train a model on their own and simplifying sharing and usage."),W=p(),S=l("p"),ce=i("Additionally, sharing a model on the Hub automatically deploys a hosted Inference API for that model. Anyone in the community is free to test it out directly on the model\u2019s page, with custom inputs and appropriate widgets."),z=p(),w=l("p"),de=i("The best part is that sharing and using any public model on the Hub is completely free! "),k=l("a"),ge=i("Paid plans"),ye=i(" also exist if you wish to share models privately."),D=p(),I=l("p"),be=i("The video below shows how to navigate the Hub."),J=p(),He(F.$$.fragment),O=p(),N=l("p"),we=i("Having a huggingface.co account is required to follow along this part, as we\u2019ll be creating and managing repositories on the Hugging Face Hub: "),L=l("a"),ve=i("create an account"),this.h()},l(e){const o=Oe('[data-svelte="svelte-1phssyn"]',document.head);d=s(o,"META",{name:!0,content:!0}),o.forEach(t),G=c(e),g=s(e,"H1",{class:!0});var U=h(g);y=s(U,"A",{id:!0,class:!0,href:!0});var Fe=h(y);C=s(Fe,"SPAN",{});var Ne=h(C);$e(v.$$.fragment,Ne),Ne.forEach(t),Fe.forEach(t),K=c(U),q=s(U,"SPAN",{});var Le=h(q);Q=n(Le,"The Hugging Face Hub"),Le.forEach(t),U.forEach(t),M=c(e),$e(_.$$.fragment,e),Y=c(e),b=s(e,"P",{});var X=h(b);V=n(X,"The "),H=s(X,"A",{href:!0,rel:!0});var xe=h(H);ee=n(xe,"Hugging Face Hub"),xe.forEach(t),te=n(X," \u2013- our main website \u2013- is a central platform that enables anyone to discover, use, and contribute new state-of-the-art models and datasets. It hosts a wide variety of models, with more than 10,000 publicly available. We\u2019ll focus on the models in this chapter, and take a look at the datasets in Chapter 5."),X.forEach(t),j=c(e),u=s(e,"P",{});var m=h(u);ae=n(m,"The models in the Hub are not limited to \u{1F917} Transformers or even NLP. There are models from "),$=s(m,"A",{href:!0,rel:!0});var Se=h($);oe=n(Se,"Flair"),Se.forEach(t),ie=n(m," and "),E=s(m,"A",{href:!0,rel:!0});var Ie=h(E);ne=n(Ie,"AllenNLP"),Ie.forEach(t),re=n(m," for NLP, "),P=s(m,"A",{href:!0,rel:!0});var Ce=h(P);le=n(Ce,"Asteroid"),Ce.forEach(t),se=n(m," and "),A=s(m,"A",{href:!0,rel:!0});var qe=h(A);he=n(qe,"pyannote"),qe.forEach(t),fe=n(m," for speech, and "),T=s(m,"A",{href:!0,rel:!0});var Ge=h(T);ue=n(Ge,"timm"),Ge.forEach(t),me=n(m," for vision, to name a few."),m.forEach(t),B=c(e),x=s(e,"P",{});var Me=h(x);pe=n(Me,"Each of these models is hosted as a Git repository, which allows versioning and reproducibility. Sharing a model on the Hub means opening it up to the community and making it accessible to anyone looking to easily use it, in turn eliminating their need to train a model on their own and simplifying sharing and usage."),Me.forEach(t),W=c(e),S=s(e,"P",{});var Ye=h(S);ce=n(Ye,"Additionally, sharing a model on the Hub automatically deploys a hosted Inference API for that model. Anyone in the community is free to test it out directly on the model\u2019s page, with custom inputs and appropriate widgets."),Ye.forEach(t),z=c(e),w=s(e,"P",{});var Z=h(w);de=n(Z,"The best part is that sharing and using any public model on the Hub is completely free! "),k=s(Z,"A",{href:!0,rel:!0});var je=h(k);ge=n(je,"Paid plans"),je.forEach(t),ye=n(Z," also exist if you wish to share models privately."),Z.forEach(t),D=c(e),I=s(e,"P",{});var Be=h(I);be=n(Be,"The video below shows how to navigate the Hub."),Be.forEach(t),J=c(e),$e(F.$$.fragment,e),O=c(e),N=s(e,"P",{});var _e=h(N);we=n(_e,"Having a huggingface.co account is required to follow along this part, as we\u2019ll be creating and managing repositories on the Hugging Face Hub: "),L=s(_e,"A",{href:!0,rel:!0});var We=h(L);ve=n(We,"create an account"),We.forEach(t),_e.forEach(t),this.h()},h(){r(d,"name","hf:doc:metadata"),r(d,"content",JSON.stringify(Ve)),r(y,"id","the-hugging-face-hub"),r(y,"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"),r(y,"href","#the-hugging-face-hub"),r(g,"class","relative group"),r(H,"href","https://huggingface.co/"),r(H,"rel","nofollow"),r($,"href","https://github.com/flairNLP/flair"),r($,"rel","nofollow"),r(E,"href","https://github.com/allenai/allennlp"),r(E,"rel","nofollow"),r(P,"href","https://github.com/asteroid-team/asteroid"),r(P,"rel","nofollow"),r(A,"href","https://github.com/pyannote/pyannote-audio"),r(A,"rel","nofollow"),r(T,"href","https://github.com/rwightman/pytorch-image-models"),r(T,"rel","nofollow"),r(k,"href","https://huggingface.co/pricing"),r(k,"rel","nofollow"),r(L,"href","https://huggingface.co/join"),r(L,"rel","nofollow")},m(e,o){a(document.head,d),f(e,G,o),f(e,g,o),a(g,y),a(y,C),Ee(v,C,null),a(g,K),a(g,q),a(q,Q),f(e,M,o),Ee(_,e,o),f(e,Y,o),f(e,b,o),a(b,V),a(b,H),a(H,ee),a(b,te),f(e,j,o),f(e,u,o),a(u,ae),a(u,$),a($,oe),a(u,ie),a(u,E),a(E,ne),a(u,re),a(u,P),a(P,le),a(u,se),a(u,A),a(A,he),a(u,fe),a(u,T),a(T,ue),a(u,me),f(e,B,o),f(e,x,o),a(x,pe),f(e,W,o),f(e,S,o),a(S,ce),f(e,z,o),f(e,w,o),a(w,de),a(w,k),a(k,ge),a(w,ye),f(e,D,o),f(e,I,o),a(I,be),f(e,J,o),Ee(F,e,o),f(e,O,o),f(e,N,o),a(N,we),a(N,L),a(L,ve),R=!0},p:Re,i(e){R||(Pe(v.$$.fragment,e),Pe(_.$$.fragment,e),Pe(F.$$.fragment,e),R=!0)},o(e){Ae(v.$$.fragment,e),Ae(_.$$.fragment,e),Ae(F.$$.fragment,e),R=!1},d(e){t(d),e&&t(G),e&&t(g),Te(v),e&&t(M),Te(_,e),e&&t(Y),e&&t(b),e&&t(j),e&&t(u),e&&t(B),e&&t(x),e&&t(W),e&&t(S),e&&t(z),e&&t(w),e&&t(D),e&&t(I),e&&t(J),Te(F,e),e&&t(O),e&&t(N)}}}const Ve={local:"the-hugging-face-hub",title:"The Hugging Face Hub"};function et(ke){return Ue(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class nt extends ze{constructor(d){super();De(this,d,et,Qe,Je,{})}}export{nt as default,Ve as metadata};
