import{s as et,n as nt,o as at}from"../chunks/scheduler.cc52f4b9.js";import{S as lt,i as it,e as s,s as l,c as P,h as st,a as o,d as n,b as i,f as W,g as T,j as w,k as tt,l as ot,m as a,n as y,t as L,o as M,p as d}from"../chunks/index.9480bb2b.js";import{C as rt,H as mt,E as pt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.009dc98d.js";import{Y as ft}from"../chunks/Youtube.7b12d9e8.js";import{C as ut}from"../chunks/CourseFloatingBanner.6488bde3.js";function gt(R){let r,F,v,E,m,z,p,S,f,j,u,U='我们的主网站——— <a href="https://huggingface.co/" rel="nofollow">Hugging Face中心</a> 是一个集发现、使用及贡献最新先进模型与数据集为一体的中心平台。这里汇聚了超过 10,000 个公开可用的各种领域的模型。我们将在本章节专注探讨这些模型，并在第五章节深入讨论数据集。',A,g,X='Hub 中的模型不仅限于🤗 Transformers 或者是自然语言处理。这里有许多模型，比如用于自然语言处理的 <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 中模型的冰山一角，更多的模型可以由你去探索。',N,h,Z="这些模型中的每一个都以 Git 仓库的形式托管，方便进行版本控制和复现。在 Hub 上共享模型意味着向社区开放，让任何希望使用模型的人都可以轻松访问，从而使他们免于训练模型之苦，并且简化了模型分享和使用。",G,$,J="此外，在 Hub 上分享一个模型会自动为该模型部署一个推理 API。社区中的任何人都可以直接在模型页面上使用各自的输入和相应的小工具来进行测试。",Y,c,K='最妙的是，在 Hub 上分享和使用任何公共模型都是完全免费的！如果你希望只把模型分享给特定的人，我们也有 <a href="https://huggingface.co/pricing" rel="nofollow">付费计划</a> 。',k,b,Q="下面的视频展示了如何使用 Hub。",q,H,B,x,V='如果你想跟进实现这一部分内容，你需要有一个 Huggingface.co 帐户，因为这一节我们将在 Hugging Face Hub 上创建和管理存储库： <a href="https://huggingface.co/join" rel="nofollow">创建一个账户</a>',D,_,I,C,O;return m=new rt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),p=new mt({props:{title:"The Hugging Face Hub",local:"The Hugging Face Hub",headingTag:"h1"}}),f=new ut({props:{chapter:4,classNames:"absolute z-10 right-0 top-0"}}),H=new ft({props:{id:"XvSGPZFEjDY"}}),_=new pt({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter4/1.mdx"}}),{c(){r=s("meta"),F=l(),v=s("p"),E=l(),P(m.$$.fragment),z=l(),P(p.$$.fragment),S=l(),P(f.$$.fragment),j=l(),u=s("p"),u.innerHTML=U,A=l(),g=s("p"),g.innerHTML=X,N=l(),h=s("p"),h.textContent=Z,G=l(),$=s("p"),$.textContent=J,Y=l(),c=s("p"),c.innerHTML=K,k=l(),b=s("p"),b.textContent=Q,q=l(),P(H.$$.fragment),B=l(),x=s("p"),x.innerHTML=V,D=l(),P(_.$$.fragment),I=l(),C=s("p"),this.h()},l(t){const e=st("svelte-u9bgzb",document.head);r=o(e,"META",{name:!0,content:!0}),e.forEach(n),F=i(t),v=o(t,"P",{}),W(v).forEach(n),E=i(t),T(m.$$.fragment,t),z=i(t),T(p.$$.fragment,t),S=i(t),T(f.$$.fragment,t),j=i(t),u=o(t,"P",{"data-svelte-h":!0}),w(u)!=="svelte-xjca15"&&(u.innerHTML=U),A=i(t),g=o(t,"P",{"data-svelte-h":!0}),w(g)!=="svelte-swuize"&&(g.innerHTML=X),N=i(t),h=o(t,"P",{"data-svelte-h":!0}),w(h)!=="svelte-nl87ay"&&(h.textContent=Z),G=i(t),$=o(t,"P",{"data-svelte-h":!0}),w($)!=="svelte-9ux2xh"&&($.textContent=J),Y=i(t),c=o(t,"P",{"data-svelte-h":!0}),w(c)!=="svelte-ast4y3"&&(c.innerHTML=K),k=i(t),b=o(t,"P",{"data-svelte-h":!0}),w(b)!=="svelte-1t6s9w2"&&(b.textContent=Q),q=i(t),T(H.$$.fragment,t),B=i(t),x=o(t,"P",{"data-svelte-h":!0}),w(x)!=="svelte-1y46apa"&&(x.innerHTML=V),D=i(t),T(_.$$.fragment,t),I=i(t),C=o(t,"P",{}),W(C).forEach(n),this.h()},h(){tt(r,"name","hf:doc:metadata"),tt(r,"content",ht)},m(t,e){ot(document.head,r),a(t,F,e),a(t,v,e),a(t,E,e),y(m,t,e),a(t,z,e),y(p,t,e),a(t,S,e),y(f,t,e),a(t,j,e),a(t,u,e),a(t,A,e),a(t,g,e),a(t,N,e),a(t,h,e),a(t,G,e),a(t,$,e),a(t,Y,e),a(t,c,e),a(t,k,e),a(t,b,e),a(t,q,e),y(H,t,e),a(t,B,e),a(t,x,e),a(t,D,e),y(_,t,e),a(t,I,e),a(t,C,e),O=!0},p:nt,i(t){O||(L(m.$$.fragment,t),L(p.$$.fragment,t),L(f.$$.fragment,t),L(H.$$.fragment,t),L(_.$$.fragment,t),O=!0)},o(t){M(m.$$.fragment,t),M(p.$$.fragment,t),M(f.$$.fragment,t),M(H.$$.fragment,t),M(_.$$.fragment,t),O=!1},d(t){t&&(n(F),n(v),n(E),n(z),n(S),n(j),n(u),n(A),n(g),n(N),n(h),n(G),n($),n(Y),n(c),n(k),n(b),n(q),n(B),n(x),n(D),n(I),n(C)),n(r),d(m,t),d(p,t),d(f,t),d(H,t),d(_,t)}}}const ht='{"title":"The Hugging Face Hub","local":"The Hugging Face Hub","sections":[],"depth":1}';function $t(R){return at(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class wt extends lt{constructor(r){super(),it(this,r,$t,gt,et,{})}}export{wt as component};
