import{S as Ve,i as Ze,s as et,e as o,k as f,w as E,t as L,l as je,M as tt,c as l,d as r,m as h,x as b,a as i,h as U,b as n,G as a,g as p,y,o as v,p as rt,q as x,B as k,v as at,n as st}from"../../chunks/vendor-hf-doc-builder.js";import{I as me}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{Q as pe}from"../../chunks/Question-hf-doc-builder.js";import{F as ot}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";function lt(ye){let m,w,A,N,B,H,se,R,F,V,P,q,K,I,ne,T,fe,W,M,oe,_,d,Y,g,he,D,ce,le,z,Q;return N=new me({}),F=new pe({props:{choices:[{text:"\u4EC0\u4E48\u90FD\u6CA1\u6709\uFF0C\u4F46\u662F\u4F60\u5F97\u5230\u4E86\u4E00\u4E2A\u8B66\u544A\u3002",explain:"\u4F60\u786E\u5B9E\u5F97\u5230\u4E86\u8B66\u544A\uFF0C\u4F46\u8FD9\u8FD8\u4E0D\u662F\u5168\u90E8\uFF01"},{text:"\u4E22\u5F03\u9884\u8BAD\u7EC3\u6A21\u578B\u7684\u5934\u90E8\uFF0C\u5E76\u63D2\u5165\u4E00\u4E2A\u65B0\u7684\u5934\u90E8\u9002\u5408\u7684\u4EFB\u52A1\u3002",explain:"\u9700\u8981\u4E00\u4E2A\u7279\u6B8A\u7684\u6807\u8BB0\u6765\u5206\u9694\u8FD9\u4E24\u4E2A\u53E5\u5B50\uFF0C\u4F46\u8FD9\u4E0D\u662F\u552F\u4E00\u7684\u4E8B\u60C5\uFF01",correct:!0},{text:"\u4E22\u5F03\u9884\u5148\u8BAD\u7EC3\u597D\u7684\u6A21\u578B\u5934\u90E8\u3002",explain:"Something else needs to happen. \u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u6CA1\u6709\uFF0C\u56E0\u4E3A\u6A21\u578B\u4ECD\u7136\u53EF\u4EE5\u9488\u5BF9\u4E0D\u540C\u7684\u4EFB\u52A1\u8FDB\u884C\u5FAE\u8C03\u3002",explain:"\u8FD9\u4E2A\u7ECF\u8FC7\u8BAD\u7EC3\u7684\u6A21\u7279\u7684\u5934\u6CA1\u6709\u7ECF\u8FC7\u8BAD\u7EC3\u6765\u89E3\u51B3\u8FD9\u4E2A\u95EE\u9898\uFF0C\u6240\u4EE5\u6211\u4EEC\u5E94\u8BE5\u4E22\u6389\u8FD9\u4E2A\u5934\uFF01"}]}}),I=new me({}),M=new pe({props:{choices:[{text:"\u8BE5\u6A21\u578B\u7684\u5DE5\u4F5C\u5728\u4E00\u4E2A TPU \u7684\u76D2\u5B50\u3002",explain:"\u5DEE\u4E0D\u591A\uFF01\u8FD8\u9700\u8981\u8FDB\u884C\u4E00\u4E9B\u5C0F\u7684\u989D\u5916\u4FEE\u6539\u3002\u4F8B\u5982\uFF0C\u60A8\u9700\u8981\u8FD0\u884C &amp;lt; code > TPUStrategy &amp;lt;/code > scope \u4E2D\u7684\u6240\u6709\u5185\u5BB9\uFF0C\u5305\u62EC\u6A21\u578B\u7684\u521D\u59CB\u5316\u3002"},{text:"\u60A8\u53EF\u4EE5\u5229\u7528\u73B0\u6709\u7684\u65B9\u6CD5\uFF0C\u5982 &amp;lt; code > compile () &amp;lt;/code > \u3001 &amp;lt; code > fit () &amp;lt; c/ode > \u548C &amp;lt; code > predict () &amp;lt;/code > \u3002",explain:"\u6B63\u786E! \u4E00\u65E6\u4F60\u6709\u4E86\u8FD9\u4E9B\u6570\u636E\uFF0C\u5728\u8FD9\u4E9B\u6570\u636E\u4E0A\u8FDB\u884C\u57F9\u8BAD\u53EA\u9700\u8981\u5F88\u5C11\u7684\u5DE5\u4F5C\u3002",correct:!0},{text:"\u4F60\u53EF\u4EE5\u5B66\u4E60 Keras \u548C\u53D8\u5F62\u91D1\u521A\u3002",explain:"\u6CA1\u9519\uFF0C\u4F46\u6211\u4EEC\u8981\u627E\u7684\u662F\u522B\u7684\u4E1C\u897F:)",correct:!0},{text:"\u56F0\u60D1",explain:"Keras \u5E2E\u52A9\u6211\u4EEC\u8BAD\u7EC3\u548C\u8BC4\u4F30\u6A21\u578B\uFF0C\u800C\u4E0D\u662F\u8BA1\u7B97\u4E0E\u6570\u636E\u96C6\u76F8\u5173\u7684\u5EA6\u91CF\u3002"}]}}),g=new me({}),z=new pe({props:{choices:[{text:"\u901A\u8FC7\u5B50\u7C7B\u5316 &amp;lt; code > tfkeras.metrics. Metric &amp;lt;/code > \u3002",explain:"\u592A\u597D\u4E86\uFF01",correct:!0},{text:"\u4F7F\u7528 Keras \u51FD\u6570 API\u3002",explain:"\u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u901A\u8FC7\u4F7F\u7528\u5E26\u7B7E\u540D\u7684\u53EF\u8C03\u7528 &amp;lt; code > metric _ fn (y _ true\uFF0Cy _ pred) &amp;lt;/code > \u3002",explain:"\u6B63\u786E\uFF01",correct:!0},{text:"\u901A\u8FC7\u8C37\u6B4C\u641C\u7D22\u3002",explain:"\u8FD9\u4E0D\u662F\u6211\u4EEC\u8981\u627E\u7684\u7B54\u6848\uFF0C\u4F46\u5B83\u5E94\u8BE5\u80FD\u5E2E\u52A9\u4F60\u627E\u5230\u7B54\u6848\u3002",correct:!0}]}}),{c(){m=o("h3"),w=o("a"),A=o("span"),E(N.$$.fragment),B=f(),H=o("span"),se=L("4.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018 bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018 tfautoodelforxxx\u2019\u7C7B\u65F6\uFF0C\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),R=f(),E(F.$$.fragment),V=f(),P=o("h3"),q=o("a"),K=o("span"),E(I.$$.fragment),ne=f(),T=o("span"),fe=L("5.\u6765\u81EA\u201C\u53D8\u538B\u5668\u201D\u7684 TensorFlow \u6A21\u578B\u5DF2\u7ECF\u662F Keras \u6A21\u578B\uFF0C\u8FD9\u6709\u4EC0\u4E48\u597D\u5904\uFF1F"),W=f(),E(M.$$.fragment),oe=f(),_=o("h3"),d=o("a"),Y=o("span"),E(g.$$.fragment),he=f(),D=o("span"),ce=L("6.\u5982\u4F55\u5B9A\u4E49\u81EA\u5DF1\u7684\u5B9A\u5236\u5EA6\u91CF\uFF1F"),le=f(),E(z.$$.fragment),this.h()},l(s){m=l(s,"H3",{class:!0});var c=i(m);w=l(c,"A",{id:!0,class:!0,href:!0});var X=i(w);A=l(X,"SPAN",{});var j=i(A);b(N.$$.fragment,j),j.forEach(r),X.forEach(r),B=h(c),H=l(c,"SPAN",{});var te=i(H);se=U(te,"4.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018 bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018 tfautoodelforxxx\u2019\u7C7B\u65F6\uFF0C\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),te.forEach(r),c.forEach(r),R=h(s),b(F.$$.fragment,s),V=h(s),P=l(s,"H3",{class:!0});var re=i(P);q=l(re,"A",{id:!0,class:!0,href:!0});var ie=i(q);K=l(ie,"SPAN",{});var ue=i(K);b(I.$$.fragment,ue),ue.forEach(r),ie.forEach(r),ne=h(re),T=l(re,"SPAN",{});var Z=i(T);fe=U(Z,"5.\u6765\u81EA\u201C\u53D8\u538B\u5668\u201D\u7684 TensorFlow \u6A21\u578B\u5DF2\u7ECF\u662F Keras \u6A21\u578B\uFF0C\u8FD9\u6709\u4EC0\u4E48\u597D\u5904\uFF1F"),Z.forEach(r),re.forEach(r),W=h(s),b(M.$$.fragment,s),oe=h(s),_=l(s,"H3",{class:!0});var G=i(_);d=l(G,"A",{id:!0,class:!0,href:!0});var J=i(d);Y=l(J,"SPAN",{});var S=i(Y);b(g.$$.fragment,S),S.forEach(r),J.forEach(r),he=h(G),D=l(G,"SPAN",{});var C=i(D);ce=U(C,"6.\u5982\u4F55\u5B9A\u4E49\u81EA\u5DF1\u7684\u5B9A\u5236\u5EA6\u91CF\uFF1F"),C.forEach(r),G.forEach(r),le=h(s),b(z.$$.fragment,s),this.h()},h(){n(w,"id","4.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018-bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018-tfautoodelforxxx\u2019\u7C7B\u65F6\uFF0C\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),n(w,"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"),n(w,"href","#4.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018-bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018-tfautoodelforxxx\u2019\u7C7B\u65F6\uFF0C\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),n(m,"class","relative group"),n(q,"id","5.\u6765\u81EA\u201C\u53D8\u538B\u5668\u201D\u7684-tensorflow-\u6A21\u578B\u5DF2\u7ECF\u662F-keras-\u6A21\u578B\uFF0C\u8FD9\u6709\u4EC0\u4E48\u597D\u5904\uFF1F"),n(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"),n(q,"href","#5.\u6765\u81EA\u201C\u53D8\u538B\u5668\u201D\u7684-tensorflow-\u6A21\u578B\u5DF2\u7ECF\u662F-keras-\u6A21\u578B\uFF0C\u8FD9\u6709\u4EC0\u4E48\u597D\u5904\uFF1F"),n(P,"class","relative group"),n(d,"id","6.\u5982\u4F55\u5B9A\u4E49\u81EA\u5DF1\u7684\u5B9A\u5236\u5EA6\u91CF\uFF1F"),n(d,"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"),n(d,"href","#6.\u5982\u4F55\u5B9A\u4E49\u81EA\u5DF1\u7684\u5B9A\u5236\u5EA6\u91CF\uFF1F"),n(_,"class","relative group")},m(s,c){p(s,m,c),a(m,w),a(w,A),y(N,A,null),a(m,B),a(m,H),a(H,se),p(s,R,c),y(F,s,c),p(s,V,c),p(s,P,c),a(P,q),a(q,K),y(I,K,null),a(P,ne),a(P,T),a(T,fe),p(s,W,c),y(M,s,c),p(s,oe,c),p(s,_,c),a(_,d),a(d,Y),y(g,Y,null),a(_,he),a(_,D),a(D,ce),p(s,le,c),y(z,s,c),Q=!0},i(s){Q||(x(N.$$.fragment,s),x(F.$$.fragment,s),x(I.$$.fragment,s),x(M.$$.fragment,s),x(g.$$.fragment,s),x(z.$$.fragment,s),Q=!0)},o(s){v(N.$$.fragment,s),v(F.$$.fragment,s),v(I.$$.fragment,s),v(M.$$.fragment,s),v(g.$$.fragment,s),v(z.$$.fragment,s),Q=!1},d(s){s&&r(m),k(N),s&&r(R),k(F,s),s&&r(V),s&&r(P),k(I),s&&r(W),k(M,s),s&&r(oe),s&&r(_),k(g),s&&r(le),k(z,s)}}}function nt(ye){let m,w,A,N,B,H,se,R,F,V,P,q,K,I,ne,T,fe,W,M,oe,_,d,Y,g,he,D,ce,le,z,Q,s,c,X,j,te,re,ie,ue,Z,G,J,S,C,ae,ge,Ee,$e,ke,t,u,O,ee,be,ve,Ae,xe,Pe,we,de,_e;return N=new me({}),F=new pe({props:{choices:[{text:"\u51FD\u6570\u7684\u7ED3\u679C\u662F\u7F13\u5B58\u7684\uFF0C\u56E0\u6B64\u5982\u679C\u6211\u4EEC\u91CD\u65B0\u6267\u884C\u4EE3\u7801\uFF0C\u4E0D\u4F1A\u82B1\u8D39\u4EFB\u4F55\u65F6\u95F4\u3002",explain:"\u8FD9\u786E\u5B9E\u662F\u8FD9\u79CD\u65B9\u6CD5\u7684\u4F18\u70B9\u4E4B\u4E00! \u5C3D\u7BA1\u5B83\u4E0D\u662F\u552F\u4E00\u7684\u4E00\u4E2A..\u3002",correct:!0},{text:"\u5B83\u53EF\u4EE5\u5E94\u7528\u591A\u91CD\u5904\u7406\uFF0C\u6BD4\u5728\u6570\u636E\u96C6\u7684\u6BCF\u4E2A\u5143\u7D20\u4E0A\u5E94\u7528\u51FD\u6570\u66F4\u5FEB\u3002",explain:"\u8FD9\u662F\u8FD9\u4E2A\u65B9\u6CD5\u7684\u4E00\u4E2A\u4F18\u96C5\u7684\u7279\u6027\uFF0C\u4F46\u5B83\u4E0D\u662F\u552F\u4E00\u7684\u4E00\u4E2A\uFF01",correct:!0},{text:"\u5B83\u53EA\u5305\u542B\u7528\u4E8E\u8BAD\u7EC3\u7684\u8D85\u53C2\u6570\u3002",explain:"\u8FD9\u662F\u8FD9\u79CD\u65B9\u6CD5\u7684\u4E00\u4E2A\u4F18\u70B9\uFF0C\u5C3D\u7BA1\u8FD8\u6709\u5176\u4ED6\u7684\u4F18\u70B9\uFF01",correct:!0}]}}),I=new me({}),M=new pe({props:{choices:[{text:"\u5C31\u662F\u5C06\u6BCF\u4E2A\u6279\u5904\u7406\u7684\u8F93\u5165\u586B\u5145\u5230\u6574\u4E2A\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5927\u957F\u5EA6\u3002",explain:"\u5728\u793A\u4F8B\u4E2D\uFF0C\u6211\u4EEC\u6307\u5B9A\u4E86\u4FDD\u5B58\u6A21\u578B\u53CA\u5176\u68C0\u67E5\u70B9\u7684\u4F4D\u7F6E\u3002\u8BF7\u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u8FD9\u662F\u5F53\u4F60\u586B\u8865\u4F60\u7684\u8F93\u5165\u65F6\uFF0C\u6279\u5904\u7406\u521B\u5EFA\uFF0C\u5230\u6700\u5927\u957F\u5EA6\u7684\u53E5\u5B50\u91CC\u9762\u7684\u6279\u5904\u7406\u3002",explain:"\u6CA1\u9519\uFF01\u201C\u52A8\u6001\u201D\u90E8\u5206\u6765\u81EA\u8FD9\u6837\u4E00\u4E2A\u4E8B\u5B9E\uFF0C\u5373\u6BCF\u4E2A\u6279\u7684\u5927\u5C0F\u662F\u5728\u521B\u5EFA\u65F6\u786E\u5B9A\u7684\uFF0C\u56E0\u6B64\u6240\u6709\u6279\u53EF\u80FD\u5177\u6709\u4E0D\u540C\u7684\u5F62\u72B6\u3002",correct:!0},{text:"\u5C31\u662F\u5F53\u60A8\u586B\u5145\u8F93\u5165\u65F6\uFF0C\u4F7F\u6BCF\u4E2A\u53E5\u5B50\u5177\u6709\u4E0E\u6570\u636E\u96C6\u4E2D\u7684\u524D\u4E00\u4E2A\u76F8\u540C\u7684\u6807\u8BB0\u6570\u91CF\u3002",explain:"\u8FD9\u662F\u4E0D\u6B63\u786E\u7684\uFF0C\u800C\u4E14\u7531\u4E8E\u6211\u4EEC\u5728\u8BAD\u7EC3\u8FC7\u7A0B\u4E2D\u5BF9\u6570\u636E\u96C6\u8FDB\u884C\u4E86\u6D17\u724C\uFF0C\u56E0\u6B64\u67E5\u770B\u6570\u636E\u96C6\u4E2D\u7684\u987A\u5E8F\u662F\u6CA1\u6709\u610F\u4E49\u7684\u3002"}]}}),g=new me({}),z=new pe({props:{choices:[{text:"\u5B83\u786E\u4FDD\u6570\u636E\u96C6\u4E2D\u7684\u6240\u6709\u5E8F\u5217\u5177\u6709\u76F8\u540C\u7684\u957F\u5EA6\u3002",explain:"\u6821\u5BF9\u51FD\u6570\u7528\u4E8E\u5904\u7406\u5355\u4E2A\u6279\u5904\u7406\uFF0C\u800C\u4E0D\u662F\u6574\u4E2A\u6570\u636E\u96C6\u3002\u6B64\u5916\uFF0C\u6211\u4EEC\u8BA8\u8BBA\u7684\u662F\u901A\u7528\u7684\u6821\u5BF9\u51FD\u6570\uFF0C\u800C\u4E0D\u662F\u7279\u5B9A\u7684 &amp;lt; code > > DataCollatorWithPadding &amp;lt;/code > \u3002"},{text:"\u5B83\u628A\u6240\u6709\u7684\u6837\u54C1\u4E00\u6279\u4E00\u6279\u5730\u653E\u5728\u4E00\u8D77\u3002",explain:"\u6B63\u786E\uFF01 You can pass the collate function as an argument of a <code>DataLoader</code>. We used the <code>DataCollatorWithPadding</code> function, which pads all items in a batch so they have the same length.",correct:!0},{text:"\u5B83\u9884\u5904\u7406\u6574\u4E2A\u6570\u636E\u96C6\u3002",explain:"\u8FD9\u5C06\u662F\u4E00\u4E2A\u9884\u5904\u7406\u51FD\u6570\uFF0C\u800C\u4E0D\u662F\u6821\u5BF9\u51FD\u6570\u3002"},{text:"\u5B83\u622A\u65AD\u6570\u636E\u96C6\u4E2D\u7684\u5E8F\u5217\u3002",explain:"\u6821\u5BF9\u51FD\u6570\u7528\u4E8E\u5904\u7406\u5355\u4E2A\u6279\u5904\u7406\uFF0C\u800C\u4E0D\u662F\u6574\u4E2A\u6570\u636E\u96C6\u3002\u5982\u679C\u60A8\u5BF9\u622A\u65AD\u611F\u5174\u8DA3\uFF0C\u53EF\u4EE5\u4F7F\u7528 &amp;lt; code > tokenizer &amp;lt;/code > \u7684 &amp;lt; truncate &amp;lt;/code > \u53C2\u6570\u3002"}]}}),j=new me({}),Z=new pe({props:{choices:[{text:"\u4EC0\u4E48\u90FD\u6CA1\u6709\uFF0C\u4F46\u662F\u4F60\u5F97\u5230\u4E86\u4E00\u4E2A\u8B66\u544A\u3002",explain:"\u4F60\u786E\u5B9E\u5F97\u5230\u4E86\u8B66\u544A\uFF0C\u4F46\u8FD9\u8FD8\u4E0D\u662F\u5168\u90E8\uFF01"},{text:"\u4E22\u5F03\u9884\u8BAD\u7EC3\u6A21\u578B\u7684\u5934\u90E8\uFF0C\u5E76\u63D2\u5165\u4E00\u4E2A\u65B0\u7684\u5934\u90E8\u9002\u5408\u7684\u4EFB\u52A1\u3002",explain:"\u8FD9\u5C31\u662F\u6211\u4EEC\u5BF9 &amp;lt; code > Trainer &amp;lt;/code > \u6240\u505A\u7684\uFF0C\u800C\u4E0D\u662F Accelerate \u5E93\u3002\u518D\u8BD5\u4E00\u6B21\uFF01",correct:!0},{text:"\u4E22\u5F03\u9884\u5148\u8BAD\u7EC3\u597D\u7684\u6A21\u578B\u5934\u90E8\u3002",explain:"Something else needs to happen. \u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u6CA1\u6709\uFF0C\u56E0\u4E3A\u6A21\u578B\u4ECD\u7136\u53EF\u4EE5\u9488\u5BF9\u4E0D\u540C\u7684\u4EFB\u52A1\u8FDB\u884C\u5FAE\u8C03\u3002",explain:"\u8FD9\u4E2A\u7ECF\u8FC7\u8BAD\u7EC3\u7684\u6A21\u7279\u7684\u5934\u6CA1\u6709\u7ECF\u8FC7\u8BAD\u7EC3\u6765\u89E3\u51B3\u8FD9\u4E2A\u95EE\u9898\uFF0C\u6240\u4EE5\u6211\u4EEC\u5E94\u8BE5\u4E22\u6389\u8FD9\u4E2A\u5934\uFF01"}]}}),ae=new me({}),t=new pe({props:{choices:[{text:"\u5B83\u5305\u542B\u4E86\u6240\u6709\u7528\u4E8E\u8BAD\u7EC3\u548C\u8BC4\u4F30\u7684\u8D85\u53C2\u6570\u3002",explain:"\u6B63\u786E\uFF01",correct:!0},{text:"\u5B83\u6307\u5B9A\u6A21\u578B\u7684\u5927\u5C0F\u3002",explain:"\u6A21\u578B\u5927\u5C0F\u662F\u7531\u6A21\u578B\u914D\u7F6E\u5B9A\u4E49\u7684\uFF0C\u800C\u4E0D\u662F\u7C7B &amp;lt; code > TrainingArguments &amp;lt;/code > \u3002"},{text:"\u5B83\u53EA\u5305\u542B\u7528\u4E8E\u8BC4\u4F30\u7684\u8D85\u53C2\u6570\u3002",explain:"In the example, we specified where the model and its checkpoints will be saved. \u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u60A8\u53EF\u4EE5\u8F7B\u677E\u5730\u8BA1\u7B97\u4E0E\u6570\u636E\u96C6\u76F8\u5173\u7684\u6307\u6807\u3002",explain:"In the example, we used an <code>evaluation_strategy</code> as well, so this impacts evaluation. \u518D\u8BD5\u4E00\u6B21\uFF01"}]}}),ve=new me({}),de=new pe({props:{choices:[{text:"\u5B83\u63D0\u4F9B\u4E86\u5BF9\u66F4\u5FEB\u7684\u6A21\u578B\u7684\u8BBF\u95EE\u3002",explain:"\u4E0D\uFF0CAccelerate \u5E93\u4E0D\u63D0\u4F9B\u4EFB\u4F55\u6A21\u578B\u3002"},{text:"\u5B83\u63D0\u4F9B\u4E86\u4E00\u4E2A\u9AD8\u7EA7 API\uFF0C\u56E0\u6B64\u6211\u4E0D\u5FC5\u5B9E\u73B0\u81EA\u5DF1\u7684\u57F9\u8BAD\u5FAA\u73AF\u3002",explain:"This is what we did with <code>Trainer</code>, not the \u{1F917} Accelerate library. \u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u5B83\u4F7F\u6211\u4EEC\u7684\u8BAD\u7EC3\u5FAA\u73AF\u5DE5\u4F5C\u5728\u5206\u5E03\u5F0F\u7B56\u7565\u4E0A",explain:"\u6B63\u786E! \u968F\u7740\u52A0\u901F\uFF0C\u4F60\u7684\u8BAD\u7EC3\u5FAA\u73AF\u5C06\u4E3A\u591A\u4E2A gpu \u548C TPUs \u5DE5\u4F5C\u3002",correct:!0},{text:"\u5B83\u63D0\u4F9B\u4E86\u66F4\u591A\u7684\u4F18\u5316\u529F\u80FD\u3002",explain:"\u4E0D\uFF0CAccelerate \u5E93\u4E0D\u63D0\u4F9B\u4EFB\u4F55\u4F18\u5316\u529F\u80FD\u3002"}]}}),{c(){m=o("h3"),w=o("a"),A=o("span"),E(N.$$.fragment),B=f(),H=o("span"),se=L("4.\u2018 Dataset.map ()\u2019\u65B9\u6CD5\u7684\u597D\u5904\u662F\u4EC0\u4E48\uFF1F"),R=f(),E(F.$$.fragment),V=f(),P=o("h3"),q=o("a"),K=o("span"),E(I.$$.fragment),ne=f(),T=o("span"),fe=L("5.\u4EC0\u4E48\u662F\u52A8\u6001\u586B\u5145\uFF1F"),W=f(),E(M.$$.fragment),oe=f(),_=o("h3"),d=o("a"),Y=o("span"),E(g.$$.fragment),he=f(),D=o("span"),ce=L("6.\u6821\u5BF9\u51FD\u6570\u7684\u7528\u9014\u662F\u4EC0\u4E48\uFF1F"),le=f(),E(z.$$.fragment),Q=f(),s=o("h3"),c=o("a"),X=o("span"),E(j.$$.fragment),te=f(),re=o("span"),ie=L("7.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018 bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018 AutoModelForXxx\u2019\u7C7B\uFF0C\u8FD9\u4E2A\u7C7B\u5BF9\u5E94\u4E8E\u4E00\u4E2A\u4E0D\u540C\u4E8E\u5B83\u6240\u88AB\u8BAD\u7EC3\u7684\u4EFB\u52A1\u65F6\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),ue=f(),E(Z.$$.fragment),G=f(),J=o("h3"),S=o("a"),C=o("span"),E(ae.$$.fragment),ge=f(),Ee=o("span"),$e=L("8.\u8BAD\u7EC3\u4E89\u8BBA\u7684\u76EE\u7684\u662F\u4EC0\u4E48\uFF1F"),ke=f(),E(t.$$.fragment),u=f(),O=o("h3"),ee=o("a"),be=o("span"),E(ve.$$.fragment),Ae=f(),xe=o("span"),Pe=L("9.\u4E3A\u4EC0\u4E48\u8981\u4F7F\u7528 Accelerate \u5E93\uFF1F"),we=f(),E(de.$$.fragment),this.h()},l(e){m=l(e,"H3",{class:!0});var $=i(m);w=l($,"A",{id:!0,class:!0,href:!0});var Se=i(w);A=l(Se,"SPAN",{});var Ce=i(A);b(N.$$.fragment,Ce),Ce.forEach(r),Se.forEach(r),B=h($),H=l($,"SPAN",{});var Fe=i(H);se=U(Fe,"4.\u2018 Dataset.map ()\u2019\u65B9\u6CD5\u7684\u597D\u5904\u662F\u4EC0\u4E48\uFF1F"),Fe.forEach(r),$.forEach(r),R=h(e),b(F.$$.fragment,e),V=h(e),P=l(e,"H3",{class:!0});var Ne=i(P);q=l(Ne,"A",{id:!0,class:!0,href:!0});var Ie=i(q);K=l(Ie,"SPAN",{});var Me=i(K);b(I.$$.fragment,Me),Me.forEach(r),Ie.forEach(r),ne=h(Ne),T=l(Ne,"SPAN",{});var De=i(T);fe=U(De,"5.\u4EC0\u4E48\u662F\u52A8\u6001\u586B\u5145\uFF1F"),De.forEach(r),Ne.forEach(r),W=h(e),b(M.$$.fragment,e),oe=h(e),_=l(e,"H3",{class:!0});var qe=i(_);d=l(qe,"A",{id:!0,class:!0,href:!0});var Ke=i(d);Y=l(Ke,"SPAN",{});var Le=i(Y);b(g.$$.fragment,Le),Le.forEach(r),Ke.forEach(r),he=h(qe),D=l(qe,"SPAN",{});var Ue=i(D);ce=U(Ue,"6.\u6821\u5BF9\u51FD\u6570\u7684\u7528\u9014\u662F\u4EC0\u4E48\uFF1F"),Ue.forEach(r),qe.forEach(r),le=h(e),b(z.$$.fragment,e),Q=h(e),s=l(e,"H3",{class:!0});var He=i(s);c=l(He,"A",{id:!0,class:!0,href:!0});var Be=i(c);X=l(Be,"SPAN",{});var Re=i(X);b(j.$$.fragment,Re),Re.forEach(r),Be.forEach(r),te=h(He),re=l(He,"SPAN",{});var We=i(re);ie=U(We,"7.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018 bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018 AutoModelForXxx\u2019\u7C7B\uFF0C\u8FD9\u4E2A\u7C7B\u5BF9\u5E94\u4E8E\u4E00\u4E2A\u4E0D\u540C\u4E8E\u5B83\u6240\u88AB\u8BAD\u7EC3\u7684\u4EFB\u52A1\u65F6\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),We.forEach(r),He.forEach(r),ue=h(e),b(Z.$$.fragment,e),G=h(e),J=l(e,"H3",{class:!0});var Te=i(J);S=l(Te,"A",{id:!0,class:!0,href:!0});var Qe=i(S);C=l(Qe,"SPAN",{});var Xe=i(C);b(ae.$$.fragment,Xe),Xe.forEach(r),Qe.forEach(r),ge=h(Te),Ee=l(Te,"SPAN",{});var Ge=i(Ee);$e=U(Ge,"8.\u8BAD\u7EC3\u4E89\u8BBA\u7684\u76EE\u7684\u662F\u4EC0\u4E48\uFF1F"),Ge.forEach(r),Te.forEach(r),ke=h(e),b(t.$$.fragment,e),u=h(e),O=l(e,"H3",{class:!0});var ze=i(O);ee=l(ze,"A",{id:!0,class:!0,href:!0});var Je=i(ee);be=l(Je,"SPAN",{});var Oe=i(be);b(ve.$$.fragment,Oe),Oe.forEach(r),Je.forEach(r),Ae=h(ze),xe=l(ze,"SPAN",{});var Ye=i(xe);Pe=U(Ye,"9.\u4E3A\u4EC0\u4E48\u8981\u4F7F\u7528 Accelerate \u5E93\uFF1F"),Ye.forEach(r),ze.forEach(r),we=h(e),b(de.$$.fragment,e),this.h()},h(){n(w,"id","4.\u2018-dataset.map-()\u2019\u65B9\u6CD5\u7684\u597D\u5904\u662F\u4EC0\u4E48\uFF1F"),n(w,"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"),n(w,"href","#4.\u2018-dataset.map-()\u2019\u65B9\u6CD5\u7684\u597D\u5904\u662F\u4EC0\u4E48\uFF1F"),n(m,"class","relative group"),n(q,"id","5.\u4EC0\u4E48\u662F\u52A8\u6001\u586B\u5145\uFF1F"),n(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"),n(q,"href","#5.\u4EC0\u4E48\u662F\u52A8\u6001\u586B\u5145\uFF1F"),n(P,"class","relative group"),n(d,"id","6.\u6821\u5BF9\u51FD\u6570\u7684\u7528\u9014\u662F\u4EC0\u4E48\uFF1F"),n(d,"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"),n(d,"href","#6.\u6821\u5BF9\u51FD\u6570\u7684\u7528\u9014\u662F\u4EC0\u4E48\uFF1F"),n(_,"class","relative group"),n(c,"id","7.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018-bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018-automodelforxxx\u2019\u7C7B\uFF0C\u8FD9\u4E2A\u7C7B\u5BF9\u5E94\u4E8E\u4E00\u4E2A\u4E0D\u540C\u4E8E\u5B83\u6240\u88AB\u8BAD\u7EC3\u7684\u4EFB\u52A1\u65F6\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),n(c,"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"),n(c,"href","#7.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018-bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018-automodelforxxx\u2019\u7C7B\uFF0C\u8FD9\u4E2A\u7C7B\u5BF9\u5E94\u4E8E\u4E00\u4E2A\u4E0D\u540C\u4E8E\u5B83\u6240\u88AB\u8BAD\u7EC3\u7684\u4EFB\u52A1\u65F6\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),n(s,"class","relative group"),n(S,"id","8.\u8BAD\u7EC3\u4E89\u8BBA\u7684\u76EE\u7684\u662F\u4EC0\u4E48\uFF1F"),n(S,"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"),n(S,"href","#8.\u8BAD\u7EC3\u4E89\u8BBA\u7684\u76EE\u7684\u662F\u4EC0\u4E48\uFF1F"),n(J,"class","relative group"),n(ee,"id","9.\u4E3A\u4EC0\u4E48\u8981\u4F7F\u7528-accelerate-\u5E93\uFF1F"),n(ee,"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"),n(ee,"href","#9.\u4E3A\u4EC0\u4E48\u8981\u4F7F\u7528-accelerate-\u5E93\uFF1F"),n(O,"class","relative group")},m(e,$){p(e,m,$),a(m,w),a(w,A),y(N,A,null),a(m,B),a(m,H),a(H,se),p(e,R,$),y(F,e,$),p(e,V,$),p(e,P,$),a(P,q),a(q,K),y(I,K,null),a(P,ne),a(P,T),a(T,fe),p(e,W,$),y(M,e,$),p(e,oe,$),p(e,_,$),a(_,d),a(d,Y),y(g,Y,null),a(_,he),a(_,D),a(D,ce),p(e,le,$),y(z,e,$),p(e,Q,$),p(e,s,$),a(s,c),a(c,X),y(j,X,null),a(s,te),a(s,re),a(re,ie),p(e,ue,$),y(Z,e,$),p(e,G,$),p(e,J,$),a(J,S),a(S,C),y(ae,C,null),a(J,ge),a(J,Ee),a(Ee,$e),p(e,ke,$),y(t,e,$),p(e,u,$),p(e,O,$),a(O,ee),a(ee,be),y(ve,be,null),a(O,Ae),a(O,xe),a(xe,Pe),p(e,we,$),y(de,e,$),_e=!0},i(e){_e||(x(N.$$.fragment,e),x(F.$$.fragment,e),x(I.$$.fragment,e),x(M.$$.fragment,e),x(g.$$.fragment,e),x(z.$$.fragment,e),x(j.$$.fragment,e),x(Z.$$.fragment,e),x(ae.$$.fragment,e),x(t.$$.fragment,e),x(ve.$$.fragment,e),x(de.$$.fragment,e),_e=!0)},o(e){v(N.$$.fragment,e),v(F.$$.fragment,e),v(I.$$.fragment,e),v(M.$$.fragment,e),v(g.$$.fragment,e),v(z.$$.fragment,e),v(j.$$.fragment,e),v(Z.$$.fragment,e),v(ae.$$.fragment,e),v(t.$$.fragment,e),v(ve.$$.fragment,e),v(de.$$.fragment,e),_e=!1},d(e){e&&r(m),k(N),e&&r(R),k(F,e),e&&r(V),e&&r(P),k(I),e&&r(W),k(M,e),e&&r(oe),e&&r(_),k(g),e&&r(le),k(z,e),e&&r(Q),e&&r(s),k(j),e&&r(ue),k(Z,e),e&&r(G),e&&r(J),k(ae),e&&r(ke),k(t,e),e&&r(u),e&&r(O),k(ve),e&&r(we),k(de,e)}}}function it(ye){let m,w,A,N,B,H,se,R,F,V,P,q,K,I,ne,T,fe,W,M,oe,_,d,Y,g,he,D,ce,le,z,Q,s,c,X,j,te,re,ie,ue,Z,G,J,S,C,ae,ge;A=new ot({props:{fw:ye[0]}}),R=new me({}),d=new pe({props:{choices:[{text:"\u4E54\u4F0A",explain:"\u518D\u8BD5\u4E00\u6B21\u30FC\u30FC\u8FD9\u79CD\u60C5\u7EEA\u51FA\u73B0\u5728\u90A3\u4E2A\u6570\u636E\u96C6\u4E2D\uFF01"},{text:"\u7231",explain:"\u518D\u8BD5\u4E00\u6B21\u30FC\u30FC\u8FD9\u79CD\u60C5\u7EEA\u51FA\u73B0\u5728\u90A3\u4E2A\u6570\u636E\u96C6\u4E2D\uFF01"},{text:"\u901A\u8FC7\u8C37\u6B4C\u641C\u7D22\u3002",explain:"\u6B63\u786E! \u56F0\u60D1\u4E0D\u662F\u516D\u79CD\u57FA\u672C\u60C5\u7EEA\u4E4B\u4E00\u3002",correct:!0},{text:"\u60CA\u559C\u5427",explain:"\u60CA\u559C! \u518D\u8BD5\u4E00\u4E2A\uFF01"}]}}),Q=new pe({props:{choices:[{text:"\u60C5\u7EEA\u5206\u7C7B",explain:"\u6CA1\u9519! \u4F60\u53EF\u4EE5\u611F\u8C22\u8FD9\u4E9B\u6807\u7B7E\u3002",correct:!0},{text:"\u673A\u5668\u7FFB\u8BD1",explain:"\u4E0D\u662F\u8FD9\u6837\u7684\u30FC\u30FC\u518D\u770B\u770B &amp;lt; a href =\u2019https://huggingface.co/datasets/ar _ sarcasm\u2019> dataset card &amp;lt;/a > \uFF01"},{text:"\u547D\u540D\u5B9E\u4F53\u8BC6\u522B",explain:"\u4E0D\u662F\u8FD9\u6837\u7684\u30FC\u30FC\u518D\u770B\u770B &amp;lt; a href =\u2019https://huggingface.co/datasets/ar _ sarcasm\u2019> dataset card &amp;lt;/a > \uFF01"},{text:"\u56DE\u7B54\u95EE\u9898",explain:"Alas, this question was not answered correctly. \u518D\u8BD5\u4E00\u6B21\uFF01"}]}}),te=new me({}),G=new pe({props:{choices:[{text:"\u8868\u793A\u53E5\u5B50\u7684\u8BB0\u53F71[ SEP ]\u8868\u793A\u53E5\u5B50\u7684\u8BB0\u53F72",explain:"\u5728\u521B\u5EFA\u6279\u5904\u7406\u65F6\u786E\u5B9E\u610F\u5473\u7740\u586B\u5145\uFF0C\u4F46\u4E0D\u610F\u5473\u7740\u586B\u5145\u5230\u6574\u4E2A\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5927\u957F\u5EA6\u3002"},{text:"\u8868\u793A\u53E5\u5B50\u7684\u8BB0\u53F7\u8868\u793A\u53E5\u5B50\u7684\u8BB0\u53F7",explain:"\u4E00\u4E2A &amp;lt; code > [ CLS ] &amp;lt;/code > \u7279\u6B8A\u4EE4\u724C\u5728\u5F00\u59CB\u65F6\u662F\u5FC5\u9700\u7684\uFF0C\u4F46\u662F\u8FD9\u4E0D\u662F\u552F\u4E00\u7684\u4E8B\u60C5\uFF01"},{text:"\u8868\u793A\u53E5\u5B501[ SEP ]\u7684\u7B26\u53F7\u8868\u793A\u53E5\u5B502[ SEP ]",explain:"\u6CA1\u9519\uFF01",correct:!0},{text:"\u8868\u793A\u53E5\u5B501[ SEP ]\u7684\u7B26\u53F7\u8868\u793A\u53E5\u5B502",explain:"\u5F00\u5934\u9700\u8981\u4E00\u4E2A &amp;lt; code > [ CLS ] &amp;lt;/code > \u7279\u6B8A\u6807\u8BB0\uFF0C\u8FD8\u9700\u8981\u4E00\u4E2A &amp;lt; code > [ SEP ] &amp;lt;/code > \u7279\u6B8A\u6807\u8BB0\u6765\u5206\u9694\u4E24\u4E2A\u53E5\u5B50\uFF0C\u4F46\u8FD9\u8FD8\u4E0D\u662F\u5168\u90E8\uFF01"}]}});const Ee=[nt,lt],$e=[];function ke(t,u){return t[0]==="pt"?0:1}return S=ke(ye),C=$e[S]=Ee[S](ye),{c(){m=o("meta"),w=f(),E(A.$$.fragment),N=f(),B=o("h1"),H=o("a"),se=o("span"),E(R.$$.fragment),F=f(),V=o("span"),P=L("End-of-chapter quiz"),q=f(),K=o("p"),I=L("Test what you learned in this chapter!"),ne=f(),T=o("h3"),fe=L("1.\u201C\u60C5\u7EEA\u201D\u6570\u636E\u96C6\u5305\u542B\u6807\u8BB0\u6709\u60C5\u7EEA\u7684 Twitter \u6D88\u606F\u3002\u5728[ Hub ]( "),W=o("a"),M=L("https://huggingface.co/datasets"),oe=L(" \u96C6\u7EBF\u5668)\u4E2D\u641C\u7D22\u5B83\uFF0C\u7136\u540E\u8BFB\u53D6\u6570\u636E\u96C6\u5361\u3002\u54EA\u4E00\u4E2A\u4E0D\u662F\u5B83\u7684\u57FA\u672C\u60C5\u611F\uFF1F"),_=f(),E(d.$$.fragment),Y=f(),g=o("h3"),he=L("2.\u5728[ Hub ]( "),D=o("a"),ce=L("https://huggingface.co/datasets"),le=L(" \u96C6\u7EBF\u5668)\u4E2D\u641C\u7D22\u2018 ar _ sarcasm\u2019\u6570\u636E\u96C6\uFF0C\u5B83\u652F\u6301\u54EA\u4E2A\u4EFB\u52A1\uFF1F"),z=f(),E(Q.$$.fragment),s=f(),c=o("h3"),X=o("a"),j=o("span"),E(te.$$.fragment),re=f(),ie=o("span"),ue=L("3.BERT \u6A21\u578B\u671F\u671B\u5982\u4F55\u5904\u7406\u4E00\u5BF9\u53E5\u5B50\uFF1F"),Z=f(),E(G.$$.fragment),J=f(),C.c(),ae=je(),this.h()},l(t){const u=tt('[data-svelte="svelte-1phssyn"]',document.head);m=l(u,"META",{name:!0,content:!0}),u.forEach(r),w=h(t),b(A.$$.fragment,t),N=h(t),B=l(t,"H1",{class:!0});var O=i(B);H=l(O,"A",{id:!0,class:!0,href:!0});var ee=i(H);se=l(ee,"SPAN",{});var be=i(se);b(R.$$.fragment,be),be.forEach(r),ee.forEach(r),F=h(O),V=l(O,"SPAN",{});var ve=i(V);P=U(ve,"End-of-chapter quiz"),ve.forEach(r),O.forEach(r),q=h(t),K=l(t,"P",{});var Ae=i(K);I=U(Ae,"Test what you learned in this chapter!"),Ae.forEach(r),ne=h(t),T=l(t,"H3",{});var xe=i(T);fe=U(xe,"1.\u201C\u60C5\u7EEA\u201D\u6570\u636E\u96C6\u5305\u542B\u6807\u8BB0\u6709\u60C5\u7EEA\u7684 Twitter \u6D88\u606F\u3002\u5728[ Hub ]( "),W=l(xe,"A",{href:!0,rel:!0});var Pe=i(W);M=U(Pe,"https://huggingface.co/datasets"),Pe.forEach(r),oe=U(xe," \u96C6\u7EBF\u5668)\u4E2D\u641C\u7D22\u5B83\uFF0C\u7136\u540E\u8BFB\u53D6\u6570\u636E\u96C6\u5361\u3002\u54EA\u4E00\u4E2A\u4E0D\u662F\u5B83\u7684\u57FA\u672C\u60C5\u611F\uFF1F"),xe.forEach(r),_=h(t),b(d.$$.fragment,t),Y=h(t),g=l(t,"H3",{});var we=i(g);he=U(we,"2.\u5728[ Hub ]( "),D=l(we,"A",{href:!0,rel:!0});var de=i(D);ce=U(de,"https://huggingface.co/datasets"),de.forEach(r),le=U(we," \u96C6\u7EBF\u5668)\u4E2D\u641C\u7D22\u2018 ar _ sarcasm\u2019\u6570\u636E\u96C6\uFF0C\u5B83\u652F\u6301\u54EA\u4E2A\u4EFB\u52A1\uFF1F"),we.forEach(r),z=h(t),b(Q.$$.fragment,t),s=h(t),c=l(t,"H3",{class:!0});var _e=i(c);X=l(_e,"A",{id:!0,class:!0,href:!0});var e=i(X);j=l(e,"SPAN",{});var $=i(j);b(te.$$.fragment,$),$.forEach(r),e.forEach(r),re=h(_e),ie=l(_e,"SPAN",{});var Se=i(ie);ue=U(Se,"3.BERT \u6A21\u578B\u671F\u671B\u5982\u4F55\u5904\u7406\u4E00\u5BF9\u53E5\u5B50\uFF1F"),Se.forEach(r),_e.forEach(r),Z=h(t),b(G.$$.fragment,t),J=h(t),C.l(t),ae=je(),this.h()},h(){n(m,"name","hf:doc:metadata"),n(m,"content",JSON.stringify(pt)),n(H,"id","endofchapter-quiz"),n(H,"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"),n(H,"href","#endofchapter-quiz"),n(B,"class","relative group"),n(W,"href","https://huggingface.co/datasets"),n(W,"rel","nofollow"),n(D,"href","https://huggingface.co/datasets"),n(D,"rel","nofollow"),n(X,"id","3.bert-\u6A21\u578B\u671F\u671B\u5982\u4F55\u5904\u7406\u4E00\u5BF9\u53E5\u5B50\uFF1F"),n(X,"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"),n(X,"href","#3.bert-\u6A21\u578B\u671F\u671B\u5982\u4F55\u5904\u7406\u4E00\u5BF9\u53E5\u5B50\uFF1F"),n(c,"class","relative group")},m(t,u){a(document.head,m),p(t,w,u),y(A,t,u),p(t,N,u),p(t,B,u),a(B,H),a(H,se),y(R,se,null),a(B,F),a(B,V),a(V,P),p(t,q,u),p(t,K,u),a(K,I),p(t,ne,u),p(t,T,u),a(T,fe),a(T,W),a(W,M),a(T,oe),p(t,_,u),y(d,t,u),p(t,Y,u),p(t,g,u),a(g,he),a(g,D),a(D,ce),a(g,le),p(t,z,u),y(Q,t,u),p(t,s,u),p(t,c,u),a(c,X),a(X,j),y(te,j,null),a(c,re),a(c,ie),a(ie,ue),p(t,Z,u),y(G,t,u),p(t,J,u),$e[S].m(t,u),p(t,ae,u),ge=!0},p(t,[u]){const O={};u&1&&(O.fw=t[0]),A.$set(O);let ee=S;S=ke(t),S!==ee&&(st(),v($e[ee],1,1,()=>{$e[ee]=null}),rt(),C=$e[S],C||(C=$e[S]=Ee[S](t),C.c()),x(C,1),C.m(ae.parentNode,ae))},i(t){ge||(x(A.$$.fragment,t),x(R.$$.fragment,t),x(d.$$.fragment,t),x(Q.$$.fragment,t),x(te.$$.fragment,t),x(G.$$.fragment,t),x(C),ge=!0)},o(t){v(A.$$.fragment,t),v(R.$$.fragment,t),v(d.$$.fragment,t),v(Q.$$.fragment,t),v(te.$$.fragment,t),v(G.$$.fragment,t),v(C),ge=!1},d(t){r(m),t&&r(w),k(A,t),t&&r(N),t&&r(B),k(R),t&&r(q),t&&r(K),t&&r(ne),t&&r(T),t&&r(_),k(d,t),t&&r(Y),t&&r(g),t&&r(z),k(Q,t),t&&r(s),t&&r(c),k(te),t&&r(Z),k(G,t),t&&r(J),$e[S].d(t),t&&r(ae)}}}const pt={local:"endofchapter-quiz",title:"End-of-chapter quiz"};function ft(ye,m,w){let A="pt";return at(()=>{const N=new URLSearchParams(window.location.search);w(0,A=N.get("fw")||"pt")}),[A]}class mt extends Ve{constructor(m){super();Ze(this,m,ft,it,et,{})}}export{mt as default,pt as metadata};
