import{S as ti,i as ni,s as hi,e,k as p,w as m,t as l,M as ci,c as o,d as n,m as a,a as r,x as f,h as s,b as g,N as Zc,G as h,g as i,y as u,L as ii,q as v,o as b,B as y,v as ei}from"../../chunks/vendor-hf-doc-builder.js";import{I as Qn}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as $}from"../../chunks/CodeBlock-hf-doc-builder.js";function oi(sc){let P,Jt,E,T,Ct,I,Xn,xt,Yn,Rt,j,Zn,mt,th,nh,zt,ft,hh,Qt,ut,ch,Xt,vt,ih,Yt,S,eh,V,oh,lh,Zt,w,A,Tt,U,sh,jt,rh,tn,bt,ph,nn,N,ah,W,gh,mh,hn,yt,fh,cn,J,R,rc,en,k,uh,St,vh,bh,At,yh,$h,on,z,ln,$t,kh,sn,Q,rn,X,Y,pc,pn,kt,dh,an,Z,gn,dt,_h,mn,C,B,Nt,tt,Ph,Bt,Eh,fn,G,wh,nt,Ch,xh,un,q,Th,Gt,jh,Sh,vn,H,Ah,qt,Nh,Bh,bn,d,Gh,ht,Ht,qh,Hh,ct,Ot,Oh,Dh,yn,O,Mh,Dt,Kh,Lh,$n,it,kn,D,Fh,Mt,Ih,Vh,dn,et,_n,M,Uh,Kt,Wh,Jh,Pn,ot,En,lt,wn,_,Rh,Lt,zh,Qh,Ft,Xh,Yh,Cn,st,xn,K,Zh,It,tc,nc,Tn,rt,jn,pt,Sn,x,L,Vt,at,hc,Ut,cc,An,F,ic,Wt,ec,oc,Nn,gt,Bn,_t,lc,Gn;return I=new Qn({}),U=new Qn({}),z=new $({props:{code:"!pip install transformers",highlighted:'!pip <span class="hljs-keyword">install</span> transformers'}}),Q=new $({props:{code:"import transformers",highlighted:'<span class="hljs-keyword">import</span> transformers'}}),Z=new $({props:{code:"!pip install transformers[sentencepiece]",highlighted:'!pip <span class="hljs-keyword">install</span> transformers[sentencepiece]'}}),tt=new Qn({}),it=new $({props:{code:`mkdir ~/transformers-course
cd ~/transformers-course`,highlighted:`<span class="hljs-built_in">mkdir</span> ~/transformers-course
<span class="hljs-built_in">cd</span> ~/transformers-course`}}),et=new $({props:{code:"python -m venv .env",highlighted:'<span class="hljs-keyword">python</span> -m venv .<span class="hljs-keyword">env</span>'}}),ot=new $({props:{code:"ls -a",highlighted:'<span class="hljs-built_in">ls</span> -a'}}),lt=new $({props:{code:".      ..    .env",highlighted:'.      <span class="hljs-string">..</span>    <span class="hljs-string">.env</span>'}}),st=new $({props:{code:`# K\xEDch ho\u1EA1t m\xF4i tr\u01B0\u1EDDng \u1EA3o
source .env/bin/activate

# Hu\u1EF7 k\xEDch ho\u1EA1t m\xF4i tr\u01B0\u1EDDng \u1EA3o
source .env/bin/deactivate`,highlighted:`<span class="hljs-comment"># K\xEDch ho\u1EA1t m\xF4i tr\u01B0\u1EDDng \u1EA3o</span>
<span class="hljs-built_in">source</span> .<span class="hljs-built_in">env</span>/bin/activate

<span class="hljs-comment"># Hu\u1EF7 k\xEDch ho\u1EA1t m\xF4i tr\u01B0\u1EDDng \u1EA3o</span>
<span class="hljs-built_in">source</span> .<span class="hljs-built_in">env</span>/bin/deactivate`}}),rt=new $({props:{code:"which python",highlighted:'<span class="hljs-built_in">which</span> python'}}),pt=new $({props:{code:"/home/<user>/transformers-course/.env/bin/python",highlighted:'<span class="hljs-regexp">/home/</span>&lt;user&gt;<span class="hljs-regexp">/transformers-course/</span>.env<span class="hljs-regexp">/bin/</span>python'}}),at=new Qn({}),gt=new $({props:{code:'pip install "transformers[sentencepiece]"',highlighted:'pip <span class="hljs-keyword">install</span> <span class="hljs-string">&quot;transformers[sentencepiece]&quot;</span>'}}),{c(){P=e("meta"),Jt=p(),E=e("h1"),T=e("a"),Ct=e("span"),m(I.$$.fragment),Xn=p(),xt=e("span"),Yn=l("Gi\u1EDBi thi\u1EC7u"),Rt=p(),j=e("p"),Zn=l("Ch\xE0o m\u1EEBng c\xE1c b\u1EA1n \u0111\u1EBFn v\u1EDBi kho\xE1 h\u1ECDc Hugging Face. Trong ph\u1EA7n Gi\u1EDBi thi\u1EC7u n\xE0y, ch\xFAng t\xF4i s\u1EBD h\u01B0\u1EDBng d\u1EABn c\xE1c b\u1EA1n c\xE1ch thi\u1EBFt l\u1EADp m\xF4i tr\u01B0\u1EDDng l\xE0m vi\u1EC7c. N\u1EBFu b\u1EA1n m\u1EDBi b\u1EAFt \u0111\u1EA7u kho\xE1 h\u1ECDc, ch\xFAng t\xF4i khuy\u1EBFn kh\xEDch c\xE1c b\u1EA1n xem "),mt=e("a"),th=l("Ch\u01B0\u01A1ng 1"),nh=l(" tr\u01B0\u1EDBc r\u1ED3i sau \u0111\xF3 quay l\u1EA1i v\xE0 c\xE0i \u0111\u1EB7t m\xF4i tr\u01B0\u1EDDng l\xE0m vi\u1EC7c \u0111\u1EC3 b\u1EA1n c\xF3 th\u1EC3 t\u1EF1 th\u1EED nghi\u1EC7m c\xE1c \u0111o\u1EA1n m\xE3 ngu\u1ED3n."),zt=p(),ft=e("p"),hh=l("T\u1EA5t c\u1EA3 c\xE1c th\u01B0 vi\u1EC7n m\xE0 ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng \u1EDF kh\xF3a h\u1ECDc n\xE0y \u0111\u1EC1u \u0111\u01B0\u1EE3c \u0111\xF3ng g\xF3i s\u1EB5n trong Python, v\xEC v\u1EADy \u1EDF \u0111\xE2y ch\xFAng t\xF4i s\u1EBD ch\u1EC9 cho c\xE1c b\u1EA1n c\xE1ch thi\u1EBFt l\u1EADp m\xF4i tr\u01B0\u1EDDng Python v\xE0 c\xE0i \u0111\u1EB7t c\xE1c th\u01B0 vi\u1EC7n c\u1EE5 th\u1EC3 m\xE0 b\u1EA1n c\u1EA7n."),Qt=p(),ut=e("p"),ch=l("Ch\xFAng t\xF4i s\u1EBD \u0111\u1EC1 c\u1EADp \u0111\u1EBFn hai c\xE1ch thi\u1EBFt l\u1EADp m\xF4i tr\u01B0\u1EDDng l\xE0m vi\u1EC7c, s\u1EED d\u1EE5ng s\u1ED5 ghi ch\xE9p Colab ho\u1EB7c m\xF4i tr\u01B0\u1EDDng \u1EA3o Python. H\xE3y tho\u1EA3i m\xE1i ch\u1ECDn ph\u01B0\u01A1ng ph\xE1p ph\xF9 h\u1EE3p v\xE0 thu\u1EADn ti\u1EC7n v\u1EDBi b\u1EA1n nh\u1EA5t. \u0110\u1ED1i v\u1EDBi ng\u01B0\u1EDDi m\u1EDBi h\u1ECDc, ch\xFAng t\xF4i khuy\u1EBFn kh\xEDch c\xE1c b\u1EA1n n\xEAn b\u1EAFt \u0111\u1EA7u b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng s\u1ED5 ghi ch\xE9p Colab."),Xt=p(),vt=e("p"),ih=l("L\u01B0u \xFD r\u1EB1ng ch\xFAng t\xF4i s\u1EBD kh\xF4ng \u0111\u1EC1 c\u1EADp \u0111\u1EBFn h\u1EC7 th\u1ED1ng Windows. N\u1EBFu b\u1EA1n \u0111ang s\u1EED d\u1EE5ng Windows, ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn d\xF9ng s\u1ED5 ghi ch\xE9p Colab. N\u1EBFu b\u1EA1n \u0111ang s\u1EED d\u1EE5ng Linux ho\u1EB7c macOS, b\u1EA1n c\xF3 th\u1EC3 ch\u1ECDn m\u1ED9t trong hai c\xE1ch ti\u1EBFp c\u1EADn \u0111\u01B0\u1EE3c m\xF4 t\u1EA3 trong ph\u1EA7n n\xE0y."),Yt=p(),S=e("p"),eh=l("H\u1EA7u h\u1EBFt n\u1ED9i dung kh\xF3a h\u1ECDc ph\u1EE5 thu\u1ED9c v\xE0o vi\u1EC7c b\u1EA1n c\xF3 m\u1ED9t t\xE0i kho\u1EA3n Hugging Face. Ch\xFAng t\xF4i khuy\u1EBFn kh\xEDch b\u1EA1n t\u1EA1o m\u1ED9t t\xE0i kho\u1EA3n ngay b\xE2y gi\u1EDD: "),V=e("a"),oh=l("t\u1EA1o t\xE0i kho\u1EA3n"),lh=l("."),Zt=p(),w=e("h2"),A=e("a"),Tt=e("span"),m(U.$$.fragment),sh=p(),jt=e("span"),rh=l("S\u1EED d\u1EE5ng s\u1ED5 ghi ch\xE9p Google Colab"),tn=p(),bt=e("p"),ph=l("S\u1EED d\u1EE5ng s\u1ED5 ghi ch\xE9p Colab c\xF3 th\u1EC3 coi l\xE0 c\xE1ch thi\u1EBFt l\u1EADp \u0111\u01A1n gi\u1EA3n nh\u1EA5t; kh\u1EDFi \u0111\u1ED9ng s\u1ED5 ghi ch\xE9p trong tr\xECnh duy\u1EC7t c\u1EE7a b\u1EA1n v\xE0 b\u1EAFt \u0111\u1EA7u vi\u1EBFt m\xE3 th\xF4i!"),nn=p(),N=e("p"),ah=l("N\u1EBFu b\u1EA1n kh\xF4ng quen thu\u1ED9c v\u1EDBi Colab, ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn b\u1EAFt \u0111\u1EA7u b\u1EB1ng c\xE1ch l\xE0m theo ph\u1EA7n "),W=e("a"),gh=l("gi\u1EDBi thi\u1EC7u"),mh=l(". Colab cho ph\xE9p b\u1EA1n s\u1EED d\u1EE5ng m\u1ED9t s\u1ED1 ph\u1EA7n c\u1EE9ng t\u0103ng t\u1ED1c, nh\u01B0 GPU ho\u1EB7c TPU, v\xE0 n\xF3 mi\u1EC5n ph\xED cho c\xE1c kh\u1ED1i l\u01B0\u1EE3ng c\xF4ng vi\u1EC7c nh\u1ECF h\u01A1n."),hn=p(),yt=e("p"),fh=l("Khi b\u1EA1n c\u1EA3m th\u1EA5y tho\u1EA3i m\xE1i v\u1EDBi c\xE1c thao t\xE1c trong Colab, h\xE3y t\u1EA1o m\u1ED9t s\u1ED5 ghi ch\xE9p m\u1EDBi v\xE0 b\u1EAFt \u0111\u1EA7u ph\u1EA7n c\xE0i \u0111\u1EB7t:"),cn=p(),J=e("div"),R=e("img"),en=p(),k=e("p"),uh=l("B\u01B0\u1EDBc ti\u1EBFp theo l\xE0 c\xE0i \u0111\u1EB7t c\xE1c th\u01B0 vi\u1EC7n m\xE0 ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng trong kh\xF3a h\u1ECDc n\xE0y. Ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng "),St=e("code"),vh=l("pip"),bh=l(", m\u1ED9t tr\xECnh qu\u1EA3n l\xFD g\xF3i cho Python, \u0111\u1EC3 c\xE0i \u0111\u1EB7t. Trong s\u1ED5 ghi ch\xE9p, b\u1EA1n c\xF3 th\u1EC3 ch\u1EA1y c\xE1c l\u1EC7nh h\u1EC7 th\u1ED1ng b\u1EB1ng c\xE1ch \u0111\u1EB7t tr\u01B0\u1EDBc ch\xFAng k\xFD t\u1EF1 "),At=e("code"),yh=l("!"),$h=l(", t\u1EEB \u0111\xF3, b\u1EA1n c\xF3 th\u1EC3 c\xE0i \u0111\u1EB7t th\u01B0 vi\u1EC7n \u{1F917} Transformers nh\u01B0 sau:"),on=p(),m(z.$$.fragment),ln=p(),$t=e("p"),kh=l("B\u1EA1n c\xF3 th\u1EC3 \u0111\u1EA3m b\u1EA3o r\u1EB1ng g\xF3i \u0111\xE3 \u0111\u01B0\u1EE3c c\xE0i \u0111\u1EB7t ch\xEDnh x\xE1c b\u1EB1ng c\xE1ch nh\u1EADp n\xF3 trong th\u1EDDi gian ch\u1EA1y Python c\u1EE7a b\u1EA1n:"),sn=p(),m(Q.$$.fragment),rn=p(),X=e("div"),Y=e("img"),pn=p(),kt=e("p"),dh=l("C\xE2u l\u1EC7nh tr\xEAn c\xE0i \u0111\u1EB7t m\u1ED9t phi\xEAn b\u1EA3n r\u1EA5t nh\u1EB9 c\u1EE7a \u{1F917} Transformers. \u0110\u1EB7c bi\u1EC7t, kh\xF4ng c\xF3 khung h\u1ECDc m\xE1y c\u1EE5 th\u1EC3 n\xE0o (nh\u01B0 PyTorch ho\u1EB7c TensorFlow) \u0111\u01B0\u1EE3c c\xE0i \u0111\u1EB7t. V\xEC ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng nhi\u1EC1u t\xEDnh n\u0103ng kh\xE1c nhau c\u1EE7a th\u01B0 vi\u1EC7n, ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn c\xE0i \u0111\u1EB7t phi\xEAn b\u1EA3n ph\xE1t tri\u1EC3n, \u0111i k\xE8m v\u1EDBi t\u1EA5t c\u1EA3 c\xE1c th\u01B0 vi\u1EC7n ph\u1EE5 thu\u1ED9c b\u1EAFt bu\u1ED9c cho nhi\u1EC1u tr\u01B0\u1EDDng h\u1EE3p c\xF3 th\u1EC3 ngh\u0129 t\u1EDBi:"),an=p(),m(Z.$$.fragment),gn=p(),dt=e("p"),_h=l("C\xE2u l\u1EC7nh n\xE0y s\u1EBD m\u1EA5t m\u1ED9t ch\xFAt th\u1EDDi gian \u0111\u1EC3 th\u1EF1c thi, nh\u01B0ng sau \u0111\xF3, b\u1EA1n s\u1EBD s\u1EB5n s\xE0ng ti\u1EBFp t\u1EE5c to\xE0n b\u1ED9 ph\u1EA7n c\xF2n l\u1EA1i c\u1EE7a kh\xF3a h\u1ECDc!"),mn=p(),C=e("h2"),B=e("a"),Nt=e("span"),m(tt.$$.fragment),Ph=p(),Bt=e("span"),Eh=l("S\u1EED d\u1EE5ng m\xF4i tr\u01B0\u1EDDng \u1EA3o Python"),fn=p(),G=e("p"),wh=l("N\u1EBFu b\u1EA1n th\xEDch s\u1EED d\u1EE5ng m\xF4i tr\u01B0\u1EDDng \u1EA3o Python, \u0111\u1EA7u ti\xEAn, b\u1EA1n c\u1EA7n c\xE0i \u0111\u1EB7t Python tr\xEAn h\u1EC7 th\u1ED1ng c\u1EE7a b\u1EA1n. Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn l\xE0m theo "),nt=e("a"),Ch=l("h\u01B0\u1EDBng d\u1EABn n\xE0y"),xh=l(" \u0111\u1EC3 b\u1EAFt \u0111\u1EA7u."),un=p(),q=e("p"),Th=l("Khi b\u1EA1n \u0111\xE3 c\xE0i \u0111\u1EB7t Python xong, b\u1EA1n s\u1EBD c\xF3 th\u1EC3 ch\u1EA1y c\xE1c l\u1EC7nh Python tr\xEAn giao di\u1EC7n d\xF2ng l\u1EC7ch (terminal) c\u1EE7a m\xECnh. B\u1EA1n c\xF3 th\u1EC3 b\u1EAFt \u0111\u1EA7u b\u1EB1ng c\xE1ch ch\u1EA1y l\u1EC7nh sau \u0111\u1EC3 \u0111\u1EA3m b\u1EA3o r\u1EB1ng Python \u0111\u01B0\u1EE3c c\xE0i \u0111\u1EB7t ch\xEDnh x\xE1c tr\u01B0\u1EDBc khi ti\u1EBFp t\u1EE5c c\xE1c b\u01B0\u1EDBc ti\u1EBFp theo: "),Gt=e("code"),jh=l("python --version"),Sh=l(". C\xE2u l\u1EC7nh n\xE0y s\u1EBD in ra phi\xEAn b\u1EA3n Python hi\u1EC7n c\xF3 tr\xEAn h\u1EC7 th\u1ED1ng c\u1EE7a b\u1EA1n."),vn=p(),H=e("p"),Ah=l("Khi ch\u1EA1y m\u1ED9t l\u1EC7nh Python tr\xEAn terminal c\u1EE7a b\u1EA1n, ch\u1EB3ng h\u1EA1n nh\u01B0 "),qt=e("code"),Nh=l("python --version"),Bh=l(", b\u1EA1n c\xF3 th\u1EC3 coi ch\u01B0\u01A1ng tr\xECnh ch\u1EA1y l\u1EC7nh l\xE0 ch\u01B0\u01A1ng tr\xECnh Python ch\xEDnh tr\xEAn h\u1EC7 th\u1ED1ng c\u1EE7a b\u1EA1n. Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn gi\u1EEF b\u1EA3n c\xE0i \u0111\u1EB7t ch\xEDnh n\xE0y kh\u1ECFi b\u1EA5t k\u1EF3 g\xF3i th\u01B0 vi\u1EC7n n\xE0o v\xE0 s\u1EED d\u1EE5ng n\xF3 \u0111\u1EC3 t\u1EA1o m\xF4i tr\u01B0\u1EDDng ri\xEAng bi\u1EC7t cho t\u1EEBng \u1EE9ng d\u1EE5ng b\u1EA1n l\xE0m vi\u1EC7c - v\u1EDBi c\xE1ch n\xE0y, m\u1ED7i \u1EE9ng d\u1EE5ng c\xF3 th\u1EC3 c\xF3 c\xE1c g\xF3i v\xE0 th\u01B0 vi\u1EC7n ph\u1EE5 thu\u1ED9c ri\xEAng v\xE0 b\u1EA1n s\u1EBD kh\xF4ng c\u1EA7n ph\u1EA3i lo l\u1EAFng v\u1EC1 c\xE1c v\u1EA5n \u0111\u1EC1 ti\u1EC1m \u1EA9n v\u1EC1 t\u01B0\u01A1ng th\xEDch v\u1EDBi c\xE1c \u1EE9ng d\u1EE5ng kh\xE1c."),bn=p(),d=e("p"),Gh=l("Trong Python, \u0111i\u1EC1u n\xE0y \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n v\u1EDBi "),ht=e("a"),Ht=e("em"),qh=l("virtual environments"),Hh=l(", m\u1ED9t c\xE2y th\u01B0 m\u1EE5c \u0111\u1ED9c l\u1EADp ch\u1EE9a m\u1ED9t b\u1EA3n c\xE0i \u0111\u1EB7t Python v\u1EDBi m\u1ED9t phi\xEAn b\u1EA3n Python c\u1EE5 th\u1EC3 c\xF9ng v\u1EDBi t\u1EA5t c\u1EA3 c\xE1c g\xF3i \u1EE9ng d\u1EE5ng c\u1EA7n thi\u1EBFt. Vi\u1EC7c t\u1EA1o m\u1ED9t m\xF4i tr\u01B0\u1EDDng \u1EA3o nh\u01B0 v\u1EADy c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n b\u1EB1ng m\u1ED9t s\u1ED1 c\xF4ng c\u1EE5 kh\xE1c nhau, nh\u01B0ng ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng g\xF3i Python ch\xEDnh th\u1EE9c cho m\u1EE5c \u0111\xEDch \u0111\xF3, \u0111\u01B0\u1EE3c g\u1ECDi l\xE0 "),ct=e("a"),Ot=e("code"),Oh=l("venv"),Dh=l("."),yn=p(),O=e("p"),Mh=l("Tr\u01B0\u1EDBc ti\xEAn, h\xE3y t\u1EA1o ra th\u01B0 m\u1EE5c m\xE0 b\u1EA1n mu\u1ED1n ch\u1EE9a \u1EE9ng d\u1EE5ng c\u1EE7a m\xECnh - v\xED d\u1EE5: b\u1EA1n c\xF3 th\u1EC3 t\u1EA1o m\u1ED9t th\u01B0 m\u1EE5c m\u1EDBi c\xF3 t\xEAn "),Dt=e("em"),Kh=l("transformers-course"),Lh=l(" \u1EDF g\u1ED1c c\u1EE7a th\u01B0 m\u1EE5c ch\xEDnh:"),$n=p(),m(it.$$.fragment),kn=p(),D=e("p"),Fh=l("T\u1EEB b\xEAn trong th\u01B0 m\u1EE5c n\xE0y, ch\xFAng ta t\u1EA1o m\u1ED9t m\xF4i tr\u01B0\u1EDDng \u1EA3o b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng m\xF4-\u0111un Python "),Mt=e("code"),Ih=l("venv"),Vh=l(":"),dn=p(),m(et.$$.fragment),_n=p(),M=e("p"),Uh=l("B\xE2y gi\u1EDD b\u1EA1n s\u1EBD c\xF3 m\u1ED9t th\u01B0 m\u1EE5c \u0111\u01B0\u1EE3c g\u1ECDi l\xE0 "),Kt=e("em"),Wh=l(".env"),Jh=l(" trong th\u01B0 m\u1EE5c tr\u1ED1ng c\u1EE7a b\u1EA1n:"),Pn=p(),m(ot.$$.fragment),En=p(),m(lt.$$.fragment),wn=p(),_=e("p"),Rh=l("B\u1EA1n c\xF3 th\u1EC3 v\xE0o v\xE0 tho\xE1t ra kh\u1ECFi m\xF4i tr\u01B0\u1EDDng \u1EA3o c\u1EE7a m\xECnh b\u1EB1ng c\xE2u l\u1EC7nh "),Lt=e("code"),zh=l("activate"),Qh=l(" v\xE0 "),Ft=e("code"),Xh=l("deactivate"),Yh=l(":"),Cn=p(),m(st.$$.fragment),xn=p(),K=e("p"),Zh=l("B\u1EA1n c\xF3 th\u1EC3 \u0111\u1EA3m b\u1EA3o r\u1EB1ng m\xF4i tr\u01B0\u1EDDng \u0111\xE3 \u0111\u01B0\u1EE3c k\xEDch ho\u1EA1t b\u1EB1ng c\xE1ch ch\u1EA1y l\u1EC7nh "),It=e("code"),tc=l("which python"),nc=l(": n\u1EBFu n\xF3 tr\u1ECF \u0111\u1EBFn m\xF4i tr\u01B0\u1EDDng \u1EA3o th\xEC b\u1EA1n \u0111\xE3 k\xEDch ho\u1EA1t n\xF3 th\xE0nh c\xF4ng!"),Tn=p(),m(rt.$$.fragment),jn=p(),m(pt.$$.fragment),Sn=p(),x=e("h3"),L=e("a"),Vt=e("span"),m(at.$$.fragment),hc=p(),Ut=e("span"),cc=l("C\xE0i \u0111\u1EB7t c\xE1c th\u01B0 vi\u1EC7n ph\u1EE5 thu\u1ED9c"),An=p(),F=e("p"),ic=l("T\u01B0\u01A1ng t\u1EF1 v\u1EDBi c\xE1ch s\u1EED d\u1EE5ng c\xE1c phi\xEAn b\u1EA3n Google Colab nh\u01B0 trong ph\u1EA7n tr\u01B0\u1EDBc, b\u1EA1n s\u1EBD c\u1EA7n c\xE0i \u0111\u1EB7t c\xE1c g\xF3i th\u01B0 vi\u1EC7n c\u1EA7n thi\u1EBFt. M\u1ED9t l\u1EA7n n\u1EEFa, c\xE1c b\u1EA1n c\xF3 th\u1EC3 c\xE0i \u0111\u1EB7t phi\xEAn b\u1EA3n ph\xE1t tri\u1EC3n c\u1EE7a \u{1F917} Transformers b\u1EB1ng tr\xECnh qu\u1EA3n l\xFD g\xF3i "),Wt=e("code"),ec=l("pip"),oc=l(":"),Nn=p(),m(gt.$$.fragment),Bn=p(),_t=e("p"),lc=l("B\xE2y gi\u1EDD b\u1EA1n \u0111\xE3 thi\u1EBFt l\u1EADp xong v\xE0 s\u1EB5n s\xE0ng \u0111\u1EC3 b\u1EAFt \u0111\u1EA7u kh\xE1m ph\xE1 n\u1ED9i dung kho\xE1 h\u1ECDc n\xE0y!"),this.h()},l(t){const c=ci('[data-svelte="svelte-1phssyn"]',document.head);P=o(c,"META",{name:!0,content:!0}),c.forEach(n),Jt=a(t),E=o(t,"H1",{class:!0});var qn=r(E);T=o(qn,"A",{id:!0,class:!0,href:!0});var ac=r(T);Ct=o(ac,"SPAN",{});var gc=r(Ct);f(I.$$.fragment,gc),gc.forEach(n),ac.forEach(n),Xn=a(qn),xt=o(qn,"SPAN",{});var mc=r(xt);Yn=s(mc,"Gi\u1EDBi thi\u1EC7u"),mc.forEach(n),qn.forEach(n),Rt=a(t),j=o(t,"P",{});var Hn=r(j);Zn=s(Hn,"Ch\xE0o m\u1EEBng c\xE1c b\u1EA1n \u0111\u1EBFn v\u1EDBi kho\xE1 h\u1ECDc Hugging Face. Trong ph\u1EA7n Gi\u1EDBi thi\u1EC7u n\xE0y, ch\xFAng t\xF4i s\u1EBD h\u01B0\u1EDBng d\u1EABn c\xE1c b\u1EA1n c\xE1ch thi\u1EBFt l\u1EADp m\xF4i tr\u01B0\u1EDDng l\xE0m vi\u1EC7c. N\u1EBFu b\u1EA1n m\u1EDBi b\u1EAFt \u0111\u1EA7u kho\xE1 h\u1ECDc, ch\xFAng t\xF4i khuy\u1EBFn kh\xEDch c\xE1c b\u1EA1n xem "),mt=o(Hn,"A",{href:!0});var fc=r(mt);th=s(fc,"Ch\u01B0\u01A1ng 1"),fc.forEach(n),nh=s(Hn," tr\u01B0\u1EDBc r\u1ED3i sau \u0111\xF3 quay l\u1EA1i v\xE0 c\xE0i \u0111\u1EB7t m\xF4i tr\u01B0\u1EDDng l\xE0m vi\u1EC7c \u0111\u1EC3 b\u1EA1n c\xF3 th\u1EC3 t\u1EF1 th\u1EED nghi\u1EC7m c\xE1c \u0111o\u1EA1n m\xE3 ngu\u1ED3n."),Hn.forEach(n),zt=a(t),ft=o(t,"P",{});var uc=r(ft);hh=s(uc,"T\u1EA5t c\u1EA3 c\xE1c th\u01B0 vi\u1EC7n m\xE0 ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng \u1EDF kh\xF3a h\u1ECDc n\xE0y \u0111\u1EC1u \u0111\u01B0\u1EE3c \u0111\xF3ng g\xF3i s\u1EB5n trong Python, v\xEC v\u1EADy \u1EDF \u0111\xE2y ch\xFAng t\xF4i s\u1EBD ch\u1EC9 cho c\xE1c b\u1EA1n c\xE1ch thi\u1EBFt l\u1EADp m\xF4i tr\u01B0\u1EDDng Python v\xE0 c\xE0i \u0111\u1EB7t c\xE1c th\u01B0 vi\u1EC7n c\u1EE5 th\u1EC3 m\xE0 b\u1EA1n c\u1EA7n."),uc.forEach(n),Qt=a(t),ut=o(t,"P",{});var vc=r(ut);ch=s(vc,"Ch\xFAng t\xF4i s\u1EBD \u0111\u1EC1 c\u1EADp \u0111\u1EBFn hai c\xE1ch thi\u1EBFt l\u1EADp m\xF4i tr\u01B0\u1EDDng l\xE0m vi\u1EC7c, s\u1EED d\u1EE5ng s\u1ED5 ghi ch\xE9p Colab ho\u1EB7c m\xF4i tr\u01B0\u1EDDng \u1EA3o Python. H\xE3y tho\u1EA3i m\xE1i ch\u1ECDn ph\u01B0\u01A1ng ph\xE1p ph\xF9 h\u1EE3p v\xE0 thu\u1EADn ti\u1EC7n v\u1EDBi b\u1EA1n nh\u1EA5t. \u0110\u1ED1i v\u1EDBi ng\u01B0\u1EDDi m\u1EDBi h\u1ECDc, ch\xFAng t\xF4i khuy\u1EBFn kh\xEDch c\xE1c b\u1EA1n n\xEAn b\u1EAFt \u0111\u1EA7u b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng s\u1ED5 ghi ch\xE9p Colab."),vc.forEach(n),Xt=a(t),vt=o(t,"P",{});var bc=r(vt);ih=s(bc,"L\u01B0u \xFD r\u1EB1ng ch\xFAng t\xF4i s\u1EBD kh\xF4ng \u0111\u1EC1 c\u1EADp \u0111\u1EBFn h\u1EC7 th\u1ED1ng Windows. N\u1EBFu b\u1EA1n \u0111ang s\u1EED d\u1EE5ng Windows, ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn d\xF9ng s\u1ED5 ghi ch\xE9p Colab. N\u1EBFu b\u1EA1n \u0111ang s\u1EED d\u1EE5ng Linux ho\u1EB7c macOS, b\u1EA1n c\xF3 th\u1EC3 ch\u1ECDn m\u1ED9t trong hai c\xE1ch ti\u1EBFp c\u1EADn \u0111\u01B0\u1EE3c m\xF4 t\u1EA3 trong ph\u1EA7n n\xE0y."),bc.forEach(n),Yt=a(t),S=o(t,"P",{});var On=r(S);eh=s(On,"H\u1EA7u h\u1EBFt n\u1ED9i dung kh\xF3a h\u1ECDc ph\u1EE5 thu\u1ED9c v\xE0o vi\u1EC7c b\u1EA1n c\xF3 m\u1ED9t t\xE0i kho\u1EA3n Hugging Face. Ch\xFAng t\xF4i khuy\u1EBFn kh\xEDch b\u1EA1n t\u1EA1o m\u1ED9t t\xE0i kho\u1EA3n ngay b\xE2y gi\u1EDD: "),V=o(On,"A",{href:!0,rel:!0});var yc=r(V);oh=s(yc,"t\u1EA1o t\xE0i kho\u1EA3n"),yc.forEach(n),lh=s(On,"."),On.forEach(n),Zt=a(t),w=o(t,"H2",{class:!0});var Dn=r(w);A=o(Dn,"A",{id:!0,class:!0,href:!0});var $c=r(A);Tt=o($c,"SPAN",{});var kc=r(Tt);f(U.$$.fragment,kc),kc.forEach(n),$c.forEach(n),sh=a(Dn),jt=o(Dn,"SPAN",{});var dc=r(jt);rh=s(dc,"S\u1EED d\u1EE5ng s\u1ED5 ghi ch\xE9p Google Colab"),dc.forEach(n),Dn.forEach(n),tn=a(t),bt=o(t,"P",{});var _c=r(bt);ph=s(_c,"S\u1EED d\u1EE5ng s\u1ED5 ghi ch\xE9p Colab c\xF3 th\u1EC3 coi l\xE0 c\xE1ch thi\u1EBFt l\u1EADp \u0111\u01A1n gi\u1EA3n nh\u1EA5t; kh\u1EDFi \u0111\u1ED9ng s\u1ED5 ghi ch\xE9p trong tr\xECnh duy\u1EC7t c\u1EE7a b\u1EA1n v\xE0 b\u1EAFt \u0111\u1EA7u vi\u1EBFt m\xE3 th\xF4i!"),_c.forEach(n),nn=a(t),N=o(t,"P",{});var Mn=r(N);ah=s(Mn,"N\u1EBFu b\u1EA1n kh\xF4ng quen thu\u1ED9c v\u1EDBi Colab, ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn b\u1EAFt \u0111\u1EA7u b\u1EB1ng c\xE1ch l\xE0m theo ph\u1EA7n "),W=o(Mn,"A",{href:!0,rel:!0});var Pc=r(W);gh=s(Pc,"gi\u1EDBi thi\u1EC7u"),Pc.forEach(n),mh=s(Mn,". Colab cho ph\xE9p b\u1EA1n s\u1EED d\u1EE5ng m\u1ED9t s\u1ED1 ph\u1EA7n c\u1EE9ng t\u0103ng t\u1ED1c, nh\u01B0 GPU ho\u1EB7c TPU, v\xE0 n\xF3 mi\u1EC5n ph\xED cho c\xE1c kh\u1ED1i l\u01B0\u1EE3ng c\xF4ng vi\u1EC7c nh\u1ECF h\u01A1n."),Mn.forEach(n),hn=a(t),yt=o(t,"P",{});var Ec=r(yt);fh=s(Ec,"Khi b\u1EA1n c\u1EA3m th\u1EA5y tho\u1EA3i m\xE1i v\u1EDBi c\xE1c thao t\xE1c trong Colab, h\xE3y t\u1EA1o m\u1ED9t s\u1ED5 ghi ch\xE9p m\u1EDBi v\xE0 b\u1EAFt \u0111\u1EA7u ph\u1EA7n c\xE0i \u0111\u1EB7t:"),Ec.forEach(n),cn=a(t),J=o(t,"DIV",{class:!0});var wc=r(J);R=o(wc,"IMG",{src:!0,alt:!0,width:!0}),wc.forEach(n),en=a(t),k=o(t,"P",{});var Pt=r(k);uh=s(Pt,"B\u01B0\u1EDBc ti\u1EBFp theo l\xE0 c\xE0i \u0111\u1EB7t c\xE1c th\u01B0 vi\u1EC7n m\xE0 ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng trong kh\xF3a h\u1ECDc n\xE0y. Ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng "),St=o(Pt,"CODE",{});var Cc=r(St);vh=s(Cc,"pip"),Cc.forEach(n),bh=s(Pt,", m\u1ED9t tr\xECnh qu\u1EA3n l\xFD g\xF3i cho Python, \u0111\u1EC3 c\xE0i \u0111\u1EB7t. Trong s\u1ED5 ghi ch\xE9p, b\u1EA1n c\xF3 th\u1EC3 ch\u1EA1y c\xE1c l\u1EC7nh h\u1EC7 th\u1ED1ng b\u1EB1ng c\xE1ch \u0111\u1EB7t tr\u01B0\u1EDBc ch\xFAng k\xFD t\u1EF1 "),At=o(Pt,"CODE",{});var xc=r(At);yh=s(xc,"!"),xc.forEach(n),$h=s(Pt,", t\u1EEB \u0111\xF3, b\u1EA1n c\xF3 th\u1EC3 c\xE0i \u0111\u1EB7t th\u01B0 vi\u1EC7n \u{1F917} Transformers nh\u01B0 sau:"),Pt.forEach(n),on=a(t),f(z.$$.fragment,t),ln=a(t),$t=o(t,"P",{});var Tc=r($t);kh=s(Tc,"B\u1EA1n c\xF3 th\u1EC3 \u0111\u1EA3m b\u1EA3o r\u1EB1ng g\xF3i \u0111\xE3 \u0111\u01B0\u1EE3c c\xE0i \u0111\u1EB7t ch\xEDnh x\xE1c b\u1EB1ng c\xE1ch nh\u1EADp n\xF3 trong th\u1EDDi gian ch\u1EA1y Python c\u1EE7a b\u1EA1n:"),Tc.forEach(n),sn=a(t),f(Q.$$.fragment,t),rn=a(t),X=o(t,"DIV",{class:!0});var jc=r(X);Y=o(jc,"IMG",{src:!0,alt:!0,width:!0}),jc.forEach(n),pn=a(t),kt=o(t,"P",{});var Sc=r(kt);dh=s(Sc,"C\xE2u l\u1EC7nh tr\xEAn c\xE0i \u0111\u1EB7t m\u1ED9t phi\xEAn b\u1EA3n r\u1EA5t nh\u1EB9 c\u1EE7a \u{1F917} Transformers. \u0110\u1EB7c bi\u1EC7t, kh\xF4ng c\xF3 khung h\u1ECDc m\xE1y c\u1EE5 th\u1EC3 n\xE0o (nh\u01B0 PyTorch ho\u1EB7c TensorFlow) \u0111\u01B0\u1EE3c c\xE0i \u0111\u1EB7t. V\xEC ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng nhi\u1EC1u t\xEDnh n\u0103ng kh\xE1c nhau c\u1EE7a th\u01B0 vi\u1EC7n, ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn c\xE0i \u0111\u1EB7t phi\xEAn b\u1EA3n ph\xE1t tri\u1EC3n, \u0111i k\xE8m v\u1EDBi t\u1EA5t c\u1EA3 c\xE1c th\u01B0 vi\u1EC7n ph\u1EE5 thu\u1ED9c b\u1EAFt bu\u1ED9c cho nhi\u1EC1u tr\u01B0\u1EDDng h\u1EE3p c\xF3 th\u1EC3 ngh\u0129 t\u1EDBi:"),Sc.forEach(n),an=a(t),f(Z.$$.fragment,t),gn=a(t),dt=o(t,"P",{});var Ac=r(dt);_h=s(Ac,"C\xE2u l\u1EC7nh n\xE0y s\u1EBD m\u1EA5t m\u1ED9t ch\xFAt th\u1EDDi gian \u0111\u1EC3 th\u1EF1c thi, nh\u01B0ng sau \u0111\xF3, b\u1EA1n s\u1EBD s\u1EB5n s\xE0ng ti\u1EBFp t\u1EE5c to\xE0n b\u1ED9 ph\u1EA7n c\xF2n l\u1EA1i c\u1EE7a kh\xF3a h\u1ECDc!"),Ac.forEach(n),mn=a(t),C=o(t,"H2",{class:!0});var Kn=r(C);B=o(Kn,"A",{id:!0,class:!0,href:!0});var Nc=r(B);Nt=o(Nc,"SPAN",{});var Bc=r(Nt);f(tt.$$.fragment,Bc),Bc.forEach(n),Nc.forEach(n),Ph=a(Kn),Bt=o(Kn,"SPAN",{});var Gc=r(Bt);Eh=s(Gc,"S\u1EED d\u1EE5ng m\xF4i tr\u01B0\u1EDDng \u1EA3o Python"),Gc.forEach(n),Kn.forEach(n),fn=a(t),G=o(t,"P",{});var Ln=r(G);wh=s(Ln,"N\u1EBFu b\u1EA1n th\xEDch s\u1EED d\u1EE5ng m\xF4i tr\u01B0\u1EDDng \u1EA3o Python, \u0111\u1EA7u ti\xEAn, b\u1EA1n c\u1EA7n c\xE0i \u0111\u1EB7t Python tr\xEAn h\u1EC7 th\u1ED1ng c\u1EE7a b\u1EA1n. Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn l\xE0m theo "),nt=o(Ln,"A",{href:!0,rel:!0});var qc=r(nt);Ch=s(qc,"h\u01B0\u1EDBng d\u1EABn n\xE0y"),qc.forEach(n),xh=s(Ln," \u0111\u1EC3 b\u1EAFt \u0111\u1EA7u."),Ln.forEach(n),un=a(t),q=o(t,"P",{});var Fn=r(q);Th=s(Fn,"Khi b\u1EA1n \u0111\xE3 c\xE0i \u0111\u1EB7t Python xong, b\u1EA1n s\u1EBD c\xF3 th\u1EC3 ch\u1EA1y c\xE1c l\u1EC7nh Python tr\xEAn giao di\u1EC7n d\xF2ng l\u1EC7ch (terminal) c\u1EE7a m\xECnh. B\u1EA1n c\xF3 th\u1EC3 b\u1EAFt \u0111\u1EA7u b\u1EB1ng c\xE1ch ch\u1EA1y l\u1EC7nh sau \u0111\u1EC3 \u0111\u1EA3m b\u1EA3o r\u1EB1ng Python \u0111\u01B0\u1EE3c c\xE0i \u0111\u1EB7t ch\xEDnh x\xE1c tr\u01B0\u1EDBc khi ti\u1EBFp t\u1EE5c c\xE1c b\u01B0\u1EDBc ti\u1EBFp theo: "),Gt=o(Fn,"CODE",{});var Hc=r(Gt);jh=s(Hc,"python --version"),Hc.forEach(n),Sh=s(Fn,". C\xE2u l\u1EC7nh n\xE0y s\u1EBD in ra phi\xEAn b\u1EA3n Python hi\u1EC7n c\xF3 tr\xEAn h\u1EC7 th\u1ED1ng c\u1EE7a b\u1EA1n."),Fn.forEach(n),vn=a(t),H=o(t,"P",{});var In=r(H);Ah=s(In,"Khi ch\u1EA1y m\u1ED9t l\u1EC7nh Python tr\xEAn terminal c\u1EE7a b\u1EA1n, ch\u1EB3ng h\u1EA1n nh\u01B0 "),qt=o(In,"CODE",{});var Oc=r(qt);Nh=s(Oc,"python --version"),Oc.forEach(n),Bh=s(In,", b\u1EA1n c\xF3 th\u1EC3 coi ch\u01B0\u01A1ng tr\xECnh ch\u1EA1y l\u1EC7nh l\xE0 ch\u01B0\u01A1ng tr\xECnh Python ch\xEDnh tr\xEAn h\u1EC7 th\u1ED1ng c\u1EE7a b\u1EA1n. Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn gi\u1EEF b\u1EA3n c\xE0i \u0111\u1EB7t ch\xEDnh n\xE0y kh\u1ECFi b\u1EA5t k\u1EF3 g\xF3i th\u01B0 vi\u1EC7n n\xE0o v\xE0 s\u1EED d\u1EE5ng n\xF3 \u0111\u1EC3 t\u1EA1o m\xF4i tr\u01B0\u1EDDng ri\xEAng bi\u1EC7t cho t\u1EEBng \u1EE9ng d\u1EE5ng b\u1EA1n l\xE0m vi\u1EC7c - v\u1EDBi c\xE1ch n\xE0y, m\u1ED7i \u1EE9ng d\u1EE5ng c\xF3 th\u1EC3 c\xF3 c\xE1c g\xF3i v\xE0 th\u01B0 vi\u1EC7n ph\u1EE5 thu\u1ED9c ri\xEAng v\xE0 b\u1EA1n s\u1EBD kh\xF4ng c\u1EA7n ph\u1EA3i lo l\u1EAFng v\u1EC1 c\xE1c v\u1EA5n \u0111\u1EC1 ti\u1EC1m \u1EA9n v\u1EC1 t\u01B0\u01A1ng th\xEDch v\u1EDBi c\xE1c \u1EE9ng d\u1EE5ng kh\xE1c."),In.forEach(n),bn=a(t),d=o(t,"P",{});var Et=r(d);Gh=s(Et,"Trong Python, \u0111i\u1EC1u n\xE0y \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n v\u1EDBi "),ht=o(Et,"A",{href:!0,rel:!0});var Dc=r(ht);Ht=o(Dc,"EM",{});var Mc=r(Ht);qh=s(Mc,"virtual environments"),Mc.forEach(n),Dc.forEach(n),Hh=s(Et,", m\u1ED9t c\xE2y th\u01B0 m\u1EE5c \u0111\u1ED9c l\u1EADp ch\u1EE9a m\u1ED9t b\u1EA3n c\xE0i \u0111\u1EB7t Python v\u1EDBi m\u1ED9t phi\xEAn b\u1EA3n Python c\u1EE5 th\u1EC3 c\xF9ng v\u1EDBi t\u1EA5t c\u1EA3 c\xE1c g\xF3i \u1EE9ng d\u1EE5ng c\u1EA7n thi\u1EBFt. Vi\u1EC7c t\u1EA1o m\u1ED9t m\xF4i tr\u01B0\u1EDDng \u1EA3o nh\u01B0 v\u1EADy c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n b\u1EB1ng m\u1ED9t s\u1ED1 c\xF4ng c\u1EE5 kh\xE1c nhau, nh\u01B0ng ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng g\xF3i Python ch\xEDnh th\u1EE9c cho m\u1EE5c \u0111\xEDch \u0111\xF3, \u0111\u01B0\u1EE3c g\u1ECDi l\xE0 "),ct=o(Et,"A",{href:!0,rel:!0});var Kc=r(ct);Ot=o(Kc,"CODE",{});var Lc=r(Ot);Oh=s(Lc,"venv"),Lc.forEach(n),Kc.forEach(n),Dh=s(Et,"."),Et.forEach(n),yn=a(t),O=o(t,"P",{});var Vn=r(O);Mh=s(Vn,"Tr\u01B0\u1EDBc ti\xEAn, h\xE3y t\u1EA1o ra th\u01B0 m\u1EE5c m\xE0 b\u1EA1n mu\u1ED1n ch\u1EE9a \u1EE9ng d\u1EE5ng c\u1EE7a m\xECnh - v\xED d\u1EE5: b\u1EA1n c\xF3 th\u1EC3 t\u1EA1o m\u1ED9t th\u01B0 m\u1EE5c m\u1EDBi c\xF3 t\xEAn "),Dt=o(Vn,"EM",{});var Fc=r(Dt);Kh=s(Fc,"transformers-course"),Fc.forEach(n),Lh=s(Vn," \u1EDF g\u1ED1c c\u1EE7a th\u01B0 m\u1EE5c ch\xEDnh:"),Vn.forEach(n),$n=a(t),f(it.$$.fragment,t),kn=a(t),D=o(t,"P",{});var Un=r(D);Fh=s(Un,"T\u1EEB b\xEAn trong th\u01B0 m\u1EE5c n\xE0y, ch\xFAng ta t\u1EA1o m\u1ED9t m\xF4i tr\u01B0\u1EDDng \u1EA3o b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng m\xF4-\u0111un Python "),Mt=o(Un,"CODE",{});var Ic=r(Mt);Ih=s(Ic,"venv"),Ic.forEach(n),Vh=s(Un,":"),Un.forEach(n),dn=a(t),f(et.$$.fragment,t),_n=a(t),M=o(t,"P",{});var Wn=r(M);Uh=s(Wn,"B\xE2y gi\u1EDD b\u1EA1n s\u1EBD c\xF3 m\u1ED9t th\u01B0 m\u1EE5c \u0111\u01B0\u1EE3c g\u1ECDi l\xE0 "),Kt=o(Wn,"EM",{});var Vc=r(Kt);Wh=s(Vc,".env"),Vc.forEach(n),Jh=s(Wn," trong th\u01B0 m\u1EE5c tr\u1ED1ng c\u1EE7a b\u1EA1n:"),Wn.forEach(n),Pn=a(t),f(ot.$$.fragment,t),En=a(t),f(lt.$$.fragment,t),wn=a(t),_=o(t,"P",{});var wt=r(_);Rh=s(wt,"B\u1EA1n c\xF3 th\u1EC3 v\xE0o v\xE0 tho\xE1t ra kh\u1ECFi m\xF4i tr\u01B0\u1EDDng \u1EA3o c\u1EE7a m\xECnh b\u1EB1ng c\xE2u l\u1EC7nh "),Lt=o(wt,"CODE",{});var Uc=r(Lt);zh=s(Uc,"activate"),Uc.forEach(n),Qh=s(wt," v\xE0 "),Ft=o(wt,"CODE",{});var Wc=r(Ft);Xh=s(Wc,"deactivate"),Wc.forEach(n),Yh=s(wt,":"),wt.forEach(n),Cn=a(t),f(st.$$.fragment,t),xn=a(t),K=o(t,"P",{});var Jn=r(K);Zh=s(Jn,"B\u1EA1n c\xF3 th\u1EC3 \u0111\u1EA3m b\u1EA3o r\u1EB1ng m\xF4i tr\u01B0\u1EDDng \u0111\xE3 \u0111\u01B0\u1EE3c k\xEDch ho\u1EA1t b\u1EB1ng c\xE1ch ch\u1EA1y l\u1EC7nh "),It=o(Jn,"CODE",{});var Jc=r(It);tc=s(Jc,"which python"),Jc.forEach(n),nc=s(Jn,": n\u1EBFu n\xF3 tr\u1ECF \u0111\u1EBFn m\xF4i tr\u01B0\u1EDDng \u1EA3o th\xEC b\u1EA1n \u0111\xE3 k\xEDch ho\u1EA1t n\xF3 th\xE0nh c\xF4ng!"),Jn.forEach(n),Tn=a(t),f(rt.$$.fragment,t),jn=a(t),f(pt.$$.fragment,t),Sn=a(t),x=o(t,"H3",{class:!0});var Rn=r(x);L=o(Rn,"A",{id:!0,class:!0,href:!0});var Rc=r(L);Vt=o(Rc,"SPAN",{});var zc=r(Vt);f(at.$$.fragment,zc),zc.forEach(n),Rc.forEach(n),hc=a(Rn),Ut=o(Rn,"SPAN",{});var Qc=r(Ut);cc=s(Qc,"C\xE0i \u0111\u1EB7t c\xE1c th\u01B0 vi\u1EC7n ph\u1EE5 thu\u1ED9c"),Qc.forEach(n),Rn.forEach(n),An=a(t),F=o(t,"P",{});var zn=r(F);ic=s(zn,"T\u01B0\u01A1ng t\u1EF1 v\u1EDBi c\xE1ch s\u1EED d\u1EE5ng c\xE1c phi\xEAn b\u1EA3n Google Colab nh\u01B0 trong ph\u1EA7n tr\u01B0\u1EDBc, b\u1EA1n s\u1EBD c\u1EA7n c\xE0i \u0111\u1EB7t c\xE1c g\xF3i th\u01B0 vi\u1EC7n c\u1EA7n thi\u1EBFt. M\u1ED9t l\u1EA7n n\u1EEFa, c\xE1c b\u1EA1n c\xF3 th\u1EC3 c\xE0i \u0111\u1EB7t phi\xEAn b\u1EA3n ph\xE1t tri\u1EC3n c\u1EE7a \u{1F917} Transformers b\u1EB1ng tr\xECnh qu\u1EA3n l\xFD g\xF3i "),Wt=o(zn,"CODE",{});var Xc=r(Wt);ec=s(Xc,"pip"),Xc.forEach(n),oc=s(zn,":"),zn.forEach(n),Nn=a(t),f(gt.$$.fragment,t),Bn=a(t),_t=o(t,"P",{});var Yc=r(_t);lc=s(Yc,"B\xE2y gi\u1EDD b\u1EA1n \u0111\xE3 thi\u1EBFt l\u1EADp xong v\xE0 s\u1EB5n s\xE0ng \u0111\u1EC3 b\u1EAFt \u0111\u1EA7u kh\xE1m ph\xE1 n\u1ED9i dung kho\xE1 h\u1ECDc n\xE0y!"),Yc.forEach(n),this.h()},h(){g(P,"name","hf:doc:metadata"),g(P,"content",JSON.stringify(li)),g(T,"id","gii-thiu"),g(T,"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"),g(T,"href","#gii-thiu"),g(E,"class","relative group"),g(mt,"href","/course/chapter1"),g(V,"href","https://huggingface.co/join"),g(V,"rel","nofollow"),g(A,"id","s-dng-s-ghi-chp-google-colab"),g(A,"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"),g(A,"href","#s-dng-s-ghi-chp-google-colab"),g(w,"class","relative group"),g(W,"href","https://colab.research.google.com/notebooks/intro.ipynb"),g(W,"rel","nofollow"),Zc(R.src,rc="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter0/new_colab.png")||g(R,"src",rc),g(R,"alt","An empty colab notebook"),g(R,"width","80%"),g(J,"class","flex justify-center"),Zc(Y.src,pc="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter0/install.gif")||g(Y,"src",pc),g(Y,"alt","A gif showing the result of the two commands above: installation and import"),g(Y,"width","80%"),g(X,"class","flex justify-center"),g(B,"id","s-dng-mi-trng-o-python"),g(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"),g(B,"href","#s-dng-mi-trng-o-python"),g(C,"class","relative group"),g(nt,"href","https://realpython.com/installing-python/"),g(nt,"rel","nofollow"),g(ht,"href","https://docs.python.org/3/tutorial/venv.html"),g(ht,"rel","nofollow"),g(ct,"href","https://docs.python.org/3/library/venv.html#module-venv"),g(ct,"rel","nofollow"),g(L,"id","ci-t-cc-th-vin-ph-thuc"),g(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"),g(L,"href","#ci-t-cc-th-vin-ph-thuc"),g(x,"class","relative group")},m(t,c){h(document.head,P),i(t,Jt,c),i(t,E,c),h(E,T),h(T,Ct),u(I,Ct,null),h(E,Xn),h(E,xt),h(xt,Yn),i(t,Rt,c),i(t,j,c),h(j,Zn),h(j,mt),h(mt,th),h(j,nh),i(t,zt,c),i(t,ft,c),h(ft,hh),i(t,Qt,c),i(t,ut,c),h(ut,ch),i(t,Xt,c),i(t,vt,c),h(vt,ih),i(t,Yt,c),i(t,S,c),h(S,eh),h(S,V),h(V,oh),h(S,lh),i(t,Zt,c),i(t,w,c),h(w,A),h(A,Tt),u(U,Tt,null),h(w,sh),h(w,jt),h(jt,rh),i(t,tn,c),i(t,bt,c),h(bt,ph),i(t,nn,c),i(t,N,c),h(N,ah),h(N,W),h(W,gh),h(N,mh),i(t,hn,c),i(t,yt,c),h(yt,fh),i(t,cn,c),i(t,J,c),h(J,R),i(t,en,c),i(t,k,c),h(k,uh),h(k,St),h(St,vh),h(k,bh),h(k,At),h(At,yh),h(k,$h),i(t,on,c),u(z,t,c),i(t,ln,c),i(t,$t,c),h($t,kh),i(t,sn,c),u(Q,t,c),i(t,rn,c),i(t,X,c),h(X,Y),i(t,pn,c),i(t,kt,c),h(kt,dh),i(t,an,c),u(Z,t,c),i(t,gn,c),i(t,dt,c),h(dt,_h),i(t,mn,c),i(t,C,c),h(C,B),h(B,Nt),u(tt,Nt,null),h(C,Ph),h(C,Bt),h(Bt,Eh),i(t,fn,c),i(t,G,c),h(G,wh),h(G,nt),h(nt,Ch),h(G,xh),i(t,un,c),i(t,q,c),h(q,Th),h(q,Gt),h(Gt,jh),h(q,Sh),i(t,vn,c),i(t,H,c),h(H,Ah),h(H,qt),h(qt,Nh),h(H,Bh),i(t,bn,c),i(t,d,c),h(d,Gh),h(d,ht),h(ht,Ht),h(Ht,qh),h(d,Hh),h(d,ct),h(ct,Ot),h(Ot,Oh),h(d,Dh),i(t,yn,c),i(t,O,c),h(O,Mh),h(O,Dt),h(Dt,Kh),h(O,Lh),i(t,$n,c),u(it,t,c),i(t,kn,c),i(t,D,c),h(D,Fh),h(D,Mt),h(Mt,Ih),h(D,Vh),i(t,dn,c),u(et,t,c),i(t,_n,c),i(t,M,c),h(M,Uh),h(M,Kt),h(Kt,Wh),h(M,Jh),i(t,Pn,c),u(ot,t,c),i(t,En,c),u(lt,t,c),i(t,wn,c),i(t,_,c),h(_,Rh),h(_,Lt),h(Lt,zh),h(_,Qh),h(_,Ft),h(Ft,Xh),h(_,Yh),i(t,Cn,c),u(st,t,c),i(t,xn,c),i(t,K,c),h(K,Zh),h(K,It),h(It,tc),h(K,nc),i(t,Tn,c),u(rt,t,c),i(t,jn,c),u(pt,t,c),i(t,Sn,c),i(t,x,c),h(x,L),h(L,Vt),u(at,Vt,null),h(x,hc),h(x,Ut),h(Ut,cc),i(t,An,c),i(t,F,c),h(F,ic),h(F,Wt),h(Wt,ec),h(F,oc),i(t,Nn,c),u(gt,t,c),i(t,Bn,c),i(t,_t,c),h(_t,lc),Gn=!0},p:ii,i(t){Gn||(v(I.$$.fragment,t),v(U.$$.fragment,t),v(z.$$.fragment,t),v(Q.$$.fragment,t),v(Z.$$.fragment,t),v(tt.$$.fragment,t),v(it.$$.fragment,t),v(et.$$.fragment,t),v(ot.$$.fragment,t),v(lt.$$.fragment,t),v(st.$$.fragment,t),v(rt.$$.fragment,t),v(pt.$$.fragment,t),v(at.$$.fragment,t),v(gt.$$.fragment,t),Gn=!0)},o(t){b(I.$$.fragment,t),b(U.$$.fragment,t),b(z.$$.fragment,t),b(Q.$$.fragment,t),b(Z.$$.fragment,t),b(tt.$$.fragment,t),b(it.$$.fragment,t),b(et.$$.fragment,t),b(ot.$$.fragment,t),b(lt.$$.fragment,t),b(st.$$.fragment,t),b(rt.$$.fragment,t),b(pt.$$.fragment,t),b(at.$$.fragment,t),b(gt.$$.fragment,t),Gn=!1},d(t){n(P),t&&n(Jt),t&&n(E),y(I),t&&n(Rt),t&&n(j),t&&n(zt),t&&n(ft),t&&n(Qt),t&&n(ut),t&&n(Xt),t&&n(vt),t&&n(Yt),t&&n(S),t&&n(Zt),t&&n(w),y(U),t&&n(tn),t&&n(bt),t&&n(nn),t&&n(N),t&&n(hn),t&&n(yt),t&&n(cn),t&&n(J),t&&n(en),t&&n(k),t&&n(on),y(z,t),t&&n(ln),t&&n($t),t&&n(sn),y(Q,t),t&&n(rn),t&&n(X),t&&n(pn),t&&n(kt),t&&n(an),y(Z,t),t&&n(gn),t&&n(dt),t&&n(mn),t&&n(C),y(tt),t&&n(fn),t&&n(G),t&&n(un),t&&n(q),t&&n(vn),t&&n(H),t&&n(bn),t&&n(d),t&&n(yn),t&&n(O),t&&n($n),y(it,t),t&&n(kn),t&&n(D),t&&n(dn),y(et,t),t&&n(_n),t&&n(M),t&&n(Pn),y(ot,t),t&&n(En),y(lt,t),t&&n(wn),t&&n(_),t&&n(Cn),y(st,t),t&&n(xn),t&&n(K),t&&n(Tn),y(rt,t),t&&n(jn),y(pt,t),t&&n(Sn),t&&n(x),y(at),t&&n(An),t&&n(F),t&&n(Nn),y(gt,t),t&&n(Bn),t&&n(_t)}}}const li={local:"gii-thiu",sections:[{local:"s-dng-s-ghi-chp-google-colab",title:"S\u1EED d\u1EE5ng s\u1ED5 ghi ch\xE9p Google Colab"},{local:"s-dng-mi-trng-o-python",sections:[{local:"ci-t-cc-th-vin-ph-thuc",title:"C\xE0i \u0111\u1EB7t c\xE1c th\u01B0 vi\u1EC7n ph\u1EE5 thu\u1ED9c"}],title:"S\u1EED d\u1EE5ng m\xF4i tr\u01B0\u1EDDng \u1EA3o Python"}],title:"Gi\u1EDBi thi\u1EC7u"};function si(sc){return ei(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gi extends ti{constructor(P){super();ni(this,P,si,oi,hi,{})}}export{gi as default,li as metadata};
