import{S as Yt,i as Zt,s as er,e as o,k as u,w as $,t as w,M as tr,c as s,d as t,m as f,x as v,a as n,h as b,b as i,G as r,g as p,y as _,o as m,p as rr,q as c,B as g,v as ar,n as or}from"../../chunks/vendor-hf-doc-builder.js";import{I as z}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as sr}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import{Q as T}from"../../chunks/Question-hf-doc-builder.js";import{F as nr}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function ir(J){let h,x;return h=new T({props:{choices:[{text:"\u4E00\u4E2A\u6807\u8BB0\u5668",explain:"\u6B63\u786E\uFF01 \u6240\u6709\u6807\u8BB0\u5668\u90FD\u6709push_to_hub\u65B9\u6CD5\uFF0C\u4F7F\u7528\u8BE5\u65B9\u6CD5\u5C06\u628A\u6240\u6709\u6807\u8BB0\u5668\u6587\u4EF6\uFF08\u8BCD\u6C47\u8868\u3001\u6807\u8BB0\u5668\u7684\u67B6\u6784\u7B49\uFF09\u63A8\u9001\u5230\u7ED9\u5B9A\u7684\u5B58\u50A8\u5E93\u3002\u4E0D\u8FC7\uFF0C\u8FD9\u4E0D\u662F\u552F\u4E00\u6B63\u786E\u7684\u7B54\u6848\uFF01",correct:!0},{text:"\u6A21\u578B\u914D\u7F6E",explain:"\u5BF9\uFF01\u6240\u6709\u6A21\u578B\u914D\u7F6E\u90FD\u6709 push _ to _ hub \u65B9\u6CD5\uFF0C\u4F7F\u7528\u8FD9\u4E2A\u65B9\u6CD5\u53EF\u4EE5\u5C06\u5B83\u4EEC\u63A8\u9001\u5230\u7ED9\u5B9A\u7684\u5B58\u50A8\u5E93\u3002\u4F60\u8FD8\u6709\u5176\u4ED6\u80FD\u5171\u4EAB\u7684\u5417\uFF1F",correct:!0},{text:"\u4E00\u4E2A\u6A21\u578B",explain:"\u6B63\u786E\uFF01 \u6240\u6709\u6A21\u578B\u90FD\u6709 push_to_hub \u65B9\u6CD5\uFF0C\u4F7F\u7528\u5B83\u4F1A\u5C06\u5B83\u4EEC\u53CA\u5176\u914D\u7F6E\u6587\u4EF6\u63A8\u9001\u5230\u7ED9\u5B9A\u7684\u5B58\u50A8\u5E93\u3002\u4E0D\u8FC7\uFF0C\u8FD9\u5E76\u4E0D\u662F\u60A8\u53EF\u4EE5\u5171\u4EAB\u7684\u5168\u90E8\u5185\u5BB9\u3002",correct:!0},{text:"\u4EE5\u4E0A\u90FD\u6709\u4E13\u7528\u7684\u56DE\u8C03\u51FD\u6570",explain:"\u6B63\u786E\u2014\u2014\u2014\u2014\u5728\u8BAD\u7EC3\u671F\u95F4\uFF0CPushToHubCallback\u4F1A\u5B9A\u671F\u5C06\u6240\u6709\u8FD9\u4E9B\u5BF9\u8C61\u53D1\u9001\u5230\u5B58\u50A8\u5668\u3002",correct:!0}]}}),{c(){$(h.$$.fragment)},l(l){v(h.$$.fragment,l)},m(l,y){_(h,l,y),x=!0},i(l){x||(c(h.$$.fragment,l),x=!0)},o(l){m(h.$$.fragment,l),x=!1},d(l){g(h,l)}}}function lr(J){let h,x;return h=new T({props:{choices:[{text:"\u4E00\u4E2A\u6807\u8BB0\u5668",explain:"\u6B63\u786E\uFF01 \u6240\u6709\u6807\u8BB0\u5668\u90FD\u6709push_to_hub\u65B9\u6CD5\uFF0C\u4F7F\u7528\u8BE5\u65B9\u6CD5\u5C06\u628A\u6240\u6709\u6807\u8BB0\u5668\u6587\u4EF6\uFF08\u8BCD\u6C47\u8868\u3001\u6807\u8BB0\u5668\u7684\u67B6\u6784\u7B49\uFF09\u63A8\u9001\u5230\u7ED9\u5B9A\u7684\u5B58\u50A8\u5E93\u3002\u4E0D\u8FC7\uFF0C\u8FD9\u4E0D\u662F\u552F\u4E00\u6B63\u786E\u7684\u7B54\u6848\uFF01",correct:!0},{text:"\u6A21\u578B\u914D\u7F6E",explain:"\u5BF9\uFF01\u6240\u6709\u6A21\u578B\u914D\u7F6E\u90FD\u6709 push _ to _ hub \u65B9\u6CD5\uFF0C\u4F7F\u7528\u8FD9\u4E2A\u65B9\u6CD5\u53EF\u4EE5\u5C06\u5B83\u4EEC\u63A8\u9001\u5230\u7ED9\u5B9A\u7684\u5B58\u50A8\u5E93\u3002\u4F60\u8FD8\u6709\u5176\u4ED6\u80FD\u5171\u4EAB\u7684\u5417\uFF1F",correct:!0},{text:"\u4E00\u4E2A\u6A21\u578B",explain:"\u6B63\u786E\uFF01 \u6240\u6709\u6A21\u578B\u90FD\u6709 push_to_hub \u65B9\u6CD5\uFF0C\u4F7F\u7528\u5B83\u4F1A\u5C06\u5B83\u4EEC\u53CA\u5176\u914D\u7F6E\u6587\u4EF6\u63A8\u9001\u5230\u7ED9\u5B9A\u7684\u5B58\u50A8\u5E93\u3002\u4E0D\u8FC7\uFF0C\u8FD9\u5E76\u4E0D\u662F\u60A8\u53EF\u4EE5\u5171\u4EAB\u7684\u5168\u90E8\u5185\u5BB9\u3002",correct:!0},{text:"Trainer",explain:"\u6CA1\u9519\u2014\u2014\u2014\u2014Trainer\u4E5F\u5B9E\u73B0\u4E86push _ to _ hub\u65B9\u6CD5\uFF0C\u5E76\u4E14\u4F7F\u7528\u5B83\u5C06\u6A21\u578B\u3001\u914D\u7F6E\u3001\u6807\u8BB0\u5668\u548C\u6A21\u578B\u5361\u8349\u7A3F\u4E0A\u4F20\u5230\u7ED9\u5B9A\u7684\u5B58\u50A8\u5668\u3002\u8BD5\u8BD5\u5176\u4ED6\u7B54\u6848\uFF01",correct:!0}]}}),{c(){$(h.$$.fragment)},l(l){v(h.$$.fragment,l)},m(l,y){_(h,l,y),x=!0},i(l){x||(c(h.$$.fragment,l),x=!0)},o(l){m(h.$$.fragment,l),x=!1},d(l){g(h,l)}}}function pr(J){let h,x,l,y,O,ot,Ne,U,qe,ue,st,Ce,E,F,me,j,nt,ce,it,Te,D,Fe,H,M,$e,K,lt,ve,pt,Me,V,Ie,A,I,_e,W,ut,ge,ft,Le,X,Ge,P,L,xe,Y,ht,we,mt,Re,Z,Be,S,G,be,ee,ct,te,$t,de,vt,_t,Qe,d,k,fe,N,R,ke,re,gt,ae,xt,ye,wt,bt,ze,oe,Je,q,B,Ee,se,dt,He,kt,Oe,ne,Ue,C,Q,Ae,ie,yt,Pe,Et,je,le,De;l=new nr({props:{fw:J[0]}}),U=new sr({props:{chapter:4,classNames:"absolute z-10 right-0 top-0"}}),j=new z({}),D=new T({props:{choices:[{text:"\u6A21\u578B\u6765\u81EA\u{1F917} Transformers \u5E93\u3002",explain:"\u867D\u7136 Hugging Face Hub \u652F\u6301 \u{1F917} Transformers \u5E93\u4E2D\u7684\u6A21\u578B\uFF0C\u4F46\u5B83\u4EEC\u5E76\u4E0D\u662F\u552F\u4E00\u7684\u6A21\u578B\uFF01"},{text:"\u6240\u6709\u578B\u53F7\u90FD\u6709\u7C7B\u4F3C\u4E8E\u{1F917} Transformers \u7684\u63A5\u53E3\u3002",explain:"\u5C06\u6A21\u578B\u4E0A\u4F20\u5230 Hugging Face Hub \u65F6\uFF0C\u6CA1\u6709\u8BBE\u7F6E\u63A5\u53E3\u8981\u6C42\u3002"},{text:"\u6CA1\u6709\u9650\u5236\u3002",explain:"\u5BF9! \u5728\u5C06\u6A21\u578B\u4E0A\u4F20\u5230Hub\u65F6\u6CA1\u6709\u9650\u5236\u3002",correct:!0},{text:"\u5728\u67D0\u79CD\u7A0B\u5EA6\u4E0A\u4E0E NLP \u76F8\u5173\u7684\u6A21\u578B\u3002",explain:"\u5BF9\u5E94\u7528\u9886\u57DF\u6CA1\u6709\u8981\u6C42\uFF01"}]}}),K=new z({}),V=new T({props:{choices:[{text:"\u901A\u8FC7 GCP \u5E10\u6237\u3002",explain:"\u4E0D\u5BF9\uFF01"},{text:"\u901A\u8FC7\u70B9\u5BF9\u70B9\u5206\u5E03\u3002",explain:"\u4E0D\u5BF9\uFF01"},{text:"\u901A\u8FC7 git \u548C git-lfs\u3002",explain:"\u6B63\u786E\uFF01 Hub\u4E0A\u7684\u6A21\u578B\u662F\u7B80\u5355\u7684Git\u5B58\u50A8\u5E93\uFF0C\u5229\u7528Git lfs\u5904\u7406\u5927\u578B\u6587\u4EF6\u3002",correct:!0}]}}),W=new z({}),X=new T({props:{choices:[{text:"\u5206\u53C9\u73B0\u6709\u7684\u5B58\u50A8\u5E93\u3002",explain:"\u5728Hugging Face Hub\u4E0A\u65E0\u6CD5\u5206\u53C9\u5B58\u50A8\u5E93\u3002"},{text:"\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u6A21\u578B\u5E93\u3002",explain:"\u6CA1\u9519! \u4E0D\u8FC7\uFF0C\u8FD9\u5E76\u4E0D\u662F\u4F60\u80FD\u505A\u7684\u5168\u90E8\u3002",correct:!0},{text:"\u7BA1\u7406\u548C\u7F16\u8F91\u6587\u4EF6\u3002",explain:"\u6B63\u786E\uFF01 \u4E0D\u8FC7\uFF0C\u8FD9\u5E76\u4E0D\u662F\u4F60\u80FD\u505A\u7684\u5168\u90E8",correct:!0},{text:"\u4E0A\u4F20\u6587\u4EF6\u3002",explain:"\u5BF9! \u4F46\u8FD9\u8FD8\u4E0D\u662F\u5168\u90E8\u3002",correct:!0},{text:"\u770B\u770B\u4E0D\u540C\u7248\u672C\u7684\u5DEE\u5F02\u3002",explain:"\u6CA1\u9519! \u4E0D\u8FC7\uFF0C\u8FD9\u5E76\u4E0D\u662F\u4F60\u80FD\u505A\u7684\u5168\u90E8\u3002",correct:!0}]}}),Y=new z({}),Z=new T({props:{choices:[{text:"\u6A21\u578B\u7684\u7C97\u7565\u63CF\u8FF0\uFF0C\u56E0\u6B64\u4E0D\u5982\u6A21\u578B\u548C\u6807\u8BB0\u5668\u6587\u4EF6\u91CD\u8981\u3002",explain:"\u8FD9\u786E\u5B9E\u662F\u5BF9\u6A21\u578B\u7684\u63CF\u8FF0\uFF0C\u4F46\u5B83\u662F\u4E00\u4E2A\u91CD\u8981\u7684\u90E8\u5206: \u5982\u679C\u5B83\u4E0D\u5B8C\u6574\u6216\u7F3A\u4E4F\u6A21\u578B\u7684\u5B9E\u7528\u6027\u5927\u5E45\u51CF\u5C11\u3002"},{text:"\u4E00\u79CD\u786E\u4FDD\u518D\u73B0\u6027\u3001\u53EF\u91CD\u7528\u6027\u548C\u516C\u5E73\u6027\u7684\u65B9\u6CD5\u3002",explain:"\u6B63\u786E\uFF01\u5728\u6A21\u578B\u5361\u7247\u4E2D\u5171\u4EAB\u6B63\u786E\u7684\u4FE1\u606F\u5C06\u5E2E\u52A9\u7528\u6237\u5229\u7528\u60A8\u7684\u6A21\u578B\uFF0C\u5E76\u4E86\u89E3\u5176\u5C40\u9650\u6027\u548C\u504F\u89C1\u3002",correct:!0},{text:"\u4E00\u4E2A Python \u6587\u4EF6\uFF0C\u53EF\u4EE5\u8FD0\u884C\u5B83\u6765\u68C0\u7D22\u6709\u5173\u6A21\u578B\u7684\u4FE1\u606F\u3002",explain:"\u6A21\u578B\u5361\u7247\u662F\u7B80\u5355\u7684 Markdown \u6587\u4EF6\u3002"}]}}),ee=new z({});const Ht=[lr,ir],pe=[];function At(e,a){return e[0]==="pt"?0:1}return d=At(J),k=pe[d]=Ht[d](J),re=new z({}),oe=new T({props:{choices:[{text:"\u767B\u5F55\u7F51\u7AD9\u3002",explain:"\u8FD9\u5BF9\u4F60\u7684\u672C\u5730\u673A\u5668\u6CA1\u6709\u5E2E\u52A9\u3002"},{text:"\u5728\u7EC8\u7AEF\u4E2D\u8FD0\u884C'huggingface-cli login'\u3002",explain:"\u6B63\u786E\u2014\u2014\u2014\u2014\u8FD9\u5C06\u4E0B\u8F7D\u5E76\u7F13\u5B58\u60A8\u7684\u4E2A\u4EBA\u6807\u8BB0\u3002",correct:!0},{text:"\u5728\u7B14\u8BB0\u672C\u4E2D\u8FD0\u884C'notebook _ login ()'\u3002",explain:"\u6B63\u786E\u2014\u2014\u2014\u2014\u8FD9\u5C06\u663E\u793A\u4E00\u4E2A\u5C0F\u90E8\u4EF6\uFF0C\u8BA9\u60A8\u8FDB\u884C\u8EAB\u4EFD\u9A8C\u8BC1\u3002",correct:!0}]}}),se=new z({}),ne=new T({props:{choices:[{text:"\u901A\u8FC7\u76F4\u63A5\u5728\u6A21\u578B\u548C\u6807\u8BB0\u5668\u4E0A\u8C03\u7528 push _ to _ hub \u65B9\u6CD5\u3002",explain:"\u6B63\u786E\uFF01",correct:!0},{text:"\u5728 Python \u8FD0\u884C\u65F6\u4E2D\uFF0C\u5C06\u5B83\u4EEC\u5305\u88C5\u5728huggingface _ hub\u5B9E\u7528\u7A0B\u5E8F\u4E2D\u3002",explain:"\u6A21\u578B\u548C\u6807\u8BB0\u5668\u5DF2\u7ECF\u53D7\u76CA\u4E8E &amp;lt; code > huggingface _ hub &amp;lt;/code > \u5B9E\u7528\u7A0B\u5E8F: \u4E0D\u9700\u8981\u989D\u5916\u7684\u5305\u88C5\uFF01"},{text:"\u5C06\u5B83\u4EEC\u4FDD\u5B58\u5230\u78C1\u76D8\u5E76\u8C03\u7528 &amp;lt; code > transformers-cli upload-model &amp;lt;/code >",explain:"\u547D\u4EE4 &amp;lt; code > upload-model &amp;lt;/code > \u4E0D\u5B58\u5728\u3002"}]}}),ie=new z({}),le=new T({props:{choices:[{text:"\u63D0\u4EA4\u3002",explain:"\u6B63\u786E\uFF0C&amp;lt; code >git _ commit () &amp;lt;/ > \u65B9\u6CD5\u5C31\u662F\u4E3A\u6B64\u800C\u5B58\u5728\u7684\u3002",correct:!0},{text:"\u62C9\u4E00\u4E0B",explain:"\u8FD9\u5C31\u662F &amp;lt; code > git _ pull () &amp;lt;/code > \u65B9\u6CD5\u7684\u76EE\u7684\u3002",correct:!0},{text:"\u63A8\u4E00\u4E0B",explain:"\u65B9\u6CD5 &amp;lt; code > git _ push () &amp;lt;/code > \u53EF\u4EE5\u505A\u5230\u8FD9\u4E00\u70B9\u3002",correct:!0},{text:"\u5408\u5E76",explain:"\u4E0D\uFF0C\u8FD9\u4E2A\u64CD\u4F5C\u5728\u8FD9\u4E2A API \u4E2D\u662F\u4E0D\u53EF\u80FD\u7684\u3002"}]}}),{c(){h=o("meta"),x=u(),$(l.$$.fragment),y=u(),O=o("h1"),ot=w("\u7AE0\u672B\u5C0F\u6D4B\u8BD5"),Ne=u(),$(U.$$.fragment),qe=u(),ue=o("p"),st=w("\u8BA9\u6211\u4EEC\u6D4B\u8BD5\u4E00\u4E0B\u4F60\u5728\u672C\u7AE0\u6240\u5B66\u7684\u77E5\u8BC6\uFF01"),Ce=u(),E=o("h3"),F=o("a"),me=o("span"),$(j.$$.fragment),nt=u(),ce=o("span"),it=w("1.Hub\u4E0A\u7684\u6A21\u578B\u6709\u4EC0\u4E48\u9650\u5236\uFF1F"),Te=u(),$(D.$$.fragment),Fe=u(),H=o("h3"),M=o("a"),$e=o("span"),$(K.$$.fragment),lt=u(),ve=o("span"),pt=w("2.\u5982\u4F55\u7BA1\u7406Hub\u4E0A\u7684\u6A21\u578B\uFF1F"),Me=u(),$(V.$$.fragment),Ie=u(),A=o("h3"),I=o("a"),_e=o("span"),$(W.$$.fragment),ut=u(),ge=o("span"),ft=w("3.\u4F60\u80FD\u4F7F\u7528Hugging Face Hub\u7F51\u9875\u63A5\u53E3\u505A\u4EC0\u4E48\uFF1F"),Le=u(),$(X.$$.fragment),Ge=u(),P=o("h3"),L=o("a"),xe=o("span"),$(Y.$$.fragment),ht=u(),we=o("span"),mt=w("4.\u6A21\u578B\u5361\u662F\u4EC0\u4E48?"),Re=u(),$(Z.$$.fragment),Be=u(),S=o("h3"),G=o("a"),be=o("span"),$(ee.$$.fragment),ct=u(),te=o("span"),$t=w("5.\u54EA\u4E9B\u{1F917} Transformers \u5E93\u7684\u5BF9\u8C61\u53EF\u4EE5\u76F4\u63A5\u5728 Hub \u4E0A\u901A\u8FC7push "),de=o("em"),vt=w("to"),_t=w(" Hub ()\u5171\u4EAB\uFF1F"),Qe=u(),k.c(),fe=u(),N=o("h3"),R=o("a"),ke=o("span"),$(re.$$.fragment),gt=u(),ae=o("span"),xt=w("6.\u5F53\u4F7F\u7528push "),ye=o("em"),wt=w("to"),bt=w(" hub ()\u65B9\u6CD5\u6216 CLI \u5DE5\u5177\u65F6\uFF0C\u7B2C\u4E00\u6B65\u662F\u4EC0\u4E48\uFF1F"),ze=u(),$(oe.$$.fragment),Je=u(),q=o("h3"),B=o("a"),Ee=o("span"),$(se.$$.fragment),dt=u(),He=o("span"),kt=w("7.\u60A8\u6B63\u5728\u4F7F\u7528\u4E00\u4E2A\u6A21\u578B\u548C\u4E00\u4E2A\u6807\u8BB0\u5668\u2014\u2014\u2014\u2014\u5982\u4F55\u5C06\u5B83\u4EEC\u4E0A\u4F20\u5230 Hub\uFF1F"),Oe=u(),$(ne.$$.fragment),Ue=u(),C=o("h3"),Q=o("a"),Ae=o("span"),$(ie.$$.fragment),yt=u(),Pe=o("span"),Et=w("8.\u60A8\u53EF\u4EE5\u4F7F\u7528\u2019Repository\u2019\u7C7B\u6267\u884C\u54EA\u4E9B git \u64CD\u4F5C\uFF1F"),je=u(),$(le.$$.fragment),this.h()},l(e){const a=tr('[data-svelte="svelte-1phssyn"]',document.head);h=s(a,"META",{name:!0,content:!0}),a.forEach(t),x=f(e),v(l.$$.fragment,e),y=f(e),O=s(e,"H1",{id:!0});var Se=n(O);ot=b(Se,"\u7AE0\u672B\u5C0F\u6D4B\u8BD5"),Se.forEach(t),Ne=f(e),v(U.$$.fragment,e),qe=f(e),ue=s(e,"P",{});var he=n(ue);st=b(he,"\u8BA9\u6211\u4EEC\u6D4B\u8BD5\u4E00\u4E0B\u4F60\u5728\u672C\u7AE0\u6240\u5B66\u7684\u77E5\u8BC6\uFF01"),he.forEach(t),Ce=f(e),E=s(e,"H3",{class:!0});var Ke=n(E);F=s(Ke,"A",{id:!0,class:!0,href:!0});var Pt=n(F);me=s(Pt,"SPAN",{});var St=n(me);v(j.$$.fragment,St),St.forEach(t),Pt.forEach(t),nt=f(Ke),ce=s(Ke,"SPAN",{});var Nt=n(ce);it=b(Nt,"1.Hub\u4E0A\u7684\u6A21\u578B\u6709\u4EC0\u4E48\u9650\u5236\uFF1F"),Nt.forEach(t),Ke.forEach(t),Te=f(e),v(D.$$.fragment,e),Fe=f(e),H=s(e,"H3",{class:!0});var Ve=n(H);M=s(Ve,"A",{id:!0,class:!0,href:!0});var qt=n(M);$e=s(qt,"SPAN",{});var Ct=n($e);v(K.$$.fragment,Ct),Ct.forEach(t),qt.forEach(t),lt=f(Ve),ve=s(Ve,"SPAN",{});var Tt=n(ve);pt=b(Tt,"2.\u5982\u4F55\u7BA1\u7406Hub\u4E0A\u7684\u6A21\u578B\uFF1F"),Tt.forEach(t),Ve.forEach(t),Me=f(e),v(V.$$.fragment,e),Ie=f(e),A=s(e,"H3",{class:!0});var We=n(A);I=s(We,"A",{id:!0,class:!0,href:!0});var Ft=n(I);_e=s(Ft,"SPAN",{});var Mt=n(_e);v(W.$$.fragment,Mt),Mt.forEach(t),Ft.forEach(t),ut=f(We),ge=s(We,"SPAN",{});var It=n(ge);ft=b(It,"3.\u4F60\u80FD\u4F7F\u7528Hugging Face Hub\u7F51\u9875\u63A5\u53E3\u505A\u4EC0\u4E48\uFF1F"),It.forEach(t),We.forEach(t),Le=f(e),v(X.$$.fragment,e),Ge=f(e),P=s(e,"H3",{class:!0});var Xe=n(P);L=s(Xe,"A",{id:!0,class:!0,href:!0});var Lt=n(L);xe=s(Lt,"SPAN",{});var Gt=n(xe);v(Y.$$.fragment,Gt),Gt.forEach(t),Lt.forEach(t),ht=f(Xe),we=s(Xe,"SPAN",{});var Rt=n(we);mt=b(Rt,"4.\u6A21\u578B\u5361\u662F\u4EC0\u4E48?"),Rt.forEach(t),Xe.forEach(t),Re=f(e),v(Z.$$.fragment,e),Be=f(e),S=s(e,"H3",{class:!0});var Ye=n(S);G=s(Ye,"A",{id:!0,class:!0,href:!0});var Bt=n(G);be=s(Bt,"SPAN",{});var Qt=n(be);v(ee.$$.fragment,Qt),Qt.forEach(t),Bt.forEach(t),ct=f(Ye),te=s(Ye,"SPAN",{});var Ze=n(te);$t=b(Ze,"5.\u54EA\u4E9B\u{1F917} Transformers \u5E93\u7684\u5BF9\u8C61\u53EF\u4EE5\u76F4\u63A5\u5728 Hub \u4E0A\u901A\u8FC7push "),de=s(Ze,"EM",{});var zt=n(de);vt=b(zt,"to"),zt.forEach(t),_t=b(Ze," Hub ()\u5171\u4EAB\uFF1F"),Ze.forEach(t),Ye.forEach(t),Qe=f(e),k.l(e),fe=f(e),N=s(e,"H3",{class:!0});var et=n(N);R=s(et,"A",{id:!0,class:!0,href:!0});var Jt=n(R);ke=s(Jt,"SPAN",{});var Ot=n(ke);v(re.$$.fragment,Ot),Ot.forEach(t),Jt.forEach(t),gt=f(et),ae=s(et,"SPAN",{});var tt=n(ae);xt=b(tt,"6.\u5F53\u4F7F\u7528push "),ye=s(tt,"EM",{});var Ut=n(ye);wt=b(Ut,"to"),Ut.forEach(t),bt=b(tt," hub ()\u65B9\u6CD5\u6216 CLI \u5DE5\u5177\u65F6\uFF0C\u7B2C\u4E00\u6B65\u662F\u4EC0\u4E48\uFF1F"),tt.forEach(t),et.forEach(t),ze=f(e),v(oe.$$.fragment,e),Je=f(e),q=s(e,"H3",{class:!0});var rt=n(q);B=s(rt,"A",{id:!0,class:!0,href:!0});var jt=n(B);Ee=s(jt,"SPAN",{});var Dt=n(Ee);v(se.$$.fragment,Dt),Dt.forEach(t),jt.forEach(t),dt=f(rt),He=s(rt,"SPAN",{});var Kt=n(He);kt=b(Kt,"7.\u60A8\u6B63\u5728\u4F7F\u7528\u4E00\u4E2A\u6A21\u578B\u548C\u4E00\u4E2A\u6807\u8BB0\u5668\u2014\u2014\u2014\u2014\u5982\u4F55\u5C06\u5B83\u4EEC\u4E0A\u4F20\u5230 Hub\uFF1F"),Kt.forEach(t),rt.forEach(t),Oe=f(e),v(ne.$$.fragment,e),Ue=f(e),C=s(e,"H3",{class:!0});var at=n(C);Q=s(at,"A",{id:!0,class:!0,href:!0});var Vt=n(Q);Ae=s(Vt,"SPAN",{});var Wt=n(Ae);v(ie.$$.fragment,Wt),Wt.forEach(t),Vt.forEach(t),yt=f(at),Pe=s(at,"SPAN",{});var Xt=n(Pe);Et=b(Xt,"8.\u60A8\u53EF\u4EE5\u4F7F\u7528\u2019Repository\u2019\u7C7B\u6267\u884C\u54EA\u4E9B git \u64CD\u4F5C\uFF1F"),Xt.forEach(t),at.forEach(t),je=f(e),v(le.$$.fragment,e),this.h()},h(){i(h,"name","hf:doc:metadata"),i(h,"content",JSON.stringify(ur)),i(O,"id",""),i(F,"id","1.hub\u4E0A\u7684\u6A21\u578B\u6709\u4EC0\u4E48\u9650\u5236\uFF1F"),i(F,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(F,"href","#1.hub\u4E0A\u7684\u6A21\u578B\u6709\u4EC0\u4E48\u9650\u5236\uFF1F"),i(E,"class","relative group"),i(M,"id","2.\u5982\u4F55\u7BA1\u7406hub\u4E0A\u7684\u6A21\u578B\uFF1F"),i(M,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(M,"href","#2.\u5982\u4F55\u7BA1\u7406hub\u4E0A\u7684\u6A21\u578B\uFF1F"),i(H,"class","relative group"),i(I,"id","3.\u4F60\u80FD\u4F7F\u7528hugging-face-hub\u7F51\u9875\u63A5\u53E3\u505A\u4EC0\u4E48\uFF1F"),i(I,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(I,"href","#3.\u4F60\u80FD\u4F7F\u7528hugging-face-hub\u7F51\u9875\u63A5\u53E3\u505A\u4EC0\u4E48\uFF1F"),i(A,"class","relative group"),i(L,"id","4.\u6A21\u578B\u5361\u662F\u4EC0\u4E48?"),i(L,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(L,"href","#4.\u6A21\u578B\u5361\u662F\u4EC0\u4E48?"),i(P,"class","relative group"),i(G,"id","5.\u54EA\u4E9B\u{1F917}-transformers-\u5E93\u7684\u5BF9\u8C61\u53EF\u4EE5\u76F4\u63A5\u5728-hub-\u4E0A\u901A\u8FC7push-<em>-to-</em>-hub-()\u5171\u4EAB\uFF1F"),i(G,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(G,"href","#5.\u54EA\u4E9B\u{1F917}-transformers-\u5E93\u7684\u5BF9\u8C61\u53EF\u4EE5\u76F4\u63A5\u5728-hub-\u4E0A\u901A\u8FC7push-<em>-to-</em>-hub-()\u5171\u4EAB\uFF1F"),i(S,"class","relative group"),i(R,"id","6.\u5F53\u4F7F\u7528push-<em>-to-</em>-hub-()\u65B9\u6CD5\u6216-cli-\u5DE5\u5177\u65F6\uFF0C\u7B2C\u4E00\u6B65\u662F\u4EC0\u4E48\uFF1F"),i(R,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(R,"href","#6.\u5F53\u4F7F\u7528push-<em>-to-</em>-hub-()\u65B9\u6CD5\u6216-cli-\u5DE5\u5177\u65F6\uFF0C\u7B2C\u4E00\u6B65\u662F\u4EC0\u4E48\uFF1F"),i(N,"class","relative group"),i(B,"id","7.\u60A8\u6B63\u5728\u4F7F\u7528\u4E00\u4E2A\u6A21\u578B\u548C\u4E00\u4E2A\u6807\u8BB0\u5668\u2014\u2014\u2014\u2014\u5982\u4F55\u5C06\u5B83\u4EEC\u4E0A\u4F20\u5230-hub\uFF1F"),i(B,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(B,"href","#7.\u60A8\u6B63\u5728\u4F7F\u7528\u4E00\u4E2A\u6A21\u578B\u548C\u4E00\u4E2A\u6807\u8BB0\u5668\u2014\u2014\u2014\u2014\u5982\u4F55\u5C06\u5B83\u4EEC\u4E0A\u4F20\u5230-hub\uFF1F"),i(q,"class","relative group"),i(Q,"id","8.\u60A8\u53EF\u4EE5\u4F7F\u7528\u2019repository\u2019\u7C7B\u6267\u884C\u54EA\u4E9B-git-\u64CD\u4F5C\uFF1F"),i(Q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(Q,"href","#8.\u60A8\u53EF\u4EE5\u4F7F\u7528\u2019repository\u2019\u7C7B\u6267\u884C\u54EA\u4E9B-git-\u64CD\u4F5C\uFF1F"),i(C,"class","relative group")},m(e,a){r(document.head,h),p(e,x,a),_(l,e,a),p(e,y,a),p(e,O,a),r(O,ot),p(e,Ne,a),_(U,e,a),p(e,qe,a),p(e,ue,a),r(ue,st),p(e,Ce,a),p(e,E,a),r(E,F),r(F,me),_(j,me,null),r(E,nt),r(E,ce),r(ce,it),p(e,Te,a),_(D,e,a),p(e,Fe,a),p(e,H,a),r(H,M),r(M,$e),_(K,$e,null),r(H,lt),r(H,ve),r(ve,pt),p(e,Me,a),_(V,e,a),p(e,Ie,a),p(e,A,a),r(A,I),r(I,_e),_(W,_e,null),r(A,ut),r(A,ge),r(ge,ft),p(e,Le,a),_(X,e,a),p(e,Ge,a),p(e,P,a),r(P,L),r(L,xe),_(Y,xe,null),r(P,ht),r(P,we),r(we,mt),p(e,Re,a),_(Z,e,a),p(e,Be,a),p(e,S,a),r(S,G),r(G,be),_(ee,be,null),r(S,ct),r(S,te),r(te,$t),r(te,de),r(de,vt),r(te,_t),p(e,Qe,a),pe[d].m(e,a),p(e,fe,a),p(e,N,a),r(N,R),r(R,ke),_(re,ke,null),r(N,gt),r(N,ae),r(ae,xt),r(ae,ye),r(ye,wt),r(ae,bt),p(e,ze,a),_(oe,e,a),p(e,Je,a),p(e,q,a),r(q,B),r(B,Ee),_(se,Ee,null),r(q,dt),r(q,He),r(He,kt),p(e,Oe,a),_(ne,e,a),p(e,Ue,a),p(e,C,a),r(C,Q),r(Q,Ae),_(ie,Ae,null),r(C,yt),r(C,Pe),r(Pe,Et),p(e,je,a),_(le,e,a),De=!0},p(e,[a]){const Se={};a&1&&(Se.fw=e[0]),l.$set(Se);let he=d;d=At(e),d!==he&&(or(),m(pe[he],1,1,()=>{pe[he]=null}),rr(),k=pe[d],k||(k=pe[d]=Ht[d](e),k.c()),c(k,1),k.m(fe.parentNode,fe))},i(e){De||(c(l.$$.fragment,e),c(U.$$.fragment,e),c(j.$$.fragment,e),c(D.$$.fragment,e),c(K.$$.fragment,e),c(V.$$.fragment,e),c(W.$$.fragment,e),c(X.$$.fragment,e),c(Y.$$.fragment,e),c(Z.$$.fragment,e),c(ee.$$.fragment,e),c(k),c(re.$$.fragment,e),c(oe.$$.fragment,e),c(se.$$.fragment,e),c(ne.$$.fragment,e),c(ie.$$.fragment,e),c(le.$$.fragment,e),De=!0)},o(e){m(l.$$.fragment,e),m(U.$$.fragment,e),m(j.$$.fragment,e),m(D.$$.fragment,e),m(K.$$.fragment,e),m(V.$$.fragment,e),m(W.$$.fragment,e),m(X.$$.fragment,e),m(Y.$$.fragment,e),m(Z.$$.fragment,e),m(ee.$$.fragment,e),m(k),m(re.$$.fragment,e),m(oe.$$.fragment,e),m(se.$$.fragment,e),m(ne.$$.fragment,e),m(ie.$$.fragment,e),m(le.$$.fragment,e),De=!1},d(e){t(h),e&&t(x),g(l,e),e&&t(y),e&&t(O),e&&t(Ne),g(U,e),e&&t(qe),e&&t(ue),e&&t(Ce),e&&t(E),g(j),e&&t(Te),g(D,e),e&&t(Fe),e&&t(H),g(K),e&&t(Me),g(V,e),e&&t(Ie),e&&t(A),g(W),e&&t(Le),g(X,e),e&&t(Ge),e&&t(P),g(Y),e&&t(Re),g(Z,e),e&&t(Be),e&&t(S),g(ee),e&&t(Qe),pe[d].d(e),e&&t(fe),e&&t(N),g(re),e&&t(ze),g(oe,e),e&&t(Je),e&&t(q),g(se),e&&t(Oe),g(ne,e),e&&t(Ue),e&&t(C),g(ie),e&&t(je),g(le,e)}}}const ur={local:"",title:"\u7AE0\u672B\u5C0F\u6D4B\u8BD5"};function fr(J,h,x){let l="pt";return ar(()=>{const y=new URLSearchParams(window.location.search);x(0,l=y.get("fw")||"pt")}),[l]}class gr extends Yt{constructor(h){super();Zt(this,h,fr,pr,er,{})}}export{gr as default,ur as metadata};
