import{S as ct,i as at,s as ot,e as p,k as v,w as O,t as o,M as it,c as u,d as n,m as $,x as B,a as b,h as i,b as y,N as tt,G as r,g as m,y as H,o as T,p as nt,q as M,B as G,v as lt,n as st}from"../../chunks/vendor-hf-doc-builder.js";import{T as ht}from"../../chunks/Tip-hf-doc-builder.js";import{I as mt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as ae}from"../../chunks/CodeBlock-hf-doc-builder.js";import{C as rt}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import{F as pt}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function ut(C){let c,l;return c=new rt({props:{chapter:4,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/vi/chapter4/section2_tf.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/vi/chapter4/section2_tf.ipynb"}]}}),{c(){O(c.$$.fragment)},l(t){B(c.$$.fragment,t)},m(t,k){H(c,t,k),l=!0},i(t){l||(M(c.$$.fragment,t),l=!0)},o(t){T(c.$$.fragment,t),l=!1},d(t){G(c,t)}}}function gt(C){let c,l;return c=new rt({props:{chapter:4,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/vi/chapter4/section2_pt.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/vi/chapter4/section2_pt.ipynb"}]}}),{c(){O(c.$$.fragment)},l(t){B(c.$$.fragment,t)},m(t,k){H(c,t,k),l=!0},i(t){l||(M(c.$$.fragment,t),l=!0)},o(t){T(c.$$.fragment,t),l=!1},d(t){G(c,t)}}}function ft(C){let c,l,t,k,g,_,E,w,N,x,P,q,d,f,j;return c=new ae({props:{code:`from transformers import CamembertTokenizer, TFCamembertForMaskedLM

tokenizer = CamembertTokenizer.from_pretrained("camembert-base")
model = TFCamembertForMaskedLM.from_pretrained("camembert-base")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CamembertTokenizer, TFCamembertForMaskedLM

tokenizer = CamembertTokenizer.from_pretrained(<span class="hljs-string">&quot;camembert-base&quot;</span>)
model = TFCamembertForMaskedLM.from_pretrained(<span class="hljs-string">&quot;camembert-base&quot;</span>)`}}),f=new ae({props:{code:`from transformers import AutoTokenizer, TFAutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("camembert-base")
model = TFAutoModelForMaskedLM.from_pretrained("camembert-base")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, TFAutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;camembert-base&quot;</span>)
model = TFAutoModelForMaskedLM.from_pretrained(<span class="hljs-string">&quot;camembert-base&quot;</span>)`}}),{c(){O(c.$$.fragment),l=v(),t=p("p"),k=o("Tuy nhi\xEAn, ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn s\u1EED d\u1EE5ng "),g=p("a"),_=p("code"),E=o("TFAuto*"),w=o(" classes"),N=o(" v\xEC \u0111\xE2y l\xE0 c\u1EE7a ki\u1EBFn tr\xFAc thi\u1EBFt k\u1EBF-b\u1EA5t kh\u1EA3 tri. Trong khi \u0111o\u1EA1n m\xE3 tr\u01B0\u1EDBc \u0111\xF3 gi\u1EDBi h\u1EA1n ng\u01B0\u1EDDi d\xF9ng \u1EDF c\xE1c checkpoint ch\u1EC9 c\xF3 th\u1EC3 t\u1EA3i \u0111\u01B0\u1EE3c trong ki\u1EBFn tr\xFAc CamemBERT, vi\u1EC7c s\u1EED d\u1EE5ng c\xE1c l\u1EDBp "),x=p("code"),P=o("TFAuto*"),q=o(" gi\xFAp vi\u1EC7c chuy\u1EC3n \u0111\u1ED5i c\xE1c checkpoint tr\u1EDF n\xEAn \u0111\u01A1n gi\u1EA3n:"),d=v(),O(f.$$.fragment),this.h()},l(s){B(c.$$.fragment,s),l=$(s),t=u(s,"P",{});var h=b(t);k=i(h,"Tuy nhi\xEAn, ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn s\u1EED d\u1EE5ng "),g=u(h,"A",{href:!0,rel:!0});var F=b(g);_=u(F,"CODE",{});var A=b(_);E=i(A,"TFAuto*"),A.forEach(n),w=i(F," classes"),F.forEach(n),N=i(h," v\xEC \u0111\xE2y l\xE0 c\u1EE7a ki\u1EBFn tr\xFAc thi\u1EBFt k\u1EBF-b\u1EA5t kh\u1EA3 tri. Trong khi \u0111o\u1EA1n m\xE3 tr\u01B0\u1EDBc \u0111\xF3 gi\u1EDBi h\u1EA1n ng\u01B0\u1EDDi d\xF9ng \u1EDF c\xE1c checkpoint ch\u1EC9 c\xF3 th\u1EC3 t\u1EA3i \u0111\u01B0\u1EE3c trong ki\u1EBFn tr\xFAc CamemBERT, vi\u1EC7c s\u1EED d\u1EE5ng c\xE1c l\u1EDBp "),x=u(h,"CODE",{});var I=b(x);P=i(I,"TFAuto*"),I.forEach(n),q=i(h," gi\xFAp vi\u1EC7c chuy\u1EC3n \u0111\u1ED5i c\xE1c checkpoint tr\u1EDF n\xEAn \u0111\u01A1n gi\u1EA3n:"),h.forEach(n),d=$(s),B(f.$$.fragment,s),this.h()},h(){y(g,"href","https://huggingface.co/transformers/model_doc/auto.html?highlight=auto#auto-classes"),y(g,"rel","nofollow")},m(s,h){H(c,s,h),m(s,l,h),m(s,t,h),r(t,k),r(t,g),r(g,_),r(_,E),r(g,w),r(t,N),r(t,x),r(x,P),r(t,q),m(s,d,h),H(f,s,h),j=!0},i(s){j||(M(c.$$.fragment,s),M(f.$$.fragment,s),j=!0)},o(s){T(c.$$.fragment,s),T(f.$$.fragment,s),j=!1},d(s){G(c,s),s&&n(l),s&&n(t),s&&n(d),G(f,s)}}}function bt(C){let c,l,t,k,g,_,E,w,N,x,P,q,d,f,j;return c=new ae({props:{code:`from transformers import CamembertTokenizer, CamembertForMaskedLM

tokenizer = CamembertTokenizer.from_pretrained("camembert-base")
model = CamembertForMaskedLM.from_pretrained("camembert-base")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> CamembertTokenizer, CamembertForMaskedLM

tokenizer = CamembertTokenizer.from_pretrained(<span class="hljs-string">&quot;camembert-base&quot;</span>)
model = CamembertForMaskedLM.from_pretrained(<span class="hljs-string">&quot;camembert-base&quot;</span>)`}}),f=new ae({props:{code:`from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("camembert-base")
model = AutoModelForMaskedLM.from_pretrained("camembert-base")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;camembert-base&quot;</span>)
model = AutoModelForMaskedLM.from_pretrained(<span class="hljs-string">&quot;camembert-base&quot;</span>)`}}),{c(){O(c.$$.fragment),l=v(),t=p("p"),k=o("Tuy nhi\xEAn, ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn s\u1EED d\u1EE5ng "),g=p("a"),_=p("code"),E=o("Auto*"),w=o(" classes"),N=o(" v\xEC \u0111\xE2y l\xE0 c\u1EE7a ki\u1EBFn tr\xFAc thi\u1EBFt k\u1EBF-b\u1EA5t kh\u1EA3 tri. Trong khi \u0111o\u1EA1n m\xE3 tr\u01B0\u1EDBc \u0111\xF3 gi\u1EDBi h\u1EA1n ng\u01B0\u1EDDi d\xF9ng \u1EDF c\xE1c checkpoint ch\u1EC9 c\xF3 th\u1EC3 t\u1EA3i \u0111\u01B0\u1EE3c trong ki\u1EBFn tr\xFAc CamemBERT, vi\u1EC7c s\u1EED d\u1EE5ng c\xE1c l\u1EDBp "),x=p("code"),P=o("Auto*"),q=o(" gi\xFAp vi\u1EC7c chuy\u1EC3n \u0111\u1ED5i c\xE1c checkpoint tr\u1EDF n\xEAn \u0111\u01A1n gi\u1EA3n:"),d=v(),O(f.$$.fragment),this.h()},l(s){B(c.$$.fragment,s),l=$(s),t=u(s,"P",{});var h=b(t);k=i(h,"Tuy nhi\xEAn, ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn s\u1EED d\u1EE5ng "),g=u(h,"A",{href:!0,rel:!0});var F=b(g);_=u(F,"CODE",{});var A=b(_);E=i(A,"Auto*"),A.forEach(n),w=i(F," classes"),F.forEach(n),N=i(h," v\xEC \u0111\xE2y l\xE0 c\u1EE7a ki\u1EBFn tr\xFAc thi\u1EBFt k\u1EBF-b\u1EA5t kh\u1EA3 tri. Trong khi \u0111o\u1EA1n m\xE3 tr\u01B0\u1EDBc \u0111\xF3 gi\u1EDBi h\u1EA1n ng\u01B0\u1EDDi d\xF9ng \u1EDF c\xE1c checkpoint ch\u1EC9 c\xF3 th\u1EC3 t\u1EA3i \u0111\u01B0\u1EE3c trong ki\u1EBFn tr\xFAc CamemBERT, vi\u1EC7c s\u1EED d\u1EE5ng c\xE1c l\u1EDBp "),x=u(h,"CODE",{});var I=b(x);P=i(I,"Auto*"),I.forEach(n),q=i(h," gi\xFAp vi\u1EC7c chuy\u1EC3n \u0111\u1ED5i c\xE1c checkpoint tr\u1EDF n\xEAn \u0111\u01A1n gi\u1EA3n:"),h.forEach(n),d=$(s),B(f.$$.fragment,s),this.h()},h(){y(g,"href","https://huggingface.co/transformers/model_doc/auto.html?highlight=auto#auto-classes"),y(g,"rel","nofollow")},m(s,h){H(c,s,h),m(s,l,h),m(s,t,h),r(t,k),r(t,g),r(g,_),r(_,E),r(g,w),r(t,N),r(t,x),r(x,P),r(t,q),m(s,d,h),H(f,s,h),j=!0},i(s){j||(M(c.$$.fragment,s),M(f.$$.fragment,s),j=!0)},o(s){T(c.$$.fragment,s),T(f.$$.fragment,s),j=!1},d(s){G(c,s),s&&n(l),s&&n(t),s&&n(d),G(f,s)}}}function kt(C){let c,l;return{c(){c=p("p"),l=o("Khi s\u1EED d\u1EE5ng m\u1ED9t m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc, h\xE3y \u0111\u1EA3m b\u1EA3o ki\u1EC3m tra xem n\xF3 \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n nh\u01B0 th\u1EBF n\xE0o, d\u1EF1a tr\xEAn t\u1EADp d\u1EEF li\u1EC7u n\xE0o, c\xE1c gi\u1EDBi h\u1EA1n v\xE0 \u0111\u1ED9 sai l\u1EC7ch c\u1EE7a n\xF3. T\u1EA5t c\u1EA3 th\xF4ng tin n\xE0y ph\u1EA3i \u0111\u01B0\u1EE3c ghi tr\xEAn th\u1EBB m\xF4 h\xECnh c\u1EE7a n\xF3.")},l(t){c=u(t,"P",{});var k=b(c);l=i(k,"Khi s\u1EED d\u1EE5ng m\u1ED9t m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc, h\xE3y \u0111\u1EA3m b\u1EA3o ki\u1EC3m tra xem n\xF3 \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n nh\u01B0 th\u1EBF n\xE0o, d\u1EF1a tr\xEAn t\u1EADp d\u1EEF li\u1EC7u n\xE0o, c\xE1c gi\u1EDBi h\u1EA1n v\xE0 \u0111\u1ED9 sai l\u1EC7ch c\u1EE7a n\xF3. T\u1EA5t c\u1EA3 th\xF4ng tin n\xE0y ph\u1EA3i \u0111\u01B0\u1EE3c ghi tr\xEAn th\u1EBB m\xF4 h\xECnh c\u1EE7a n\xF3."),k.forEach(n)},m(t,k){m(t,c,k),r(c,l)},d(t){t&&n(c)}}}function dt(C){let c,l,t,k,g,_,E,w,N,x,P,q,d,f,j,s,h,F,A,I,ge,J,U,De,fe,L,xe,oe,je,we,ie,Te,Me,le,Ce,Ee,be,Q,ke,W,de,z,qe,he,Fe,Ae,me,Le,ze,pe,Ne,Pe,_e,X,Y,Oe,ve,ne,Se,$e,S,D,se,R,ye;t=new pt({props:{fw:C[0]}}),w=new mt({});const Be=[gt,ut],Z=[];function He(e,a){return e[0]==="pt"?0:1}d=He(C),f=Z[d]=Be[d](C),Q=new ae({props:{code:`from transformers import pipeline

camembert_fill_mask = pipeline("fill-mask", model="camembert-base")
results = camembert_fill_mask("Le camembert est <mask> :)")`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

camembert_fill_mask = pipeline(<span class="hljs-string">&quot;fill-mask&quot;</span>, model=<span class="hljs-string">&quot;camembert-base&quot;</span>)
results = camembert_fill_mask(<span class="hljs-string">&quot;Le camembert est &lt;mask&gt; :)&quot;</span>)`}}),W=new ae({props:{code:`[
  {'sequence': 'Le camembert est d\xE9licieux :)', 'score': 0.49091005325317383, 'token': 7200, 'token_str': 'd\xE9licieux'},
  {'sequence': 'Le camembert est excellent :)', 'score': 0.1055697426199913, 'token': 2183, 'token_str': 'excellent'},
  {'sequence': 'Le camembert est succulent :)', 'score': 0.03453313186764717, 'token': 26202, 'token_str': 'succulent'},
  {'sequence': 'Le camembert est meilleur :)', 'score': 0.0330314114689827, 'token': 528, 'token_str': 'meilleur'},
  {'sequence': 'Le camembert est parfait :)', 'score': 0.03007650189101696, 'token': 1654, 'token_str': 'parfait'}
]`,highlighted:`[
  {<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;Le camembert est d\xE9licieux :)&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.49091005325317383</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">7200</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;d\xE9licieux&#x27;</span>},
  {<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;Le camembert est excellent :)&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.1055697426199913</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">2183</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;excellent&#x27;</span>},
  {<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;Le camembert est succulent :)&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.03453313186764717</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">26202</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;succulent&#x27;</span>},
  {<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;Le camembert est meilleur :)&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0330314114689827</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">528</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;meilleur&#x27;</span>},
  {<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;Le camembert est parfait :)&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.03007650189101696</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">1654</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;parfait&#x27;</span>}
]`}});const Ge=[bt,ft],ee=[];function Ie(e,a){return e[0]==="pt"?0:1}return S=Ie(C),D=ee[S]=Ge[S](C),R=new ht({props:{$$slots:{default:[kt]},$$scope:{ctx:C}}}),{c(){c=p("meta"),l=v(),O(t.$$.fragment),k=v(),g=p("h1"),_=p("a"),E=p("span"),O(w.$$.fragment),N=v(),x=p("span"),P=o("S\u1EED d\u1EE5ng c\xE1c m\xF4 h\xECnh hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc"),q=v(),f.c(),j=v(),s=p("p"),h=o("Model Hub l\xE0m cho vi\u1EC7c ch\u1ECDn m\xF4 h\xECnh th\xEDch h\u1EE3p tr\u1EDF n\xEAn \u0111\u01A1n gi\u1EA3n, v\xEC v\u1EADy vi\u1EC7c s\u1EED d\u1EE5ng m\xF4 h\xECnh \u0111\xF3 trong b\u1EA5t k\u1EF3 th\u01B0 vi\u1EC7n n\xE0o d\u01B0\u1EDBi \u0111\xE2y c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n trong m\u1ED9t v\xE0i d\xF2ng m\xE3. H\xE3y c\xF9ng xem c\xE1ch th\u1EF1c s\u1EF1 s\u1EED d\u1EE5ng m\u1ED9t trong nh\u1EEFng m\xF4 h\xECnh n\xE0y v\xE0 c\xE1ch \u0111\xF3ng g\xF3p l\u1EA1i cho c\u1ED9ng \u0111\u1ED3ng."),F=v(),A=p("p"),I=o("Gi\u1EA3 s\u1EED ch\xFAng t\xF4i \u0111ang t\xECm ki\u1EBFm m\u1ED9t m\xF4 h\xECnh cho ti\u1EBFng Ph\xE1p c\xF3 th\u1EC3 th\u1EF1c hi\u1EC7n t\xE1c v\u1EE5 di\u1EC1n v\xE0o ph\u1EA7n b\u1ECB che \u0111i."),ge=v(),J=p("div"),U=p("img"),fe=v(),L=p("p"),xe=o("Ch\xFAng t\xF4i ch\u1ECDn checkpoint "),oe=p("code"),je=o("camembert-base"),we=o(" \u0111\u1EC3 d\xF9ng th\u1EED. T\u1EEB "),ie=p("code"),Te=o("camembert-base"),Me=o(" l\xE0 t\u1EA5t c\u1EA3 nh\u1EEFng g\xEC ch\xFAng ta c\u1EA7n \u0111\u1EC3 b\u1EAFt \u0111\u1EA7u s\u1EED d\u1EE5ng n\xF3! Nh\u01B0 b\u1EA1n \u0111\xE3 th\u1EA5y trong c\xE1c ch\u01B0\u01A1ng tr\u01B0\u1EDBc, ch\xFAng ta c\xF3 th\u1EC3 kh\u1EDFi t\u1EA1o n\xF3 b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng h\xE0m "),le=p("code"),Ce=o("pipeline()"),Ee=o(":"),be=v(),O(Q.$$.fragment),ke=v(),O(W.$$.fragment),de=v(),z=p("p"),qe=o("Nh\u01B0 b\u1EA1n c\xF3 th\u1EC3 th\u1EA5y, vi\u1EC7c t\u1EA3i m\u1ED9t m\xF4 h\xECnh trong m\u1ED9t pipeline c\u1EF1c k\u1EF3 \u0111\u01A1n gi\u1EA3n. \u0110i\u1EC1u duy nh\u1EA5t b\u1EA1n c\u1EA7n ch\xFA \xFD l\xE0 checkpoint \u0111\xE3 ch\u1ECDn c\xF3 ph\xF9 h\u1EE3p v\u1EDBi t\xE1c v\u1EE5 m\xE0 n\xF3 s\u1EBD \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng hay kh\xF4ng. V\xED d\u1EE5: \u1EDF \u0111\xE2y ch\xFAng t\xF4i \u0111ang t\u1EA3i checkpoint "),he=p("code"),Fe=o("camembert-base"),Ae=o(" trong pipeline "),me=p("code"),Le=o("fill-mask"),ze=o(", \u0111i\u1EC1u n\xE0y ho\xE0n to\xE0n \u1ED5n. Nh\u01B0ng n\u1EBFu ch\xFAng t\xF4i t\u1EA3i checkpoint n\xE0y trong pipeline ph\xE2n lo\u1EA1i v\u0103n b\u1EA3n, k\u1EBFt qu\u1EA3 s\u1EBD kh\xF4ng c\xF3 \xFD ngh\u0129a g\xEC v\xEC ph\u1EA7n \u0111\u1EA7u c\u1EE7a "),pe=p("code"),Ne=o("camembert-base"),Pe=o(" kh\xF4ng ph\xF9 h\u1EE3p v\u1EDBi t\xE1c v\u1EE5 n\xE0y! Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn s\u1EED d\u1EE5ng c\xF4ng c\u1EE5 ch\u1ECDn t\xE1c v\u1EE5 trong giao di\u1EC7n Hugging Face Hub \u0111\u1EC3 ch\u1ECDn c\xE1c checkpoint th\xEDch h\u1EE3p:"),_e=v(),X=p("div"),Y=p("img"),ve=v(),ne=p("p"),Se=o("B\u1EA1n c\u0169ng c\xF3 th\u1EC3 kh\u1EDFi t\u1EA1o checkpoint b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng ki\u1EBFn tr\xFAc m\xF4 h\xECnh tr\u1EF1c ti\u1EBFp:"),$e=v(),D.c(),se=v(),O(R.$$.fragment),this.h()},l(e){const a=it('[data-svelte="svelte-1phssyn"]',document.head);c=u(a,"META",{name:!0,content:!0}),a.forEach(n),l=$(e),B(t.$$.fragment,e),k=$(e),g=u(e,"H1",{class:!0});var te=b(g);_=u(te,"A",{id:!0,class:!0,href:!0});var re=b(_);E=u(re,"SPAN",{});var ce=b(E);B(w.$$.fragment,ce),ce.forEach(n),re.forEach(n),N=$(te),x=u(te,"SPAN",{});var ue=b(x);P=i(ue,"S\u1EED d\u1EE5ng c\xE1c m\xF4 h\xECnh hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc"),ue.forEach(n),te.forEach(n),q=$(e),f.l(e),j=$(e),s=u(e,"P",{});var Re=b(s);h=i(Re,"Model Hub l\xE0m cho vi\u1EC7c ch\u1ECDn m\xF4 h\xECnh th\xEDch h\u1EE3p tr\u1EDF n\xEAn \u0111\u01A1n gi\u1EA3n, v\xEC v\u1EADy vi\u1EC7c s\u1EED d\u1EE5ng m\xF4 h\xECnh \u0111\xF3 trong b\u1EA5t k\u1EF3 th\u01B0 vi\u1EC7n n\xE0o d\u01B0\u1EDBi \u0111\xE2y c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n trong m\u1ED9t v\xE0i d\xF2ng m\xE3. H\xE3y c\xF9ng xem c\xE1ch th\u1EF1c s\u1EF1 s\u1EED d\u1EE5ng m\u1ED9t trong nh\u1EEFng m\xF4 h\xECnh n\xE0y v\xE0 c\xE1ch \u0111\xF3ng g\xF3p l\u1EA1i cho c\u1ED9ng \u0111\u1ED3ng."),Re.forEach(n),F=$(e),A=u(e,"P",{});var Ve=b(A);I=i(Ve,"Gi\u1EA3 s\u1EED ch\xFAng t\xF4i \u0111ang t\xECm ki\u1EBFm m\u1ED9t m\xF4 h\xECnh cho ti\u1EBFng Ph\xE1p c\xF3 th\u1EC3 th\u1EF1c hi\u1EC7n t\xE1c v\u1EE5 di\u1EC1n v\xE0o ph\u1EA7n b\u1ECB che \u0111i."),Ve.forEach(n),ge=$(e),J=u(e,"DIV",{class:!0});var Ke=b(J);U=u(Ke,"IMG",{src:!0,alt:!0,width:!0}),Ke.forEach(n),fe=$(e),L=u(e,"P",{});var V=b(L);xe=i(V,"Ch\xFAng t\xF4i ch\u1ECDn checkpoint "),oe=u(V,"CODE",{});var Je=b(oe);je=i(Je,"camembert-base"),Je.forEach(n),we=i(V," \u0111\u1EC3 d\xF9ng th\u1EED. T\u1EEB "),ie=u(V,"CODE",{});var Ue=b(ie);Te=i(Ue,"camembert-base"),Ue.forEach(n),Me=i(V," l\xE0 t\u1EA5t c\u1EA3 nh\u1EEFng g\xEC ch\xFAng ta c\u1EA7n \u0111\u1EC3 b\u1EAFt \u0111\u1EA7u s\u1EED d\u1EE5ng n\xF3! Nh\u01B0 b\u1EA1n \u0111\xE3 th\u1EA5y trong c\xE1c ch\u01B0\u01A1ng tr\u01B0\u1EDBc, ch\xFAng ta c\xF3 th\u1EC3 kh\u1EDFi t\u1EA1o n\xF3 b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng h\xE0m "),le=u(V,"CODE",{});var Qe=b(le);Ce=i(Qe,"pipeline()"),Qe.forEach(n),Ee=i(V,":"),V.forEach(n),be=$(e),B(Q.$$.fragment,e),ke=$(e),B(W.$$.fragment,e),de=$(e),z=u(e,"P",{});var K=b(z);qe=i(K,"Nh\u01B0 b\u1EA1n c\xF3 th\u1EC3 th\u1EA5y, vi\u1EC7c t\u1EA3i m\u1ED9t m\xF4 h\xECnh trong m\u1ED9t pipeline c\u1EF1c k\u1EF3 \u0111\u01A1n gi\u1EA3n. \u0110i\u1EC1u duy nh\u1EA5t b\u1EA1n c\u1EA7n ch\xFA \xFD l\xE0 checkpoint \u0111\xE3 ch\u1ECDn c\xF3 ph\xF9 h\u1EE3p v\u1EDBi t\xE1c v\u1EE5 m\xE0 n\xF3 s\u1EBD \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng hay kh\xF4ng. V\xED d\u1EE5: \u1EDF \u0111\xE2y ch\xFAng t\xF4i \u0111ang t\u1EA3i checkpoint "),he=u(K,"CODE",{});var We=b(he);Fe=i(We,"camembert-base"),We.forEach(n),Ae=i(K," trong pipeline "),me=u(K,"CODE",{});var Xe=b(me);Le=i(Xe,"fill-mask"),Xe.forEach(n),ze=i(K,", \u0111i\u1EC1u n\xE0y ho\xE0n to\xE0n \u1ED5n. Nh\u01B0ng n\u1EBFu ch\xFAng t\xF4i t\u1EA3i checkpoint n\xE0y trong pipeline ph\xE2n lo\u1EA1i v\u0103n b\u1EA3n, k\u1EBFt qu\u1EA3 s\u1EBD kh\xF4ng c\xF3 \xFD ngh\u0129a g\xEC v\xEC ph\u1EA7n \u0111\u1EA7u c\u1EE7a "),pe=u(K,"CODE",{});var Ye=b(pe);Ne=i(Ye,"camembert-base"),Ye.forEach(n),Pe=i(K," kh\xF4ng ph\xF9 h\u1EE3p v\u1EDBi t\xE1c v\u1EE5 n\xE0y! Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn s\u1EED d\u1EE5ng c\xF4ng c\u1EE5 ch\u1ECDn t\xE1c v\u1EE5 trong giao di\u1EC7n Hugging Face Hub \u0111\u1EC3 ch\u1ECDn c\xE1c checkpoint th\xEDch h\u1EE3p:"),K.forEach(n),_e=$(e),X=u(e,"DIV",{class:!0});var Ze=b(X);Y=u(Ze,"IMG",{src:!0,alt:!0,width:!0}),Ze.forEach(n),ve=$(e),ne=u(e,"P",{});var et=b(ne);Se=i(et,"B\u1EA1n c\u0169ng c\xF3 th\u1EC3 kh\u1EDFi t\u1EA1o checkpoint b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng ki\u1EBFn tr\xFAc m\xF4 h\xECnh tr\u1EF1c ti\u1EBFp:"),et.forEach(n),$e=$(e),D.l(e),se=$(e),B(R.$$.fragment,e),this.h()},h(){y(c,"name","hf:doc:metadata"),y(c,"content",JSON.stringify(_t)),y(_,"id","s-dng-cc-m-hnh-hun-luyn-trc"),y(_,"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"),y(_,"href","#s-dng-cc-m-hnh-hun-luyn-trc"),y(g,"class","relative group"),tt(U.src,De="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/camembert.gif")||y(U,"src",De),y(U,"alt","Selecting the Camembert model."),y(U,"width","80%"),y(J,"class","flex justify-center"),tt(Y.src,Oe="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/tasks.png")||y(Y,"src",Oe),y(Y,"alt","The task selector on the web interface."),y(Y,"width","80%"),y(X,"class","flex justify-center")},m(e,a){r(document.head,c),m(e,l,a),H(t,e,a),m(e,k,a),m(e,g,a),r(g,_),r(_,E),H(w,E,null),r(g,N),r(g,x),r(x,P),m(e,q,a),Z[d].m(e,a),m(e,j,a),m(e,s,a),r(s,h),m(e,F,a),m(e,A,a),r(A,I),m(e,ge,a),m(e,J,a),r(J,U),m(e,fe,a),m(e,L,a),r(L,xe),r(L,oe),r(oe,je),r(L,we),r(L,ie),r(ie,Te),r(L,Me),r(L,le),r(le,Ce),r(L,Ee),m(e,be,a),H(Q,e,a),m(e,ke,a),H(W,e,a),m(e,de,a),m(e,z,a),r(z,qe),r(z,he),r(he,Fe),r(z,Ae),r(z,me),r(me,Le),r(z,ze),r(z,pe),r(pe,Ne),r(z,Pe),m(e,_e,a),m(e,X,a),r(X,Y),m(e,ve,a),m(e,ne,a),r(ne,Se),m(e,$e,a),ee[S].m(e,a),m(e,se,a),H(R,e,a),ye=!0},p(e,[a]){const te={};a&1&&(te.fw=e[0]),t.$set(te);let re=d;d=He(e),d!==re&&(st(),T(Z[re],1,1,()=>{Z[re]=null}),nt(),f=Z[d],f||(f=Z[d]=Be[d](e),f.c()),M(f,1),f.m(j.parentNode,j));let ce=S;S=Ie(e),S!==ce&&(st(),T(ee[ce],1,1,()=>{ee[ce]=null}),nt(),D=ee[S],D||(D=ee[S]=Ge[S](e),D.c()),M(D,1),D.m(se.parentNode,se));const ue={};a&2&&(ue.$$scope={dirty:a,ctx:e}),R.$set(ue)},i(e){ye||(M(t.$$.fragment,e),M(w.$$.fragment,e),M(f),M(Q.$$.fragment,e),M(W.$$.fragment,e),M(D),M(R.$$.fragment,e),ye=!0)},o(e){T(t.$$.fragment,e),T(w.$$.fragment,e),T(f),T(Q.$$.fragment,e),T(W.$$.fragment,e),T(D),T(R.$$.fragment,e),ye=!1},d(e){n(c),e&&n(l),G(t,e),e&&n(k),e&&n(g),G(w),e&&n(q),Z[d].d(e),e&&n(j),e&&n(s),e&&n(F),e&&n(A),e&&n(ge),e&&n(J),e&&n(fe),e&&n(L),e&&n(be),G(Q,e),e&&n(ke),G(W,e),e&&n(de),e&&n(z),e&&n(_e),e&&n(X),e&&n(ve),e&&n(ne),e&&n($e),ee[S].d(e),e&&n(se),G(R,e)}}}const _t={local:"s-dng-cc-m-hnh-hun-luyn-trc",title:"S\u1EED d\u1EE5ng c\xE1c m\xF4 h\xECnh hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc"};function vt(C,c,l){let t="pt";return lt(()=>{const k=new URLSearchParams(window.location.search);l(0,t=k.get("fw")||"pt")}),[t]}class Ct extends ct{constructor(c){super();at(this,c,vt,dt,ot,{})}}export{Ct as default,_t as metadata};
