import{s as J,n as K,o as Q}from"../chunks/scheduler.37c15a92.js";import{S as V,i as tt,g as s,s as l,r as S,A as et,h as r,f as n,c as i,j as X,u as j,x as _,k as Z,y as nt,a,v as G,d as Y,t as k,w as q}from"../chunks/index.2bf4358c.js";import{Y as at}from"../chunks/Youtube.1e50a667.js";import{C as lt}from"../chunks/CourseFloatingBanner.9ff4c771.js";import{H as it,E as ot}from"../chunks/getInferenceSnippets.24b50994.js";function st(B){let o,P,w,d,u,x,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,h,O="這些模型中的每一個都作為 Git 存儲庫託管，這允許進行版本控制和重現。在 Hub 上共享模型意味著將其向社區開放，讓任何希望使用它的人都可以輕鬆訪問它，從而使其他人不用為訓練模型而苦惱就可以直接使用模型。",y,g,R="此外，在 Hub 上共享模型會自動為該模型部署託管的推理 API。社區中的任何人都可以直接在模型頁面上自由地測試它，使用自定義輸入和適當的小部件。",M,c,U='最棒的是是在 Hub 上共享和使用任何公共模型是完全免費的！如果您不想公開模型，也存在<a href="https://huggingface.co/pricing" rel="nofollow">付費計劃</a>。下面的視頻顯示瞭如何使用 Hub。',E,$,F,b,W='這部分需要有一個 Huggingface.co 帳戶，因為我們將在 Hugging Face Hub 上創建和管理存儲庫：<a href="https://huggingface.co/join" rel="nofollow">創建一個賬戶</a>',A,H,z,v,N;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-TW/chapter4/1.mdx"}}),{c(){o=s("meta"),P=l(),w=s("p"),d=l(),S(u.$$.fragment),x=l(),S(f.$$.fragment),T=l(),m=s("p"),m.innerHTML=D,C=l(),p=s("p"),p.innerHTML=I,L=l(),h=s("p"),h.textContent=O,y=l(),g=s("p"),g.textContent=R,M=l(),c=s("p"),c.innerHTML=U,E=l(),S($.$$.fragment),F=l(),b=s("p"),b.innerHTML=W,A=l(),S(H.$$.fragment),z=l(),v=s("p"),this.h()},l(t){const e=et("svelte-u9bgzb",document.head);o=r(e,"META",{name:!0,content:!0}),e.forEach(n),P=i(t),w=r(t,"P",{}),X(w).forEach(n),d=i(t),j(u.$$.fragment,t),x=i(t),j(f.$$.fragment,t),T=i(t),m=r(t,"P",{"data-svelte-h":!0}),_(m)!=="svelte-1e33cy6"&&(m.innerHTML=D),C=i(t),p=r(t,"P",{"data-svelte-h":!0}),_(p)!=="svelte-19yed3r"&&(p.innerHTML=I),L=i(t),h=r(t,"P",{"data-svelte-h":!0}),_(h)!=="svelte-14pihuw"&&(h.textContent=O),y=i(t),g=r(t,"P",{"data-svelte-h":!0}),_(g)!=="svelte-164mflo"&&(g.textContent=R),M=i(t),c=r(t,"P",{"data-svelte-h":!0}),_(c)!=="svelte-i4fewf"&&(c.innerHTML=U),E=i(t),j($.$$.fragment,t),F=i(t),b=r(t,"P",{"data-svelte-h":!0}),_(b)!=="svelte-1u7cdbz"&&(b.innerHTML=W),A=i(t),j(H.$$.fragment,t),z=i(t),v=r(t,"P",{}),X(v).forEach(n),this.h()},h(){Z(o,"name","hf:doc:metadata"),Z(o,"content",rt)},m(t,e){nt(document.head,o),a(t,P,e),a(t,w,e),a(t,d,e),G(u,t,e),a(t,x,e),G(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,h,e),a(t,y,e),a(t,g,e),a(t,M,e),a(t,c,e),a(t,E,e),G($,t,e),a(t,F,e),a(t,b,e),a(t,A,e),G(H,t,e),a(t,z,e),a(t,v,e),N=!0},p:K,i(t){N||(Y(u.$$.fragment,t),Y(f.$$.fragment,t),Y($.$$.fragment,t),Y(H.$$.fragment,t),N=!0)},o(t){k(u.$$.fragment,t),k(f.$$.fragment,t),k($.$$.fragment,t),k(H.$$.fragment,t),N=!1},d(t){t&&(n(P),n(w),n(d),n(x),n(T),n(m),n(C),n(p),n(L),n(h),n(y),n(g),n(M),n(c),n(E),n(F),n(b),n(A),n(z),n(v)),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 Q(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ct extends V{constructor(o){super(),tt(this,o,ut,st,J,{})}}export{ct as component};
