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 N,A as W,h as r,f as a,c as i,j as X,u as S,x as $,k as Z,y as tt,a as n,v as j,d as z,t as Y,w as G}from"../chunks/index.2bf4358c.js";import{Y as et}from"../chunks/Youtube.1e50a667.js";import{C as at}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as nt}from"../chunks/Heading.8ada512a.js";function lt(k){let o,v,_,P,u,d,f,x,m,q='<a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a> — 我們的主網站，是一個中央平臺，在這個網站上任何人都可以查找、使用和貢獻新的最先進的模型和數據集。它擁有各種各樣的模型，公開可用的模型超過 10,000個。我們在本章去探索Hub中的模型，並在第 5 章中探索Hub中的數據集。',C,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中冰山一角，更多的模型。可以由你去探索。',T,h,D="這些模型中的每一個都作為 Git 存儲庫託管，這允許進行版本控制和重現。在 Hub 上共享模型意味著將其向社區開放，讓任何希望使用它的人都可以輕鬆訪問它，從而使其他人不用為訓練模型而苦惱就可以直接使用模型。",L,c,I="此外，在 Hub 上共享模型會自動為該模型部署託管的推理 API。社區中的任何人都可以直接在模型頁面上自由地測試它，使用自定義輸入和適當的小部件。",y,g,R='最棒的是是在 Hub 上共享和使用任何公共模型是完全免費的！如果您不想公開模型，也存在<a href="https://huggingface.co/pricing" rel="nofollow">付費計劃</a>。下面的視頻顯示瞭如何使用 Hub。',M,H,F,b,U='這部分需要有一個 Huggingface.co 帳戶，因為我們將在 Hugging Face Hub 上創建和管理存儲庫：<a href="https://huggingface.co/join" rel="nofollow">創建一個賬戶</a>',A,w,E;return u=new nt({props:{title:"The Hugging Face Hub",local:"the-hugging-face-hub",headingTag:"h1"}}),f=new at({props:{chapter:4,classNames:"absolute z-10 right-0 top-0"}}),H=new et({props:{id:"XvSGPZFEjDY"}}),{c(){o=s("meta"),v=l(),_=s("p"),P=l(),N(u.$$.fragment),d=l(),N(f.$$.fragment),x=l(),m=s("p"),m.innerHTML=q,C=l(),p=s("p"),p.innerHTML=B,T=l(),h=s("p"),h.textContent=D,L=l(),c=s("p"),c.textContent=I,y=l(),g=s("p"),g.innerHTML=R,M=l(),N(H.$$.fragment),F=l(),b=s("p"),b.innerHTML=U,A=l(),w=s("p"),this.h()},l(t){const e=W("svelte-u9bgzb",document.head);o=r(e,"META",{name:!0,content:!0}),e.forEach(a),v=i(t),_=r(t,"P",{}),X(_).forEach(a),P=i(t),S(u.$$.fragment,t),d=i(t),S(f.$$.fragment,t),x=i(t),m=r(t,"P",{"data-svelte-h":!0}),$(m)!=="svelte-1e33cy6"&&(m.innerHTML=q),C=i(t),p=r(t,"P",{"data-svelte-h":!0}),$(p)!=="svelte-19yed3r"&&(p.innerHTML=B),T=i(t),h=r(t,"P",{"data-svelte-h":!0}),$(h)!=="svelte-14pihuw"&&(h.textContent=D),L=i(t),c=r(t,"P",{"data-svelte-h":!0}),$(c)!=="svelte-164mflo"&&(c.textContent=I),y=i(t),g=r(t,"P",{"data-svelte-h":!0}),$(g)!=="svelte-i4fewf"&&(g.innerHTML=R),M=i(t),S(H.$$.fragment,t),F=i(t),b=r(t,"P",{"data-svelte-h":!0}),$(b)!=="svelte-1u7cdbz"&&(b.innerHTML=U),A=i(t),w=r(t,"P",{}),X(w).forEach(a),this.h()},h(){Z(o,"name","hf:doc:metadata"),Z(o,"content",it)},m(t,e){tt(document.head,o),n(t,v,e),n(t,_,e),n(t,P,e),j(u,t,e),n(t,d,e),j(f,t,e),n(t,x,e),n(t,m,e),n(t,C,e),n(t,p,e),n(t,T,e),n(t,h,e),n(t,L,e),n(t,c,e),n(t,y,e),n(t,g,e),n(t,M,e),j(H,t,e),n(t,F,e),n(t,b,e),n(t,A,e),n(t,w,e),E=!0},p:K,i(t){E||(z(u.$$.fragment,t),z(f.$$.fragment,t),z(H.$$.fragment,t),E=!0)},o(t){Y(u.$$.fragment,t),Y(f.$$.fragment,t),Y(H.$$.fragment,t),E=!1},d(t){t&&(a(v),a(_),a(P),a(d),a(x),a(m),a(C),a(p),a(T),a(h),a(L),a(c),a(y),a(g),a(M),a(F),a(b),a(A),a(w)),a(o),G(u,t),G(f,t),G(H,t)}}}const it='{"title":"The Hugging Face Hub","local":"the-hugging-face-hub","sections":[],"depth":1}';function ot(k){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};
