import{S as It,i as Ot,s as Xt,e as r,k as s,t as d,w as kt,M as zt,c as o,d as a,m as n,a as l,h as f,x as Ft,b as Rt,G as t,g as p,y as Jt,L as Ut,q as Yt,o as jt,B as Kt,v as Qt}from"../../chunks/vendor-hf-doc-builder.js";import{C as Vt}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function Wt(Bt){let i,k,v,K,z,R,F,B,Q,J,A,V,U,u,$,c,C,W,Z,w,g,tt,x,et,at,m,h,G,rt,ot,H,lt,st,M,nt,dt,_,N,ft,Tt,S,it,ct,q,mt,ht,E,I,_t,Et,O,pt,ut,X,vt,Y;return R=new Vt({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),{c(){i=r("meta"),k=s(),v=r("h1"),K=d("\u603B\u7ED3"),z=s(),kt(R.$$.fragment),F=s(),B=r("p"),Q=d("\u5728\u672C\u7AE0\u4E2D\uFF0C\u60A8\u4E86\u89E3\u4E86\u5982\u4F55\u4F7F\u7528\u6765\u81EA\u{1F917}Transformers\u7684\u51FD\u6570pipeline()\u5904\u7406\u4E0D\u540C\u7684NLP\u4EFB\u52A1\u3002\u60A8\u8FD8\u4E86\u89E3\u4E86\u5982\u4F55\u5728\u6A21\u578B\u4E2D\u5FC3\uFF08hub\uFF09\u4E2D\u641C\u7D22\u548C\u4F7F\u7528\u6A21\u578B\uFF0C\u4EE5\u53CA\u5982\u4F55\u4F7F\u7528\u63A8\u7406API\u76F4\u63A5\u5728\u6D4F\u89C8\u5668\u4E2D\u6D4B\u8BD5\u6A21\u578B\u3002"),J=s(),A=r("p"),V=d("\u6211\u4EEC\u8BA8\u8BBA\u4E86Transformer\u6A21\u578B\u5982\u4F55\u5728\u5E94\u7528\u5C42\u4E0A\u5DE5\u4F5C\uFF0C\u5E76\u8BA8\u8BBA\u4E86\u8FC1\u79FB\u5B66\u4E60\u548C\u5FAE\u8C03\u7684\u91CD\u8981\u6027\u3002\u60A8\u53EF\u4EE5\u4F7F\u7528\u5B8C\u6574\u7684\u4F53\u7CFB\u7ED3\u6784\uFF0C\u4E5F\u53EF\u4EE5\u4EC5\u4F7F\u7528\u7F16\u7801\u5668\u6216\u89E3\u7801\u5668\uFF0C\u5177\u4F53\u53D6\u51B3\u4E8E\u60A8\u8981\u89E3\u51B3\u7684\u4EFB\u52A1\u7C7B\u578B\u3002\u4E0B\u8868\u603B\u7ED3\u4E86\u8FD9\u4E00\u70B9\uFF1A"),U=s(),u=r("table"),$=r("thead"),c=r("tr"),C=r("th"),W=d("\u6A21\u578B"),Z=s(),w=r("th"),g=d("\u793A\u4F8B"),tt=s(),x=r("th"),et=d("\u4EFB\u52A1"),at=s(),m=r("tbody"),h=r("tr"),G=r("td"),rt=d("\u7F16\u7801\u5668"),ot=s(),H=r("td"),lt=d("ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa"),st=s(),M=r("td"),nt=d("\u53E5\u5B50\u5206\u7C7B\u3001\u547D\u540D\u5B9E\u4F53\u8BC6\u522B\u3001\u4ECE\u6587\u672C\u4E2D\u63D0\u53D6\u7B54\u6848"),dt=s(),_=r("tr"),N=r("td"),ft=d("\u89E3\u7801\u5668"),Tt=s(),S=r("td"),it=d("CTRL, GPT, GPT-2, Transformer XL"),ct=s(),q=r("td"),mt=d("\u6587\u672C\u751F\u6210"),ht=s(),E=r("tr"),I=r("td"),_t=d("\u7F16\u7801\u5668-\u89E3\u7801\u5668"),Et=s(),O=r("td"),pt=d("BART, T5, Marian, mBART"),ut=s(),X=r("td"),vt=d("\u6587\u672C\u6458\u8981\u3001\u7FFB\u8BD1\u3001\u751F\u6210\u95EE\u9898\u7684\u56DE\u7B54"),this.h()},l(e){const T=zt('[data-svelte="svelte-1phssyn"]',document.head);i=o(T,"META",{name:!0,content:!0}),T.forEach(a),k=n(e),v=o(e,"H1",{id:!0});var At=l(v);K=f(At,"\u603B\u7ED3"),At.forEach(a),z=n(e),Ft(R.$$.fragment,e),F=n(e),B=o(e,"P",{});var Dt=l(B);Q=f(Dt,"\u5728\u672C\u7AE0\u4E2D\uFF0C\u60A8\u4E86\u89E3\u4E86\u5982\u4F55\u4F7F\u7528\u6765\u81EA\u{1F917}Transformers\u7684\u51FD\u6570pipeline()\u5904\u7406\u4E0D\u540C\u7684NLP\u4EFB\u52A1\u3002\u60A8\u8FD8\u4E86\u89E3\u4E86\u5982\u4F55\u5728\u6A21\u578B\u4E2D\u5FC3\uFF08hub\uFF09\u4E2D\u641C\u7D22\u548C\u4F7F\u7528\u6A21\u578B\uFF0C\u4EE5\u53CA\u5982\u4F55\u4F7F\u7528\u63A8\u7406API\u76F4\u63A5\u5728\u6D4F\u89C8\u5668\u4E2D\u6D4B\u8BD5\u6A21\u578B\u3002"),Dt.forEach(a),J=n(e),A=o(e,"P",{});var Lt=l(A);V=f(Lt,"\u6211\u4EEC\u8BA8\u8BBA\u4E86Transformer\u6A21\u578B\u5982\u4F55\u5728\u5E94\u7528\u5C42\u4E0A\u5DE5\u4F5C\uFF0C\u5E76\u8BA8\u8BBA\u4E86\u8FC1\u79FB\u5B66\u4E60\u548C\u5FAE\u8C03\u7684\u91CD\u8981\u6027\u3002\u60A8\u53EF\u4EE5\u4F7F\u7528\u5B8C\u6574\u7684\u4F53\u7CFB\u7ED3\u6784\uFF0C\u4E5F\u53EF\u4EE5\u4EC5\u4F7F\u7528\u7F16\u7801\u5668\u6216\u89E3\u7801\u5668\uFF0C\u5177\u4F53\u53D6\u51B3\u4E8E\u60A8\u8981\u89E3\u51B3\u7684\u4EFB\u52A1\u7C7B\u578B\u3002\u4E0B\u8868\u603B\u7ED3\u4E86\u8FD9\u4E00\u70B9\uFF1A"),Lt.forEach(a),U=n(e),u=o(e,"TABLE",{});var j=l(u);$=o(j,"THEAD",{});var Pt=l($);c=o(Pt,"TR",{});var D=l(c);C=o(D,"TH",{});var bt=l(C);W=f(bt,"\u6A21\u578B"),bt.forEach(a),Z=n(D),w=o(D,"TH",{});var yt=l(w);g=f(yt,"\u793A\u4F8B"),yt.forEach(a),tt=n(D),x=o(D,"TH",{});var $t=l(x);et=f($t,"\u4EFB\u52A1"),$t.forEach(a),D.forEach(a),Pt.forEach(a),at=n(j),m=o(j,"TBODY",{});var L=l(m);h=o(L,"TR",{});var P=l(h);G=o(P,"TD",{});var Ct=l(G);rt=f(Ct,"\u7F16\u7801\u5668"),Ct.forEach(a),ot=n(P),H=o(P,"TD",{});var wt=l(H);lt=f(wt,"ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa"),wt.forEach(a),st=n(P),M=o(P,"TD",{});var xt=l(M);nt=f(xt,"\u53E5\u5B50\u5206\u7C7B\u3001\u547D\u540D\u5B9E\u4F53\u8BC6\u522B\u3001\u4ECE\u6587\u672C\u4E2D\u63D0\u53D6\u7B54\u6848"),xt.forEach(a),P.forEach(a),dt=n(L),_=o(L,"TR",{});var b=l(_);N=o(b,"TD",{});var Gt=l(N);ft=f(Gt,"\u89E3\u7801\u5668"),Gt.forEach(a),Tt=n(b),S=o(b,"TD",{});var Ht=l(S);it=f(Ht,"CTRL, GPT, GPT-2, Transformer XL"),Ht.forEach(a),ct=n(b),q=o(b,"TD",{});var Mt=l(q);mt=f(Mt,"\u6587\u672C\u751F\u6210"),Mt.forEach(a),b.forEach(a),ht=n(L),E=o(L,"TR",{});var y=l(E);I=o(y,"TD",{});var Nt=l(I);_t=f(Nt,"\u7F16\u7801\u5668-\u89E3\u7801\u5668"),Nt.forEach(a),Et=n(y),O=o(y,"TD",{});var St=l(O);pt=f(St,"BART, T5, Marian, mBART"),St.forEach(a),ut=n(y),X=o(y,"TD",{});var qt=l(X);vt=f(qt,"\u6587\u672C\u6458\u8981\u3001\u7FFB\u8BD1\u3001\u751F\u6210\u95EE\u9898\u7684\u56DE\u7B54"),qt.forEach(a),y.forEach(a),L.forEach(a),j.forEach(a),this.h()},h(){Rt(i,"name","hf:doc:metadata"),Rt(i,"content",JSON.stringify(Zt)),Rt(v,"id","")},m(e,T){t(document.head,i),p(e,k,T),p(e,v,T),t(v,K),p(e,z,T),Jt(R,e,T),p(e,F,T),p(e,B,T),t(B,Q),p(e,J,T),p(e,A,T),t(A,V),p(e,U,T),p(e,u,T),t(u,$),t($,c),t(c,C),t(C,W),t(c,Z),t(c,w),t(w,g),t(c,tt),t(c,x),t(x,et),t(u,at),t(u,m),t(m,h),t(h,G),t(G,rt),t(h,ot),t(h,H),t(H,lt),t(h,st),t(h,M),t(M,nt),t(m,dt),t(m,_),t(_,N),t(N,ft),t(_,Tt),t(_,S),t(S,it),t(_,ct),t(_,q),t(q,mt),t(m,ht),t(m,E),t(E,I),t(I,_t),t(E,Et),t(E,O),t(O,pt),t(E,ut),t(E,X),t(X,vt),Y=!0},p:Ut,i(e){Y||(Yt(R.$$.fragment,e),Y=!0)},o(e){jt(R.$$.fragment,e),Y=!1},d(e){a(i),e&&a(k),e&&a(v),e&&a(z),Kt(R,e),e&&a(F),e&&a(B),e&&a(J),e&&a(A),e&&a(U),e&&a(u)}}}const Zt={local:"",title:"\u603B\u7ED3"};function gt(Bt){return Qt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class re extends It{constructor(i){super();Ot(this,i,gt,Wt,Xt,{})}}export{re as default,Zt as metadata};
