import{s as O,n as Q,o as V}from"../chunks/scheduler.37c15a92.js";import{S as ee,i as te,g as l,s as o,r as S,A as ae,h as s,f as a,c as i,j as J,u as j,x as v,k as K,y as ne,a as n,v as z,d as q,t as I,w as Y}from"../chunks/index.2bf4358c.js";import{Y as oe}from"../chunks/Youtube.1e50a667.js";import{C as ie}from"../chunks/CourseFloatingBanner.15ba07e6.js";import{H as le}from"../chunks/Heading.8ada512a.js";function se(G){let r,H,y,_,m,x,h,P,p,B='The <a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a> –- our main website –- 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’ll focus on the models in this chapter, and take a look at the datasets in Chapter 5.',T,u,D='The models in the Hub are not limited to 🤗 Transformers or even NLP. There are models from <a href="https://github.com/flairNLP/flair" rel="nofollow">Flair</a> and <a href="https://github.com/allenai/allennlp" rel="nofollow">AllenNLP</a> for NLP, <a href="https://github.com/asteroid-team/asteroid" rel="nofollow">Asteroid</a> and <a href="https://github.com/pyannote/pyannote-audio" rel="nofollow">pyannote</a> for speech, and <a href="https://github.com/rwightman/pytorch-image-models" rel="nofollow">timm</a> for vision, to name a few.',C,f,R="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.",L,c,U="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’s page, with custom inputs and appropriate widgets.",M,g,W='The best part is that sharing and using any public model on the Hub is completely free! <a href="https://huggingface.co/pricing" rel="nofollow">Paid plans</a> also exist if you wish to share models privately.',A,d,X="The video below shows how to navigate the Hub.",F,b,k,w,Z='Having a huggingface.co account is required to follow along this part, as we’ll be creating and managing repositories on the Hugging Face Hub: <a href="https://huggingface.co/join" rel="nofollow">create an account</a>',E,$,N;return m=new le({props:{title:"The Hugging Face Hub",local:"the-hugging-face-hub",headingTag:"h1"}}),h=new ie({props:{chapter:4,classNames:"absolute z-10 right-0 top-0"}}),b=new oe({props:{id:"XvSGPZFEjDY"}}),{c(){r=l("meta"),H=o(),y=l("p"),_=o(),S(m.$$.fragment),x=o(),S(h.$$.fragment),P=o(),p=l("p"),p.innerHTML=B,T=o(),u=l("p"),u.innerHTML=D,C=o(),f=l("p"),f.textContent=R,L=o(),c=l("p"),c.textContent=U,M=o(),g=l("p"),g.innerHTML=W,A=o(),d=l("p"),d.textContent=X,F=o(),S(b.$$.fragment),k=o(),w=l("p"),w.innerHTML=Z,E=o(),$=l("p"),this.h()},l(e){const t=ae("svelte-u9bgzb",document.head);r=s(t,"META",{name:!0,content:!0}),t.forEach(a),H=i(e),y=s(e,"P",{}),J(y).forEach(a),_=i(e),j(m.$$.fragment,e),x=i(e),j(h.$$.fragment,e),P=i(e),p=s(e,"P",{"data-svelte-h":!0}),v(p)!=="svelte-cm9y97"&&(p.innerHTML=B),T=i(e),u=s(e,"P",{"data-svelte-h":!0}),v(u)!=="svelte-g5vlrf"&&(u.innerHTML=D),C=i(e),f=s(e,"P",{"data-svelte-h":!0}),v(f)!=="svelte-xb7epb"&&(f.textContent=R),L=i(e),c=s(e,"P",{"data-svelte-h":!0}),v(c)!=="svelte-60q9xs"&&(c.textContent=U),M=i(e),g=s(e,"P",{"data-svelte-h":!0}),v(g)!=="svelte-62jdx4"&&(g.innerHTML=W),A=i(e),d=s(e,"P",{"data-svelte-h":!0}),v(d)!=="svelte-1bky6bz"&&(d.textContent=X),F=i(e),j(b.$$.fragment,e),k=i(e),w=s(e,"P",{"data-svelte-h":!0}),v(w)!=="svelte-8macze"&&(w.innerHTML=Z),E=i(e),$=s(e,"P",{}),J($).forEach(a),this.h()},h(){K(r,"name","hf:doc:metadata"),K(r,"content",re)},m(e,t){ne(document.head,r),n(e,H,t),n(e,y,t),n(e,_,t),z(m,e,t),n(e,x,t),z(h,e,t),n(e,P,t),n(e,p,t),n(e,T,t),n(e,u,t),n(e,C,t),n(e,f,t),n(e,L,t),n(e,c,t),n(e,M,t),n(e,g,t),n(e,A,t),n(e,d,t),n(e,F,t),z(b,e,t),n(e,k,t),n(e,w,t),n(e,E,t),n(e,$,t),N=!0},p:Q,i(e){N||(q(m.$$.fragment,e),q(h.$$.fragment,e),q(b.$$.fragment,e),N=!0)},o(e){I(m.$$.fragment,e),I(h.$$.fragment,e),I(b.$$.fragment,e),N=!1},d(e){e&&(a(H),a(y),a(_),a(x),a(P),a(p),a(T),a(u),a(C),a(f),a(L),a(c),a(M),a(g),a(A),a(d),a(F),a(k),a(w),a(E),a($)),a(r),Y(m,e),Y(h,e),Y(b,e)}}}const re='{"title":"The Hugging Face Hub","local":"the-hugging-face-hub","sections":[],"depth":1}';function me(G){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ge extends ee{constructor(r){super(),te(this,r,me,se,O,{})}}export{ge as component};
