import{S as fn,i as vn,s as dn,e as c,k as u,w as y,t as m,l as gn,M as $n,c as r,d as t,m as p,x as b,a as i,h as g,b as o,G as h,g as l,y as _,o as d,p as xn,q as $,B as w,v as kn,n as yn}from"../../chunks/vendor-hf-doc-builder.js";import{I as _t}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as bn}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import{Q as wt}from"../../chunks/Question-hf-doc-builder.js";import{F as _n}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function wn(Lt){let v,E,A,T,z,x,dt,B,Et,$t,mt,W,Y,O,P,gt,C,N,rt,J,xt,V,j,I,Z,ft,D,tt,L,q,U,K,nt,S,G,it,et,at,H;return T=new _t({}),P=new wt({props:{choices:[{text:"Kh\xF4ng c\xF3 g\xEC, nh\u01B0ng b\u1EA1n nh\u1EADn \u0111\u01B0\u1EE3c m\u1ED9t c\u1EA3nh b\xE1o.",explain:"B\u1EA1n nh\u1EADn \u0111\u01B0\u1EE3c m\u1ED9t c\u1EA3nh b\xE1o, nh\u01B0ng \u0111\xF3 kh\xF4ng ph\u1EA3i l\xE0 t\u1EA5t c\u1EA3!"},{text:"Ph\u1EA7n \u0111\u1EA7u c\u1EE7a m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc b\u1ECB lo\u1EA1i b\u1ECF v\xE0 ph\u1EA7n \u0111\u1EA7u m\u1EDBi ph\xF9 h\u1EE3p v\u1EDBi t\xE1c v\u1EE5 s\u1EBD \u0111\u01B0\u1EE3c ch\xE8n v\xE0o thay th\u1EBF.",explain:"Ch\xEDnh x\xE1c. V\xED d\u1EE5, Khi ta s\u1EED d\u1EE5ng <code>TFAutoModelForSequenceClassification</code> v\u1EDBi <code>bert-base-uncased</code>, ta nh\u1EADn \u0111\u01B0\u1EE3c c\u1EA3nh b\xE1o khi kh\u1EDFi t\u1EA1o m\xF4 h\xECnh. Ph\u1EA7n \u0111\u1EA7u \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc kh\xF4ng \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng cho chu\u1ED7i t\xE1c v\u1EE5 ph\xE2n lo\u1EA1i, v\xEC v\u1EADy n\xF3 b\u1ECB lo\u1EA1i b\u1ECF v\xE0 m\u1ED9t ph\u1EA7n \u0111\u1EA7u m\u1EDBi \u0111\u01B0\u1EE3c kh\u1EDFi t\u1EA1o v\u1EDBi c\xE1c tr\u1ECDng s\u1ED1 ng\u1EABu nhi\xEAn.",correct:!0},{text:"Ph\u1EA7n \u0111\u1EA7u c\u1EE7a m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc b\u1ECB lo\u1EA1i b\u1ECF.",explain:"M\u1ED9t \u0111i\u1EC1u g\xEC \u0111\xF3 kh\xE1c c\u1EA7n ph\u1EA3i x\u1EA3y ra. H\xE3y th\u1EED l\u1EA1i!"},{text:"Kh\xF4ng c\xF3 g\xEC, v\xEC m\xF4 h\xECnh v\u1EABn c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c tinh ch\u1EC9nh cho c\xE1c t\xE1c v\u1EE5 kh\xE1c.",explain:"Ph\u1EA7n \u0111\u1EA7u c\u1EE7a m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc kh\xF4ng \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n \u0111\u1EC3 gi\u1EA3i quy\u1EBFt t\xE1c v\u1EE5 n\xE0y, v\xEC v\u1EADy ch\xFAng ta n\xEAn lo\u1EA1i b\u1ECF ph\u1EA7n \u0111\u1EA7u!"}]}}),J=new _t({}),tt=new wt({props:{choices:[{text:"C\xE1c m\xF4 h\xECnh ho\u1EA1t \u0111\u1ED9ng tr\xEAn TPU kh\xE1c v\u1EDBi th\u01B0\u1EDDng l\u1EC7.",explain:"G\u1EA7n nh\u01B0 v\u1EADy! C\u1EA7n c\xF3 m\u1ED9t s\u1ED1 thay \u0111\u1ED5i b\u1ED5 sung nh\u1ECF. V\xED d\u1EE5: b\u1EA1n c\u1EA7n ch\u1EA1y m\u1ECDi th\u1EE9 trong ph\u1EA1m vi &amp;lt;<code>TPUStrategy</code> , bao g\u1ED3m c\u1EA3 vi\u1EC7c kh\u1EDFi t\u1EA1o m\xF4 h\xECnh."},{text:"B\u1EA1n c\xF3 th\u1EC3 t\u1EADn d\u1EE5ng c\xE1c ph\u01B0\u01A1ng th\u1EE9c hi\u1EC7n c\xF3 nh\u01B0 <code>compile()</code>, <code>fit()</code>, v\xE0 <code>predict()</code>.",explain:"\u0110\xFAng! Sau khi b\u1EA1n c\xF3 d\u1EEF li\u1EC7u, vi\u1EC7c \u0111\xE0o t\u1EA1o v\u1EC1 d\u1EEF li\u1EC7u \u0111\xF3 c\u1EA7n r\u1EA5t \xEDt c\xF4ng vi\u1EC7c.",correct:!0},{text:"B\u1EA1n c\xF3 th\u1EC3 h\u1ECDc Keras c\u0169ng nh\u01B0 transformers.",explain:"\u0110\xFAng, nh\u01B0ng ch\xFAng t\xF4i \u0111ang t\xECm ki\u1EBFm th\u1EE9 kh\xE1c :)",correct:!0},{text:"B\u1EA1n c\xF3 th\u1EC3 d\u1EC5 d\xE0ng t\xEDnh to\xE1n c\xE1c ch\u1EC9 s\u1ED1 li\xEAn quan \u0111\u1EBFn t\u1EADp d\u1EEF li\u1EC7u.",explain:"Keras gi\xFAp ch\xFAng ta hu\u1EA5n luy\u1EC7n v\xE0 \u0111\xE1nh gi\xE1 m\xF4 h\xECnh, kh\xF4ng ph\u1EA3i t\xEDnh to\xE1n c\xE1c s\u1ED1 li\u1EC7u li\xEAn quan \u0111\u1EBFn t\u1EADp d\u1EEF li\u1EC7u."}]}}),nt=new _t({}),at=new wt({props:{choices:[{text:"Th\xF4ng qua l\u1EDBp con <code>tf.keras.metrics.Metric</code>.",explain:"Tuy\u1EC7t v\u1EDDi!",correct:!0},{text:"S\u1EED d\u1EE5ng API ch\u1EE9c n\u0103ng c\u1EE7a Keras.",explain:"Th\u1EED l\u1EA1i!"},{text:"Th\xF4ng qua s\u1EED d\u1EE5ng <code>metric_fn(y_true, y_pred)</code>.",explain:"Ch\xEDnh x\xE1c!",correct:!0},{text:"S\u1EED d\u1EE5ng Googling.",explain:"\u0110\xF3 kh\xF4ng ph\u1EA3i l\xE0 c\xE2u tr\u1EA3 l\u1EDDi m\xE0 ch\xFAng t\xF4i \u0111ang t\xECm ki\u1EBFm, nh\u01B0ng n\xF3 s\u1EBD gi\xFAp b\u1EA1n t\xECm th\u1EA5y n\xF3.",correct:!0}]}}),{c(){v=c("h3"),E=c("a"),A=c("span"),y(T.$$.fragment),z=u(),x=c("span"),dt=m("4. \u0110i\u1EC1u g\xEC x\u1EA3y ra khi b\u1EA1n kh\u1EDFi t\u1EA1o m\u1ED9t trong c\xE1c l\u1EDBp "),B=c("code"),Et=m("TFAutoModelForXxx"),$t=m(" v\u1EDBi m\u1ED9t m\xF4 h\xECnh ng\xF4n ng\u1EEF hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc( v\xED d\u1EE5 nh\u01B0 "),mt=c("code"),W=m("bert-base-uncased"),Y=m(") m\xE0 li\xEAn quan t\u1EDBi m\u1ED9t t\xE1c v\u1EE5 kh\xE1c h\u01A1n l\xE0 t\xE1c v\u1EE5 m\xE0 n\xF3 \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n s\u1EB5n?"),O=u(),y(P.$$.fragment),gt=u(),C=c("h3"),N=c("a"),rt=c("span"),y(J.$$.fragment),xt=u(),V=c("span"),j=m("5. C\xE1c m\xF4 h\xECnh TensorFlow t\u1EEB "),I=c("code"),Z=m("transformers"),ft=m(" v\u1ED1n \u0111\xE3 l\xE0 c\xE1c m\xF4 h\xECnh Keras. L\u1EE3i \xEDch c\u1EE7a vi\u1EC7c n\xE0y l\xE0 g\xEC?"),D=u(),y(tt.$$.fragment),L=u(),q=c("h3"),U=c("a"),K=c("span"),y(nt.$$.fragment),S=u(),G=c("span"),it=m("6. L\xE0m th\u1EBF n\xE0o b\u1EA1n c\xF3 th\u1EC3 \u0111\u1ECBnh ngh\u0129a th\u01B0\u1EDBc \u0111o tu\u1EF3 ch\u1EC9nh c\u1EE7a ri\xEAng b\u1EA1n?"),et=u(),y(at.$$.fragment),this.h()},l(a){v=r(a,"H3",{class:!0});var k=i(v);E=r(k,"A",{id:!0,class:!0,href:!0});var At=i(E);A=r(At,"SPAN",{});var vt=i(A);b(T.$$.fragment,vt),vt.forEach(t),At.forEach(t),z=p(k),x=r(k,"SPAN",{});var Q=i(x);dt=g(Q,"4. \u0110i\u1EC1u g\xEC x\u1EA3y ra khi b\u1EA1n kh\u1EDFi t\u1EA1o m\u1ED9t trong c\xE1c l\u1EDBp "),B=r(Q,"CODE",{});var ht=i(B);Et=g(ht,"TFAutoModelForXxx"),ht.forEach(t),$t=g(Q," v\u1EDBi m\u1ED9t m\xF4 h\xECnh ng\xF4n ng\u1EEF hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc( v\xED d\u1EE5 nh\u01B0 "),mt=r(Q,"CODE",{});var ot=i(mt);W=g(ot,"bert-base-uncased"),ot.forEach(t),Y=g(Q,") m\xE0 li\xEAn quan t\u1EDBi m\u1ED9t t\xE1c v\u1EE5 kh\xE1c h\u01A1n l\xE0 t\xE1c v\u1EE5 m\xE0 n\xF3 \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n s\u1EB5n?"),Q.forEach(t),k.forEach(t),O=p(a),b(P.$$.fragment,a),gt=p(a),C=r(a,"H3",{class:!0});var lt=i(C);N=r(lt,"A",{id:!0,class:!0,href:!0});var X=i(N);rt=r(X,"SPAN",{});var Pt=i(rt);b(J.$$.fragment,Pt),Pt.forEach(t),X.forEach(t),xt=p(lt),V=r(lt,"SPAN",{});var F=i(V);j=g(F,"5. C\xE1c m\xF4 h\xECnh TensorFlow t\u1EEB "),I=r(F,"CODE",{});var st=i(I);Z=g(st,"transformers"),st.forEach(t),ft=g(F," v\u1ED1n \u0111\xE3 l\xE0 c\xE1c m\xF4 h\xECnh Keras. L\u1EE3i \xEDch c\u1EE7a vi\u1EC7c n\xE0y l\xE0 g\xEC?"),F.forEach(t),lt.forEach(t),D=p(a),b(tt.$$.fragment,a),L=p(a),q=r(a,"H3",{class:!0});var ut=i(q);U=r(ut,"A",{id:!0,class:!0,href:!0});var R=i(U);K=r(R,"SPAN",{});var Nt=i(K);b(nt.$$.fragment,Nt),Nt.forEach(t),R.forEach(t),S=p(ut),G=r(ut,"SPAN",{});var M=i(G);it=g(M,"6. L\xE0m th\u1EBF n\xE0o b\u1EA1n c\xF3 th\u1EC3 \u0111\u1ECBnh ngh\u0129a th\u01B0\u1EDBc \u0111o tu\u1EF3 ch\u1EC9nh c\u1EE7a ri\xEAng b\u1EA1n?"),M.forEach(t),ut.forEach(t),et=p(a),b(at.$$.fragment,a),this.h()},h(){o(E,"id","4.-\u0111i\u1EC1u-g\xEC-x\u1EA3y-ra-khi-b\u1EA1n-kh\u1EDFi-t\u1EA1o-m\u1ED9t-trong-c\xE1c-l\u1EDBp-<code>tfautomodelforxxx</code>-v\u1EDBi-m\u1ED9t-m\xF4-h\xECnh-ng\xF4n-ng\u1EEF-hu\u1EA5n-luy\u1EC7n-tr\u01B0\u1EDBc(-v\xED-d\u1EE5-nh\u01B0-<code>bert-base-uncased</code>)-m\xE0-li\xEAn-quan-t\u1EDBi-m\u1ED9t-t\xE1c-v\u1EE5-kh\xE1c-h\u01A1n-l\xE0-t\xE1c-v\u1EE5-m\xE0-n\xF3-\u0111\u01B0\u1EE3c-hu\u1EA5n-luy\u1EC7n-s\u1EB5n?"),o(E,"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"),o(E,"href","#4.-\u0111i\u1EC1u-g\xEC-x\u1EA3y-ra-khi-b\u1EA1n-kh\u1EDFi-t\u1EA1o-m\u1ED9t-trong-c\xE1c-l\u1EDBp-<code>tfautomodelforxxx</code>-v\u1EDBi-m\u1ED9t-m\xF4-h\xECnh-ng\xF4n-ng\u1EEF-hu\u1EA5n-luy\u1EC7n-tr\u01B0\u1EDBc(-v\xED-d\u1EE5-nh\u01B0-<code>bert-base-uncased</code>)-m\xE0-li\xEAn-quan-t\u1EDBi-m\u1ED9t-t\xE1c-v\u1EE5-kh\xE1c-h\u01A1n-l\xE0-t\xE1c-v\u1EE5-m\xE0-n\xF3-\u0111\u01B0\u1EE3c-hu\u1EA5n-luy\u1EC7n-s\u1EB5n?"),o(v,"class","relative group"),o(N,"id","5.-c\xE1c-m\xF4-h\xECnh-tensorflow-t\u1EEB-<code>transformers</code>-v\u1ED1n-\u0111\xE3-l\xE0-c\xE1c-m\xF4-h\xECnh-keras.-l\u1EE3i-\xEDch-c\u1EE7a-vi\u1EC7c-n\xE0y-l\xE0-g\xEC?"),o(N,"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"),o(N,"href","#5.-c\xE1c-m\xF4-h\xECnh-tensorflow-t\u1EEB-<code>transformers</code>-v\u1ED1n-\u0111\xE3-l\xE0-c\xE1c-m\xF4-h\xECnh-keras.-l\u1EE3i-\xEDch-c\u1EE7a-vi\u1EC7c-n\xE0y-l\xE0-g\xEC?"),o(C,"class","relative group"),o(U,"id","6.-l\xE0m-th\u1EBF-n\xE0o-b\u1EA1n-c\xF3-th\u1EC3-\u0111\u1ECBnh-ngh\u0129a-th\u01B0\u1EDBc-\u0111o-tu\u1EF3-ch\u1EC9nh-c\u1EE7a-ri\xEAng-b\u1EA1n?"),o(U,"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"),o(U,"href","#6.-l\xE0m-th\u1EBF-n\xE0o-b\u1EA1n-c\xF3-th\u1EC3-\u0111\u1ECBnh-ngh\u0129a-th\u01B0\u1EDBc-\u0111o-tu\u1EF3-ch\u1EC9nh-c\u1EE7a-ri\xEAng-b\u1EA1n?"),o(q,"class","relative group")},m(a,k){l(a,v,k),h(v,E),h(E,A),_(T,A,null),h(v,z),h(v,x),h(x,dt),h(x,B),h(B,Et),h(x,$t),h(x,mt),h(mt,W),h(x,Y),l(a,O,k),_(P,a,k),l(a,gt,k),l(a,C,k),h(C,N),h(N,rt),_(J,rt,null),h(C,xt),h(C,V),h(V,j),h(V,I),h(I,Z),h(V,ft),l(a,D,k),_(tt,a,k),l(a,L,k),l(a,q,k),h(q,U),h(U,K),_(nt,K,null),h(q,S),h(q,G),h(G,it),l(a,et,k),_(at,a,k),H=!0},i(a){H||($(T.$$.fragment,a),$(P.$$.fragment,a),$(J.$$.fragment,a),$(tt.$$.fragment,a),$(nt.$$.fragment,a),$(at.$$.fragment,a),H=!0)},o(a){d(T.$$.fragment,a),d(P.$$.fragment,a),d(J.$$.fragment,a),d(tt.$$.fragment,a),d(nt.$$.fragment,a),d(at.$$.fragment,a),H=!1},d(a){a&&t(v),w(T),a&&t(O),w(P,a),a&&t(gt),a&&t(C),w(J),a&&t(D),w(tt,a),a&&t(L),a&&t(q),w(nt),a&&t(et),w(at,a)}}}function En(Lt){let v,E,A,T,z,x,dt,B,Et,$t,mt,W,Y,O,P,gt,C,N,rt,J,xt,V,j,I,Z,ft,D,tt,L,q,U,K,nt,S,G,it,et,at,H,a,k,At,vt,Q,ht,ot,lt,X,Pt,F,st,ut,R,Nt,M,pt,kt,Kt,It,yt,St,e,s,ct,bt,Tt,Ut,Dt,Ct,Ft,qt,Ht;return T=new _t({}),W=new wt({props:{choices:[{text:"K\u1EBFt qu\u1EA3 c\u1EE7a h\xE0m \u0111\u01B0\u1EE3c l\u01B0u v\xE0o b\u1ED9 nh\u1EDB \u0111\u1EC7m, v\xEC v\u1EADy s\u1EBD kh\xF4ng m\u1EA5t th\u1EDDi gian n\u1EBFu ch\xFAng t\xF4i th\u1EF1c thi l\u1EA1i m\xE3.",explain:"\u0110\xF3 th\u1EF1c s\u1EF1 l\xE0 m\u1ED9t trong nh\u1EEFng l\u1EE3i \xEDch c\u1EE7a ph\u01B0\u01A1ng ph\xE1p n\xE0y! Tuy nhi\xEAn, n\xF3 kh\xF4ng ph\u1EA3i l\xE0 l\u1EE3i \xEDch duy nh\u1EA5t...",correct:!0},{text:"N\xF3 c\xF3 th\u1EC3 \xE1p d\u1EE5ng x\u1EED l\xFD \u0111a lu\u1ED3ng \u0111\u1EC3 th\u1EF1c thi nhanh h\u01A1n so v\u1EDBi vi\u1EC7c \xE1p d\u1EE5ng h\xE0m tr\xEAn t\u1EEBng ph\u1EA7n t\u1EED c\u1EE7a t\u1EADp d\u1EEF li\u1EC7u.",explain:"\u0110\xE2y l\xE0 m\u1ED9t t\xEDnh n\u0103ng g\u1ECDn g\xE0ng c\u1EE7a ph\u01B0\u01A1ng ph\xE1p n\xE0y, nh\u01B0ng n\xF3 kh\xF4ng ph\u1EA3i l\xE0 l\u1EE3i \xEDch duy nh\u1EA5t!",correct:!0},{text:"N\xF3 kh\xF4ng t\u1EA3i to\xE0n b\u1ED9 t\u1EADp d\u1EEF li\u1EC7u v\xE0o b\u1ED9 nh\u1EDB, l\u01B0u k\u1EBFt qu\u1EA3 ngay sau khi m\u1ED9t ph\u1EA7n t\u1EED \u0111\u01B0\u1EE3c x\u1EED l\xFD.",explain:"\u0110\xF3 l\xE0 m\u1ED9t l\u1EE3i th\u1EBF c\u1EE7a ph\u01B0\u01A1ng ph\xE1p n\xE0y. Tuy nhi\xEAn, v\u1EABn c\xF3 nh\u1EEFng l\u1EE3i \xEDch kh\xE1c!",correct:!0}]}}),C=new _t({}),V=new wt({props:{choices:[{text:"\u0110\xF3 l\xE0 khi b\u1EA1n \u0111\u1EC7m c\xE1c \u0111\u1EA7u v\xE0o cho m\u1ED7i l\xF4 \u0111\u1EBFn \u0111\u1ED9 d\xE0i t\u1ED1i \u0111a trong to\xE0n b\u1ED9 t\u1EADp d\u1EEF li\u1EC7u.",explain:"N\xF3 ng\u1EE5 \xFD \u0111\u1EC7m khi t\u1EA1o l\xF4, nh\u01B0ng kh\xF4ng c\xF3 \u0111\u1ED9 d\xE0i t\u1ED1i \u0111a trong to\xE0n b\u1ED9 t\u1EADp d\u1EEF li\u1EC7u."},{text:"\u0110\xF3 l\xE0 khi b\u1EA1n \u0111\u1EC7m \u0111\u1EA7u v\xE0o c\u1EE7a m\xECnh khi t\u1EA1o l\xF4, \u0111\u1EBFn \u0111\u1ED9 d\xE0i t\u1ED1i \u0111a c\u1EE7a c\xE1c c\xE2u b\xEAn trong l\xF4 \u0111\xF3.",explain:'\u0110\xFAng v\u1EADy! Ph\u1EA7n "\u0111\u1ED9ng" xu\u1EA5t ph\xE1t t\u1EEB th\u1EF1c t\u1EBF l\xE0 k\xEDch th\u01B0\u1EDBc c\u1EE7a m\u1ED7i l\xF4 \u0111\u01B0\u1EE3c x\xE1c \u0111\u1ECBnh t\u1EA1i th\u1EDDi \u0111i\u1EC3m t\u1EA1o ra v\xE0 k\u1EBFt qu\u1EA3 l\xE0 t\u1EA5t c\u1EA3 c\xE1c l\xF4 c\u1EE7a b\u1EA1n c\xF3 th\u1EC3 c\xF3 c\xE1c h\xECnh d\u1EA1ng kh\xE1c nhau.',correct:!0},{text:"\u0110\xF3 l\xE0 khi b\u1EA1n \u0111\u1EC7m \u0111\u1EA7u v\xE0o c\u1EE7a m\xECnh \u0111\u1EC3 m\u1ED7i c\xE2u c\xF3 c\xF9ng s\u1ED1 l\u01B0\u1EE3ng token nh\u01B0 c\xE2u tr\u01B0\u1EDBc trong t\u1EADp d\u1EEF li\u1EC7u.",explain:"\u0110i\u1EC1u \u0111\xF3 kh\xF4ng ch\xEDnh x\xE1c, c\u1ED9ng v\u1EDBi vi\u1EC7c xem x\xE9t th\u1EE9 t\u1EF1 trong t\u1EADp d\u1EEF li\u1EC7u kh\xF4ng c\xF3 \xFD ngh\u0129a g\xEC v\xEC ch\xFAng t\xF4i x\xE1o tr\u1ED9n n\xF3 trong qu\xE1 tr\xECnh hu\u1EA5n luy\u1EC7n."}]}}),D=new _t({}),K=new wt({props:{choices:[{text:"N\xF3 \u0111\u1EA3m b\u1EA3o t\u1EA5t c\u1EA3 c\xE1c chu\u1ED7i trong t\u1EADp d\u1EEF li\u1EC7u c\xF3 c\xF9ng \u0111\u1ED9 d\xE0i.",explain:"M\u1ED9t h\xE0m \u0111\u1ED1i chi\u1EBFu c\xF3 li\xEAn quan \u0111\u1EBFn vi\u1EC7c x\u1EED l\xFD c\xE1c l\xF4 ri\xEAng l\u1EBB, kh\xF4ng ph\u1EA3i to\xE0n b\u1ED9 t\u1EADp d\u1EEF li\u1EC7u. Ngo\xE0i ra, ch\xFAng ta \u0111ang n\xF3i v\u1EC1 c\xE1c h\xE0m \u0111\u1ED1i chi\u1EBFu chung, kh\xF4ng c\u1EE5 th\u1EC3 l\xE0 <code>DataCollatorWithPadding</code>."},{text:"N\xF3 t\u1EADp h\u1EE3p t\u1EA5t c\u1EA3 c\xE1c m\u1EABu l\u1EA1i trong m\u1ED9t l\xF4.",explain:"\u0110\xFAng! B\u1EA1n c\xF3 th\u1EC3 truy\u1EC1n h\xE0m \u0111\u1ED1i chi\u1EBFu nh\u01B0 m\u1ED9t tham s\u1ED1 c\u1EE7a <code>DataLoader</code>. Ch\xFAng t\xF4i \u0111\xE3 s\u1EED d\u1EE5ng h\xE0m <code>DataCollatorWithPadding</code>, m\u1ED9t h\xE0m \u0111\u1EC7m t\u1EA5t c\u1EA3 c\xE1c m\u1EE5c trong m\u1ED9t l\xF4 \u0111\u1EC3 ch\xFAng gi\u1ED1ng nhau v\u1EC1 chi\u1EC1u d\xE0i.",correct:!0},{text:"N\xF3 ti\u1EC1n x\u1EED l\xFD to\xE0n b\u1ED9 t\u1EADp d\u1EEF li\u1EC7u.",explain:"\u0110\xF3 l\xE0 m\u1ED9t h\xE0m ti\u1EC1n x\u1EED l\xFD, kh\xF4ng ph\u1EA3i l\xE0 m\u1ED9t h\xE0m \u0111\u1ED1i chi\u1EBFu."},{text:"N\xF3 c\u1EAFt b\u1EDBt c\xE1c chu\u1ED7i trong t\u1EADp d\u1EEF li\u1EC7u.",explain:"M\u1ED9t h\xE0m \u0111\u1ED1i chi\u1EBFu li\xEAn quan \u0111\u1EBFn vi\u1EC7c x\u1EED l\xFD c\xE1c l\xF4 ri\xEAng l\u1EBB, kh\xF4ng ph\u1EA3i to\xE0n b\u1ED9 t\u1EADp d\u1EEF li\u1EC7u. N\u1EBFu b\u1EA1n mu\u1ED1n c\u1EAFt ng\u1EAFn, b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng tham s\u1ED1 <code>truncate</code> c\u1EE7a <code>tokenizer</code>."}]}}),et=new _t({}),X=new wt({props:{choices:[{text:"Nothing, but you get a warning.",explain:"You do get a warning, but that's not all!"},{text:"Ph\u1EA7n \u0111\u1EA7u c\u1EE7a m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc b\u1ECB lo\u1EA1i b\u1ECF v\xE0 ph\u1EA7n \u0111\u1EA7u m\u1EDBi ph\xF9 h\u1EE3p v\u1EDBi t\xE1c v\u1EE5 s\u1EBD \u0111\u01B0\u1EE3c ch\xE8n v\xE0o thay th\u1EBF.",explain:"Ch\xEDnh x\xE1c. V\xED d\u1EE5, Khi ta s\u1EED d\u1EE5ng <code>AutoModelForSequenceClassification</code> v\u1EDBi <code>bert-base-uncased</code>, ta nh\u1EADn \u0111\u01B0\u1EE3c c\u1EA3nh b\xE1o khi kh\u1EDFi t\u1EA1o m\xF4 h\xECnh. Ph\u1EA7n \u0111\u1EA7u \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc kh\xF4ng \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng cho chu\u1ED7i t\xE1c v\u1EE5 ph\xE2n lo\u1EA1i, v\xEC v\u1EADy n\xF3 b\u1ECB lo\u1EA1i b\u1ECF v\xE0 m\u1ED9t ph\u1EA7n \u0111\u1EA7u m\u1EDBi \u0111\u01B0\u1EE3c kh\u1EDFi t\u1EA1o v\u1EDBi c\xE1c tr\u1ECDng s\u1ED1 ng\u1EABu nhi\xEAn.",correct:!0},{text:"Ph\u1EA7n \u0111\u1EA7u c\u1EE7a m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc b\u1ECB lo\u1EA1i b\u1ECF.",explain:"M\u1ED9t \u0111i\u1EC1u g\xEC \u0111\xF3 kh\xE1c c\u1EA7n ph\u1EA3i x\u1EA3y ra. H\xE3y th\u1EED l\u1EA1i!"},{text:"Kh\xF4ng c\xF3 g\xEC, v\xEC m\xF4 h\xECnh v\u1EABn c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c tinh ch\u1EC9nh cho c\xE1c t\xE1c v\u1EE5 kh\xE1c.",explain:"Ph\u1EA7n \u0111\u1EA7u c\u1EE7a m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc kh\xF4ng \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n \u0111\u1EC3 gi\u1EA3i quy\u1EBFt t\xE1c v\u1EE5 n\xE0y, v\xEC v\u1EADy ch\xFAng ta n\xEAn lo\u1EA1i b\u1ECF ph\u1EA7n \u0111\u1EA7u!"}]}}),R=new _t({}),St=new wt({props:{choices:[{text:"N\xF3 ch\u1EE9a t\u1EA5t c\u1EA3 c\xE1c si\xEAu tham s\u1ED1 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 hu\u1EA5n luy\u1EC7n v\xE0 \u0111\xE1nh gi\xE1 v\u1EDBi <code>Trainer</code>.",explain:"Ch\xEDnh x\xE1c!",correct:!0},{text:"N\xF3 ch\u1EC9 \u0111\u1ECBnh k\xEDch th\u01B0\u1EDBc c\u1EE7a m\xF4 h\xECnh.",explain:"K\xEDch th\u01B0\u1EDBc m\xF4 h\xECnh \u0111\u01B0\u1EE3c x\xE1c \u0111\u1ECBnh b\u1EDFi c\u1EA5u h\xECnh m\xF4 h\xECnh, kh\xF4ng ph\u1EA3i l\u1EDBp <code>TrainingArguments</code>."},{text:"N\xF3 ch\u1EC9 ch\u1EE9a c\xE1c si\xEAu tham s\u1ED1 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 \u0111\xE1nh gi\xE1.",explain:"Trong v\xED d\u1EE5 n\xE0y, ch\xFAng t\xF4i \u0111\xE3 ch\u1EC9 \u0111\u1ECBnh n\u01A1i m\xF4 h\xECnh v\xE0 c\xE1c checkpoint c\u1EE7a n\xF3 s\u1EBD \u0111\u01B0\u1EE3c l\u01B0u. H\xE3y th\u1EED l\u1EA1i!"},{text:"N\xF3 ch\u1EC9 ch\u1EE9a c\xE1c si\xEAu tham s\u1ED1 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 hu\u1EA5n luy\u1EC7n.",explain:"Trong v\xED d\u1EE5 n\xE0y, ch\xFAng t\xF4i c\u0169ng \u0111\xE3 s\u1EED d\u1EE5ng <code>evaluation_strategy</code>, v\xEC v\u1EADy \u0111i\u1EC1u n\xE0y \u1EA3nh h\u01B0\u1EDFng \u0111\u1EBFn vi\u1EC7c \u0111\xE1nh gi\xE1 m\xF4 h\xECnh. H\xE3y th\u1EED l\u1EA1i!"}]}}),Tt=new _t({}),qt=new wt({props:{choices:[{text:"N\xF3 cung c\u1EA5p quy\u1EC1n truy c\u1EADp v\xE0o c\xE1c m\xF4 h\xECnh nhanh h\u01A1n.",explain:"Kh\xF4ng, th\u01B0 vi\u1EC7n \u{1F917} Accelerate kh\xF4ng cung c\u1EA5p b\u1EA5t k\u1EF3 m\xF4 h\xECnh n\xE0o."},{text:"IN\xF3 cung c\u1EA5p m\u1ED9t API c\u1EA5p cao n\xEAn t\xF4i kh\xF4ng ph\u1EA3i tri\u1EC3n khai v\xF2ng l\u1EB7p hu\u1EA5n luy\u1EC7nc\u1EE7a ri\xEAng m\xECnh.",explain:"\u0110\xE2y l\xE0 nh\u1EEFng g\xEC ta \u0111\xE3 l\xE0m v\u1EDBi <code>Trainer</code>, kh\xF4ng ph\u1EA3i v\u1EDBi th\u01B0 vi\u1EC7n \u{1F917} Accelerate. H\xE3y th\u1EED l\u1EA1i!"},{text:"N\xF3 l\xE0m cho c\xE1c v\xF2ng hu\u1EA5n luy\u1EC7n ho\u1EA1t \u0111\u1ED9ng d\u1EF1a tr\xEAn c\xE1c chi\u1EBFn l\u01B0\u1EE3c ph\xE2n t\xE1n",explain:"\u0110\xFAng! V\u1EDBi \u{1F917} Accelerate, c\xE1c v\xF2ng hu\u1EA5n luy\u1EC7n c\u1EE7a b\u1EA1n s\u1EBD ho\u1EA1t \u0111\u1ED9ng cho nhi\u1EC1u GPU v\xE0 TPU.",correct:!0},{text:"N\xF3 cung c\u1EA5p nhi\u1EC1u h\xE0m t\u1ED1i \u01B0u h\u01A1n.",explain:"Kh\xF4ng, th\u01B0 vi\u1EC7n \u{1F917} Accelerate kh\xF4ng cung c\u1EA5p b\u1EA5t k\u1EF3 h\xE0m t\u1ED1i \u01B0u n\xE0o."}]}}),{c(){v=c("h3"),E=c("a"),A=c("span"),y(T.$$.fragment),z=u(),x=c("span"),dt=m("4. L\u1EE3i \xEDch c\u1EE7a ph\u01B0\u01A1ng th\u1EE9c "),B=c("code"),Et=m("Dataset.map()"),$t=m(" l\xE0 g\xEC?"),mt=u(),y(W.$$.fragment),Y=u(),O=c("h3"),P=c("a"),gt=c("span"),y(C.$$.fragment),N=u(),rt=c("span"),J=m("5. \u0110\u1EC7m \u0111\u1ED9ng ngh\u0129a l\xE0 sao?"),xt=u(),y(V.$$.fragment),j=u(),I=c("h3"),Z=c("a"),ft=c("span"),y(D.$$.fragment),tt=u(),L=c("span"),q=m("6. M\u1EE5c \u0111\xEDch c\u1EE7a h\xE0m \u0111\u1ED1i chi\u1EBFu l\xE0 g\xEC?"),U=u(),y(K.$$.fragment),nt=u(),S=c("h3"),G=c("a"),it=c("span"),y(et.$$.fragment),at=u(),H=c("span"),a=m("7. \u0110i\u1EC1u g\xEC x\u1EA3y ra khi b\u1EA1n kh\u1EDFi t\u1EA1o m\u1ED9t trong c\xE1c l\u1EDBp "),k=c("code"),At=m("AutoModelForXxx"),vt=m(" v\u1EDBi m\u1ED9t m\xF4 h\xECnh ng\xF4n ng\u1EEF hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc( v\xED d\u1EE5 nh\u01B0 "),Q=c("code"),ht=m("bert-base-uncased"),ot=m(") m\xE0 li\xEAn quan t\u1EDBi m\u1ED9t t\xE1c v\u1EE5 kh\xE1c h\u01A1n l\xE0 t\xE1c v\u1EE5 m\xE0 n\xF3 \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n s\u1EB5n?"),lt=u(),y(X.$$.fragment),Pt=u(),F=c("h3"),st=c("a"),ut=c("span"),y(R.$$.fragment),Nt=u(),M=c("span"),pt=m("8. M\u1EE5c \u0111\xEDch c\u1EE7a "),kt=c("code"),Kt=m("TrainingArguments"),It=m(" l\xE0 g\xEC?"),yt=u(),y(St.$$.fragment),e=u(),s=c("h3"),ct=c("a"),bt=c("span"),y(Tt.$$.fragment),Ut=u(),Dt=c("span"),Ct=m("9. V\xEC sao b\u1EA1n n\xEAn s\u1EED d\u1EE5ng th\u01B0 vi\u1EC7n \u{1F917} Accelerate?"),Ft=u(),y(qt.$$.fragment),this.h()},l(n){v=r(n,"H3",{class:!0});var f=i(v);E=r(f,"A",{id:!0,class:!0,href:!0});var Mt=i(E);A=r(Mt,"SPAN",{});var Xt=i(A);b(T.$$.fragment,Xt),Xt.forEach(t),Mt.forEach(t),z=p(f),x=r(f,"SPAN",{});var Bt=i(x);dt=g(Bt,"4. L\u1EE3i \xEDch c\u1EE7a ph\u01B0\u01A1ng th\u1EE9c "),B=r(Bt,"CODE",{});var Ot=i(B);Et=g(Ot,"Dataset.map()"),Ot.forEach(t),$t=g(Bt," l\xE0 g\xEC?"),Bt.forEach(t),f.forEach(t),mt=p(n),b(W.$$.fragment,n),Y=p(n),O=r(n,"H3",{class:!0});var Vt=i(O);P=r(Vt,"A",{id:!0,class:!0,href:!0});var Rt=i(P);gt=r(Rt,"SPAN",{});var zt=i(gt);b(C.$$.fragment,zt),zt.forEach(t),Rt.forEach(t),N=p(Vt),rt=r(Vt,"SPAN",{});var Zt=i(rt);J=g(Zt,"5. \u0110\u1EC7m \u0111\u1ED9ng ngh\u0129a l\xE0 sao?"),Zt.forEach(t),Vt.forEach(t),xt=p(n),b(V.$$.fragment,n),j=p(n),I=r(n,"H3",{class:!0});var Jt=i(I);Z=r(Jt,"A",{id:!0,class:!0,href:!0});var tn=i(Z);ft=r(tn,"SPAN",{});var nn=i(ft);b(D.$$.fragment,nn),nn.forEach(t),tn.forEach(t),tt=p(Jt),L=r(Jt,"SPAN",{});var en=i(L);q=g(en,"6. M\u1EE5c \u0111\xEDch c\u1EE7a h\xE0m \u0111\u1ED1i chi\u1EBFu l\xE0 g\xEC?"),en.forEach(t),Jt.forEach(t),U=p(n),b(K.$$.fragment,n),nt=p(n),S=r(n,"H3",{class:!0});var Qt=i(S);G=r(Qt,"A",{id:!0,class:!0,href:!0});var hn=i(G);it=r(hn,"SPAN",{});var cn=i(it);b(et.$$.fragment,cn),cn.forEach(t),hn.forEach(t),at=p(Qt),H=r(Qt,"SPAN",{});var Gt=i(H);a=g(Gt,"7. \u0110i\u1EC1u g\xEC x\u1EA3y ra khi b\u1EA1n kh\u1EDFi t\u1EA1o m\u1ED9t trong c\xE1c l\u1EDBp "),k=r(Gt,"CODE",{});var rn=i(k);At=g(rn,"AutoModelForXxx"),rn.forEach(t),vt=g(Gt," v\u1EDBi m\u1ED9t m\xF4 h\xECnh ng\xF4n ng\u1EEF hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc( v\xED d\u1EE5 nh\u01B0 "),Q=r(Gt,"CODE",{});var an=i(Q);ht=g(an,"bert-base-uncased"),an.forEach(t),ot=g(Gt,") m\xE0 li\xEAn quan t\u1EDBi m\u1ED9t t\xE1c v\u1EE5 kh\xE1c h\u01A1n l\xE0 t\xE1c v\u1EE5 m\xE0 n\xF3 \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n s\u1EB5n?"),Gt.forEach(t),Qt.forEach(t),lt=p(n),b(X.$$.fragment,n),Pt=p(n),F=r(n,"H3",{class:!0});var Wt=i(F);st=r(Wt,"A",{id:!0,class:!0,href:!0});var on=i(st);ut=r(on,"SPAN",{});var ln=i(ut);b(R.$$.fragment,ln),ln.forEach(t),on.forEach(t),Nt=p(Wt),M=r(Wt,"SPAN",{});var Yt=i(M);pt=g(Yt,"8. M\u1EE5c \u0111\xEDch c\u1EE7a "),kt=r(Yt,"CODE",{});var sn=i(kt);Kt=g(sn,"TrainingArguments"),sn.forEach(t),It=g(Yt," l\xE0 g\xEC?"),Yt.forEach(t),Wt.forEach(t),yt=p(n),b(St.$$.fragment,n),e=p(n),s=r(n,"H3",{class:!0});var jt=i(s);ct=r(jt,"A",{id:!0,class:!0,href:!0});var un=i(ct);bt=r(un,"SPAN",{});var pn=i(bt);b(Tt.$$.fragment,pn),pn.forEach(t),un.forEach(t),Ut=p(jt),Dt=r(jt,"SPAN",{});var mn=i(Dt);Ct=g(mn,"9. V\xEC sao b\u1EA1n n\xEAn s\u1EED d\u1EE5ng th\u01B0 vi\u1EC7n \u{1F917} Accelerate?"),mn.forEach(t),jt.forEach(t),Ft=p(n),b(qt.$$.fragment,n),this.h()},h(){o(E,"id","4.-l\u1EE3i-\xEDch-c\u1EE7a-ph\u01B0\u01A1ng-th\u1EE9c-<code>dataset.map()</code>-l\xE0-g\xEC?"),o(E,"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"),o(E,"href","#4.-l\u1EE3i-\xEDch-c\u1EE7a-ph\u01B0\u01A1ng-th\u1EE9c-<code>dataset.map()</code>-l\xE0-g\xEC?"),o(v,"class","relative group"),o(P,"id","5.-\u0111\u1EC7m-\u0111\u1ED9ng-ngh\u0129a-l\xE0-sao?"),o(P,"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"),o(P,"href","#5.-\u0111\u1EC7m-\u0111\u1ED9ng-ngh\u0129a-l\xE0-sao?"),o(O,"class","relative group"),o(Z,"id","6.-m\u1EE5c-\u0111\xEDch-c\u1EE7a-h\xE0m-\u0111\u1ED1i-chi\u1EBFu-l\xE0-g\xEC?"),o(Z,"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"),o(Z,"href","#6.-m\u1EE5c-\u0111\xEDch-c\u1EE7a-h\xE0m-\u0111\u1ED1i-chi\u1EBFu-l\xE0-g\xEC?"),o(I,"class","relative group"),o(G,"id","7.-\u0111i\u1EC1u-g\xEC-x\u1EA3y-ra-khi-b\u1EA1n-kh\u1EDFi-t\u1EA1o-m\u1ED9t-trong-c\xE1c-l\u1EDBp-<code>automodelforxxx</code>-v\u1EDBi-m\u1ED9t-m\xF4-h\xECnh-ng\xF4n-ng\u1EEF-hu\u1EA5n-luy\u1EC7n-tr\u01B0\u1EDBc(-v\xED-d\u1EE5-nh\u01B0-<code>bert-base-uncased</code>)-m\xE0-li\xEAn-quan-t\u1EDBi-m\u1ED9t-t\xE1c-v\u1EE5-kh\xE1c-h\u01A1n-l\xE0-t\xE1c-v\u1EE5-m\xE0-n\xF3-\u0111\u01B0\u1EE3c-hu\u1EA5n-luy\u1EC7n-s\u1EB5n?"),o(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"),o(G,"href","#7.-\u0111i\u1EC1u-g\xEC-x\u1EA3y-ra-khi-b\u1EA1n-kh\u1EDFi-t\u1EA1o-m\u1ED9t-trong-c\xE1c-l\u1EDBp-<code>automodelforxxx</code>-v\u1EDBi-m\u1ED9t-m\xF4-h\xECnh-ng\xF4n-ng\u1EEF-hu\u1EA5n-luy\u1EC7n-tr\u01B0\u1EDBc(-v\xED-d\u1EE5-nh\u01B0-<code>bert-base-uncased</code>)-m\xE0-li\xEAn-quan-t\u1EDBi-m\u1ED9t-t\xE1c-v\u1EE5-kh\xE1c-h\u01A1n-l\xE0-t\xE1c-v\u1EE5-m\xE0-n\xF3-\u0111\u01B0\u1EE3c-hu\u1EA5n-luy\u1EC7n-s\u1EB5n?"),o(S,"class","relative group"),o(st,"id","8.-m\u1EE5c-\u0111\xEDch-c\u1EE7a-<code>trainingarguments</code>-l\xE0-g\xEC?"),o(st,"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"),o(st,"href","#8.-m\u1EE5c-\u0111\xEDch-c\u1EE7a-<code>trainingarguments</code>-l\xE0-g\xEC?"),o(F,"class","relative group"),o(ct,"id","9.-v\xEC-sao-b\u1EA1n-n\xEAn-s\u1EED-d\u1EE5ng-th\u01B0-vi\u1EC7n-\u{1F917}-accelerate?"),o(ct,"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"),o(ct,"href","#9.-v\xEC-sao-b\u1EA1n-n\xEAn-s\u1EED-d\u1EE5ng-th\u01B0-vi\u1EC7n-\u{1F917}-accelerate?"),o(s,"class","relative group")},m(n,f){l(n,v,f),h(v,E),h(E,A),_(T,A,null),h(v,z),h(v,x),h(x,dt),h(x,B),h(B,Et),h(x,$t),l(n,mt,f),_(W,n,f),l(n,Y,f),l(n,O,f),h(O,P),h(P,gt),_(C,gt,null),h(O,N),h(O,rt),h(rt,J),l(n,xt,f),_(V,n,f),l(n,j,f),l(n,I,f),h(I,Z),h(Z,ft),_(D,ft,null),h(I,tt),h(I,L),h(L,q),l(n,U,f),_(K,n,f),l(n,nt,f),l(n,S,f),h(S,G),h(G,it),_(et,it,null),h(S,at),h(S,H),h(H,a),h(H,k),h(k,At),h(H,vt),h(H,Q),h(Q,ht),h(H,ot),l(n,lt,f),_(X,n,f),l(n,Pt,f),l(n,F,f),h(F,st),h(st,ut),_(R,ut,null),h(F,Nt),h(F,M),h(M,pt),h(M,kt),h(kt,Kt),h(M,It),l(n,yt,f),_(St,n,f),l(n,e,f),l(n,s,f),h(s,ct),h(ct,bt),_(Tt,bt,null),h(s,Ut),h(s,Dt),h(Dt,Ct),l(n,Ft,f),_(qt,n,f),Ht=!0},i(n){Ht||($(T.$$.fragment,n),$(W.$$.fragment,n),$(C.$$.fragment,n),$(V.$$.fragment,n),$(D.$$.fragment,n),$(K.$$.fragment,n),$(et.$$.fragment,n),$(X.$$.fragment,n),$(R.$$.fragment,n),$(St.$$.fragment,n),$(Tt.$$.fragment,n),$(qt.$$.fragment,n),Ht=!0)},o(n){d(T.$$.fragment,n),d(W.$$.fragment,n),d(C.$$.fragment,n),d(V.$$.fragment,n),d(D.$$.fragment,n),d(K.$$.fragment,n),d(et.$$.fragment,n),d(X.$$.fragment,n),d(R.$$.fragment,n),d(St.$$.fragment,n),d(Tt.$$.fragment,n),d(qt.$$.fragment,n),Ht=!1},d(n){n&&t(v),w(T),n&&t(mt),w(W,n),n&&t(Y),n&&t(O),w(C),n&&t(xt),w(V,n),n&&t(j),n&&t(I),w(D),n&&t(U),w(K,n),n&&t(nt),n&&t(S),w(et),n&&t(lt),w(X,n),n&&t(Pt),n&&t(F),w(R),n&&t(yt),w(St,n),n&&t(e),n&&t(s),w(Tt),n&&t(Ft),w(qt,n)}}}function An(Lt){let v,E,A,T,z,x,dt,B,Et,$t,mt,W,Y,O,P,gt,C,N,rt,J,xt,V,j,I,Z,ft,D,tt,L,q,U,K,nt,S,G,it,et,at,H,a,k,At,vt,Q,ht,ot,lt,X,Pt,F,st,ut,R,Nt,M,pt,kt,Kt;A=new _n({props:{fw:Lt[0]}}),B=new _t({}),Y=new bn({props:{chapter:3,classNames:"absolute z-10 right-0 top-0"}}),D=new wt({props:{choices:[{text:"Joy (Vui v\u1EBB)",explain:"H\xE3y th\u1EED l\u1EA1i - c\u1EA3m x\xFAc n\xE0y c\xF3 trong t\u1EADp d\u1EEF li\u1EC7u \u0111\xF3!"},{text:"Love (Y\xEAu th\xEDch)",explain:"H\xE3y th\u1EED l\u1EA1i - c\u1EA3m x\xFAc n\xE0y c\xF3 trong t\u1EADp d\u1EEF li\u1EC7u \u0111\xF3!"},{text:"Confusion (B\u1ED1i r\u1ED1i)",explain:"Ch\xEDnh x\xE1c! B\u1ED1i r\u1ED1i kh\xF4ng ph\u1EA3i l\xE0 m\u1ED9t trong s\xE1u c\u1EA3m x\xFAc c\u01A1 b\u1EA3n.",correct:!0},{text:"Surprise (Ng\u1EA1c nhi\xEAn)",explain:"Ng\u1EA1c nhi\xEAn ch\u01B0a! Th\u1EED c\xE1i kh\xE1c xem!"}]}}),K=new _t({}),vt=new wt({props:{choices:[{text:"Ph\xE2n lo\u1EA1i c\u1EA3m x\xFAc",explain:"\u0110\xFAng r\u1ED3i! B\u1EA1n c\xF3 th\u1EC3 nh\u1EADn ra nh\u1EDD t\xEAn th\u1EBB.",correct:!0},{text:"D\u1ECBch m\xE1y",explain:"Kh\xF4ng ph\u1EA3i r\u1ED3i - th\u1EED xem l\u1EA1i t\u1EA1i  <a href='https://huggingface.co/datasets/ar_sarcasm'>th\u1EBB d\u1EEF li\u1EC7u</a> nha!"},{text:"Nh\u1EADn d\u1EA1ng th\u1EF1c th\u1EC3",explain:"Kh\xF4ng ph\u1EA3i r\u1ED3i - th\u1EED xem l\u1EA1i t\u1EA1i  <a href='https://huggingface.co/datasets/ar_sarcasm'>th\u1EBB d\u1EEF li\u1EC7u</a> nha!"},{text:"H\u1ECFi \u0111\xE1p",explain:"Ti\u1EBFc gh\xEA, kh\xF4ng ch\xEDnh x\xE1c r\u1ED3i. Th\u1EED l\u1EA1i nha!"}]}}),X=new _t({}),R=new wt({props:{choices:[{text:"Tokens_of_sentence_1 [SEP] Tokens_of_sentence_2",explain:"C\u1EA7n token \u0111\u1EB7c bi\u1EC7t <code>[SEP]</code> \u0111\u1EC3 ph\xE2n c\xE1ch hai c\xE2u, nh\u01B0ng \u0111\xE2y kh\xF4ng ph\u1EA3i th\u1EE9 duy nh\u1EA5t!"},{text:"[CLS] Tokens_of_sentence_1 Tokens_of_sentence_2",explain:"C\u1EA7n token \u0111\u1EB7c bi\u1EC7t <code>[CLS]</code> \u1EDF \u0111\u1EA7u, nh\u01B0ng \u0111\xE2y kh\xF4ng ph\u1EA3i th\u1EE9 duy nh\u1EA5t!"},{text:"[CLS] Tokens_of_sentence_1 [SEP] Tokens_of_sentence_2 [SEP]",explain:"Ch\xEDnh x\xE1c!",correct:!0},{text:"[CLS] Tokens_of_sentence_1 [SEP] Tokens_of_sentence_2",explain:"C\u1EA7n token \u0111\u1EB7c bi\u1EC7t <code>[CLS]</code> \u1EDF \u0111\u1EA7u c\u0169ng nh\u01B0 <code>[SEP]</code> \u0111\u1EC3 ph\xE2n c\xE1ch hai c\xE2u, nh\u01B0ng \u0111\xE2y kh\xF4ng ph\u1EA3i th\u1EE9 duy nh\u1EA5t!"}]}});const It=[En,wn],yt=[];function St(e,s){return e[0]==="pt"?0:1}return M=St(Lt),pt=yt[M]=It[M](Lt),{c(){v=c("meta"),E=u(),y(A.$$.fragment),T=u(),z=c("h1"),x=c("a"),dt=c("span"),y(B.$$.fragment),Et=u(),$t=c("span"),mt=m("\u0110\u1ED1 vui cu\u1ED1i ch\u01B0\u01A1ng"),W=u(),y(Y.$$.fragment),O=u(),P=c("p"),gt=m("Ki\u1EC3m tra nh\u1EEFng g\xEC b\u1EA1n \u0111\xE3 h\u1ECDc trong ch\u01B0\u01A1ng n\xE0y!"),C=u(),N=c("h3"),rt=m("1. T\u1EADp d\u1EEF li\u1EC7u "),J=c("code"),xt=m("emotion"),V=m(" ch\u1EE9a c\xE1c tin nh\u1EAFn Twitter \u0111\u01B0\u1EE3c g\u1EAFn nh\xE3n c\u1EA3m x\xFAc. T\xECm ki\u1EBFm n\xF3 trong "),j=c("a"),I=m("Hub"),Z=m(" v\xE0 \u0111\u1ECDc th\u1EBB t\u1EADp d\u1EEF li\u1EC7u. C\u1EA3m x\xFAc n\xE0o trong s\u1ED1 n\xE0y kh\xF4ng ph\u1EA3i l\xE0 m\u1ED9t trong nh\u1EEFng c\u1EA3m x\xFAc c\u01A1 b\u1EA3n c\u1EE7a n\xF3?"),ft=u(),y(D.$$.fragment),tt=u(),L=c("h3"),q=c("a"),U=c("span"),y(K.$$.fragment),nt=u(),S=c("span"),G=m("2. T\xECm ki\u1EBFm t\u1EADp d\u1EEF li\u1EC7u "),it=c("code"),et=m("ar_sarcasm"),at=m(" trong "),H=c("a"),a=m("Hub"),k=m(". N\xF3 h\u1ED7 tr\u1EE3 t\xE1c v\u1EE5 n\xE0o?"),At=u(),y(vt.$$.fragment),Q=u(),ht=c("h3"),ot=c("a"),lt=c("span"),y(X.$$.fragment),Pt=u(),F=c("span"),st=m("3. M\xF4 h\xECnh BERT mong \u0111\u1EE3i m\u1ED9t c\u1EB7p c\xE2u \u0111\u01B0\u1EE3c x\u1EED l\xFD nh\u01B0 th\u1EBF n\xE0o?"),ut=u(),y(R.$$.fragment),Nt=u(),pt.c(),kt=gn(),this.h()},l(e){const s=$n('[data-svelte="svelte-1phssyn"]',document.head);v=r(s,"META",{name:!0,content:!0}),s.forEach(t),E=p(e),b(A.$$.fragment,e),T=p(e),z=r(e,"H1",{class:!0});var ct=i(z);x=r(ct,"A",{id:!0,class:!0,href:!0});var bt=i(x);dt=r(bt,"SPAN",{});var Tt=i(dt);b(B.$$.fragment,Tt),Tt.forEach(t),bt.forEach(t),Et=p(ct),$t=r(ct,"SPAN",{});var Ut=i($t);mt=g(Ut,"\u0110\u1ED1 vui cu\u1ED1i ch\u01B0\u01A1ng"),Ut.forEach(t),ct.forEach(t),W=p(e),b(Y.$$.fragment,e),O=p(e),P=r(e,"P",{});var Dt=i(P);gt=g(Dt,"Ki\u1EC3m tra nh\u1EEFng g\xEC b\u1EA1n \u0111\xE3 h\u1ECDc trong ch\u01B0\u01A1ng n\xE0y!"),Dt.forEach(t),C=p(e),N=r(e,"H3",{});var Ct=i(N);rt=g(Ct,"1. T\u1EADp d\u1EEF li\u1EC7u "),J=r(Ct,"CODE",{});var Ft=i(J);xt=g(Ft,"emotion"),Ft.forEach(t),V=g(Ct," ch\u1EE9a c\xE1c tin nh\u1EAFn Twitter \u0111\u01B0\u1EE3c g\u1EAFn nh\xE3n c\u1EA3m x\xFAc. T\xECm ki\u1EBFm n\xF3 trong "),j=r(Ct,"A",{href:!0,rel:!0});var qt=i(j);I=g(qt,"Hub"),qt.forEach(t),Z=g(Ct," v\xE0 \u0111\u1ECDc th\u1EBB t\u1EADp d\u1EEF li\u1EC7u. C\u1EA3m x\xFAc n\xE0o trong s\u1ED1 n\xE0y kh\xF4ng ph\u1EA3i l\xE0 m\u1ED9t trong nh\u1EEFng c\u1EA3m x\xFAc c\u01A1 b\u1EA3n c\u1EE7a n\xF3?"),Ct.forEach(t),ft=p(e),b(D.$$.fragment,e),tt=p(e),L=r(e,"H3",{class:!0});var Ht=i(L);q=r(Ht,"A",{id:!0,class:!0,href:!0});var n=i(q);U=r(n,"SPAN",{});var f=i(U);b(K.$$.fragment,f),f.forEach(t),n.forEach(t),nt=p(Ht),S=r(Ht,"SPAN",{});var Mt=i(S);G=g(Mt,"2. T\xECm ki\u1EBFm t\u1EADp d\u1EEF li\u1EC7u "),it=r(Mt,"CODE",{});var Xt=i(it);et=g(Xt,"ar_sarcasm"),Xt.forEach(t),at=g(Mt," trong "),H=r(Mt,"A",{href:!0,rel:!0});var Bt=i(H);a=g(Bt,"Hub"),Bt.forEach(t),k=g(Mt,". N\xF3 h\u1ED7 tr\u1EE3 t\xE1c v\u1EE5 n\xE0o?"),Mt.forEach(t),Ht.forEach(t),At=p(e),b(vt.$$.fragment,e),Q=p(e),ht=r(e,"H3",{class:!0});var Ot=i(ht);ot=r(Ot,"A",{id:!0,class:!0,href:!0});var Vt=i(ot);lt=r(Vt,"SPAN",{});var Rt=i(lt);b(X.$$.fragment,Rt),Rt.forEach(t),Vt.forEach(t),Pt=p(Ot),F=r(Ot,"SPAN",{});var zt=i(F);st=g(zt,"3. M\xF4 h\xECnh BERT mong \u0111\u1EE3i m\u1ED9t c\u1EB7p c\xE2u \u0111\u01B0\u1EE3c x\u1EED l\xFD nh\u01B0 th\u1EBF n\xE0o?"),zt.forEach(t),Ot.forEach(t),ut=p(e),b(R.$$.fragment,e),Nt=p(e),pt.l(e),kt=gn(),this.h()},h(){o(v,"name","hf:doc:metadata"),o(v,"content",JSON.stringify(Pn)),o(x,"id","vui-cui-chng"),o(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"),o(x,"href","#vui-cui-chng"),o(z,"class","relative group"),o(j,"href","https://huggingface.co/datasets"),o(j,"rel","nofollow"),o(q,"id","2.-t\xECm-ki\u1EBFm-t\u1EADp-d\u1EEF-li\u1EC7u-<code>ar_sarcasm</code>-trong-hub.-n\xF3-h\u1ED7-tr\u1EE3-t\xE1c-v\u1EE5-n\xE0o?"),o(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"),o(q,"href","#2.-t\xECm-ki\u1EBFm-t\u1EADp-d\u1EEF-li\u1EC7u-<code>ar_sarcasm</code>-trong-hub.-n\xF3-h\u1ED7-tr\u1EE3-t\xE1c-v\u1EE5-n\xE0o?"),o(H,"href","https://huggingface.co/datasets"),o(H,"rel","nofollow"),o(L,"class","relative group"),o(ot,"id","3.-m\xF4-h\xECnh-bert-mong-\u0111\u1EE3i-m\u1ED9t-c\u1EB7p-c\xE2u-\u0111\u01B0\u1EE3c-x\u1EED-l\xFD-nh\u01B0-th\u1EBF-n\xE0o?"),o(ot,"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"),o(ot,"href","#3.-m\xF4-h\xECnh-bert-mong-\u0111\u1EE3i-m\u1ED9t-c\u1EB7p-c\xE2u-\u0111\u01B0\u1EE3c-x\u1EED-l\xFD-nh\u01B0-th\u1EBF-n\xE0o?"),o(ht,"class","relative group")},m(e,s){h(document.head,v),l(e,E,s),_(A,e,s),l(e,T,s),l(e,z,s),h(z,x),h(x,dt),_(B,dt,null),h(z,Et),h(z,$t),h($t,mt),l(e,W,s),_(Y,e,s),l(e,O,s),l(e,P,s),h(P,gt),l(e,C,s),l(e,N,s),h(N,rt),h(N,J),h(J,xt),h(N,V),h(N,j),h(j,I),h(N,Z),l(e,ft,s),_(D,e,s),l(e,tt,s),l(e,L,s),h(L,q),h(q,U),_(K,U,null),h(L,nt),h(L,S),h(S,G),h(S,it),h(it,et),h(S,at),h(S,H),h(H,a),h(S,k),l(e,At,s),_(vt,e,s),l(e,Q,s),l(e,ht,s),h(ht,ot),h(ot,lt),_(X,lt,null),h(ht,Pt),h(ht,F),h(F,st),l(e,ut,s),_(R,e,s),l(e,Nt,s),yt[M].m(e,s),l(e,kt,s),Kt=!0},p(e,[s]){const ct={};s&1&&(ct.fw=e[0]),A.$set(ct);let bt=M;M=St(e),M!==bt&&(yn(),d(yt[bt],1,1,()=>{yt[bt]=null}),xn(),pt=yt[M],pt||(pt=yt[M]=It[M](e),pt.c()),$(pt,1),pt.m(kt.parentNode,kt))},i(e){Kt||($(A.$$.fragment,e),$(B.$$.fragment,e),$(Y.$$.fragment,e),$(D.$$.fragment,e),$(K.$$.fragment,e),$(vt.$$.fragment,e),$(X.$$.fragment,e),$(R.$$.fragment,e),$(pt),Kt=!0)},o(e){d(A.$$.fragment,e),d(B.$$.fragment,e),d(Y.$$.fragment,e),d(D.$$.fragment,e),d(K.$$.fragment,e),d(vt.$$.fragment,e),d(X.$$.fragment,e),d(R.$$.fragment,e),d(pt),Kt=!1},d(e){t(v),e&&t(E),w(A,e),e&&t(T),e&&t(z),w(B),e&&t(W),w(Y,e),e&&t(O),e&&t(P),e&&t(C),e&&t(N),e&&t(ft),w(D,e),e&&t(tt),e&&t(L),w(K),e&&t(At),w(vt,e),e&&t(Q),e&&t(ht),w(X),e&&t(ut),w(R,e),e&&t(Nt),yt[M].d(e),e&&t(kt)}}}const Pn={local:"vui-cui-chng",title:"\u0110\u1ED1 vui cu\u1ED1i ch\u01B0\u01A1ng"};function Nn(Lt,v,E){let A="pt";return kn(()=>{const T=new URLSearchParams(window.location.search);E(0,A=T.get("fw")||"pt")}),[A]}class Kn extends fn{constructor(v){super();vn(this,v,Nn,An,dn,{})}}export{Kn as default,Pn as metadata};
