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.06521e8b.js";import{H as it,E as ot}from"../chunks/EditOnGithub.8916dc7c.js";function st(B){let o,v,w,P,u,x,f,T,m,D='<a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a> — 我們的主網站，是一個中央平臺，在這個網站上任何人都可以查找、使用和貢獻新的最先進的模型和數據集。它擁有各種各樣的模型，公開可用的模型超過 <img src="https://img.shields.io/endpoint?url=https://huggingface.co/api/shields/models&amp;color=brightgreen" alt="Hugging Face Models"/>個。我們在本章去探索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,W='這部分需要有一個 Huggingface.co 帳戶，因為我們將在 Hugging Face Hub 上創建和管理存儲庫：<a href="https://huggingface.co/join" rel="nofollow">創建一個賬戶</a>',z,H,A,d,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"),v=l(),w=s("p"),P=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(),g=s("p"),g.textContent=O,M=l(),h=s("p"),h.textContent=R,y=l(),c=s("p"),c.innerHTML=U,F=l(),S($.$$.fragment),E=l(),b=s("p"),b.innerHTML=W,z=l(),S(H.$$.fragment),A=l(),d=s("p"),this.h()},l(t){const e=et("svelte-u9bgzb",document.head);o=r(e,"META",{name:!0,content:!0}),e.forEach(n),v=i(t),w=r(t,"P",{}),X(w).forEach(n),P=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-o4zwe1"&&(m.innerHTML=D),C=i(t),p=r(t,"P",{"data-svelte-h":!0}),_(p)!=="svelte-19yed3r"&&(p.innerHTML=I),L=i(t),g=r(t,"P",{"data-svelte-h":!0}),_(g)!=="svelte-14pihuw"&&(g.textContent=O),M=i(t),h=r(t,"P",{"data-svelte-h":!0}),_(h)!=="svelte-164mflo"&&(h.textContent=R),y=i(t),c=r(t,"P",{"data-svelte-h":!0}),_(c)!=="svelte-i4fewf"&&(c.innerHTML=U),F=i(t),j($.$$.fragment,t),E=i(t),b=r(t,"P",{"data-svelte-h":!0}),_(b)!=="svelte-1u7cdbz"&&(b.innerHTML=W),z=i(t),j(H.$$.fragment,t),A=i(t),d=r(t,"P",{}),X(d).forEach(n),this.h()},h(){Z(o,"name","hf:doc:metadata"),Z(o,"content",rt)},m(t,e){nt(document.head,o),a(t,v,e),a(t,w,e),a(t,P,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,g,e),a(t,M,e),a(t,h,e),a(t,y,e),a(t,c,e),a(t,F,e),G($,t,e),a(t,E,e),a(t,b,e),a(t,z,e),G(H,t,e),a(t,A,e),a(t,d,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(v),n(w),n(P),n(x),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(z),n(A),n(d)),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};
