import{s as J,n as K,o as O}from"../chunks/scheduler.37c15a92.js";import{S as Q,i as V,g as s,s as l,r as j,A as W,h as r,f as n,c as i,j as X,u as k,x as $,k as Z,y as tt,a,v as N,d as S,t as Y,w as q}from"../chunks/index.2bf4358c.js";import{Y as et}from"../chunks/Youtube.1e50a667.js";import{C as nt}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as at}from"../chunks/Heading.8ada512a.js";function lt(z){let o,d,_,w,u,P,f,x,m,G='<a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a>---我们的主网站，是一个中央平台，在这个网站上任何人都可以查找、使用和贡献新的最先进的模型和数据集。它拥有各种各样的模型，公开可用的模型超过 10,000个。我们在本章去探索Hub中的模型，并在第 5 章中探索Hub中的数据集。',T,p,B='Hub 中的模型不仅限于🤗 Transformers 甚至 NLP。有用于自然语言处理的<a href="https://github.com/flairNLP/flair" rel="nofollow">Flair</a>，<a href="https://github.com/allenai/allennlp" rel="nofollow">AllenNLP</a>，<a href="https://github.com/asteroid-team/asteroid" rel="nofollow">Asteroid</a>和用于音频检测的<a href="https://github.com/pyannote/pyannote-audio" rel="nofollow">pyannote</a>，以及对于视觉的<a href="https://github.com/rwightman/pytorch-image-models" rel="nofollow">timm</a>，这些例子只是Hub中冰山一角，更多的模型。可以由你去探索。',C,g,D="这些模型中的每一个都作为 Git 存储库托管，这允许进行版本控制和重现。在 Hub 上共享模型意味着将其向社区开放，让任何希望使用它的人都可以轻松访问它，从而使其他人不用为训练模型而苦恼就可以直接使用模型。",L,h,I="此外，在 Hub 上共享模型会自动为该模型部署托管的推理 API。社区中的任何人都可以直接在模型页面上自由地测试它，使用自定义输入和适当的小部件。",M,c,R='最棒的是是在 Hub 上共享和使用任何公共模型是完全免费的！如果您不想公开模型，也存在<a href="https://huggingface.co/pricing" rel="nofollow">付费计划</a>。下面的视频显示了如何使用 Hub。',y,H,F,b,U='这部分需要有一个 Huggingface.co 帐户，因为我们将在 Hugging Face Hub 上创建和管理存储库：<a href="https://huggingface.co/join" rel="nofollow">创建一个账户</a>',A,v,E;return u=new at({props:{title:"The Hugging Face Hub",local:"The Hugging Face Hub",headingTag:"h1"}}),f=new nt({props:{chapter:4,classNames:"absolute z-10 right-0 top-0"}}),H=new et({props:{id:"XvSGPZFEjDY"}}),{c(){o=s("meta"),d=l(),_=s("p"),w=l(),j(u.$$.fragment),P=l(),j(f.$$.fragment),x=l(),m=s("p"),m.innerHTML=G,T=l(),p=s("p"),p.innerHTML=B,C=l(),g=s("p"),g.textContent=D,L=l(),h=s("p"),h.textContent=I,M=l(),c=s("p"),c.innerHTML=R,y=l(),j(H.$$.fragment),F=l(),b=s("p"),b.innerHTML=U,A=l(),v=s("p"),this.h()},l(t){const e=W("svelte-u9bgzb",document.head);o=r(e,"META",{name:!0,content:!0}),e.forEach(n),d=i(t),_=r(t,"P",{}),X(_).forEach(n),w=i(t),k(u.$$.fragment,t),P=i(t),k(f.$$.fragment,t),x=i(t),m=r(t,"P",{"data-svelte-h":!0}),$(m)!=="svelte-17dh5fk"&&(m.innerHTML=G),T=i(t),p=r(t,"P",{"data-svelte-h":!0}),$(p)!=="svelte-1nvfext"&&(p.innerHTML=B),C=i(t),g=r(t,"P",{"data-svelte-h":!0}),$(g)!=="svelte-9kqdx5"&&(g.textContent=D),L=i(t),h=r(t,"P",{"data-svelte-h":!0}),$(h)!=="svelte-1g1v4bd"&&(h.textContent=I),M=i(t),c=r(t,"P",{"data-svelte-h":!0}),$(c)!=="svelte-gdf6jk"&&(c.innerHTML=R),y=i(t),k(H.$$.fragment,t),F=i(t),b=r(t,"P",{"data-svelte-h":!0}),$(b)!=="svelte-oe1330"&&(b.innerHTML=U),A=i(t),v=r(t,"P",{}),X(v).forEach(n),this.h()},h(){Z(o,"name","hf:doc:metadata"),Z(o,"content",it)},m(t,e){tt(document.head,o),a(t,d,e),a(t,_,e),a(t,w,e),N(u,t,e),a(t,P,e),N(f,t,e),a(t,x,e),a(t,m,e),a(t,T,e),a(t,p,e),a(t,C,e),a(t,g,e),a(t,L,e),a(t,h,e),a(t,M,e),a(t,c,e),a(t,y,e),N(H,t,e),a(t,F,e),a(t,b,e),a(t,A,e),a(t,v,e),E=!0},p:K,i(t){E||(S(u.$$.fragment,t),S(f.$$.fragment,t),S(H.$$.fragment,t),E=!0)},o(t){Y(u.$$.fragment,t),Y(f.$$.fragment,t),Y(H.$$.fragment,t),E=!1},d(t){t&&(n(d),n(_),n(w),n(P),n(x),n(m),n(T),n(p),n(C),n(g),n(L),n(h),n(M),n(c),n(y),n(F),n(b),n(A),n(v)),n(o),q(u,t),q(f,t),q(H,t)}}}const it='{"title":"The Hugging Face Hub","local":"The Hugging Face Hub","sections":[],"depth":1}';function ot(z){return O(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pt extends Q{constructor(o){super(),V(this,o,ot,lt,J,{})}}export{pt as component};
