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