import{S as _e,i as me,s as Ee,e as c,k as y,w as ce,t as l,M as ve,c as i,d as a,m as b,x as ie,a as p,h as s,b as N,G as e,g as k,y as ne,q as pe,o as he,B as ue,v as $e}from"../../chunks/vendor-hf-doc-builder.js";import{T as de}from"../../chunks/Tip-hf-doc-builder.js";import{F as Ae}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";function Pe(M){let r,v,o,E,I,P,D,w,$,T,q,d,S,n,A,L,B;return{c(){r=c("p"),v=l("\u4E3A\u6B64\uFF0C\u60A8\u9700\u8981\u5229\u7528"),o=c("a"),E=l("\u7B2C\u4E09\u7AE0"),I=l("\u4E2D\u5B66\u5230\u7684\u6709\u5173Keras API\u3001"),P=c("a"),D=l("\u7B2C\u4E94\u7AE0"),w=l("\u4E2D\u7684 \u{1F917} Datasets \u5E93\u4EE5\u53CA"),$=c("a"),T=l("\u7B2C\u516D\u7AE0"),q=l("\u4E2D\u7684 \u{1F917} Tokenizers \u5E93\u7684\u6240\u6709\u77E5\u8BC6\u3002\u6211\u4EEC\u8FD8\u4F1A\u5C06\u7ED3\u679C\u4E0A\u4F20\u5230\u6A21\u578B\u4E2D\u5FC3\uFF0C\u5C31\u50CF\u6211\u4EEC\u5728"),d=c("a"),S=l("\u7B2C\u56DB\u7AE0"),n=l("\u4E2D\u6240\u505A\u7684\u90A3\u6837\uFF0C\u6240\u4EE5\u8FD9\u786E\u5B9E\u662F\u5C06\u4E4B\u524D\u6240\u6709\u5185\u5BB9\u6C47\u96C6\u5728\u4E00\u8D77\u7684\u7AE0\u8282\uFF01"),A=y(),L=c("p"),B=l("\u6BCF\u4E2A\u90E8\u5206\u90FD\u53EF\u4EE5\u72EC\u7ACB\u9605\u8BFB\u3002"),this.h()},l(u){r=i(u,"P",{});var f=p(r);v=s(f,"\u4E3A\u6B64\uFF0C\u60A8\u9700\u8981\u5229\u7528"),o=i(f,"A",{href:!0});var G=p(o);E=s(G,"\u7B2C\u4E09\u7AE0"),G.forEach(a),I=s(f,"\u4E2D\u5B66\u5230\u7684\u6709\u5173Keras API\u3001"),P=i(f,"A",{href:!0});var _=p(P);D=s(_,"\u7B2C\u4E94\u7AE0"),_.forEach(a),w=s(f,"\u4E2D\u7684 \u{1F917} Datasets \u5E93\u4EE5\u53CA"),$=i(f,"A",{href:!0});var h=p($);T=s(h,"\u7B2C\u516D\u7AE0"),h.forEach(a),q=s(f,"\u4E2D\u7684 \u{1F917} Tokenizers \u5E93\u7684\u6240\u6709\u77E5\u8BC6\u3002\u6211\u4EEC\u8FD8\u4F1A\u5C06\u7ED3\u679C\u4E0A\u4F20\u5230\u6A21\u578B\u4E2D\u5FC3\uFF0C\u5C31\u50CF\u6211\u4EEC\u5728"),d=i(f,"A",{href:!0});var R=p(d);S=s(R,"\u7B2C\u56DB\u7AE0"),R.forEach(a),n=s(f,"\u4E2D\u6240\u505A\u7684\u90A3\u6837\uFF0C\u6240\u4EE5\u8FD9\u786E\u5B9E\u662F\u5C06\u4E4B\u524D\u6240\u6709\u5185\u5BB9\u6C47\u96C6\u5728\u4E00\u8D77\u7684\u7AE0\u8282\uFF01"),f.forEach(a),A=b(u),L=i(u,"P",{});var C=p(L);B=s(C,"\u6BCF\u4E2A\u90E8\u5206\u90FD\u53EF\u4EE5\u72EC\u7ACB\u9605\u8BFB\u3002"),C.forEach(a),this.h()},h(){N(o,"href","/course/chapter3"),N(P,"href","/course/chapter5"),N($,"href","/course/chapter6"),N(d,"href","/course/chapter4")},m(u,f){k(u,r,f),e(r,v),e(r,o),e(o,E),e(r,I),e(r,P),e(P,D),e(r,w),e(r,$),e($,T),e(r,q),e(r,d),e(d,S),e(r,n),k(u,A,f),k(u,L,f),e(L,B)},d(u){u&&a(r),u&&a(A),u&&a(L)}}}function we(M){let r,v,o,E,I,P,D,w,$,T,q,d,S,n,A,L,B,u,f,G;return{c(){r=c("p"),v=l("\u4E3A\u6B64\uFF0C\u60A8\u9700\u8981\u5229\u7528"),o=c("a"),E=l("\u7B2C\u4E09\u7AE0"),I=l("\u4E2D\u5B66\u5230\u7684"),P=c("code"),D=l("Trainer"),w=l(" API \u548C\u{1F917}Accelerate \u5E93\u3001"),$=c("a"),T=l("\u7B2C\u4E94\u7AE0"),q=l("\u4E2D\u7684 \u{1F917} Datasets \u5E93\u4EE5\u53CA"),d=c("a"),S=l("\u7B2C\u516D\u7AE0"),n=l("\u4E2D\u7684 \u{1F917} Tokenizers \u5E93\u7684\u6240\u6709\u77E5\u8BC6\u3002\u6211\u4EEC\u8FD8\u4F1A\u5C06\u7ED3\u679C\u4E0A\u4F20\u5230\u6A21\u578B\u4E2D\u5FC3\uFF0C\u5C31\u50CF\u6211\u4EEC\u5728"),A=c("a"),L=l("\u7B2C\u56DB\u7AE0"),B=l("\u4E2D\u6240\u505A\u7684\u90A3\u6837\uFF0C\u6240\u4EE5\u8FD9\u786E\u5B9E\u662F\u5C06\u4E4B\u524D\u6240\u6709\u5185\u5BB9\u6C47\u96C6\u5728\u4E00\u8D77\u7684\u7AE0\u8282\uFF01"),u=y(),f=c("p"),G=l("\u6BCF\u4E2A\u90E8\u5206\u90FD\u53EF\u4EE5\u72EC\u7ACB\u9605\u8BFB\uFF0C\u5E76\u5C06\u5411\u60A8\u5C55\u793A\u5982\u4F55\u4F7F\u7528API\u6216\u6309\u7167\u60A8\u81EA\u5DF1\u7684\u8BAD\u7EC3\u5FAA\u73AF\u8BAD\u7EC3\u6A21\u578B\uFF0C\u4F7F\u7528\u{1F917} Accelerate \u52A0\u901F\u3002\u4F60\u53EF\u4EE5\u968F\u610F\u8DF3\u8FC7\u5176\u4E2D\u4E00\u90E8\u5206\uFF0C\u628A\u6CE8\u610F\u529B\u96C6\u4E2D\u5728\u4F60\u6700\u611F\u5174\u8DA3\u7684\u90A3\u4E00\u90E8\u5206\uFF1AAPI\u53EF\u4EE5\u4F18\u5316\u6216\u8BAD\u7EC3\u60A8\u7684\u6A21\u578B\u800C\u65E0\u9700\u62C5\u5FC3\u5E55\u540E\u53D1\u751F\u4E86\u4EC0\u4E48\uFF0C\u800C\u8BAD\u7EC3\u5FAA\u73AF\u4F7F\u7528\u53EF\u4EE5\u8BA9\u60A8\u66F4\u8F7B\u677E\u5730\u81EA\u5B9A\u4E49\u6240\u9700\u7684\u4EFB\u4F55\u7ED3\u6784\u3002"),this.h()},l(_){r=i(_,"P",{});var h=p(r);v=s(h,"\u4E3A\u6B64\uFF0C\u60A8\u9700\u8981\u5229\u7528"),o=i(h,"A",{href:!0});var R=p(o);E=s(R,"\u7B2C\u4E09\u7AE0"),R.forEach(a),I=s(h,"\u4E2D\u5B66\u5230\u7684"),P=i(h,"CODE",{});var C=p(P);D=s(C,"Trainer"),C.forEach(a),w=s(h," API \u548C\u{1F917}Accelerate \u5E93\u3001"),$=i(h,"A",{href:!0});var U=p($);T=s(U,"\u7B2C\u4E94\u7AE0"),U.forEach(a),q=s(h,"\u4E2D\u7684 \u{1F917} Datasets \u5E93\u4EE5\u53CA"),d=i(h,"A",{href:!0});var H=p(d);S=s(H,"\u7B2C\u516D\u7AE0"),H.forEach(a),n=s(h,"\u4E2D\u7684 \u{1F917} Tokenizers \u5E93\u7684\u6240\u6709\u77E5\u8BC6\u3002\u6211\u4EEC\u8FD8\u4F1A\u5C06\u7ED3\u679C\u4E0A\u4F20\u5230\u6A21\u578B\u4E2D\u5FC3\uFF0C\u5C31\u50CF\u6211\u4EEC\u5728"),A=i(h,"A",{href:!0});var F=p(A);L=s(F,"\u7B2C\u56DB\u7AE0"),F.forEach(a),B=s(h,"\u4E2D\u6240\u505A\u7684\u90A3\u6837\uFF0C\u6240\u4EE5\u8FD9\u786E\u5B9E\u662F\u5C06\u4E4B\u524D\u6240\u6709\u5185\u5BB9\u6C47\u96C6\u5728\u4E00\u8D77\u7684\u7AE0\u8282\uFF01"),h.forEach(a),u=b(_),f=i(_,"P",{});var J=p(f);G=s(J,"\u6BCF\u4E2A\u90E8\u5206\u90FD\u53EF\u4EE5\u72EC\u7ACB\u9605\u8BFB\uFF0C\u5E76\u5C06\u5411\u60A8\u5C55\u793A\u5982\u4F55\u4F7F\u7528API\u6216\u6309\u7167\u60A8\u81EA\u5DF1\u7684\u8BAD\u7EC3\u5FAA\u73AF\u8BAD\u7EC3\u6A21\u578B\uFF0C\u4F7F\u7528\u{1F917} Accelerate \u52A0\u901F\u3002\u4F60\u53EF\u4EE5\u968F\u610F\u8DF3\u8FC7\u5176\u4E2D\u4E00\u90E8\u5206\uFF0C\u628A\u6CE8\u610F\u529B\u96C6\u4E2D\u5728\u4F60\u6700\u611F\u5174\u8DA3\u7684\u90A3\u4E00\u90E8\u5206\uFF1AAPI\u53EF\u4EE5\u4F18\u5316\u6216\u8BAD\u7EC3\u60A8\u7684\u6A21\u578B\u800C\u65E0\u9700\u62C5\u5FC3\u5E55\u540E\u53D1\u751F\u4E86\u4EC0\u4E48\uFF0C\u800C\u8BAD\u7EC3\u5FAA\u73AF\u4F7F\u7528\u53EF\u4EE5\u8BA9\u60A8\u66F4\u8F7B\u677E\u5730\u81EA\u5B9A\u4E49\u6240\u9700\u7684\u4EFB\u4F55\u7ED3\u6784\u3002"),J.forEach(a),this.h()},h(){N(o,"href","/course/chapter3"),N($,"href","/course/chapter5"),N(d,"href","/course/chapter6"),N(A,"href","/course/chapter4")},m(_,h){k(_,r,h),e(r,v),e(r,o),e(o,E),e(r,I),e(r,P),e(P,D),e(r,w),e(r,$),e($,T),e(r,q),e(r,d),e(d,S),e(r,n),e(r,A),e(A,L),e(r,B),k(_,u,h),k(_,f,h),e(f,G)},d(_){_&&a(r),_&&a(u),_&&a(f)}}}function ke(M){let r,v;return{c(){r=c("p"),v=l("\u5982\u679C\u60A8\u6309\u987A\u5E8F\u9605\u8BFB\u8FD9\u4E9B\u90E8\u5206\uFF0C\u60A8\u4F1A\u6CE8\u610F\u5230\u5B83\u4EEC\u6709\u5F88\u591A\u5171\u540C\u7684\u4EE3\u7801\u548C\u9648\u8FF0\u3002 \u91CD\u590D\u662F\u6709\u610F\u4E3A\u4E4B\u7684\uFF0C\u8BA9\u60A8\u53EF\u4EE5\u6DF1\u5165\uFF08\u6216\u7A0D\u540E\u8FD4\u56DE\uFF09\u4EFB\u4F55\u60A8\u611F\u5174\u8DA3\u7684\u4EFB\u52A1\u5E76\u627E\u5230\u4E00\u4E2A\u5B8C\u6574\u7684\u5DE5\u4F5C\u793A\u4F8B\u3002")},l(o){r=i(o,"P",{});var E=p(r);v=s(E,"\u5982\u679C\u60A8\u6309\u987A\u5E8F\u9605\u8BFB\u8FD9\u4E9B\u90E8\u5206\uFF0C\u60A8\u4F1A\u6CE8\u610F\u5230\u5B83\u4EEC\u6709\u5F88\u591A\u5171\u540C\u7684\u4EE3\u7801\u548C\u9648\u8FF0\u3002 \u91CD\u590D\u662F\u6709\u610F\u4E3A\u4E4B\u7684\uFF0C\u8BA9\u60A8\u53EF\u4EE5\u6DF1\u5165\uFF08\u6216\u7A0D\u540E\u8FD4\u56DE\uFF09\u4EFB\u4F55\u60A8\u611F\u5174\u8DA3\u7684\u4EFB\u52A1\u5E76\u627E\u5230\u4E00\u4E2A\u5B8C\u6574\u7684\u5DE5\u4F5C\u793A\u4F8B\u3002"),E.forEach(a)},m(o,E){k(o,r,E),e(r,v)},d(o){o&&a(r)}}}function Ie(M){let r,v,o,E,I,P,D,w,$,T,q,d,S,n,A,L,B,u,f,G,_,h,R,C,U,H,F,J,Z,Q,g,W,j,K,X;o=new Ae({props:{fw:M[0]}});function ee(t,m){return t[0]==="pt"?we:Pe}let Y=ee(M),x=Y(M);return K=new de({props:{$$slots:{default:[ke]},$$scope:{ctx:M}}}),{c(){r=c("meta"),v=y(),ce(o.$$.fragment),E=y(),I=c("h1"),P=l("\u7AE0\u8282\u7B80\u4ECB"),D=y(),w=c("p"),$=l("\u5728"),T=c("a"),q=l("\u7B2C\u4E09\u7AE0"),d=l("\uFF0C\u60A8\u4E86\u89E3\u4E86\u5982\u4F55\u5FAE\u8C03\u6587\u672C\u5206\u7C7B\u7684\u6A21\u578B\u3002\u5728\u672C\u7AE0\u4E2D\uFF0C\u6211\u4EEC\u5C06\u5904\u7406\u4EE5\u4E0B\u5E38\u89C1NLP\u4EFB\u52A1\uFF1A"),S=y(),n=c("ul"),A=c("li"),L=l("\u6807\u8BB0(token)\u5206\u7C7B"),B=y(),u=c("li"),f=l("\u906E\u7F69\u8BED\u8A00\u5EFA\u6A21\uFF08\u5982BERT\uFF09"),G=y(),_=c("li"),h=l("\u63D0\u53D6\u6587\u672C\u6458\u8981"),R=y(),C=c("li"),U=l("\u7FFB\u8BD1"),H=y(),F=c("li"),J=l("\u56E0\u679C\u8BED\u8A00\u5EFA\u6A21\u9884\u8BAD\u7EC3\uFF08\u5982GPT-2\uFF09"),Z=y(),Q=c("li"),g=l("\u95EE\u7B54"),W=y(),x.c(),j=y(),ce(K.$$.fragment),this.h()},l(t){const m=ve('[data-svelte="svelte-1phssyn"]',document.head);r=i(m,"META",{name:!0,content:!0}),m.forEach(a),v=b(t),ie(o.$$.fragment,t),E=b(t),I=i(t,"H1",{id:!0});var V=p(I);P=s(V,"\u7AE0\u8282\u7B80\u4ECB"),V.forEach(a),D=b(t),w=i(t,"P",{});var O=p(w);$=s(O,"\u5728"),T=i(O,"A",{href:!0});var te=p(T);q=s(te,"\u7B2C\u4E09\u7AE0"),te.forEach(a),d=s(O,"\uFF0C\u60A8\u4E86\u89E3\u4E86\u5982\u4F55\u5FAE\u8C03\u6587\u672C\u5206\u7C7B\u7684\u6A21\u578B\u3002\u5728\u672C\u7AE0\u4E2D\uFF0C\u6211\u4EEC\u5C06\u5904\u7406\u4EE5\u4E0B\u5E38\u89C1NLP\u4EFB\u52A1\uFF1A"),O.forEach(a),S=b(t),n=i(t,"UL",{});var z=p(n);A=i(z,"LI",{});var re=p(A);L=s(re,"\u6807\u8BB0(token)\u5206\u7C7B"),re.forEach(a),B=b(z),u=i(z,"LI",{});var ae=p(u);f=s(ae,"\u906E\u7F69\u8BED\u8A00\u5EFA\u6A21\uFF08\u5982BERT\uFF09"),ae.forEach(a),G=b(z),_=i(z,"LI",{});var le=p(_);h=s(le,"\u63D0\u53D6\u6587\u672C\u6458\u8981"),le.forEach(a),R=b(z),C=i(z,"LI",{});var se=p(C);U=s(se,"\u7FFB\u8BD1"),se.forEach(a),H=b(z),F=i(z,"LI",{});var oe=p(F);J=s(oe,"\u56E0\u679C\u8BED\u8A00\u5EFA\u6A21\u9884\u8BAD\u7EC3\uFF08\u5982GPT-2\uFF09"),oe.forEach(a),Z=b(z),Q=i(z,"LI",{});var fe=p(Q);g=s(fe,"\u95EE\u7B54"),fe.forEach(a),z.forEach(a),W=b(t),x.l(t),j=b(t),ie(K.$$.fragment,t),this.h()},h(){N(r,"name","hf:doc:metadata"),N(r,"content",JSON.stringify(Te)),N(I,"id",""),N(T,"href","/course/chapter3")},m(t,m){e(document.head,r),k(t,v,m),ne(o,t,m),k(t,E,m),k(t,I,m),e(I,P),k(t,D,m),k(t,w,m),e(w,$),e(w,T),e(T,q),e(w,d),k(t,S,m),k(t,n,m),e(n,A),e(A,L),e(n,B),e(n,u),e(u,f),e(n,G),e(n,_),e(_,h),e(n,R),e(n,C),e(C,U),e(n,H),e(n,F),e(F,J),e(n,Z),e(n,Q),e(Q,g),k(t,W,m),x.m(t,m),k(t,j,m),ne(K,t,m),X=!0},p(t,[m]){const V={};m&1&&(V.fw=t[0]),o.$set(V),Y!==(Y=ee(t))&&(x.d(1),x=Y(t),x&&(x.c(),x.m(j.parentNode,j)));const O={};m&2&&(O.$$scope={dirty:m,ctx:t}),K.$set(O)},i(t){X||(pe(o.$$.fragment,t),pe(K.$$.fragment,t),X=!0)},o(t){he(o.$$.fragment,t),he(K.$$.fragment,t),X=!1},d(t){a(r),t&&a(v),ue(o,t),t&&a(E),t&&a(I),t&&a(D),t&&a(w),t&&a(S),t&&a(n),t&&a(W),x.d(t),t&&a(j),ue(K,t)}}}const Te={local:"",title:"\u7AE0\u8282\u7B80\u4ECB"};function Le(M,r,v){let o="pt";return $e(()=>{const E=new URLSearchParams(window.location.search);v(0,o=E.get("fw")||"pt")}),[o]}class Se extends _e{constructor(r){super();me(this,r,Le,Ie,Ee,{})}}export{Se as default,Te as metadata};
