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