import{S as Gg,i as Ig,s as Bg,e as i,k as u,w,t as c,l as Hg,M as Rg,c as l,d as e,m,x as j,a as s,h as o,b as d,N as Bt,G as n,g as r,y as P,o as v,p as pe,q as k,B as C,v as Kg,n as ue}from"../../chunks/vendor-hf-doc-builder.js";import{T as Fg}from"../../chunks/Tip-hf-doc-builder.js";import{Y as Bu}from"../../chunks/Youtube-hf-doc-builder.js";import{I as We}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as M}from"../../chunks/CodeBlock-hf-doc-builder.js";import{C as Lg}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import{F as Vg}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function Ug(x){let p,f;return p=new Lg({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/section3_tf.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/vi/chapter4/section3_tf.ipynb"}]}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function Yg(x){let p,f;return p=new Lg({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/section3_pt.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/vi/chapter4/section3_pt.ipynb"}]}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function Xg(x){let p,f;return p=new Bu({props:{id:"pUh5cGmNV8Y"}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function Qg(x){let p,f;return p=new Bu({props:{id:"Zh0FfmVrKX0"}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function Wg(x){let p,f,a,_,$,q,N,T,A,z,D,g,b,y,E,H,I,F,L,K,X,et,V,nt,$t,J,B,ct,ot,U,Et,ht;return z=new M({props:{code:`from transformers import PushToHubCallback

callback = PushToHubCallback(
    "bert-finetuned-mrpc", save_strategy="epoch", tokenizer=tokenizer
)`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PushToHubCallback

callback = PushToHubCallback(
    <span class="hljs-string">&quot;bert-finetuned-mrpc&quot;</span>, save_strategy=<span class="hljs-string">&quot;epoch&quot;</span>, tokenizer=tokenizer
)`}}),{c(){p=i("p"),f=c("N\u1EBFu b\u1EA1n s\u1EED d\u1EE5ng Keras \u0111\u1EC3 hu\u1EA5n luy\u1EC7n m\xF4 h\xECnh, c\xE1ch d\u1EC5 nh\u1EA5t \u0111\u1EC3 t\u1EA3i n\xF3 l\xEAn Hub l\xE0 s\u1EED d\u1EE5ng "),a=i("code"),_=c("PushToHubCallback"),$=c(" khi b\u1EA1n g\u1ECDi "),q=i("code"),N=c("model.fit()"),T=c(":"),A=u(),w(z.$$.fragment),D=u(),g=i("p"),b=c("Sau \u0111\xF3, b\u1EA1n n\xEAn th\xEAm "),y=i("code"),E=c("callbacks=[callback]"),H=c(" trong l\u1EC7nh g\u1ECDi c\u1EE7a m\xECnh t\u1EDBi "),I=i("code"),F=c("model.fit()"),L=c(". Sau \u0111\xF3, l\u1EC7nh n\xE0y s\u1EBD t\u1EA3i m\xF4 h\xECnh c\u1EE7a b\u1EA1n l\xEAn Hub m\u1ED7i khi n\xF3 \u0111\u01B0\u1EE3c l\u01B0u (\u1EDF \u0111\xE2y l\xE0 m\u1ED7i epoch) trong m\u1ED9t kho l\u01B0u tr\u1EEF tr\xEAn kh\xF4ng gian t\xEAn c\u1EE7a b\u1EA1n. Kho l\u01B0u tr\u1EEF \u0111\xF3 s\u1EBD \u0111\u01B0\u1EE3c \u0111\u1EB7t t\xEAn gi\u1ED1ng nh\u01B0 th\u01B0 m\u1EE5c \u0111\u1EA7u ra b\u1EA1n \u0111\xE3 ch\u1ECDn (\u1EDF \u0111\xE2y l\xE0 "),K=i("code"),X=c("bert-finetuned-mrpc"),et=c(") nh\u01B0ng b\u1EA1n c\xF3 th\u1EC3 ch\u1ECDn m\u1ED9t t\xEAn kh\xE1c v\u1EDBi "),V=i("code"),nt=c('hub_model_id = "a_different_name"'),$t=c("."),J=u(),B=i("p"),ct=c("\u0110\u1EC3 t\u1EA3i m\xF4 h\xECnh c\u1EE7a b\u1EA1n l\xEAn t\u1ED5 ch\u1EE9c m\xE0 b\u1EA1n l\xE0 th\xE0nh vi\xEAn, ch\u1EC9 c\u1EA7n truy\u1EC1n n\xF3 v\xE0o qua "),ot=i("code"),U=c('hub_model_id = "my_organization/my_repo_name"'),Et=c(".")},l(S){p=l(S,"P",{});var R=s(p);f=o(R,"N\u1EBFu b\u1EA1n s\u1EED d\u1EE5ng Keras \u0111\u1EC3 hu\u1EA5n luy\u1EC7n m\xF4 h\xECnh, c\xE1ch d\u1EC5 nh\u1EA5t \u0111\u1EC3 t\u1EA3i n\xF3 l\xEAn Hub l\xE0 s\u1EED d\u1EE5ng "),a=l(R,"CODE",{});var ft=s(a);_=o(ft,"PushToHubCallback"),ft.forEach(e),$=o(R," khi b\u1EA1n g\u1ECDi "),q=l(R,"CODE",{});var Z=s(q);N=o(Z,"model.fit()"),Z.forEach(e),T=o(R,":"),R.forEach(e),A=m(S),j(z.$$.fragment,S),D=m(S),g=l(S,"P",{});var Y=s(g);b=o(Y,"Sau \u0111\xF3, b\u1EA1n n\xEAn th\xEAm "),y=l(Y,"CODE",{});var it=s(y);E=o(it,"callbacks=[callback]"),it.forEach(e),H=o(Y," trong l\u1EC7nh g\u1ECDi c\u1EE7a m\xECnh t\u1EDBi "),I=l(Y,"CODE",{});var Rt=s(I);F=o(Rt,"model.fit()"),Rt.forEach(e),L=o(Y,". Sau \u0111\xF3, l\u1EC7nh n\xE0y s\u1EBD t\u1EA3i m\xF4 h\xECnh c\u1EE7a b\u1EA1n l\xEAn Hub m\u1ED7i khi n\xF3 \u0111\u01B0\u1EE3c l\u01B0u (\u1EDF \u0111\xE2y l\xE0 m\u1ED7i epoch) trong m\u1ED9t kho l\u01B0u tr\u1EEF tr\xEAn kh\xF4ng gian t\xEAn c\u1EE7a b\u1EA1n. Kho l\u01B0u tr\u1EEF \u0111\xF3 s\u1EBD \u0111\u01B0\u1EE3c \u0111\u1EB7t t\xEAn gi\u1ED1ng nh\u01B0 th\u01B0 m\u1EE5c \u0111\u1EA7u ra b\u1EA1n \u0111\xE3 ch\u1ECDn (\u1EDF \u0111\xE2y l\xE0 "),K=l(Y,"CODE",{});var wt=s(K);X=o(wt,"bert-finetuned-mrpc"),wt.forEach(e),et=o(Y,") nh\u01B0ng b\u1EA1n c\xF3 th\u1EC3 ch\u1ECDn m\u1ED9t t\xEAn kh\xE1c v\u1EDBi "),V=l(Y,"CODE",{});var lt=s(V);nt=o(lt,'hub_model_id = "a_different_name"'),lt.forEach(e),$t=o(Y,"."),Y.forEach(e),J=m(S),B=l(S,"P",{});var Q=s(B);ct=o(Q,"\u0110\u1EC3 t\u1EA3i m\xF4 h\xECnh c\u1EE7a b\u1EA1n l\xEAn t\u1ED5 ch\u1EE9c m\xE0 b\u1EA1n l\xE0 th\xE0nh vi\xEAn, ch\u1EC9 c\u1EA7n truy\u1EC1n n\xF3 v\xE0o qua "),ot=l(Q,"CODE",{});var tt=s(ot);U=o(tt,'hub_model_id = "my_organization/my_repo_name"'),tt.forEach(e),Et=o(Q,"."),Q.forEach(e)},m(S,R){r(S,p,R),n(p,f),n(p,a),n(a,_),n(p,$),n(p,q),n(q,N),n(p,T),r(S,A,R),P(z,S,R),r(S,D,R),r(S,g,R),n(g,b),n(g,y),n(y,E),n(g,H),n(g,I),n(I,F),n(g,L),n(g,K),n(K,X),n(g,et),n(g,V),n(V,nt),n(g,$t),r(S,J,R),r(S,B,R),n(B,ct),n(B,ot),n(ot,U),n(B,Et),ht=!0},i(S){ht||(k(z.$$.fragment,S),ht=!0)},o(S){v(z.$$.fragment,S),ht=!1},d(S){S&&e(p),S&&e(A),C(z,S),S&&e(D),S&&e(g),S&&e(J),S&&e(B)}}}function Jg(x){let p,f,a,_,$,q,N,T,A,z,D,g,b,y,E,H,I,F,L,K,X,et,V,nt,$t,J,B,ct,ot,U,Et,ht,S,R,ft,Z,Y,it,Rt,wt,lt,Q,tt,dt,gt;return b=new M({props:{code:`from transformers import TrainingArguments

training_args = TrainingArguments(
    "bert-finetuned-mrpc", save_strategy="epoch", push_to_hub=True
)`,highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TrainingArguments

training_args = TrainingArguments(
    <span class="hljs-string">&quot;bert-finetuned-mrpc&quot;</span>, save_strategy=<span class="hljs-string">&quot;epoch&quot;</span>, push_to_hub=<span class="hljs-literal">True</span>
)`}}),{c(){p=i("p"),f=c("N\u1EBFu b\u1EA1n \u0111\xE3 th\u1EED v\u1EDBi API "),a=i("code"),_=c("Trainer"),$=c(" \u0111\u1EC3 hu\u1EA5n luy\u1EC7n m\u1ED9t m\xF4 h\xECnh, th\xEC c\xE1ch d\u1EC5 nh\u1EA5t \u0111\u1EC3 t\u1EA3i n\xF3 l\xEAn Hub l\xE0 \u0111\u1EB7t "),q=i("code"),N=c("push_to_hub=True"),T=c(" khi b\u1EA1n \u0111\u1ECBnh ngh\u0129a  "),A=i("code"),z=c("TrainingArguments"),D=c(":"),g=u(),w(b.$$.fragment),y=u(),E=i("p"),H=c("Khi b\u1EA1n g\u1ECDi "),I=i("code"),F=c("trainer.train()"),L=c(", "),K=i("code"),X=c("Trainer"),et=c(" sau \u0111\xF3 s\u1EBD t\u1EA3i m\xF4 h\xECnh c\u1EE7a b\u1EA1n l\xEAn Hub m\u1ED7i khi n\xF3 \u0111\u01B0\u1EE3c l\u01B0u (\u1EDF \u0111\xE2y l\xE0 m\u1ED7i epoch) trong m\u1ED9t kho l\u01B0u tr\u1EEF trong kh\xF4ng gian t\xEAn c\u1EE7a b\u1EA1n. Kho l\u01B0u tr\u1EEF \u0111\xF3 s\u1EBD \u0111\u01B0\u1EE3c \u0111\u1EB7t t\xEAn gi\u1ED1ng nh\u01B0 th\u01B0 m\u1EE5c \u0111\u1EA7u ra b\u1EA1n \u0111\xE3 ch\u1ECDn (\u1EDF \u0111\xE2y l\xE0 "),V=i("code"),nt=c("bert-finetuned-mrpc"),$t=c(") nh\u01B0ng b\u1EA1n c\xF3 th\u1EC3 ch\u1ECDn m\u1ED9t t\xEAn kh\xE1c v\u1EDBi "),J=i("code"),B=c('hub_model_id = "a_different_name"'),ct=c("."),ot=u(),U=i("p"),Et=c("\u0110\u1EC3 t\u1EA3i m\xF4 h\xECnh c\u1EE7a b\u1EA1n l\xEAn t\u1ED5 ch\u1EE9c m\xE0 b\u1EA1n l\xE0 th\xE0nh vi\xEAn, ch\u1EC9 c\u1EA7n truy\u1EC1n n\xF3 v\xE0o qua "),ht=i("code"),S=c('hub_model_id = "my_organization/my_repo_name"'),R=c("."),ft=u(),Z=i("p"),Y=c("Sau khi qu\xE1 tr\xECnh hu\u1EA5n luy\u1EC7n c\u1EE7a b\u1EA1n k\u1EBFt th\xFAc, b\u1EA1n n\xEAn th\u1EF1c hi\u1EC7n m\u1ED9t "),it=i("code"),Rt=c("trainer.push_to_hub()"),wt=c(" cu\u1ED1i c\xF9ng \u0111\u1EC3 t\u1EA3i l\xEAn phi\xEAn b\u1EA3n cu\u1ED1i c\xF9ng c\u1EE7a m\xF4 h\xECnh c\u1EE7a b\u1EA1n. N\xF3 c\u0169ng s\u1EBD t\u1EA1o ra m\u1ED9t th\u1EBB m\xF4 h\xECnh v\u1EDBi t\u1EA5t c\u1EA3 c\xE1c si\xEAu d\u1EEF li\u1EC7u li\xEAn quan, b\xE1o c\xE1o c\xE1c si\xEAu tham s\u1ED1 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng v\xE0 k\u1EBFt qu\u1EA3 \u0111\xE1nh gi\xE1! D\u01B0\u1EDBi \u0111\xE2y l\xE0 m\u1ED9t v\xED d\u1EE5 v\u1EC1 n\u1ED9i dung b\u1EA1n c\xF3 th\u1EC3 t\xECm th\u1EA5y trong m\u1ED9t th\u1EBB m\xF4 h\xECnh nh\u01B0 v\u1EADy:"),lt=u(),Q=i("div"),tt=i("img"),this.h()},l(O){p=l(O,"P",{});var G=s(p);f=o(G,"N\u1EBFu b\u1EA1n \u0111\xE3 th\u1EED v\u1EDBi API "),a=l(G,"CODE",{});var pc=s(a);_=o(pc,"Trainer"),pc.forEach(e),$=o(G," \u0111\u1EC3 hu\u1EA5n luy\u1EC7n m\u1ED9t m\xF4 h\xECnh, th\xEC c\xE1ch d\u1EC5 nh\u1EA5t \u0111\u1EC3 t\u1EA3i n\xF3 l\xEAn Hub l\xE0 \u0111\u1EB7t "),q=l(G,"CODE",{});var ne=s(q);N=o(ne,"push_to_hub=True"),ne.forEach(e),T=o(G," khi b\u1EA1n \u0111\u1ECBnh ngh\u0129a  "),A=l(G,"CODE",{});var uc=s(A);z=o(uc,"TrainingArguments"),uc.forEach(e),D=o(G,":"),G.forEach(e),g=m(O),j(b.$$.fragment,O),y=m(O),E=l(O,"P",{});var W=s(E);H=o(W,"Khi b\u1EA1n g\u1ECDi "),I=l(W,"CODE",{});var mc=s(I);F=o(mc,"trainer.train()"),mc.forEach(e),L=o(W,", "),K=l(W,"CODE",{});var Je=s(K);X=o(Je,"Trainer"),Je.forEach(e),et=o(W," sau \u0111\xF3 s\u1EBD t\u1EA3i m\xF4 h\xECnh c\u1EE7a b\u1EA1n l\xEAn Hub m\u1ED7i khi n\xF3 \u0111\u01B0\u1EE3c l\u01B0u (\u1EDF \u0111\xE2y l\xE0 m\u1ED7i epoch) trong m\u1ED9t kho l\u01B0u tr\u1EEF trong kh\xF4ng gian t\xEAn c\u1EE7a b\u1EA1n. Kho l\u01B0u tr\u1EEF \u0111\xF3 s\u1EBD \u0111\u01B0\u1EE3c \u0111\u1EB7t t\xEAn gi\u1ED1ng nh\u01B0 th\u01B0 m\u1EE5c \u0111\u1EA7u ra b\u1EA1n \u0111\xE3 ch\u1ECDn (\u1EDF \u0111\xE2y l\xE0 "),V=l(W,"CODE",{});var rt=s(V);nt=o(rt,"bert-finetuned-mrpc"),rt.forEach(e),$t=o(W,") nh\u01B0ng b\u1EA1n c\xF3 th\u1EC3 ch\u1ECDn m\u1ED9t t\xEAn kh\xE1c v\u1EDBi "),J=l(W,"CODE",{});var st=s(J);B=o(st,'hub_model_id = "a_different_name"'),st.forEach(e),ct=o(W,"."),W.forEach(e),ot=m(O),U=l(O,"P",{});var jt=s(U);Et=o(jt,"\u0110\u1EC3 t\u1EA3i m\xF4 h\xECnh c\u1EE7a b\u1EA1n l\xEAn t\u1ED5 ch\u1EE9c m\xE0 b\u1EA1n l\xE0 th\xE0nh vi\xEAn, ch\u1EC9 c\u1EA7n truy\u1EC1n n\xF3 v\xE0o qua "),ht=l(jt,"CODE",{});var Pt=s(ht);S=o(Pt,'hub_model_id = "my_organization/my_repo_name"'),Pt.forEach(e),R=o(jt,"."),jt.forEach(e),ft=m(O),Z=l(O,"P",{});var me=s(Z);Y=o(me,"Sau khi qu\xE1 tr\xECnh hu\u1EA5n luy\u1EC7n c\u1EE7a b\u1EA1n k\u1EBFt th\xFAc, b\u1EA1n n\xEAn th\u1EF1c hi\u1EC7n m\u1ED9t "),it=l(me,"CODE",{});var fe=s(it);Rt=o(fe,"trainer.push_to_hub()"),fe.forEach(e),wt=o(me," cu\u1ED1i c\xF9ng \u0111\u1EC3 t\u1EA3i l\xEAn phi\xEAn b\u1EA3n cu\u1ED1i c\xF9ng c\u1EE7a m\xF4 h\xECnh c\u1EE7a b\u1EA1n. N\xF3 c\u0169ng s\u1EBD t\u1EA1o ra m\u1ED9t th\u1EBB m\xF4 h\xECnh v\u1EDBi t\u1EA5t c\u1EA3 c\xE1c si\xEAu d\u1EEF li\u1EC7u li\xEAn quan, b\xE1o c\xE1o c\xE1c si\xEAu tham s\u1ED1 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng v\xE0 k\u1EBFt qu\u1EA3 \u0111\xE1nh gi\xE1! D\u01B0\u1EDBi \u0111\xE2y l\xE0 m\u1ED9t v\xED d\u1EE5 v\u1EC1 n\u1ED9i dung b\u1EA1n c\xF3 th\u1EC3 t\xECm th\u1EA5y trong m\u1ED9t th\u1EBB m\xF4 h\xECnh nh\u01B0 v\u1EADy:"),me.forEach(e),lt=m(O),Q=l(O,"DIV",{class:!0});var fc=s(Q);tt=l(fc,"IMG",{src:!0,alt:!0,width:!0}),fc.forEach(e),this.h()},h(){Bt(tt.src,dt="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/model_card.png")||d(tt,"src",dt),d(tt,"alt","An example of an auto-generated model card."),d(tt,"width","100%"),d(Q,"class","flex justify-center")},m(O,G){r(O,p,G),n(p,f),n(p,a),n(a,_),n(p,$),n(p,q),n(q,N),n(p,T),n(p,A),n(A,z),n(p,D),r(O,g,G),P(b,O,G),r(O,y,G),r(O,E,G),n(E,H),n(E,I),n(I,F),n(E,L),n(E,K),n(K,X),n(E,et),n(E,V),n(V,nt),n(E,$t),n(E,J),n(J,B),n(E,ct),r(O,ot,G),r(O,U,G),n(U,Et),n(U,ht),n(ht,S),n(U,R),r(O,ft,G),r(O,Z,G),n(Z,Y),n(Z,it),n(it,Rt),n(Z,wt),r(O,lt,G),r(O,Q,G),n(Q,tt),gt=!0},i(O){gt||(k(b.$$.fragment,O),gt=!0)},o(O){v(b.$$.fragment,O),gt=!1},d(O){O&&e(p),O&&e(g),C(b,O),O&&e(y),O&&e(E),O&&e(ot),O&&e(U),O&&e(ft),O&&e(Z),O&&e(lt),O&&e(Q)}}}function Zg(x){let p,f;return p=new M({props:{code:`from transformers import TFAutoModelForMaskedLM, AutoTokenizer

checkpoint = "camembert-base"

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

checkpoint = <span class="hljs-string">&quot;camembert-base&quot;</span>

model = TFAutoModelForMaskedLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)`}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function td(x){let p,f;return p=new M({props:{code:`from transformers import AutoModelForMaskedLM, AutoTokenizer

checkpoint = "camembert-base"

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

checkpoint = <span class="hljs-string">&quot;camembert-base&quot;</span>

model = AutoModelForMaskedLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)`}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function ed(x){let p,f,a;return{c(){p=i("div"),f=i("img"),this.h()},l(_){p=l(_,"DIV",{class:!0});var $=s(p);f=l($,"IMG",{src:!0,alt:!0,width:!0}),$.forEach(e),this.h()},h(){Bt(f.src,a="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/push_to_hub_dummy_model_tf.png")||d(f,"src",a),d(f,"alt","Dummy model containing both the tokenizer and model files."),d(f,"width","80%"),d(p,"class","flex justify-center")},m(_,$){r(_,p,$),n(p,f)},d(_){_&&e(p)}}}function nd(x){let p,f,a;return{c(){p=i("div"),f=i("img"),this.h()},l(_){p=l(_,"DIV",{class:!0});var $=s(p);f=l($,"IMG",{src:!0,alt:!0,width:!0}),$.forEach(e),this.h()},h(){Bt(f.src,a="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/push_to_hub_dummy_model.png")||d(f,"src",a),d(f,"alt","Dummy model containing both the tokenizer and model files."),d(f,"width","80%"),d(p,"class","flex justify-center")},m(_,$){r(_,p,$),n(p,f)},d(_){_&&e(p)}}}function cd(x){let p,f,a,_,$,q,N,T,A,z,D;return{c(){p=i("p"),f=c("\u270F\uFE0F "),a=i("strong"),_=c("Th\u1EED nghi\u1EC7m th\xF4i!"),$=c(" L\u1EA5y m\xF4 h\xECnh v\xE0 tr\xECnh tokenize \u0111\u01B0\u1EE3c li\xEAn k\u1EBFt v\u1EDBi checkpoint "),q=i("code"),N=c("bert-base-cased"),T=c(" v\xE0 t\u1EA3i ch\xFAng l\xEAn kho l\u01B0u tr\u1EEF trong kh\xF4ng gian t\xEAn c\u1EE7a b\u1EA1n b\u1EB1ng ph\u01B0\u01A1ng th\u1EE9c "),A=i("code"),z=c("push_to_hub()"),D=c(". Ki\u1EC3m tra k\u1EF9 xem repo c\xF3 xu\u1EA5t hi\u1EC7n ch\xEDnh x\xE1c tr\xEAn trang c\u1EE7a b\u1EA1n hay kh\xF4ng tr\u01B0\u1EDBc khi x\xF3a n\xF3.")},l(g){p=l(g,"P",{});var b=s(p);f=o(b,"\u270F\uFE0F "),a=l(b,"STRONG",{});var y=s(a);_=o(y,"Th\u1EED nghi\u1EC7m th\xF4i!"),y.forEach(e),$=o(b," L\u1EA5y m\xF4 h\xECnh v\xE0 tr\xECnh tokenize \u0111\u01B0\u1EE3c li\xEAn k\u1EBFt v\u1EDBi checkpoint "),q=l(b,"CODE",{});var E=s(q);N=o(E,"bert-base-cased"),E.forEach(e),T=o(b," v\xE0 t\u1EA3i ch\xFAng l\xEAn kho l\u01B0u tr\u1EEF trong kh\xF4ng gian t\xEAn c\u1EE7a b\u1EA1n b\u1EB1ng ph\u01B0\u01A1ng th\u1EE9c "),A=l(b,"CODE",{});var H=s(A);z=o(H,"push_to_hub()"),H.forEach(e),D=o(b,". Ki\u1EC3m tra k\u1EF9 xem repo c\xF3 xu\u1EA5t hi\u1EC7n ch\xEDnh x\xE1c tr\xEAn trang c\u1EE7a b\u1EA1n hay kh\xF4ng tr\u01B0\u1EDBc khi x\xF3a n\xF3."),b.forEach(e)},m(g,b){r(g,p,b),n(p,f),n(p,a),n(a,_),n(p,$),n(p,q),n(q,N),n(p,T),n(p,A),n(A,z),n(p,D)},d(g){g&&e(p)}}}function od(x){let p,f;return p=new M({props:{code:`from transformers import TFAutoModelForMaskedLM, AutoTokenizer

checkpoint = "camembert-base"

model = TFAutoModelForMaskedLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)

# L\xE0m b\u1EA5t c\u1EE9 \u0111i\u1EC1u g\xEC v\u1EDBi m\xF4 h\xECnh, hu\u1EA5n luy\u1EC7n n\xF3, tinh ch\u1EC9nh n\xF3 ...

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

checkpoint = <span class="hljs-string">&quot;camembert-base&quot;</span>

model = TFAutoModelForMaskedLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)

<span class="hljs-comment"># L\xE0m b\u1EA5t c\u1EE9 \u0111i\u1EC1u g\xEC v\u1EDBi m\xF4 h\xECnh, hu\u1EA5n luy\u1EC7n n\xF3, tinh ch\u1EC9nh n\xF3 ...</span>

model.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)
tokenizer.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)`}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function hd(x){let p,f;return p=new M({props:{code:`from transformers import AutoModelForMaskedLM, AutoTokenizer

checkpoint = "camembert-base"

model = AutoModelForMaskedLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)

# L\xE0m b\u1EA5t c\u1EE9 \u0111i\u1EC1u g\xEC v\u1EDBi m\xF4 h\xECnh, hu\u1EA5n luy\u1EC7n n\xF3, tinh ch\u1EC9nh n\xF3 ...

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

checkpoint = <span class="hljs-string">&quot;camembert-base&quot;</span>

model = AutoModelForMaskedLM.from_pretrained(checkpoint)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)

<span class="hljs-comment"># L\xE0m b\u1EA5t c\u1EE9 \u0111i\u1EC1u g\xEC v\u1EDBi m\xF4 h\xECnh, hu\u1EA5n luy\u1EC7n n\xF3, tinh ch\u1EC9nh n\xF3 ...</span>

model.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)
tokenizer.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)`}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function id(x){let p,f,a,_,$,q,N,T,A,z,D;return p=new M({props:{code:"config.json  README.md  sentencepiece.bpe.model  special_tokens_map.json  tf_model.h5  tokenizer_config.json  tokenizer.json",highlighted:"config.json  README.md  sentencepiece.bpe.model  special_tokens_map.json  tf_model.h5  tokenizer_config.json  tokenizer.json"}}),{c(){w(p.$$.fragment),f=u(),a=i("p"),_=c("N\u1EBFu b\u1EA1n nh\xECn v\xE0o k\xEDch th\u01B0\u1EDBc t\u1EC7p (v\xED d\u1EE5: v\u1EDBi "),$=i("code"),q=c("ls -lh"),N=c("), b\u1EA1n s\u1EBD th\u1EA5y r\u1EB1ng t\u1EC7p dict tr\u1EA1ng th\xE1i m\xF4 h\xECnh ("),T=i("em"),A=c("t5_model.h5"),z=c(") l\xE0 ngo\u1EA1i l\u1EC7 duy nh\u1EA5t, v\u1EDBi h\u01A1n 400 MB.")},l(g){j(p.$$.fragment,g),f=m(g),a=l(g,"P",{});var b=s(a);_=o(b,"N\u1EBFu b\u1EA1n nh\xECn v\xE0o k\xEDch th\u01B0\u1EDBc t\u1EC7p (v\xED d\u1EE5: v\u1EDBi "),$=l(b,"CODE",{});var y=s($);q=o(y,"ls -lh"),y.forEach(e),N=o(b,"), b\u1EA1n s\u1EBD th\u1EA5y r\u1EB1ng t\u1EC7p dict tr\u1EA1ng th\xE1i m\xF4 h\xECnh ("),T=l(b,"EM",{});var E=s(T);A=o(E,"t5_model.h5"),E.forEach(e),z=o(b,") l\xE0 ngo\u1EA1i l\u1EC7 duy nh\u1EA5t, v\u1EDBi h\u01A1n 400 MB."),b.forEach(e)},m(g,b){P(p,g,b),r(g,f,b),r(g,a,b),n(a,_),n(a,$),n($,q),n(a,N),n(a,T),n(T,A),n(a,z),D=!0},i(g){D||(k(p.$$.fragment,g),D=!0)},o(g){v(p.$$.fragment,g),D=!1},d(g){C(p,g),g&&e(f),g&&e(a)}}}function ld(x){let p,f,a,_,$,q,N,T,A,z,D;return p=new M({props:{code:"config.json  pytorch_model.bin  README.md  sentencepiece.bpe.model  special_tokens_map.json tokenizer_config.json  tokenizer.json",highlighted:"config.json  pytorch_model.bin  README.md  sentencepiece.bpe.model  special_tokens_map.json tokenizer_config.json  tokenizer.json"}}),{c(){w(p.$$.fragment),f=u(),a=i("p"),_=c("N\u1EBFu b\u1EA1n nh\xECn v\xE0o k\xEDch th\u01B0\u1EDBc t\u1EC7p (v\xED d\u1EE5: v\u1EDBi "),$=i("code"),q=c("ls -lh"),N=c("), b\u1EA1n s\u1EBD th\u1EA5y r\u1EB1ng t\u1EC7p dict tr\u1EA1ng th\xE1i m\xF4 h\xECnh ("),T=i("em"),A=c("pytorch_model.bin"),z=c(") l\xE0 ngo\u1EA1i l\u1EC7 duy nh\u1EA5t, v\u1EDBi h\u01A1n 400 MB.")},l(g){j(p.$$.fragment,g),f=m(g),a=l(g,"P",{});var b=s(a);_=o(b,"N\u1EBFu b\u1EA1n nh\xECn v\xE0o k\xEDch th\u01B0\u1EDBc t\u1EC7p (v\xED d\u1EE5: v\u1EDBi "),$=l(b,"CODE",{});var y=s($);q=o(y,"ls -lh"),y.forEach(e),N=o(b,"), b\u1EA1n s\u1EBD th\u1EA5y r\u1EB1ng t\u1EC7p dict tr\u1EA1ng th\xE1i m\xF4 h\xECnh ("),T=l(b,"EM",{});var E=s(T);A=o(E,"pytorch_model.bin"),E.forEach(e),z=o(b,") l\xE0 ngo\u1EA1i l\u1EC7 duy nh\u1EA5t, v\u1EDBi h\u01A1n 400 MB."),b.forEach(e)},m(g,b){P(p,g,b),r(g,f,b),r(g,a,b),n(a,_),n(a,$),n($,q),n(a,N),n(a,T),n(T,A),n(a,z),D=!0},i(g){D||(k(p.$$.fragment,g),D=!0)},o(g){v(p.$$.fragment,g),D=!1},d(g){C(p,g),g&&e(f),g&&e(a)}}}function rd(x){let p;return{c(){p=c(`\u270F\uFE0F  Khi t\u1EA1o kho l\u01B0u tr\u1EEF t\u1EEB giao di\u1EC7n web, t\u1EC7p *.gitattributes* \u0111\u01B0\u1EE3c t\u1EF1 \u0111\u1ED9ng thi\u1EBFt l\u1EADp \u0111\u1EC3 xem x\xE9t c\xE1c t\u1EC7p c\xF3 ph\u1EA7n m\u1EDF r\u1ED9ng nh\u1EA5t \u0111\u1ECBnh, ch\u1EB3ng h\u1EA1n nh\u01B0 *.bin* v\xE0 *.h5*, l\xE0 t\u1EC7p l\u1EDBn v\xE0 git-lfs s\u1EBD theo d\xF5i ch\xFAng m\xE0 kh\xF4ng c\xF3 thi\u1EBFt l\u1EADp c\u1EA7n thi\u1EBFt v\u1EC1 ph\xEDa b\u1EA1n.
`)},l(f){p=o(f,`\u270F\uFE0F  Khi t\u1EA1o kho l\u01B0u tr\u1EEF t\u1EEB giao di\u1EC7n web, t\u1EC7p *.gitattributes* \u0111\u01B0\u1EE3c t\u1EF1 \u0111\u1ED9ng thi\u1EBFt l\u1EADp \u0111\u1EC3 xem x\xE9t c\xE1c t\u1EC7p c\xF3 ph\u1EA7n m\u1EDF r\u1ED9ng nh\u1EA5t \u0111\u1ECBnh, ch\u1EB3ng h\u1EA1n nh\u01B0 *.bin* v\xE0 *.h5*, l\xE0 t\u1EC7p l\u1EDBn v\xE0 git-lfs s\u1EBD theo d\xF5i ch\xFAng m\xE0 kh\xF4ng c\xF3 thi\u1EBFt l\u1EADp c\u1EA7n thi\u1EBFt v\u1EC1 ph\xEDa b\u1EA1n.
`)},m(f,a){r(f,p,a)},d(f){f&&e(p)}}}function sd(x){let p,f;return p=new M({props:{code:`On branch main
Your branch is up to date with 'origin/main'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
  modified:   .gitattributes
  	new file:   config.json
	new file:   sentencepiece.bpe.model
	new file:   special_tokens_map.json
	new file:   tf_model.h5
	new file:   tokenizer.json
	new file:   tokenizer_config.json`,highlighted:`On branch main
Your branch is up to <span class="hljs-built_in">date</span> with <span class="hljs-string">&#x27;origin/main&#x27;</span>.

Changes to be committed:
  (use <span class="hljs-string">&quot;git restore --staged &lt;file&gt;...&quot;</span> to unstage)
  modified:   .gitattributes
  	new file:   config.json
	new file:   sentencepiece.bpe.model
	new file:   special_tokens_map.json
	new file:   tf_model.h5
	new file:   tokenizer.json
	new file:   tokenizer_config.json`}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function ad(x){let p,f;return p=new M({props:{code:`On branch main
Your branch is up to date with 'origin/main'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
  modified:   .gitattributes
	new file:   config.json
	new file:   pytorch_model.bin
	new file:   sentencepiece.bpe.model
	new file:   special_tokens_map.json
	new file:   tokenizer.json
	new file:   tokenizer_config.json`,highlighted:`On branch main
Your branch is up to <span class="hljs-built_in">date</span> with <span class="hljs-string">&#x27;origin/main&#x27;</span>.

Changes to be committed:
  (use <span class="hljs-string">&quot;git restore --staged &lt;file&gt;...&quot;</span> to unstage)
  modified:   .gitattributes
	new file:   config.json
	new file:   pytorch_model.bin
	new file:   sentencepiece.bpe.model
	new file:   special_tokens_map.json
	new file:   tokenizer.json
	new file:   tokenizer_config.json`}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function pd(x){let p,f,a,_,$,q,N,T,A,z,D,g,b,y;return p=new M({props:{code:`On branch main
Objects to be pushed to origin/main:


Objects to be committed:

	config.json (Git: bc20ff2)
	sentencepiece.bpe.model (LFS: 988bc5a)
	special_tokens_map.json (Git: cb23931)
	tf_model.h5 (LFS: 86fce29)
	tokenizer.json (Git: 851ff3e)
	tokenizer_config.json (Git: f0f7783)

Objects not staged for commit:

`,highlighted:`On branch main
Objects to be pushed to origin/main:


Objects to be committed:

	config.json (Git: bc20ff2)
	sentencepiece.bpe.model (LFS: 988bc5a)
	special_tokens_map.json (Git: cb23931)
	tf_model.h5 (LFS: 86fce29)
	tokenizer.json (Git: 851ff3e)
	tokenizer_config.json (Git: f0f7783)

Objects not staged <span class="hljs-keyword">for</span> commit:

`}}),{c(){w(p.$$.fragment),f=u(),a=i("p"),_=c("Ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y r\u1EB1ng t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p \u0111\u1EC1u c\xF3 "),$=i("code"),q=c("Git"),N=c(" l\xE0m tr\xECnh x\u1EED l\xFD, ngo\u1EA1i tr\u1EEB "),T=i("em"),A=c("t5_model.h5"),z=c(", c\xF3 "),D=i("code"),g=c("LFS"),b=c(". Tuy\u1EC7t v\u1EDDi!")},l(E){j(p.$$.fragment,E),f=m(E),a=l(E,"P",{});var H=s(a);_=o(H,"Ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y r\u1EB1ng t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p \u0111\u1EC1u c\xF3 "),$=l(H,"CODE",{});var I=s($);q=o(I,"Git"),I.forEach(e),N=o(H," l\xE0m tr\xECnh x\u1EED l\xFD, ngo\u1EA1i tr\u1EEB "),T=l(H,"EM",{});var F=s(T);A=o(F,"t5_model.h5"),F.forEach(e),z=o(H,", c\xF3 "),D=l(H,"CODE",{});var L=s(D);g=o(L,"LFS"),L.forEach(e),b=o(H,". Tuy\u1EC7t v\u1EDDi!"),H.forEach(e)},m(E,H){P(p,E,H),r(E,f,H),r(E,a,H),n(a,_),n(a,$),n($,q),n(a,N),n(a,T),n(T,A),n(a,z),n(a,D),n(D,g),n(a,b),y=!0},i(E){y||(k(p.$$.fragment,E),y=!0)},o(E){v(p.$$.fragment,E),y=!1},d(E){C(p,E),E&&e(f),E&&e(a)}}}function ud(x){let p,f,a,_,$,q,N,T,A,z,D,g,b,y,E,H,I;return p=new M({props:{code:`On branch main
Objects to be pushed to origin/main:


Objects to be committed:

	config.json (Git: bc20ff2)
	pytorch_model.bin (LFS: 35686c2)
	sentencepiece.bpe.model (LFS: 988bc5a)
	special_tokens_map.json (Git: cb23931)
	tokenizer.json (Git: 851ff3e)
	tokenizer_config.json (Git: f0f7783)

Objects not staged for commit:

`,highlighted:`On branch main
Objects to be pushed to origin/main:


Objects to be committed:

	config.json (Git: bc20ff2)
	pytorch_model.bin (LFS: 35686c2)
	sentencepiece.bpe.model (LFS: 988bc5a)
	special_tokens_map.json (Git: cb23931)
	tokenizer.json (Git: 851ff3e)
	tokenizer_config.json (Git: f0f7783)

Objects not staged <span class="hljs-keyword">for</span> commit:

`}}),{c(){w(p.$$.fragment),f=u(),a=i("p"),_=c("Ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y r\u1EB1ng t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p \u0111\u1EC1u c\xF3 "),$=i("code"),q=c("Git"),N=c(" l\xE0m tr\xECnh x\u1EED l\xFD, ngo\u1EA1i tr\u1EEB "),T=i("em"),A=c("pytorch_model.bin"),z=c(" v\xE0 "),D=i("em"),g=c("sentencepiece.bpe.model"),b=c(", c\xF3"),y=i("code"),E=c("LFS"),H=c(". Tuy\u1EC7t v\u1EDDi!")},l(F){j(p.$$.fragment,F),f=m(F),a=l(F,"P",{});var L=s(a);_=o(L,"Ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y r\u1EB1ng t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p \u0111\u1EC1u c\xF3 "),$=l(L,"CODE",{});var K=s($);q=o(K,"Git"),K.forEach(e),N=o(L," l\xE0m tr\xECnh x\u1EED l\xFD, ngo\u1EA1i tr\u1EEB "),T=l(L,"EM",{});var X=s(T);A=o(X,"pytorch_model.bin"),X.forEach(e),z=o(L," v\xE0 "),D=l(L,"EM",{});var et=s(D);g=o(et,"sentencepiece.bpe.model"),et.forEach(e),b=o(L,", c\xF3"),y=l(L,"CODE",{});var V=s(y);E=o(V,"LFS"),V.forEach(e),H=o(L,". Tuy\u1EC7t v\u1EDDi!"),L.forEach(e)},m(F,L){P(p,F,L),r(F,f,L),r(F,a,L),n(a,_),n(a,$),n($,q),n(a,N),n(a,T),n(T,A),n(a,z),n(a,D),n(D,g),n(a,b),n(a,y),n(y,E),n(a,H),I=!0},i(F){I||(k(p.$$.fragment,F),I=!0)},o(F){v(p.$$.fragment,F),I=!1},d(F){C(p,F),F&&e(f),F&&e(a)}}}function md(x){let p,f;return p=new M({props:{code:`[main b08aab1] First model version
 6 files changed, 36 insertions(+)
 create mode 100644 config.json
 create mode 100644 sentencepiece.bpe.model
 create mode 100644 special_tokens_map.json
 create mode 100644 tf_model.h5
 create mode 100644 tokenizer.json
 create mode 100644 tokenizer_config.json`,highlighted:`[main b08aab1] First model version
 6 files changed, 36 insertions(+)
 create mode 100644 config.json
 create mode 100644 sentencepiece.bpe.model
 create mode 100644 special_tokens_map.json
 create mode 100644 tf_model.h5
 create mode 100644 tokenizer.json
 create mode 100644 tokenizer_config.json`}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function fd(x){let p,f;return p=new M({props:{code:`[main b08aab1] First model version
 7 files changed, 29027 insertions(+)
  6 files changed, 36 insertions(+)
 create mode 100644 config.json
 create mode 100644 pytorch_model.bin
 create mode 100644 sentencepiece.bpe.model
 create mode 100644 special_tokens_map.json
 create mode 100644 tokenizer.json
 create mode 100644 tokenizer_config.json`,highlighted:`[main b08aab1] First model version
 7 files changed, 29027 insertions(+)
  6 files changed, 36 insertions(+)
 create mode 100644 config.json
 create mode 100644 pytorch_model.bin
 create mode 100644 sentencepiece.bpe.model
 create mode 100644 special_tokens_map.json
 create mode 100644 tokenizer.json
 create mode 100644 tokenizer_config.json`}}),{c(){w(p.$$.fragment)},l(a){j(p.$$.fragment,a)},m(a,_){P(p,a,_),f=!0},i(a){f||(k(p.$$.fragment,a),f=!0)},o(a){v(p.$$.fragment,a),f=!1},d(a){C(p,a)}}}function gd(x){let p,f,a,_,$,q,N,T,A,z,D;return{c(){p=c(`N\u1EBFu ch\xFAng ta xem qua kho l\u01B0u tr\u1EEF m\xF4 h\xECnh khi qu\xE1 tr\xECnh n\xE0y k\u1EBFt th\xFAc, ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p \u0111\u01B0\u1EE3c th\xEAm g\u1EA7n \u0111\xE2y:
`),f=i("div"),a=i("img"),$=u(),q=i("p"),N=c("Giao di\u1EC7n ng\u01B0\u1EDDi d\xF9ng cho ph\xE9p b\u1EA1n kh\xE1m ph\xE1 c\xE1c t\u1EC7p m\xF4 h\xECnh v\xE0 c\xE1c cam k\u1EBFt c\u0169ng nh\u01B0 xem s\u1EF1 kh\xE1c bi\u1EC7t \u0111\u01B0\u1EE3c gi\u1EDBi thi\u1EC7u b\u1EDFi m\u1ED7i cam k\u1EBFt:"),T=u(),A=i("div"),z=i("img"),this.h()},l(g){p=o(g,`N\u1EBFu ch\xFAng ta xem qua kho l\u01B0u tr\u1EEF m\xF4 h\xECnh khi qu\xE1 tr\xECnh n\xE0y k\u1EBFt th\xFAc, ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p \u0111\u01B0\u1EE3c th\xEAm g\u1EA7n \u0111\xE2y:
`),f=l(g,"DIV",{class:!0});var b=s(f);a=l(b,"IMG",{src:!0,alt:!0,width:!0}),b.forEach(e),$=m(g),q=l(g,"P",{});var y=s(q);N=o(y,"Giao di\u1EC7n ng\u01B0\u1EDDi d\xF9ng cho ph\xE9p b\u1EA1n kh\xE1m ph\xE1 c\xE1c t\u1EC7p m\xF4 h\xECnh v\xE0 c\xE1c cam k\u1EBFt c\u0169ng nh\u01B0 xem s\u1EF1 kh\xE1c bi\u1EC7t \u0111\u01B0\u1EE3c gi\u1EDBi thi\u1EC7u b\u1EDFi m\u1ED7i cam k\u1EBFt:"),y.forEach(e),T=m(g),A=l(g,"DIV",{class:!0});var E=s(A);z=l(E,"IMG",{src:!0,alt:!0,width:!0}),E.forEach(e),this.h()},h(){Bt(a.src,_="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/full_model_tf.png")||d(a,"src",_),d(a,"alt","The 'Files and versions' tab now contains all the recently uploaded files."),d(a,"width","80%"),d(f,"class","flex justify-center"),Bt(z.src,D="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/diffstf.gif")||d(z,"src",D),d(z,"alt","The diff introduced by the recent commit."),d(z,"width","80%"),d(A,"class","flex justify-center")},m(g,b){r(g,p,b),r(g,f,b),n(f,a),r(g,$,b),r(g,q,b),n(q,N),r(g,T,b),r(g,A,b),n(A,z)},d(g){g&&e(p),g&&e(f),g&&e($),g&&e(q),g&&e(T),g&&e(A)}}}function dd(x){let p,f,a,_,$,q,N,T,A,z,D,g,b;return{c(){p=i("p"),f=c("N\u1EBFu ch\xFAng ta xem qua kho l\u01B0u tr\u1EEF m\xF4 h\xECnh khi qu\xE1 tr\xECnh n\xE0y k\u1EBFt th\xFAc, ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p \u0111\u01B0\u1EE3c th\xEAm g\u1EA7n \u0111\xE2y:"),a=u(),_=i("div"),$=i("img"),N=u(),T=i("p"),A=c("Giao di\u1EC7n ng\u01B0\u1EDDi d\xF9ng cho ph\xE9p b\u1EA1n kh\xE1m ph\xE1 c\xE1c t\u1EC7p m\xF4 h\xECnh v\xE0 c\xE1c cam k\u1EBFt c\u0169ng nh\u01B0 xem s\u1EF1 kh\xE1c bi\u1EC7t \u0111\u01B0\u1EE3c gi\u1EDBi thi\u1EC7u b\u1EDFi m\u1ED7i cam k\u1EBFt:"),z=u(),D=i("div"),g=i("img"),this.h()},l(y){p=l(y,"P",{});var E=s(p);f=o(E,"N\u1EBFu ch\xFAng ta xem qua kho l\u01B0u tr\u1EEF m\xF4 h\xECnh khi qu\xE1 tr\xECnh n\xE0y k\u1EBFt th\xFAc, ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p \u0111\u01B0\u1EE3c th\xEAm g\u1EA7n \u0111\xE2y:"),E.forEach(e),a=m(y),_=l(y,"DIV",{class:!0});var H=s(_);$=l(H,"IMG",{src:!0,alt:!0,width:!0}),H.forEach(e),N=m(y),T=l(y,"P",{});var I=s(T);A=o(I,"Giao di\u1EC7n ng\u01B0\u1EDDi d\xF9ng cho ph\xE9p b\u1EA1n kh\xE1m ph\xE1 c\xE1c t\u1EC7p m\xF4 h\xECnh v\xE0 c\xE1c cam k\u1EBFt c\u0169ng nh\u01B0 xem s\u1EF1 kh\xE1c bi\u1EC7t \u0111\u01B0\u1EE3c gi\u1EDBi thi\u1EC7u b\u1EDFi m\u1ED7i cam k\u1EBFt:"),I.forEach(e),z=m(y),D=l(y,"DIV",{class:!0});var F=s(D);g=l(F,"IMG",{src:!0,alt:!0,width:!0}),F.forEach(e),this.h()},h(){Bt($.src,q="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/full_model.png")||d($,"src",q),d($,"alt","The 'Files and versions' tab now contains all the recently uploaded files."),d($,"width","80%"),d(_,"class","flex justify-center"),Bt(g.src,b="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/diffs.gif")||d(g,"src",b),d(g,"alt","The diff introduced by the recent commit."),d(g,"width","80%"),d(D,"class","flex justify-center")},m(y,E){r(y,p,E),n(p,f),r(y,a,E),r(y,_,E),n(_,$),r(y,N,E),r(y,T,E),n(T,A),r(y,z,E),r(y,D,E),n(D,g)},d(y){y&&e(p),y&&e(a),y&&e(_),y&&e(N),y&&e(T),y&&e(z),y&&e(D)}}}function _d(x){let p,f,a,_,$,q,N,T,A,z,D,g,b,y,E,H,I,F,L,K,X,et,V,nt,$t,J,B,ct,ot,U,Et,ht,S,R,ft,Z,Y,it,Rt,wt,lt,Q,tt,dt,gt,O,G,pc,ne,uc,W,mc,Je,rt,st,jt,Pt,me,fe,fc,wr,Rh,_t,jr,ko,Pr,Cr,yo,Tr,qr,gc,xr,zr,Kh,Ze,Vh,dc,Dr,Uh,tn,Yh,ge,Ar,en,Or,Mr,Xh,_c,Nr,Qh,Ct,Tt,bc,de,Sr,$o,Hr,Fr,Wh,vc,Lr,Jh,qt,xt,kc,Kt,Gr,Eo,Ir,Br,wo,Rr,Kr,Zh,nn,ti,_e,Vr,jo,Ur,Yr,ei,cn,ni,be,Xr,Po,Qr,Wr,ci,on,oi,ve,Jr,Co,Zr,ts,hi,hn,ii,ke,es,To,ln,ns,cs,li,yc,os,ri,$c,ye,si,Vt,hs,qo,is,ls,rn,rs,ss,ai,bt,as,xo,ps,us,sn,zo,ms,fs,an,Do,gs,ds,pi,Ec,_s,ui,ce,$e,Ao,pn,bs,wc,vs,Oo,ks,mi,Ee,ys,Mo,$s,Es,fi,vt,ws,No,js,Ps,So,Cs,Ts,Ho,qs,xs,gi,un,di,we,zs,Fo,Ds,As,_i,mn,bi,je,Os,Lo,Ms,Ns,vi,Pe,Ss,Go,Hs,Fs,ki,fn,yi,Ut,Ls,Io,Gs,Is,Bo,Bs,Rs,$i,gn,Ei,Yt,Ks,Ro,Vs,Us,Ko,Ys,Xs,wi,Xt,jc,Vo,Qs,Ws,Js,Pc,Uo,Zs,ta,ea,at,Yo,na,ca,Xo,oa,ha,Qo,ia,la,Wo,ra,sa,Jo,aa,pa,ji,Cc,ua,Pi,oe,Ce,Zo,dn,ma,th,fa,Ci,Tc,ga,Ti,Te,da,_n,_a,ba,qi,bn,vn,Ru,xi,qc,va,zi,xc,ka,Di,zc,ya,Ai,kn,yn,Ku,Oi,Dc,$a,Mi,$n,En,Vu,Ni,Ac,Ea,Si,Qt,wa,eh,ja,Pa,nh,Ca,Ta,Hi,wn,jn,Uu,Fi,Oc,qa,Li,he,qe,ch,Pn,xa,oh,za,Gi,xe,Da,Cn,Aa,Oa,Ii,ze,Ma,hh,Na,Sa,Bi,ie,De,ih,Tn,Ha,Mc,Fa,lh,La,Ri,Ae,Ga,rh,Ia,Ba,Ki,Nc,Ra,Vi,qn,Ui,pt,Ka,sh,Va,Ua,ah,Ya,Xa,ph,Qa,Wa,uh,Ja,Za,Yi,Oe,Sc,mh,tp,ep,np,ut,fh,cp,op,gh,hp,ip,dh,lp,rp,_h,sp,ap,bh,pp,up,Xi,le,Me,vh,xn,mp,Hc,fp,kh,gp,Qi,Ne,dp,yh,_p,bp,Wi,Se,vp,zn,kp,yp,Ji,Fc,$p,Zi,Dn,tl,kt,Ep,$h,wp,jp,Eh,Pp,Cp,wh,Tp,qp,el,Lc,xp,nl,An,cl,yt,zp,jh,Dp,Ap,Ph,Op,Mp,On,Np,Sp,ol,Gc,Hp,hl,Ic,Fp,il,Mn,ll,Bc,Lp,rl,Nn,sl,Sn,Ch,Gp,Ip,al,Hn,pl,Rc,Bp,ul,re,He,Th,Fn,Rp,qh,Kp,ml,Kc,Vp,fl,Fe,Up,Ln,Yp,Xp,gl,Vc,Qp,dl,Gn,_l,In,bl,Uc,Wp,vl,Bn,kl,Wt,Jp,xh,Zp,tu,zh,eu,nu,yl,Rn,$l,Jt,cu,Dh,ou,hu,Ah,iu,lu,El,Kn,wl,Vn,jl,mt,ru,Oh,su,au,Mh,pu,uu,Nh,mu,fu,Sh,gu,du,Pl,Le,_u,Hh,bu,vu,Cl,Yc,ku,Tl,zt,Dt,Xc,Ge,yu,Fh,$u,Eu,ql,Un,xl,At,Ot,Qc,Ie,Yu=" ",zl,Dl,Be,wu,Lh,ju,Pu,Al,Yn,Ol,Wc,Cu,Ml,Xn,Nl,Mt,Nt,Jc,Re,Tu,Gh,qu,xu,Sl,Qn,Hl,St,Ht,Zc,Ke,zu,Ih,Du,Au,Fl,Wn,Ll,Ft,Lt,to,eo,Ou,Gl,Jn,Il,Zn,Bl,no,Rl;a=new Vg({props:{fw:x[0]}}),T=new We({});const Xu=[Yg,Ug],tc=[];function Qu(t,h){return t[0]==="pt"?0:1}b=Qu(x),y=tc[b]=Xu[b](x),L=new Bu({props:{id:"9yY3RB_GSPM"}}),G=new We({});const Wu=[Qg,Xg],ec=[];function Ju(t,h){return t[0]==="pt"?0:1}rt=Ju(x),st=ec[rt]=Wu[rt](x),Ze=new M({props:{code:`from huggingface_hub import notebook_login

notebook_login()`,highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> notebook_login

notebook_login()`}}),tn=new M({props:{code:"huggingface-cli login",highlighted:"huggingface-cli login"}});const Zu=[Jg,Wg],nc=[];function tm(t,h){return t[0]==="pt"?0:1}Ct=tm(x),Tt=nc[Ct]=Zu[Ct](x);const em=[td,Zg],cc=[];function nm(t,h){return t[0]==="pt"?0:1}qt=nm(x),xt=cc[qt]=em[qt](x),nn=new M({props:{code:'model.push_to_hub("dummy-model")',highlighted:'model.push_to_hub(<span class="hljs-string">&quot;dummy-model&quot;</span>)'}}),cn=new M({props:{code:'tokenizer.push_to_hub("dummy-model")',highlighted:'tokenizer.push_to_hub(<span class="hljs-string">&quot;dummy-model&quot;</span>)'}}),on=new M({props:{code:'tokenizer.push_to_hub("dummy-model", organization="huggingface")',highlighted:'tokenizer.push_to_hub(<span class="hljs-string">&quot;dummy-model&quot;</span>, organization=<span class="hljs-string">&quot;huggingface&quot;</span>)'}}),hn=new M({props:{code:'tokenizer.push_to_hub("dummy-model", organization="huggingface", use_auth_token="<TOKEN>")',highlighted:'tokenizer.push_to_hub(<span class="hljs-string">&quot;dummy-model&quot;</span>, organization=<span class="hljs-string">&quot;huggingface&quot;</span>, use_auth_token=<span class="hljs-string">&quot;&lt;TOKEN&gt;&quot;</span>)'}});function cm(t,h){return t[0]==="pt"?nd:ed}let Kl=cm(x),se=Kl(x);ye=new Fg({props:{$$slots:{default:[cd]},$$scope:{ctx:x}}}),pn=new We({}),un=new M({props:{code:"huggingface-cli login",highlighted:"huggingface-cli login"}}),mn=new M({props:{code:`from huggingface_hub import (
    # Qu\u1EA3n l\xFD ng\u01B0\u1EDDi d\xF9ng
    login,
    logout,
    whoami,

    # T\u1EA1o v\xE0 qu\u1EA3n l\xFD kho d\u1EEF li\u1EC7u
    create_repo,
    delete_repo,
    update_repo_visibility,

    # V\xE0 m\u1ED9t s\u1ED1 ph\u01B0\u01A1ng th\u1EE9c truy xu\u1EA5t/thay \u0111\u1ED5i th\xF4ng tin v\u1EC1 m\u1EB7t n\u1ED9i dung 
    list_models,
    list_datasets,
    list_metrics,
    list_repo_files,
    upload_file,
    delete_file,
)`,highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> (
    <span class="hljs-comment"># Qu\u1EA3n l\xFD ng\u01B0\u1EDDi d\xF9ng</span>
    login,
    logout,
    whoami,

    <span class="hljs-comment"># T\u1EA1o v\xE0 qu\u1EA3n l\xFD kho d\u1EEF li\u1EC7u</span>
    create_repo,
    delete_repo,
    update_repo_visibility,

    <span class="hljs-comment"># V\xE0 m\u1ED9t s\u1ED1 ph\u01B0\u01A1ng th\u1EE9c truy xu\u1EA5t/thay \u0111\u1ED5i th\xF4ng tin v\u1EC1 m\u1EB7t n\u1ED9i dung </span>
    list_models,
    list_datasets,
    list_metrics,
    list_repo_files,
    upload_file,
    delete_file,
)`}}),fn=new M({props:{code:`from huggingface_hub import create_repo

create_repo("dummy-model")`,highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_repo

create_repo(<span class="hljs-string">&quot;dummy-model&quot;</span>)`}}),gn=new M({props:{code:`from huggingface_hub import create_repo

create_repo("dummy-model", organization="huggingface")`,highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_repo

create_repo(<span class="hljs-string">&quot;dummy-model&quot;</span>, organization=<span class="hljs-string">&quot;huggingface&quot;</span>)`}}),dn=new We({}),Pn=new We({}),Tn=new We({}),qn=new M({props:{code:`from huggingface_hub import upload_file

upload_file(
    "<path_to_file>/config.json",
    path_in_repo="config.json",
    repo_id="<namespace>/dummy-model",
)`,highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> upload_file

upload_file(
    <span class="hljs-string">&quot;&lt;path_to_file&gt;/config.json&quot;</span>,
    path_in_repo=<span class="hljs-string">&quot;config.json&quot;</span>,
    repo_id=<span class="hljs-string">&quot;&lt;namespace&gt;/dummy-model&quot;</span>,
)`}}),xn=new We({}),Dn=new M({props:{code:`from huggingface_hub import Repository

repo = Repository("<path_to_dummy_folder>", clone_from="<namespace>/dummy-model")`,highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> Repository

repo = Repository(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>, clone_from=<span class="hljs-string">&quot;&lt;namespace&gt;/dummy-model&quot;</span>)`}}),An=new M({props:{code:`repo.git_pull()
repo.git_add()
repo.git_commit()
repo.git_push()
repo.git_tag()`,highlighted:`repo.git_pull()
repo.git_add()
repo.git_commit()
repo.git_push()
repo.git_tag()`}}),Mn=new M({props:{code:"repo.git_pull()",highlighted:"repo.git_pull()"}}),Nn=new M({props:{code:`model.save_pretrained("<path_to_dummy_folder>")
tokenizer.save_pretrained("<path_to_dummy_folder>")`,highlighted:`model.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)
tokenizer.save_pretrained(<span class="hljs-string">&quot;&lt;path_to_dummy_folder&gt;&quot;</span>)`}}),Hn=new M({props:{code:`repo.git_add()
repo.git_commit("Th\xEAm m\xF4 h\xECnh v\xE0 t\u1EC7p tokenizer")
repo.git_push()`,highlighted:`repo.git_add()
repo.git_commit(<span class="hljs-string">&quot;Th\xEAm m\xF4 h\xECnh v\xE0 t\u1EC7p tokenizer&quot;</span>)
repo.git_push()`}}),Fn=new We({}),Gn=new M({props:{code:"git lfs install",highlighted:"git lfs install"}}),In=new M({props:{code:`Updated git hooks.
Git LFS initialized.`,highlighted:`Updated git hooks.
Git LFS initialized.`}}),Bn=new M({props:{code:"git clone https://huggingface.co/<namespace>/<your-model-id>",highlighted:'git <span class="hljs-built_in">clone</span> https://huggingface.co/&lt;namespace&gt;/&lt;your-model-id&gt;'}}),Rn=new M({props:{code:"git clone https://huggingface.co/lysandre/dummy",highlighted:'git clone https:<span class="hljs-regexp">//</span>huggingface.co<span class="hljs-regexp">/lysandre/</span>dummy'}}),Kn=new M({props:{code:"cd dummy && ls",highlighted:'<span class="hljs-built_in">cd</span> dummy &amp;&amp; <span class="hljs-built_in">ls</span>'}}),Vn=new M({props:{code:"README.md",highlighted:"README.md"}});const om=[hd,od],oc=[];function hm(t,h){return t[0]==="pt"?0:1}zt=hm(x),Dt=oc[zt]=om[zt](x),Un=new M({props:{code:"ls",highlighted:'<span class="hljs-built_in">ls</span>'}});const im=[ld,id],hc=[];function lm(t,h){return t[0]==="pt"?0:1}At=lm(x),Ot=hc[At]=im[At](x),Ie=new Fg({props:{$$slots:{default:[rd]},$$scope:{ctx:x}}}),Yn=new M({props:{code:"git add .",highlighted:"git add ."}}),Xn=new M({props:{code:"git status",highlighted:"git status"}});const rm=[ad,sd],ic=[];function sm(t,h){return t[0]==="pt"?0:1}Mt=sm(x),Nt=ic[Mt]=rm[Mt](x),Qn=new M({props:{code:"git lfs status",highlighted:"git lfs status"}});const am=[ud,pd],lc=[];function pm(t,h){return t[0]==="pt"?0:1}St=pm(x),Ht=lc[St]=am[St](x),Wn=new M({props:{code:'git commit -m "First model version"',highlighted:'git commit -m <span class="hljs-string">&quot;First model version&quot;</span>'}});const um=[fd,md],rc=[];function mm(t,h){return t[0]==="pt"?0:1}Ft=mm(x),Lt=rc[Ft]=um[Ft](x),Jn=new M({props:{code:"git push",highlighted:"git push"}}),Zn=new M({props:{code:`Uploading LFS objects: 100% (1/1), 433 MB | 1.3 MB/s, done.
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 12 threads
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 288.27 KiB | 6.27 MiB/s, done.
Total 9 (delta 1), reused 0 (delta 0), pack-reused 0
To https://huggingface.co/lysandre/dummy
   891b41d..b08aab1  main -> main`,highlighted:`Uploading LFS objects: 100% (1/1), 433 MB | 1.3 MB/s, <span class="hljs-keyword">done</span>.
Enumerating objects: 11, <span class="hljs-keyword">done</span>.
Counting objects: 100% (11/11), <span class="hljs-keyword">done</span>.
Delta compression using up to 12 threads
Compressing objects: 100% (9/9), <span class="hljs-keyword">done</span>.
Writing objects: 100% (9/9), 288.27 KiB | 6.27 MiB/s, <span class="hljs-keyword">done</span>.
Total 9 (delta 1), reused 0 (delta 0), pack-reused 0
To https://huggingface.co/lysandre/dummy
   891b41d..b08aab1  main -&gt; main`}});function fm(t,h){return t[0]==="pt"?dd:gd}let Vl=fm(x),ae=Vl(x);return{c(){p=i("meta"),f=u(),w(a.$$.fragment),_=u(),$=i("h1"),q=i("a"),N=i("span"),w(T.$$.fragment),A=u(),z=i("span"),D=c("Chia s\u1EBB c\xE1c m\xF4 h\xECnh hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc"),g=u(),y.c(),E=u(),H=i("p"),I=c("Trong c\xE1c b\u01B0\u1EDBc b\xEAn d\u01B0\u1EDBi, ch\xFAng ta s\u1EBD xem x\xE9t c\xE1c c\xE1ch d\u1EC5 nh\u1EA5t \u0111\u1EC3 chia s\u1EBB c\xE1c m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc v\u1EDBi \u{1F917} Hub. Ta c\xF3 s\u1EB5n c\xE1c c\xF4ng c\u1EE5 v\xE0 ti\u1EC7n \xEDch gi\xFAp vi\u1EC7c chia s\u1EBB v\xE0 c\u1EADp nh\u1EADt m\xF4 h\xECnh tr\u1EF1c ti\u1EBFp tr\xEAn Hub tr\u1EDF n\xEAn \u0111\u01A1n gi\u1EA3n, v\xE0 ch\xFAng ta s\u1EBD c\xF9ng nhau kh\xE1m ph\xE1 b\xEAn d\u01B0\u1EDBi."),F=u(),w(L.$$.fragment),K=u(),X=i("p"),et=c("Ch\xFAng t\xF4i khuy\u1EBFn kh\xEDch t\u1EA5t c\u1EA3 ng\u01B0\u1EDDi d\xF9ng hu\u1EA5n luy\u1EC7n m\xF4 h\xECnh \u0111\xF3ng g\xF3p b\u1EB1ng c\xE1ch chia s\u1EBB ch\xFAng v\u1EDBi c\u1ED9ng \u0111\u1ED3ng - chia s\u1EBB m\xF4 h\xECnh, ngay c\u1EA3 khi \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\xEAn c\xE1c b\u1ED9 d\u1EEF li\u1EC7u r\u1EA5t c\u1EE5 th\u1EC3, s\u1EBD gi\xFAp \xEDch cho nh\u1EEFng ng\u01B0\u1EDDi kh\xE1c, gi\xFAp h\u1ECD ti\u1EBFt ki\u1EC7m th\u1EDDi gian v\xE0 t\xEDnh to\xE1n t\xE0i nguy\xEAn v\xE0 cung c\u1EA5p quy\u1EC1n truy c\u1EADp v\xE0o c\xE1c hi\u1EC7n v\u1EADt h\u1EEFu \xEDch \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n. \u0110\u1ED5i l\u1EA1i, b\u1EA1n c\xF3 th\u1EC3 h\u01B0\u1EDFng l\u1EE3i t\u1EEB c\xF4ng vi\u1EC7c m\xE0 nh\u1EEFng ng\u01B0\u1EDDi kh\xE1c \u0111\xE3 l\xE0m!"),V=u(),nt=i("p"),$t=c("C\xF3 ba c\xE1ch \u0111\u1EC3 t\u1EA1o kho l\u01B0u tr\u1EEF m\xF4 h\xECnh m\u1EDBi:"),J=u(),B=i("ul"),ct=i("li"),ot=c("S\u1EED d\u1EE5ng API "),U=i("code"),Et=c("push_to_hub"),ht=u(),S=i("li"),R=c("S\u1EED d\u1EE5ng th\u01B0 vi\u1EC7n Python "),ft=i("code"),Z=c("huggingface_hub"),Y=u(),it=i("li"),Rt=c("S\u1EED d\u1EE5ng giao di\u1EC7n web"),wt=u(),lt=i("p"),Q=c("Khi b\u1EA1n \u0111\xE3 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF, b\u1EA1n c\xF3 th\u1EC3 t\u1EA3i t\u1EC7p l\xEAn \u0111\xF3 qua git v\xE0 git-lfs. Ch\xFAng t\xF4i s\u1EBD h\u01B0\u1EDBng d\u1EABn b\u1EA1n c\xE1ch t\u1EA1o kho l\u01B0u tr\u1EEF m\xF4 h\xECnh v\xE0 t\u1EA3i t\u1EC7p l\xEAn ch\xFAng trong c\xE1c ph\u1EA7n sau."),tt=u(),dt=i("h2"),gt=i("a"),O=i("span"),w(G.$$.fragment),pc=u(),ne=i("span"),uc=c("S\u1EED d\u1EE5ng API "),W=i("code"),mc=c("push_to_hub"),Je=u(),st.c(),jt=u(),Pt=i("p"),me=c("C\xE1ch \u0111\u01A1n gi\u1EA3n nh\u1EA5t \u0111\u1EC3 t\u1EA3i t\u1EC7p l\xEAn Hub l\xE0 t\u1EADn d\u1EE5ng API "),fe=i("code"),fc=c("push_to_hub"),wr=c("."),Rh=u(),_t=i("p"),jr=c("Tr\u01B0\u1EDBc khi \u0111i xa h\u01A1n, b\u1EA1n s\u1EBD c\u1EA7n t\u1EA1o token x\xE1c th\u1EF1c \u0111\u1EC3 API "),ko=i("code"),Pr=c("huggingface_hub"),Cr=c(" bi\u1EBFt b\u1EA1n l\xE0 ai v\xE0 b\u1EA1n c\xF3 quy\u1EC1n ghi v\xE0o kh\xF4ng gian t\xEAn n\xE0o. \u0110\u1EA3m b\u1EA3o r\u1EB1ng b\u1EA1n \u0111ang \u1EDF trong m\xF4i tr\u01B0\u1EDDng m\xE0 b\u1EA1n \u0111\xE3 c\xE0i \u0111\u1EB7t "),yo=i("code"),Tr=c("transformers"),qr=c(" (xem "),gc=i("a"),xr=c("Thi\u1EBFt l\u1EADp"),zr=c("). N\u1EBFu b\u1EA1n \u0111ang \u1EDF trong notebook, b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng ch\u1EE9c n\u0103ng sau \u0111\u1EC3 \u0111\u0103ng nh\u1EADp:"),Kh=u(),w(Ze.$$.fragment),Vh=u(),dc=i("p"),Dr=c("Tr\xEAn terminal, b\u1EA1n c\xF3 th\u1EC3:"),Uh=u(),w(tn.$$.fragment),Yh=u(),ge=i("p"),Ar=c("Trong c\u1EA3 hai tr\u01B0\u1EDDng h\u1EE3p, b\u1EA1n s\u1EBD \u0111\u01B0\u1EE3c nh\u1EAFc nh\u1EADp t\xEAn ng\u01B0\u1EDDi d\xF9ng v\xE0 m\u1EADt kh\u1EA9u c\u1EE7a m\xECnh, \u0111\xF3 l\xE0 nh\u1EEFng m\u1EADt kh\u1EA9u m\xE0 b\u1EA1n s\u1EED d\u1EE5ng \u0111\u1EC3 \u0111\u0103ng nh\u1EADp v\xE0o Hub. N\u1EBFu b\u1EA1n ch\u01B0a c\xF3 h\u1ED3 s\u01A1 Hub, b\u1EA1n n\xEAn t\u1EA1o m\u1ED9t h\u1ED3 s\u01A1 "),en=i("a"),Or=c("t\u1EA1i \u0111\xE2y"),Mr=c("."),Xh=u(),_c=i("p"),Nr=c("Tuy\u1EC7t v\u1EDDi! B\xE2y gi\u1EDD b\u1EA1n c\xF3 token x\xE1c th\u1EF1c \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong th\u01B0 m\u1EE5c b\u1ED9 nh\u1EDB cache c\u1EE7a m\xECnh. H\xE3y t\u1EA1o m\u1ED9t s\u1ED1 kho l\u01B0u tr\u1EEF th\xF4i!"),Qh=u(),Tt.c(),bc=u(),de=i("p"),Sr=c("\u1EDE c\u1EA5p \u0111\u1ED9 th\u1EA5p h\u01A1n, vi\u1EC7c truy c\u1EADp Model Hub c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n tr\u1EF1c ti\u1EBFp tr\xEAn c\xE1c m\xF4 h\xECnh, tokenizer v\xE0 c\xE1c \u0111\u1ED1i t\u01B0\u1EE3ng c\u1EA5u h\xECnh th\xF4ng qua ph\u01B0\u01A1ng th\u1EE9c "),$o=i("code"),Hr=c("push_to_hub()"),Fr=c(". Ph\u01B0\u01A1ng ph\xE1p n\xE0y x\u1EED l\xFD c\u1EA3 vi\u1EC7c t\u1EA1o kho l\u01B0u tr\u1EEF v\xE0 \u0111\u1EA9y c\xE1c t\u1EC7p m\xF4 h\xECnh v\xE0 t\u1EC7p tokenizer tr\u1EF1c ti\u1EBFp \u0111\u1EBFn kho l\u01B0u tr\u1EEF. Kh\xF4ng c\u1EA7n x\u1EED l\xFD th\u1EE7 c\xF4ng, kh\xF4ng gi\u1ED1ng nh\u01B0 v\u1EDBi API m\xE0 ch\xFAng ta s\u1EBD th\u1EA5y b\xEAn d\u01B0\u1EDBi."),Wh=u(),vc=i("p"),Lr=c("\u0110\u1EC3 c\xF3 \xFD t\u01B0\u1EDFng v\u1EC1 c\xE1ch n\xF3 ho\u1EA1t \u0111\u1ED9ng, tr\u01B0\u1EDBc ti\xEAn ch\xFAng ta h\xE3y kh\u1EDFi t\u1EA1o m\u1ED9t m\xF4 h\xECnh v\xE0 m\u1ED9t tokenizer:"),Jh=u(),xt.c(),kc=u(),Kt=i("p"),Gr=c("B\u1EA1n c\xF3 th\u1EC3 t\u1EF1 do l\xE0m b\u1EA5t c\u1EE9 \u0111i\u1EC1u g\xEC b\u1EA1n mu\u1ED1n v\u1EDBi nh\u1EEFng th\u1EE9 n\xE0y - th\xEAm token v\xE0o tr\xECnh tokenize, hu\u1EA5n luy\u1EC7n m\xF4 h\xECnh, tinh ch\u1EC9nh n\xF3. Khi b\u1EA1n h\xE0i l\xF2ng v\u1EDBi k\u1EBFt qu\u1EA3 m\xF4 h\xECnh, tr\u1ECDng s\u1ED1, v\xE0 tokenizer, b\u1EA1n c\xF3 th\u1EC3 t\u1EADn d\u1EE5ng ph\u01B0\u01A1ng th\u1EE9c "),Eo=i("code"),Ir=c("push_to_hub()"),Br=c(" c\xF3 s\u1EB5n tr\u1EF1c ti\u1EBFp tr\xEAn \u0111\u1ED1i t\u01B0\u1EE3ng "),wo=i("code"),Rr=c("model"),Kr=c(":"),Zh=u(),w(nn.$$.fragment),ti=u(),_e=i("p"),Vr=c("\u0110i\u1EC1u n\xE0y s\u1EBD t\u1EA1o kho l\u01B0u tr\u1EEF m\u1EDBi "),jo=i("code"),Ur=c("dummy-model"),Yr=c(` trong h\u1ED3 s\u01A1 c\u1EE7a b\u1EA1n v\xE0 \u0111i\u1EC1n n\xF3 v\xE0o c\xE1c t\u1EC7p m\xF4 h\xECnh c\u1EE7a b\u1EA1n.
L\xE0m t\u01B0\u01A1ng t\u1EF1 v\u1EDBi tokenizer \u0111\u1EC3 t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p c\xF3 s\u1EB5n trong kho l\u01B0u tr\u1EEF n\xE0y:`),ei=u(),w(cn.$$.fragment),ni=u(),be=i("p"),Xr=c("N\u1EBFu b\u1EA1n thu\u1ED9c m\u1ED9t t\u1ED5 ch\u1EE9c, ch\u1EC9 c\u1EA7n ch\u1EC9 \u0111\u1ECBnh tham s\u1ED1 "),Po=i("code"),Qr=c("organization"),Wr=c(" \u0111\u1EC3 t\u1EA3i l\xEAn kh\xF4ng gian t\xEAn c\u1EE7a t\u1ED5 ch\u1EE9c \u0111\xF3:"),ci=u(),w(on.$$.fragment),oi=u(),ve=i("p"),Jr=c("N\u1EBFu b\u1EA1n mu\u1ED1n s\u1EED d\u1EE5ng m\u1ED9t token Hugging Face c\u1EE5 th\u1EC3, b\u1EA1n c\u0169ng c\xF3 th\u1EC3 ch\u1EC9 \u0111\u1ECBnh n\xF3 th\xF4ng qua "),Co=i("code"),Zr=c("push_to_hub()"),ts=c(":"),hi=u(),w(hn.$$.fragment),ii=u(),ke=i("p"),es=c("Gi\u1EDD h\xE3y \u0111i t\u1EDBi Model Hub \u0111\u1EC3 t\xECm m\xF4 h\xECnh m\u1EDBi \u0111\u01B0\u1EE3c t\u1EA3i l\xEAn c\u1EE7a b\u1EA1n: "),To=i("em"),ln=i("a"),ns=c("https://huggingface.co/user-or-organization/dummy-model"),cs=c("."),li=u(),yc=i("p"),os=c("Nh\u1EA5p v\xE0o tab \u201CFiles and versions\u201D (\u201CT\u1EC7p v\xE0 phi\xEAn b\u1EA3n\u201D) v\xE0 b\u1EA1n s\u1EBD th\u1EA5y c\xE1c t\u1EC7p hi\u1EC3n th\u1ECB trong \u1EA3nh ch\u1EE5p m\xE0n h\xECnh sau:"),ri=u(),se.c(),$c=u(),w(ye.$$.fragment),si=u(),Vt=i("p"),hs=c("Nh\u01B0 b\u1EA1n \u0111\xE3 th\u1EA5y, ph\u01B0\u01A1ng th\u1EE9c "),qo=i("code"),is=c("push_to_hub()"),ls=c(" nh\u1EADn m\u1ED9t v\xE0i tham s\u1ED1, gi\xFAp b\u1EA1n c\xF3 th\u1EC3 t\u1EA3i l\xEAn kh\xF4ng gian t\xEAn t\u1ED5 ch\u1EE9c ho\u1EB7c kho l\u01B0u tr\u1EEF c\u1EE5 th\u1EC3 ho\u1EB7c s\u1EED d\u1EE5ng token API kh\xE1c. Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn xem th\xF4ng s\u1ED1 k\u1EF9 thu\u1EADt ph\u01B0\u01A1ng ph\xE1p c\xF3 s\u1EB5n tr\u1EF1c ti\u1EBFp trong "),rn=i("a"),rs=c("\u{1F917} t\xE0i li\u1EC7u v\u1EC1 Transformers"),ss=c(" \u0111\u1EC3 bi\u1EBFt nh\u1EEFng g\xEC ta c\xF3 th\u1EC3 l\xE0m."),ai=u(),bt=i("p"),as=c("Ph\u01B0\u01A1ng th\u1EE9c "),xo=i("code"),ps=c("push_to_hub()"),us=c(" \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3 b\u1EDFi g\xF3i Python "),sn=i("a"),zo=i("code"),ms=c("huggingface_hub"),fs=c(", cung c\u1EA5p m\u1ED9t API tr\u1EF1c ti\u1EBFp \u0111\u1EBFn Hugging Face Hub. N\xF3 \u0111\u01B0\u1EE3c t\xEDch h\u1EE3p trong \u{1F917} Transformers v\xE0 m\u1ED9t s\u1ED1 th\u01B0 vi\u1EC7n h\u1ECDc m\xE1y kh\xE1c, nh\u01B0 "),an=i("a"),Do=i("code"),gs=c("allenlp"),ds=c(". M\u1EB7c d\xF9 ch\xFAng t\xF4i t\u1EADp trung v\xE0o t\xEDch h\u1EE3p \u{1F917} Transformers trong ch\u01B0\u01A1ng n\xE0y, vi\u1EC7c t\xEDch h\u1EE3p n\xF3 v\xE0o m\xE3 ho\u1EB7c th\u01B0 vi\u1EC7n c\u1EE7a ri\xEAng b\u1EA1n r\u1EA5t \u0111\u01A1n gi\u1EA3n."),pi=u(),Ec=i("p"),_s=c("Chuy\u1EC3n \u0111\u1EBFn ph\u1EA7n cu\u1ED1i c\xF9ng \u0111\u1EC3 xem c\xE1ch t\u1EA3i t\u1EC7p l\xEAn kho l\u01B0u tr\u1EEF m\u1EDBi t\u1EA1o c\u1EE7a b\u1EA1n!"),ui=u(),ce=i("h2"),$e=i("a"),Ao=i("span"),w(pn.$$.fragment),bs=u(),wc=i("span"),vs=c("S\u1EED d\u1EE5ng th\u01B0 vi\u1EC7n Python "),Oo=i("code"),ks=c("huggingface_hub"),mi=u(),Ee=i("p"),ys=c("Th\u01B0 vi\u1EC7n Python "),Mo=i("code"),$s=c("huggingface_hub"),Es=c(" l\xE0 m\u1ED9t g\xF3i cung c\u1EA5p m\u1ED9t b\u1ED9 c\xF4ng c\u1EE5 cho c\xE1c hub m\xF4 h\xECnh v\xE0 t\u1EADp d\u1EEF li\u1EC7u. N\xF3 cung c\u1EA5p c\xE1c ph\u01B0\u01A1ng th\u1EE9c v\xE0 l\u1EDBp \u0111\u01A1n gi\u1EA3n cho c\xE1c t\xE1c v\u1EE5 ph\u1ED5 bi\u1EBFn nh\u01B0 ti\u1EBFp nh\u1EADn th\xF4ng tin v\u1EC1 kho l\u01B0u tr\u1EEF tr\xEAn hub v\xE0 qu\u1EA3n l\xFD ch\xFAng. N\xF3 cung c\u1EA5p c\xE1c API \u0111\u01A1n gi\u1EA3n ho\u1EA1t \u0111\u1ED9ng tr\xEAn git \u0111\u1EC3 qu\u1EA3n l\xFD n\u1ED9i dung c\u1EE7a c\xE1c kho \u0111\xF3 v\xE0 t\xEDch h\u1EE3p Hub trong c\xE1c d\u1EF1 \xE1n v\xE0 th\u01B0 vi\u1EC7n c\u1EE7a b\u1EA1n."),fi=u(),vt=i("p"),ws=c("T\u01B0\u01A1ng t\u1EF1 nh\u01B0 vi\u1EC7c s\u1EED d\u1EE5ng API "),No=i("code"),js=c("push_to_hub"),Ps=c(", \u0111i\u1EC1u n\xE0y s\u1EBD y\xEAu c\u1EA7u b\u1EA1n l\u01B0u token API v\xE0o b\u1ED9 nh\u1EDB cache c\u1EE7a m\xECnh. \u0110\u1EC3 th\u1EF1c hi\u1EC7n vi\u1EC7c n\xE0y, b\u1EA1n s\u1EBD c\u1EA7n s\u1EED d\u1EE5ng l\u1EC7nh "),So=i("code"),Cs=c("login"),Ts=c(" t\u1EEB CLI, nh\u01B0 \u0111\xE3 \u0111\u1EC1 c\u1EADp trong ph\u1EA7n tr\u01B0\u1EDBc (m\u1ED9t l\u1EA7n n\u1EEFa, h\xE3y \u0111\u1EA3m b\u1EA3o th\xEAm c\xE1c l\u1EC7nh n\xE0y v\u1EDBi k\xFD t\u1EF1  "),Ho=i("code"),qs=c("!"),xs=c(" n\u1EBFu ch\u1EA1y tr\xEAn Google Colab):"),gi=u(),w(un.$$.fragment),di=u(),we=i("p"),zs=c("G\xF3i "),Fo=i("code"),Ds=c("huggingface_hub"),As=c(" cung c\u1EA5p m\u1ED9t s\u1ED1 ph\u01B0\u01A1ng th\u1EE9c v\xE0 l\u1EDBp h\u1EEFu \xEDch cho m\u1EE5c \u0111\xEDch c\u1EE7a ch\xFAng ta. Th\u1EE9 nh\u1EA5t, c\xF3 m\u1ED9t s\u1ED1 ph\u01B0\u01A1ng ph\xE1p \u0111\u1EC3 qu\u1EA3n l\xFD vi\u1EC7c t\u1EA1o, x\xF3a kho l\u01B0u tr\u1EEF v\xE0 c\xE1c ph\u01B0\u01A1ng ph\xE1p kh\xE1c:"),_i=u(),w(mn.$$.fragment),bi=u(),je=i("p"),Os=c("Ngo\xE0i ra, n\xF3 cung c\u1EA5p l\u1EDBp "),Lo=i("code"),Ms=c("Repository"),Ns=c(" r\u1EA5t m\u1EA1nh m\u1EBD \u0111\u1EC3 qu\u1EA3n l\xFD m\u1ED9t kho l\u01B0u tr\u1EEF c\u1EE5c b\u1ED9. Ch\xFAng ta s\u1EBD kh\xE1m ph\xE1 c\xE1c ph\u01B0\u01A1ng th\u1EE9c n\xE0y v\xE0 l\u1EDBp \u0111\xF3 trong ph\u1EA7n ti\u1EBFp theo \u0111\u1EC3 hi\u1EC3u c\xE1ch t\u1EADn d\u1EE5ng ch\xFAng."),vi=u(),Pe=i("p"),Ss=c("Ph\u01B0\u01A1ng th\u1EE9c "),Go=i("code"),Hs=c("create_repo"),Fs=c(" c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF m\u1EDBi tr\xEAn hub:"),ki=u(),w(fn.$$.fragment),yi=u(),Ut=i("p"),Ls=c("Thao t\xE1c n\xE0y s\u1EBD t\u1EA1o kho l\u01B0u tr\u1EEF "),Io=i("code"),Gs=c("dummy-model"),Is=c(" trong kh\xF4ng gian t\xEAn c\u1EE7a b\u1EA1n. N\u1EBFu mu\u1ED1n, b\u1EA1n c\xF3 th\u1EC3 ch\u1EC9 \u0111\u1ECBnh t\u1ED5 ch\u1EE9c n\xE0o m\xE0 kho l\u01B0u tr\u1EEF s\u1EBD thu\u1ED9c v\u1EC1 b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng tham s\u1ED1 "),Bo=i("code"),Bs=c("organization"),Rs=c(":"),$i=u(),w(gn.$$.fragment),Ei=u(),Yt=i("p"),Ks=c("Thao t\xE1c n\xE0y s\u1EBD t\u1EA1o kho l\u01B0u tr\u1EEF "),Ro=i("code"),Vs=c("dummy-model"),Us=c(" trong kh\xF4ng gian t\xEAn "),Ko=i("code"),Ys=c("huggingface"),Xs=c(`, gi\u1EA3 s\u1EED b\u1EA1n thu\u1ED9c t\u1ED5 ch\u1EE9c \u0111\xF3.
C\xE1c tham s\u1ED1 c\xF3 th\u1EC3 h\u1EEFu \xEDch kh\xE1c l\xE0:`),wi=u(),Xt=i("ul"),jc=i("li"),Vo=i("code"),Qs=c("private"),Ws=c(", \u0111\u1EC3 ch\u1EC9 \u0111\u1ECBnh xem li\u1EC7u kho l\u01B0u tr\u1EEF c\xF3 n\xEAn hi\u1EC3n th\u1ECB v\u1EDBi nh\u1EEFng ng\u01B0\u1EDDi kh\xE1c hay kh\xF4ng."),Js=u(),Pc=i("li"),Uo=i("code"),Zs=c("token"),ta=c(", n\u1EBFu b\u1EA1n mu\u1ED1n ghi \u0111\xE8 token \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong b\u1ED9 nh\u1EDB cache c\u1EE7a m\xECnh b\u1EB1ng m\u1ED9t token nh\u1EA5t \u0111\u1ECBnh."),ea=u(),at=i("li"),Yo=i("code"),na=c("repo_type"),ca=c(", n\u1EBFu b\u1EA1n mu\u1ED1n t\u1EA1o "),Xo=i("code"),oa=c("dataset"),ha=c("  ho\u1EB7c "),Qo=i("code"),ia=c("space"),la=c(" thay v\xEC m\u1ED9t m\xF4 h\xECnh. C\xE1c gi\xE1 tr\u1ECB \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn l\xE0 "),Wo=i("code"),ra=c('"dataset"'),sa=c(" v\xE0 "),Jo=i("code"),aa=c('"space"'),pa=c("."),ji=u(),Cc=i("p"),ua=c("Khi kho l\u01B0u tr\u1EEF \u0111\u01B0\u1EE3c t\u1EA1o, ch\xFAng ta n\xEAn th\xEAm t\u1EC7p v\xE0o \u0111\xF3! Chuy\u1EC3n sang ph\u1EA7n ti\u1EBFp theo \u0111\u1EC3 xem ba c\xE1ch c\xF3 th\u1EC3 x\u1EED l\xFD v\u1EA5n \u0111\u1EC1 n\xE0y."),Pi=u(),oe=i("h2"),Ce=i("a"),Zo=i("span"),w(dn.$$.fragment),ma=u(),th=i("span"),fa=c("S\u1EED d\u1EE5ng giao di\u1EC7n web"),Ci=u(),Tc=i("p"),ga=c("Giao di\u1EC7n web cung c\u1EA5p c\xE1c c\xF4ng c\u1EE5 \u0111\u1EC3 qu\u1EA3n l\xFD kho l\u01B0u tr\u1EEF tr\u1EF1c ti\u1EBFp trong Hub. S\u1EED d\u1EE5ng giao di\u1EC7n n\xE0y, b\u1EA1n c\xF3 th\u1EC3 d\u1EC5 d\xE0ng t\u1EA1o kho l\u01B0u tr\u1EEF, th\xEAm t\u1EC7p (th\u1EADm ch\xED c\u1EA3 t\u1EC7p l\u1EDBn!), Kh\xE1m ph\xE1 c\xE1c m\xF4 h\xECnh, tr\u1EF1c quan h\xF3a c\xE1c \u0111i\u1EC3m kh\xE1c bi\u1EC7t v\xE0 h\u01A1n th\u1EBF n\u1EEFa."),Ti=u(),Te=i("p"),da=c("\u0110\u1EC3 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF m\u1EDBi, h\xE3y truy c\u1EADp "),_n=i("a"),_a=c("huggingface.co/new"),ba=c(":"),qi=u(),bn=i("div"),vn=i("img"),xi=u(),qc=i("p"),va=c("\u0110\u1EA7u ti\xEAn, ch\u1EC9 \u0111\u1ECBnh ch\u1EE7 s\u1EDF h\u1EEFu c\u1EE7a kho l\u01B0u tr\u1EEF: \u0111\xE2y c\xF3 th\u1EC3 l\xE0 b\u1EA1n ho\u1EB7c b\u1EA5t k\u1EF3 t\u1ED5 ch\u1EE9c n\xE0o m\xE0 b\u1EA1n li\xEAn k\u1EBFt. N\u1EBFu b\u1EA1n ch\u1ECDn m\u1ED9t t\u1ED5 ch\u1EE9c, m\xF4 h\xECnh s\u1EBD \u0111\u01B0\u1EE3c gi\u1EDBi thi\u1EC7u tr\xEAn trang c\u1EE7a t\u1ED5 ch\u1EE9c v\xE0 m\u1ECDi th\xE0nh vi\xEAn c\u1EE7a t\u1ED5 ch\u1EE9c s\u1EBD c\xF3 kh\u1EA3 n\u0103ng \u0111\xF3ng g\xF3p v\xE0o kho l\u01B0u tr\u1EEF."),zi=u(),xc=i("p"),ka=c("Ti\u1EBFp theo, nh\u1EADp t\xEAn m\xF4 h\xECnh c\u1EE7a b\u1EA1n. \u0110\xE2y c\u0169ng s\u1EBD l\xE0 t\xEAn c\u1EE7a kho l\u01B0u tr\u1EEF. Cu\u1ED1i c\xF9ng, b\u1EA1n c\xF3 th\u1EC3 ch\u1EC9 \u0111\u1ECBnh xem b\u1EA1n mu\u1ED1n m\xF4 h\xECnh c\u1EE7a m\xECnh l\xE0 c\xF4ng khai hay ri\xEAng t\u01B0. C\xE1c m\xF4 h\xECnh t\u01B0 nh\xE2n \u0111\u01B0\u1EE3c \u1EA9n kh\u1ECFi ch\u1EBF \u0111\u1ED9 xem c\xF4ng khai."),Di=u(),zc=i("p"),ya=c("Sau khi t\u1EA1o kho m\xF4 h\xECnh, b\u1EA1n s\u1EBD th\u1EA5y m\u1ED9t trang nh\u01B0 sau:"),Ai=u(),kn=i("div"),yn=i("img"),Oi=u(),Dc=i("p"),$a=c("\u0110\xE2y l\xE0 n\u01A1i m\xF4 h\xECnh c\u1EE7a b\u1EA1n s\u1EBD \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF. \u0110\u1EC3 b\u1EAFt \u0111\u1EA7u \u0111i\u1EC1n n\xF3, b\u1EA1n c\xF3 th\u1EC3 th\xEAm t\u1EC7p README tr\u1EF1c ti\u1EBFp t\u1EEB giao di\u1EC7n web."),Mi=u(),$n=i("div"),En=i("img"),Ni=u(),Ac=i("p"),Ea=c("T\u1EC7p README n\u1EB1m trong Markdown - h\xE3y tho\u1EA3i m\xE1i s\u1EED d\u1EE5ng n\xF3! Ph\u1EA7n th\u1EE9 ba c\u1EE7a ch\u01B0\u01A1ng n\xE0y d\xE0nh ri\xEAng cho vi\u1EC7c x\xE2y d\u1EF1ng m\u1ED9t th\u1EBB m\xF4 h\xECnh. \u0110\xE2y l\xE0 nh\u1EEFng \u0111i\u1EC1u quan tr\u1ECDng h\xE0ng \u0111\u1EA7u trong vi\u1EC7c mang l\u1EA1i gi\xE1 tr\u1ECB cho m\xF4 h\xECnh c\u1EE7a b\u1EA1n, v\xEC ch\xFAng l\xE0 n\u01A1i b\u1EA1n n\xF3i cho ng\u01B0\u1EDDi kh\xE1c bi\u1EBFt n\xF3 c\xF3 th\u1EC3 l\xE0m g\xEC."),Si=u(),Qt=i("p"),wa=c("N\u1EBFu b\u1EA1n nh\xECn v\xE0o tab \u201CFiles and versions\u201D hay \u201CT\u1EC7p v\xE0 phi\xEAn b\u1EA3n\u201D, b\u1EA1n s\u1EBD th\u1EA5y r\u1EB1ng ch\u01B0a c\xF3 nhi\u1EC1u t\u1EC7p \u1EDF \u0111\xF3 - ch\u1EC9 c\xF3 "),eh=i("em"),ja=c("README.md"),Pa=c("  b\u1EA1n v\u1EEBa t\u1EA1o v\xE0 t\u1EC7p "),nh=i("em"),Ca=c(".gitattributes"),Ta=c(" theo d\xF5i c\xE1c t\u1EC7p l\u1EDBn."),Hi=u(),wn=i("div"),jn=i("img"),Fi=u(),Oc=i("p"),qa=c("Ti\u1EBFp theo, ch\xFAng ta s\u1EBD xem x\xE9t c\xE1ch th\xEAm m\u1ED9t s\u1ED1 t\u1EC7p m\u1EDBi."),Li=u(),he=i("h2"),qe=i("a"),ch=i("span"),w(Pn.$$.fragment),xa=u(),oh=i("span"),za=c("T\u1EA3i c\xE1c t\u1EC7p m\xF4 h\xECnh"),Gi=u(),xe=i("p"),Da=c("H\u1EC7 th\u1ED1ng qu\u1EA3n l\xFD t\u1EC7p tr\xEAn Hugging Face Hub d\u1EF1a tr\xEAn git cho c\xE1c t\u1EC7p th\xF4ng th\u01B0\u1EDDng v\xE0 git-lfs (vi\u1EBFt t\u1EAFt c\u1EE7a "),Cn=i("a"),Aa=c("Git Large File Storage"),Oa=c(") cho c\xE1c t\u1EC7p l\u1EDBn h\u01A1n ."),Ii=u(),ze=i("p"),Ma=c("Trong ph\u1EA7n ti\u1EBFp theo, ch\xFAng ta s\u1EBD xem x\xE9t ba c\xE1ch kh\xE1c nhau \u0111\u1EC3 t\u1EA3i t\u1EC7p l\xEAn Hub: th\xF4ng qua "),hh=i("code"),Na=c("huggingface_hub"),Sa=c(" v\xE0 th\xF4ng qua l\u1EC7nh git."),Bi=u(),ie=i("h3"),De=i("a"),ih=i("span"),w(Tn.$$.fragment),Ha=u(),Mc=i("span"),Fa=c("Ph\u01B0\u01A1ng ph\xE1p "),lh=i("code"),La=c("upload_file"),Ri=u(),Ae=i("p"),Ga=c("S\u1EED d\u1EE5ng "),rh=i("code"),Ia=c("upload_file"),Ba=c(` kh\xF4ng y\xEAu c\u1EA7u c\xE0i \u0111\u1EB7t git v\xE0 git-lfs tr\xEAn h\u1EC7 th\u1ED1ng c\u1EE7a b\u1EA1n. N\xF3 \u0111\u1EA9y c\xE1c t\u1EC7p tr\u1EF1c ti\u1EBFp \u0111\u1EBFn \u{1F917} Hub b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng c\xE1c y\xEAu c\u1EA7u HTTP POST. M\u1ED9t h\u1EA1n ch\u1EBF c\u1EE7a ph\u01B0\u01A1ng ph\xE1p n\xE0y l\xE0 n\xF3 kh\xF4ng x\u1EED l\xFD c\xE1c t\u1EC7p c\xF3 k\xEDch th\u01B0\u1EDBc l\u1EDBn h\u01A1n 5GB.
N\u1EBFu t\u1EC7p c\u1EE7a b\u1EA1n l\u1EDBn h\u01A1n 5GB, vui l\xF2ng l\xE0m theo hai ph\u01B0\u01A1ng ph\xE1p kh\xE1c \u0111\u01B0\u1EE3c n\xEAu chi ti\u1EBFt b\xEAn d\u01B0\u1EDBi.`),Ki=u(),Nc=i("p"),Ra=c("API c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng nh\u01B0 sau:"),Vi=u(),w(qn.$$.fragment),Ui=u(),pt=i("p"),Ka=c("Thao t\xE1c n\xE0y s\u1EBD t\u1EA3i t\u1EC7p "),sh=i("code"),Va=c("config.json"),Ua=c(" c\xF3 s\u1EB5n t\u1EA1i "),ah=i("code"),Ya=c("<path_to_file>"),Xa=c(" v\xE0o th\u01B0 m\u1EE5c g\u1ED1c c\u1EE7a kho l\u01B0u tr\u1EEF l\xE0  "),ph=i("code"),Qa=c("config.json"),Wa=c(", v\xE0o kho l\u01B0u tr\u1EEF "),uh=i("code"),Ja=c("dummy-model"),Za=c(`.
C\xE1c tham s\u1ED1 c\xF3 th\u1EC3 h\u1EEFu \xEDch kh\xE1c l\xE0:`),Yi=u(),Oe=i("ul"),Sc=i("li"),mh=i("code"),tp=c("token"),ep=c(", n\u1EBFu b\u1EA1n mu\u1ED1n ghi \u0111\xE8 token \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong b\u1ED9 nh\u1EDB cache c\u1EE7a m\xECnh b\u1EB1ng m\u1ED9t token nh\u1EA5t \u0111\u1ECBnh."),np=u(),ut=i("li"),fh=i("code"),cp=c("repo_type"),op=c(", n\u1EBFu b\u1EA1n mu\u1ED1n t\u1EA3i l\xEAn "),gh=i("code"),hp=c("dataset"),ip=c(" ho\u1EB7c "),dh=i("code"),lp=c("space"),rp=c(" thay v\xEC m\u1ED9t m\xF4 h\xECnh. C\xE1c gi\xE1 tr\u1ECB \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn l\xE0 "),_h=i("code"),sp=c('"dataset"'),ap=c(" v\xE0 "),bh=i("code"),pp=c('"space"'),up=c("."),Xi=u(),le=i("h3"),Me=i("a"),vh=i("span"),w(xn.$$.fragment),mp=u(),Hc=i("span"),fp=c("L\u1EDBp "),kh=i("code"),gp=c("Repository"),Qi=u(),Ne=i("p"),dp=c("L\u1EDBp "),yh=i("code"),_p=c("Repository"),bp=c(" qu\u1EA3n l\xFD m\u1ED9t kho l\u01B0u tr\u1EEF c\u1EE5c b\u1ED9 theo c\xE1ch gi\u1ED1ng nh\u01B0 git. N\xF3 t\xF3m t\u1EAFt h\u1EA7u h\u1EBFt c\xE1c \u0111i\u1EC3m kh\xF3 kh\u0103n m\xE0 ng\u01B0\u1EDDi ta c\xF3 th\u1EC3 c\xF3 v\u1EDBi git \u0111\u1EC3 cung c\u1EA5p t\u1EA5t c\u1EA3 c\xE1c t\xEDnh n\u0103ng m\xE0 ch\xFAng t\xF4i y\xEAu c\u1EA7u."),Wi=u(),Se=i("p"),vp=c("S\u1EED d\u1EE5ng l\u1EDBp n\xE0y y\xEAu c\u1EA7u ph\u1EA3i c\xE0i \u0111\u1EB7t git v\xE0 git-lfs, v\xEC v\u1EADy h\xE3y \u0111\u1EA3m b\u1EA3o r\u1EB1ng b\u1EA1n \u0111\xE3 c\xE0i \u0111\u1EB7t git-lfs (xem "),zn=i("a"),kp=c("t\u1EA1i \u0111\xE2y"),yp=c(" \u0111\u1EC3 bi\u1EBFt h\u01B0\u1EDBng d\u1EABn c\xE0i \u0111\u1EB7t) v\xE0 thi\u1EBFt l\u1EADp tr\u01B0\u1EDBc khi b\u1EAFt \u0111\u1EA7u."),Ji=u(),Fc=i("p"),$p=c("\u0110\u1EC3 b\u1EAFt \u0111\u1EA7u ch\u01A1i v\u1EDBi kho l\u01B0u tr\u1EEF ch\xFAng ta v\u1EEBa t\u1EA1o, ch\xFAng ta c\xF3 th\u1EC3 b\u1EAFt \u0111\u1EA7u b\u1EB1ng c\xE1ch kh\u1EDFi t\u1EA1o n\xF3 v\xE0o m\u1ED9t th\u01B0 m\u1EE5c c\u1EE5c b\u1ED9 b\u1EB1ng c\xE1ch sao ch\xE9p kho l\u01B0u tr\u1EEF t\u1EEB xa:"),Zi=u(),w(Dn.$$.fragment),tl=u(),kt=i("p"),Ep=c("Thao t\xE1c n\xE0y \u0111\xE3 t\u1EA1o th\u01B0 m\u1EE5c "),$h=i("code"),wp=c("<path_to_dummy_folder>"),jp=c(" trong th\u01B0 m\u1EE5c l\xE0m vi\u1EC7c c\u1EE7a ch\xFAng ta. Th\u01B0 m\u1EE5c n\xE0y ch\u1EC9 ch\u1EE9a t\u1EC7p "),Eh=i("code"),Pp=c(".gitattributes"),Cp=c(" v\xEC \u0111\xF3 l\xE0 t\u1EC7p duy nh\u1EA5t \u0111\u01B0\u1EE3c t\u1EA1o khi kh\u1EDFi t\u1EA1o kho l\u01B0u tr\u1EEF th\xF4ng qua "),wh=i("code"),Tp=c("create_repo"),qp=c("."),el=u(),Lc=i("p"),xp=c("T\u1EEB th\u1EDDi \u0111i\u1EC3m n\xE0y, ch\xFAng ta c\xF3 th\u1EC3 t\u1EADn d\u1EE5ng m\u1ED9t s\u1ED1 ph\u01B0\u01A1ng ph\xE1p git truy\u1EC1n th\u1ED1ng:"),nl=u(),w(An.$$.fragment),cl=u(),yt=i("p"),zp=c("V\xE0 nh\u1EEFng c\xE1i kh\xE1c! Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn xem t\xE0i li\u1EC7u v\u1EC1 "),jh=i("code"),Dp=c("Repository"),Ap=c(" hay "),Ph=i("code"),Op=c("Kho l\u01B0u tr\u1EEF"),Mp=c(" c\xF3 s\u1EB5n "),On=i("a"),Np=c("t\u1EA1i \u0111\xE2y"),Sp=c(" \u0111\u1EC3 bi\u1EBFt t\u1ED5ng quan v\u1EC1 t\u1EA5t c\u1EA3 c\xE1c ph\u01B0\u01A1ng ph\xE1p."),ol=u(),Gc=i("p"),Hp=c("Hi\u1EC7n t\u1EA1i, ch\xFAng ta c\xF3 m\u1ED9t m\xF4 h\xECnh v\xE0 m\u1ED9t tokenizer m\xE0 ta mu\u1ED1n \u0111\u01B0a v\xE0o Hub. Ch\xFAng ta \u0111\xE3 nh\xE2n b\u1EA3n th\xE0nh c\xF4ng kho l\u01B0u tr\u1EEF, do \u0111\xF3 ch\xFAng t\xF4i c\xF3 th\u1EC3 l\u01B0u c\xE1c t\u1EC7p trong kho l\u01B0u tr\u1EEF \u0111\xF3."),hl=u(),Ic=i("p"),Fp=c("Tr\u01B0\u1EDBc ti\xEAn, ch\xFAng t\xF4i \u0111\u1EA3m b\u1EA3o r\u1EB1ng b\u1EA3n sao c\u1EE5c b\u1ED9 \u0111\u01B0\u1EE3c c\u1EADp nh\u1EADt b\u1EB1ng c\xE1ch k\xE9o v\u1EC1 nh\u1EEFng thay \u0111\u1ED5i m\u1EDBi nh\u1EA5t:"),il=u(),w(Mn.$$.fragment),ll=u(),Bc=i("p"),Lp=c("Sau \u0111\xF3, ta l\u01B0u m\xF4 h\xECnh v\xE0 t\u1EC7p tokenizer:"),rl=u(),w(Nn.$$.fragment),sl=u(),Sn=i("p"),Ch=i("code"),Gp=c("<path_to_dummy_folder>"),Ip=c(" b\xE2y gi\u1EDD ch\u1EE9a t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p m\xF4 h\xECnh v\xE0 tokenizer. Ch\xFAng ta th\u1EF1c hi\u1EC7n theo quy tr\xECnh l\xE0m vi\u1EC7c git th\xF4ng th\u01B0\u1EDDng b\u1EB1ng c\xE1ch th\xEAm t\u1EC7p v\xE0o khu v\u1EF1c l\u01B0u tr\u1EEF thay \u0111\u1ED5i, cam k\u1EBFt ch\xFAng v\xE0 \u0111\u1EA9y ch\xFAng v\xE0o hub:"),al=u(),w(Hn.$$.fragment),pl=u(),Rc=i("p"),Bp=c("Xin ch\xFAc m\u1EEBng! B\u1EA1n v\u1EEBa \u0111\u1EA9y c\xE1c t\u1EC7p \u0111\u1EA7u ti\xEAn c\u1EE7a m\xECnh l\xEAn Hub."),ul=u(),re=i("h3"),He=i("a"),Th=i("span"),w(Fn.$$.fragment),Rp=u(),qh=i("span"),Kp=c("Ph\u01B0\u01A1ng ph\xE1p d\u1EF1a tr\xEAn git"),ml=u(),Kc=i("p"),Vp=c("\u0110\xE2y l\xE0 c\xE1ch ti\u1EBFp c\u1EADn r\u1EA5t \u0111\u01A1n gi\u1EA3n \u0111\u1EC3 t\u1EA3i t\u1EC7p l\xEAn: ch\xFAng ta s\u1EBD l\xE0m tr\u1EF1c ti\u1EBFp v\u1EDBi git v\xE0 git-lfs. H\u1EA7u h\u1EBFt kh\xF3 kh\u0103n \u0111\xE3 \u0111\u01B0\u1EE3c lo\u1EA1i b\u1ECF b\u1EDFi c\xE1c c\xE1ch ti\u1EBFp c\u1EADn tr\u01B0\u1EDBc \u0111\xE2y, nh\u01B0ng c\xF3 m\u1ED9t s\u1ED1 l\u01B0u \xFD v\u1EDBi ph\u01B0\u01A1ng ph\xE1p ti\u1EBFp theo, v\xEC v\u1EADy ch\xFAng ta s\u1EBD theo m\u1ED9t tr\u01B0\u1EDDng h\u1EE3p s\u1EED d\u1EE5ng ph\u1EE9c t\u1EA1p h\u01A1n."),fl=u(),Fe=i("p"),Up=c("S\u1EED d\u1EE5ng l\u1EDBp n\xE0y y\xEAu c\u1EA7u ph\u1EA3i c\xE0i \u0111\u1EB7t git v\xE0 git-lfs, v\xEC v\u1EADy h\xE3y \u0111\u1EA3m b\u1EA3o b\u1EA1n \u0111\xE3 c\xE0i \u0111\u1EB7t "),Ln=i("a"),Yp=c("git-lfs"),Xp=c(" (xem h\u01B0\u1EDBng d\u1EABn c\xE0i \u0111\u1EB7t t\u1EA1i \u0111\xE2y) v\xE0 c\xE0i \u0111\u1EB7t tr\u01B0\u1EDBc khi b\u1EAFt \u0111\u1EA7u ."),gl=u(),Vc=i("p"),Qp=c("Tr\u01B0\u1EDBc ti\xEAn, h\xE3y b\u1EAFt \u0111\u1EA7u b\u1EB1ng c\xE1ch kh\u1EDFi t\u1EA1o git-lfs:"),dl=u(),w(Gn.$$.fragment),_l=u(),w(In.$$.fragment),bl=u(),Uc=i("p"),Wp=c("Sau khi ho\xE0n t\u1EA5t, b\u01B0\u1EDBc \u0111\u1EA7u ti\xEAn l\xE0 sao ch\xE9p kho l\u01B0u tr\u1EEF m\xF4 h\xECnh c\u1EE7a b\u1EA1n:"),vl=u(),w(Bn.$$.fragment),kl=u(),Wt=i("p"),Jp=c("T\xEAn ng\u01B0\u1EDDi d\xF9ng c\u1EE7a t\xF4i l\xE0 "),xh=i("code"),Zp=c("lysandre"),tu=c(" v\xE0 ta \u0111\xE3 s\u1EED d\u1EE5ng t\xEAn m\xF4 h\xECnh l\xE0 "),zh=i("code"),eu=c("dummy"),nu=c(", v\xEC v\u1EADy l\u1EC7nh k\u1EBFt th\xFAc nh\u01B0 sau:"),yl=u(),w(Rn.$$.fragment),$l=u(),Jt=i("p"),cu=c("B\xE2y gi\u1EDD ta c\xF3 m\u1ED9t th\u01B0 m\u1EE5c t\xEAn "),Dh=i("em"),ou=c("dummy"),hu=c(" trong th\u01B0 m\u1EE5c l\xE0m vi\u1EC7c c\u1EE7a m\xECnh. Ta c\xF3 th\u1EC3 "),Ah=i("code"),iu=c("cd"),lu=c(" v\xE0o th\u01B0 m\u1EE5c v\xE0 xem n\u1ED9i dung:"),El=u(),w(Kn.$$.fragment),wl=u(),w(Vn.$$.fragment),jl=u(),mt=i("p"),ru=c("N\u1EBFu b\u1EA1n v\u1EEBa t\u1EA1o kho l\u01B0u tr\u1EEF c\u1EE7a m\xECnh b\u1EB1ng ph\u01B0\u01A1ng ph\xE1p "),Oh=i("code"),su=c("create_repo"),au=c(" c\u1EE7a Hugging Face Hub, th\xEC th\u01B0 m\u1EE5c n\xE0y ch\u1EC9 n\xEAn ch\u1EE9a t\u1EC7p "),Mh=i("code"),pu=c(".gitattributes"),uu=c(" \u1EA9n. N\u1EBFu b\u1EA1n \u0111\xE3 l\xE0m theo h\u01B0\u1EDBng d\u1EABn trong ph\u1EA7n tr\u01B0\u1EDBc \u0111\u1EC3 t\u1EA1o kho l\u01B0u tr\u1EEF b\u1EB1ng giao di\u1EC7n web, th\xEC th\u01B0 m\u1EE5c ph\u1EA3i ch\u1EE9a m\u1ED9t t\u1EC7p "),Nh=i("em"),mu=c("README.md"),fu=c(" duy nh\u1EA5t c\xF9ng v\u1EDBi t\u1EC7p "),Sh=i("code"),gu=c(".gitattributes"),du=c(" \u1EA9n, nh\u01B0 \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB \u1EDF \u0111\xE2y."),Pl=u(),Le=i("p"),_u=c("Vi\u1EC7c th\xEAm m\u1ED9t t\u1EC7p c\xF3 k\xEDch th\u01B0\u1EDBc th\xF4ng th\u01B0\u1EDDng, ch\u1EB3ng h\u1EA1n nh\u01B0 t\u1EC7p c\u1EA5u h\xECnh, t\u1EC7p t\u1EEB v\u1EF1ng ho\u1EB7c v\u1EC1 c\u01A1 b\u1EA3n l\xE0 b\u1EA5t k\u1EF3 t\u1EC7p n\xE0o d\u01B0\u1EDBi v\xE0i megabyte, \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n ch\xEDnh x\xE1c nh\u01B0 c\xE1ch ng\u01B0\u1EDDi ta l\xE0m trong b\u1EA5t k\u1EF3 h\u1EC7 th\u1ED1ng d\u1EF1a tr\xEAn git n\xE0o. Tuy nhi\xEAn, c\xE1c t\u1EC7p l\u1EDBn h\u01A1n ph\u1EA3i \u0111\u01B0\u1EE3c \u0111\u0103ng k\xFD th\xF4ng qua git-lfs \u0111\u1EC3 \u0111\u1EA9y ch\xFAng l\xEAn "),Hh=i("em"),bu=c("huggingface.co"),vu=c("."),Cl=u(),Yc=i("p"),ku=c("H\xE3y quay l\u1EA1i Python m\u1ED9t ch\xFAt \u0111\u1EC3 t\u1EA1o m\u1ED9t m\xF4 h\xECnh v\xE0 tr\xECnh tokenize m\xE0 ch\xFAng ta mu\u1ED1n cam k\u1EBFt v\u1EDBi kho l\u01B0u tr\u1EEF dummy c\u1EE7a ch\xFAng ta:"),Tl=u(),Dt.c(),Xc=u(),Ge=i("p"),yu=c("B\xE2y gi\u1EDD ch\xFAng ta \u0111\xE3 l\u01B0u m\u1ED9t s\u1ED1 t\u1EA1o t\xE1c m\xF4 h\xECnh v\xE0 tokenizer, h\xE3y xem x\xE9t l\u1EA1i th\u01B0 m\u1EE5c "),Fh=i("em"),$u=c("dummy"),Eu=c(":"),ql=u(),w(Un.$$.fragment),xl=u(),Ot.c(),Qc=u(),w(Ie.$$.fragment),zl=c(Yu),Dl=u(),Be=i("p"),wu=c("B\xE2y gi\u1EDD ch\xFAng ta c\xF3 th\u1EC3 ti\u1EBFp t\u1EE5c v\xE0 ti\u1EBFn h\xE0nh nh\u01B0 ch\xFAng ta th\u01B0\u1EDDng l\xE0m v\u1EDBi c\xE1c kho l\u01B0u tr\u1EEF Git truy\u1EC1n th\u1ED1ng. Ch\xFAng ta c\xF3 th\u1EC3 th\xEAm t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p v\xE0o m\xF4i tr\u01B0\u1EDDng d\xE0n d\u1EF1ng c\u1EE7a Git b\u1EB1ng l\u1EC7nh "),Lh=i("code"),ju=c("git add"),Pu=c(":"),Al=u(),w(Yn.$$.fragment),Ol=u(),Wc=i("p"),Cu=c("Sau \u0111\xF3, ch\xFAng ta c\xF3 th\u1EC3 xem x\xE9t c\xE1c t\u1EC7p hi\u1EC7n \u0111ang \u0111\u01B0\u1EE3c s\u1EAFp x\u1EBFp:"),Ml=u(),w(Xn.$$.fragment),Nl=u(),Nt.c(),Jc=u(),Re=i("p"),Tu=c("T\u01B0\u01A1ng t\u1EF1, ch\xFAng ta c\xF3 th\u1EC3 \u0111\u1EA3m b\u1EA3o r\u1EB1ng git-lfs \u0111ang theo d\xF5i c\xE1c t\u1EC7p ch\xEDnh x\xE1c b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng l\u1EC7nh "),Gh=i("code"),qu=c("status"),xu=c(":"),Sl=u(),w(Qn.$$.fragment),Hl=u(),Ht.c(),Zc=u(),Ke=i("p"),zu=c("H\xE3y ti\u1EBFn h\xE0nh c\xE1c b\u01B0\u1EDBc cu\u1ED1i c\xF9ng, cam k\u1EBFt v\xE0 \u0111\u1EA9y \u0111\u1EBFn kho l\u01B0u tr\u1EEF t\u1EEB xa "),Ih=i("em"),Du=c("huggingface.co"),Au=c(":"),Fl=u(),w(Wn.$$.fragment),Ll=u(),Lt.c(),to=u(),eo=i("p"),Ou=c("Vi\u1EC7c \u0111\u1EA9y c\xF3 th\u1EC3 m\u1EA5t m\u1ED9t ch\xFAt th\u1EDDi gian, t\xF9y thu\u1ED9c v\xE0o t\u1ED1c \u0111\u1ED9 k\u1EBFt n\u1ED1i internet v\xE0 k\xEDch th\u01B0\u1EDBc t\u1EC7p c\u1EE7a b\u1EA1n:"),Gl=u(),w(Jn.$$.fragment),Il=u(),w(Zn.$$.fragment),Bl=u(),ae.c(),no=Hg(),this.h()},l(t){const h=Rg('[data-svelte="svelte-1phssyn"]',document.head);p=l(h,"META",{name:!0,content:!0}),h.forEach(e),f=m(t),j(a.$$.fragment,t),_=m(t),$=l(t,"H1",{class:!0});var sc=s($);q=l(sc,"A",{id:!0,class:!0,href:!0});var co=s(q);N=l(co,"SPAN",{});var oo=s(N);j(T.$$.fragment,oo),oo.forEach(e),co.forEach(e),A=m(sc),z=l(sc,"SPAN",{});var ho=s(z);D=o(ho,"Chia s\u1EBB c\xE1c m\xF4 h\xECnh hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc"),ho.forEach(e),sc.forEach(e),g=m(t),y.l(t),E=m(t),H=l(t,"P",{});var io=s(H);I=o(io,"Trong c\xE1c b\u01B0\u1EDBc b\xEAn d\u01B0\u1EDBi, ch\xFAng ta s\u1EBD xem x\xE9t c\xE1c c\xE1ch d\u1EC5 nh\u1EA5t \u0111\u1EC3 chia s\u1EBB c\xE1c m\xF4 h\xECnh \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc v\u1EDBi \u{1F917} Hub. Ta c\xF3 s\u1EB5n c\xE1c c\xF4ng c\u1EE5 v\xE0 ti\u1EC7n \xEDch gi\xFAp vi\u1EC7c chia s\u1EBB v\xE0 c\u1EADp nh\u1EADt m\xF4 h\xECnh tr\u1EF1c ti\u1EBFp tr\xEAn Hub tr\u1EDF n\xEAn \u0111\u01A1n gi\u1EA3n, v\xE0 ch\xFAng ta s\u1EBD c\xF9ng nhau kh\xE1m ph\xE1 b\xEAn d\u01B0\u1EDBi."),io.forEach(e),F=m(t),j(L.$$.fragment,t),K=m(t),X=l(t,"P",{});var Bh=s(X);et=o(Bh,"Ch\xFAng t\xF4i khuy\u1EBFn kh\xEDch t\u1EA5t c\u1EA3 ng\u01B0\u1EDDi d\xF9ng hu\u1EA5n luy\u1EC7n m\xF4 h\xECnh \u0111\xF3ng g\xF3p b\u1EB1ng c\xE1ch chia s\u1EBB ch\xFAng v\u1EDBi c\u1ED9ng \u0111\u1ED3ng - chia s\u1EBB m\xF4 h\xECnh, ngay c\u1EA3 khi \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n tr\xEAn c\xE1c b\u1ED9 d\u1EEF li\u1EC7u r\u1EA5t c\u1EE5 th\u1EC3, s\u1EBD gi\xFAp \xEDch cho nh\u1EEFng ng\u01B0\u1EDDi kh\xE1c, gi\xFAp h\u1ECD ti\u1EBFt ki\u1EC7m th\u1EDDi gian v\xE0 t\xEDnh to\xE1n t\xE0i nguy\xEAn v\xE0 cung c\u1EA5p quy\u1EC1n truy c\u1EADp v\xE0o c\xE1c hi\u1EC7n v\u1EADt h\u1EEFu \xEDch \u0111\u01B0\u1EE3c hu\u1EA5n luy\u1EC7n. \u0110\u1ED5i l\u1EA1i, b\u1EA1n c\xF3 th\u1EC3 h\u01B0\u1EDFng l\u1EE3i t\u1EEB c\xF4ng vi\u1EC7c m\xE0 nh\u1EEFng ng\u01B0\u1EDDi kh\xE1c \u0111\xE3 l\xE0m!"),Bh.forEach(e),V=m(t),nt=l(t,"P",{});var lo=s(nt);$t=o(lo,"C\xF3 ba c\xE1ch \u0111\u1EC3 t\u1EA1o kho l\u01B0u tr\u1EEF m\xF4 h\xECnh m\u1EDBi:"),lo.forEach(e),J=m(t),B=l(t,"UL",{});var Zt=s(B);ct=l(Zt,"LI",{});var ro=s(ct);ot=o(ro,"S\u1EED d\u1EE5ng API "),U=l(ro,"CODE",{});var so=s(U);Et=o(so,"push_to_hub"),so.forEach(e),ro.forEach(e),ht=m(Zt),S=l(Zt,"LI",{});var ac=s(S);R=o(ac,"S\u1EED d\u1EE5ng th\u01B0 vi\u1EC7n Python "),ft=l(ac,"CODE",{});var ao=s(ft);Z=o(ao,"huggingface_hub"),ao.forEach(e),ac.forEach(e),Y=m(Zt),it=l(Zt,"LI",{});var gm=s(it);Rt=o(gm,"S\u1EED d\u1EE5ng giao di\u1EC7n web"),gm.forEach(e),Zt.forEach(e),wt=m(t),lt=l(t,"P",{});var dm=s(lt);Q=o(dm,"Khi b\u1EA1n \u0111\xE3 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF, b\u1EA1n c\xF3 th\u1EC3 t\u1EA3i t\u1EC7p l\xEAn \u0111\xF3 qua git v\xE0 git-lfs. Ch\xFAng t\xF4i s\u1EBD h\u01B0\u1EDBng d\u1EABn b\u1EA1n c\xE1ch t\u1EA1o kho l\u01B0u tr\u1EEF m\xF4 h\xECnh v\xE0 t\u1EA3i t\u1EC7p l\xEAn ch\xFAng trong c\xE1c ph\u1EA7n sau."),dm.forEach(e),tt=m(t),dt=l(t,"H2",{class:!0});var Ul=s(dt);gt=l(Ul,"A",{id:!0,class:!0,href:!0});var _m=s(gt);O=l(_m,"SPAN",{});var bm=s(O);j(G.$$.fragment,bm),bm.forEach(e),_m.forEach(e),pc=m(Ul),ne=l(Ul,"SPAN",{});var Mu=s(ne);uc=o(Mu,"S\u1EED d\u1EE5ng API "),W=l(Mu,"CODE",{});var vm=s(W);mc=o(vm,"push_to_hub"),vm.forEach(e),Mu.forEach(e),Ul.forEach(e),Je=m(t),st.l(t),jt=m(t),Pt=l(t,"P",{});var Yl=s(Pt);me=o(Yl,"C\xE1ch \u0111\u01A1n gi\u1EA3n nh\u1EA5t \u0111\u1EC3 t\u1EA3i t\u1EC7p l\xEAn Hub l\xE0 t\u1EADn d\u1EE5ng API "),fe=l(Yl,"CODE",{});var km=s(fe);fc=o(km,"push_to_hub"),km.forEach(e),wr=o(Yl,"."),Yl.forEach(e),Rh=m(t),_t=l(t,"P",{});var Ve=s(_t);jr=o(Ve,"Tr\u01B0\u1EDBc khi \u0111i xa h\u01A1n, b\u1EA1n s\u1EBD c\u1EA7n t\u1EA1o token x\xE1c th\u1EF1c \u0111\u1EC3 API "),ko=l(Ve,"CODE",{});var ym=s(ko);Pr=o(ym,"huggingface_hub"),ym.forEach(e),Cr=o(Ve," bi\u1EBFt b\u1EA1n l\xE0 ai v\xE0 b\u1EA1n c\xF3 quy\u1EC1n ghi v\xE0o kh\xF4ng gian t\xEAn n\xE0o. \u0110\u1EA3m b\u1EA3o r\u1EB1ng b\u1EA1n \u0111ang \u1EDF trong m\xF4i tr\u01B0\u1EDDng m\xE0 b\u1EA1n \u0111\xE3 c\xE0i \u0111\u1EB7t "),yo=l(Ve,"CODE",{});var $m=s(yo);Tr=o($m,"transformers"),$m.forEach(e),qr=o(Ve," (xem "),gc=l(Ve,"A",{href:!0});var Em=s(gc);xr=o(Em,"Thi\u1EBFt l\u1EADp"),Em.forEach(e),zr=o(Ve,"). N\u1EBFu b\u1EA1n \u0111ang \u1EDF trong notebook, b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng ch\u1EE9c n\u0103ng sau \u0111\u1EC3 \u0111\u0103ng nh\u1EADp:"),Ve.forEach(e),Kh=m(t),j(Ze.$$.fragment,t),Vh=m(t),dc=l(t,"P",{});var wm=s(dc);Dr=o(wm,"Tr\xEAn terminal, b\u1EA1n c\xF3 th\u1EC3:"),wm.forEach(e),Uh=m(t),j(tn.$$.fragment,t),Yh=m(t),ge=l(t,"P",{});var Xl=s(ge);Ar=o(Xl,"Trong c\u1EA3 hai tr\u01B0\u1EDDng h\u1EE3p, b\u1EA1n s\u1EBD \u0111\u01B0\u1EE3c nh\u1EAFc nh\u1EADp t\xEAn ng\u01B0\u1EDDi d\xF9ng v\xE0 m\u1EADt kh\u1EA9u c\u1EE7a m\xECnh, \u0111\xF3 l\xE0 nh\u1EEFng m\u1EADt kh\u1EA9u m\xE0 b\u1EA1n s\u1EED d\u1EE5ng \u0111\u1EC3 \u0111\u0103ng nh\u1EADp v\xE0o Hub. N\u1EBFu b\u1EA1n ch\u01B0a c\xF3 h\u1ED3 s\u01A1 Hub, b\u1EA1n n\xEAn t\u1EA1o m\u1ED9t h\u1ED3 s\u01A1 "),en=l(Xl,"A",{href:!0,rel:!0});var jm=s(en);Or=o(jm,"t\u1EA1i \u0111\xE2y"),jm.forEach(e),Mr=o(Xl,"."),Xl.forEach(e),Xh=m(t),_c=l(t,"P",{});var Pm=s(_c);Nr=o(Pm,"Tuy\u1EC7t v\u1EDDi! B\xE2y gi\u1EDD b\u1EA1n c\xF3 token x\xE1c th\u1EF1c \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong th\u01B0 m\u1EE5c b\u1ED9 nh\u1EDB cache c\u1EE7a m\xECnh. H\xE3y t\u1EA1o m\u1ED9t s\u1ED1 kho l\u01B0u tr\u1EEF th\xF4i!"),Pm.forEach(e),Qh=m(t),Tt.l(t),bc=m(t),de=l(t,"P",{});var Ql=s(de);Sr=o(Ql,"\u1EDE c\u1EA5p \u0111\u1ED9 th\u1EA5p h\u01A1n, vi\u1EC7c truy c\u1EADp Model Hub c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n tr\u1EF1c ti\u1EBFp tr\xEAn c\xE1c m\xF4 h\xECnh, tokenizer v\xE0 c\xE1c \u0111\u1ED1i t\u01B0\u1EE3ng c\u1EA5u h\xECnh th\xF4ng qua ph\u01B0\u01A1ng th\u1EE9c "),$o=l(Ql,"CODE",{});var Cm=s($o);Hr=o(Cm,"push_to_hub()"),Cm.forEach(e),Fr=o(Ql,". Ph\u01B0\u01A1ng ph\xE1p n\xE0y x\u1EED l\xFD c\u1EA3 vi\u1EC7c t\u1EA1o kho l\u01B0u tr\u1EEF v\xE0 \u0111\u1EA9y c\xE1c t\u1EC7p m\xF4 h\xECnh v\xE0 t\u1EC7p tokenizer tr\u1EF1c ti\u1EBFp \u0111\u1EBFn kho l\u01B0u tr\u1EEF. Kh\xF4ng c\u1EA7n x\u1EED l\xFD th\u1EE7 c\xF4ng, kh\xF4ng gi\u1ED1ng nh\u01B0 v\u1EDBi API m\xE0 ch\xFAng ta s\u1EBD th\u1EA5y b\xEAn d\u01B0\u1EDBi."),Ql.forEach(e),Wh=m(t),vc=l(t,"P",{});var Tm=s(vc);Lr=o(Tm,"\u0110\u1EC3 c\xF3 \xFD t\u01B0\u1EDFng v\u1EC1 c\xE1ch n\xF3 ho\u1EA1t \u0111\u1ED9ng, tr\u01B0\u1EDBc ti\xEAn ch\xFAng ta h\xE3y kh\u1EDFi t\u1EA1o m\u1ED9t m\xF4 h\xECnh v\xE0 m\u1ED9t tokenizer:"),Tm.forEach(e),Jh=m(t),xt.l(t),kc=m(t),Kt=l(t,"P",{});var po=s(Kt);Gr=o(po,"B\u1EA1n c\xF3 th\u1EC3 t\u1EF1 do l\xE0m b\u1EA5t c\u1EE9 \u0111i\u1EC1u g\xEC b\u1EA1n mu\u1ED1n v\u1EDBi nh\u1EEFng th\u1EE9 n\xE0y - th\xEAm token v\xE0o tr\xECnh tokenize, hu\u1EA5n luy\u1EC7n m\xF4 h\xECnh, tinh ch\u1EC9nh n\xF3. Khi b\u1EA1n h\xE0i l\xF2ng v\u1EDBi k\u1EBFt qu\u1EA3 m\xF4 h\xECnh, tr\u1ECDng s\u1ED1, v\xE0 tokenizer, b\u1EA1n c\xF3 th\u1EC3 t\u1EADn d\u1EE5ng ph\u01B0\u01A1ng th\u1EE9c "),Eo=l(po,"CODE",{});var qm=s(Eo);Ir=o(qm,"push_to_hub()"),qm.forEach(e),Br=o(po," c\xF3 s\u1EB5n tr\u1EF1c ti\u1EBFp tr\xEAn \u0111\u1ED1i t\u01B0\u1EE3ng "),wo=l(po,"CODE",{});var xm=s(wo);Rr=o(xm,"model"),xm.forEach(e),Kr=o(po,":"),po.forEach(e),Zh=m(t),j(nn.$$.fragment,t),ti=m(t),_e=l(t,"P",{});var Wl=s(_e);Vr=o(Wl,"\u0110i\u1EC1u n\xE0y s\u1EBD t\u1EA1o kho l\u01B0u tr\u1EEF m\u1EDBi "),jo=l(Wl,"CODE",{});var zm=s(jo);Ur=o(zm,"dummy-model"),zm.forEach(e),Yr=o(Wl,` trong h\u1ED3 s\u01A1 c\u1EE7a b\u1EA1n v\xE0 \u0111i\u1EC1n n\xF3 v\xE0o c\xE1c t\u1EC7p m\xF4 h\xECnh c\u1EE7a b\u1EA1n.
L\xE0m t\u01B0\u01A1ng t\u1EF1 v\u1EDBi tokenizer \u0111\u1EC3 t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p c\xF3 s\u1EB5n trong kho l\u01B0u tr\u1EEF n\xE0y:`),Wl.forEach(e),ei=m(t),j(cn.$$.fragment,t),ni=m(t),be=l(t,"P",{});var Jl=s(be);Xr=o(Jl,"N\u1EBFu b\u1EA1n thu\u1ED9c m\u1ED9t t\u1ED5 ch\u1EE9c, ch\u1EC9 c\u1EA7n ch\u1EC9 \u0111\u1ECBnh tham s\u1ED1 "),Po=l(Jl,"CODE",{});var Dm=s(Po);Qr=o(Dm,"organization"),Dm.forEach(e),Wr=o(Jl," \u0111\u1EC3 t\u1EA3i l\xEAn kh\xF4ng gian t\xEAn c\u1EE7a t\u1ED5 ch\u1EE9c \u0111\xF3:"),Jl.forEach(e),ci=m(t),j(on.$$.fragment,t),oi=m(t),ve=l(t,"P",{});var Zl=s(ve);Jr=o(Zl,"N\u1EBFu b\u1EA1n mu\u1ED1n s\u1EED d\u1EE5ng m\u1ED9t token Hugging Face c\u1EE5 th\u1EC3, b\u1EA1n c\u0169ng c\xF3 th\u1EC3 ch\u1EC9 \u0111\u1ECBnh n\xF3 th\xF4ng qua "),Co=l(Zl,"CODE",{});var Am=s(Co);Zr=o(Am,"push_to_hub()"),Am.forEach(e),ts=o(Zl,":"),Zl.forEach(e),hi=m(t),j(hn.$$.fragment,t),ii=m(t),ke=l(t,"P",{});var tr=s(ke);es=o(tr,"Gi\u1EDD h\xE3y \u0111i t\u1EDBi Model Hub \u0111\u1EC3 t\xECm m\xF4 h\xECnh m\u1EDBi \u0111\u01B0\u1EE3c t\u1EA3i l\xEAn c\u1EE7a b\u1EA1n: "),To=l(tr,"EM",{});var Om=s(To);ln=l(Om,"A",{href:!0,rel:!0});var Mm=s(ln);ns=o(Mm,"https://huggingface.co/user-or-organization/dummy-model"),Mm.forEach(e),Om.forEach(e),cs=o(tr,"."),tr.forEach(e),li=m(t),yc=l(t,"P",{});var Nm=s(yc);os=o(Nm,"Nh\u1EA5p v\xE0o tab \u201CFiles and versions\u201D (\u201CT\u1EC7p v\xE0 phi\xEAn b\u1EA3n\u201D) v\xE0 b\u1EA1n s\u1EBD th\u1EA5y c\xE1c t\u1EC7p hi\u1EC3n th\u1ECB trong \u1EA3nh ch\u1EE5p m\xE0n h\xECnh sau:"),Nm.forEach(e),ri=m(t),se.l(t),$c=m(t),j(ye.$$.fragment,t),si=m(t),Vt=l(t,"P",{});var uo=s(Vt);hs=o(uo,"Nh\u01B0 b\u1EA1n \u0111\xE3 th\u1EA5y, ph\u01B0\u01A1ng th\u1EE9c "),qo=l(uo,"CODE",{});var Sm=s(qo);is=o(Sm,"push_to_hub()"),Sm.forEach(e),ls=o(uo," nh\u1EADn m\u1ED9t v\xE0i tham s\u1ED1, gi\xFAp b\u1EA1n c\xF3 th\u1EC3 t\u1EA3i l\xEAn kh\xF4ng gian t\xEAn t\u1ED5 ch\u1EE9c ho\u1EB7c kho l\u01B0u tr\u1EEF c\u1EE5 th\u1EC3 ho\u1EB7c s\u1EED d\u1EE5ng token API kh\xE1c. Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn xem th\xF4ng s\u1ED1 k\u1EF9 thu\u1EADt ph\u01B0\u01A1ng ph\xE1p c\xF3 s\u1EB5n tr\u1EF1c ti\u1EBFp trong "),rn=l(uo,"A",{href:!0,rel:!0});var Hm=s(rn);rs=o(Hm,"\u{1F917} t\xE0i li\u1EC7u v\u1EC1 Transformers"),Hm.forEach(e),ss=o(uo," \u0111\u1EC3 bi\u1EBFt nh\u1EEFng g\xEC ta c\xF3 th\u1EC3 l\xE0m."),uo.forEach(e),ai=m(t),bt=l(t,"P",{});var Ue=s(bt);as=o(Ue,"Ph\u01B0\u01A1ng th\u1EE9c "),xo=l(Ue,"CODE",{});var Fm=s(xo);ps=o(Fm,"push_to_hub()"),Fm.forEach(e),us=o(Ue," \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3 b\u1EDFi g\xF3i Python "),sn=l(Ue,"A",{href:!0,rel:!0});var Lm=s(sn);zo=l(Lm,"CODE",{});var Gm=s(zo);ms=o(Gm,"huggingface_hub"),Gm.forEach(e),Lm.forEach(e),fs=o(Ue,", cung c\u1EA5p m\u1ED9t API tr\u1EF1c ti\u1EBFp \u0111\u1EBFn Hugging Face Hub. N\xF3 \u0111\u01B0\u1EE3c t\xEDch h\u1EE3p trong \u{1F917} Transformers v\xE0 m\u1ED9t s\u1ED1 th\u01B0 vi\u1EC7n h\u1ECDc m\xE1y kh\xE1c, nh\u01B0 "),an=l(Ue,"A",{href:!0,rel:!0});var Im=s(an);Do=l(Im,"CODE",{});var Bm=s(Do);gs=o(Bm,"allenlp"),Bm.forEach(e),Im.forEach(e),ds=o(Ue,". M\u1EB7c d\xF9 ch\xFAng t\xF4i t\u1EADp trung v\xE0o t\xEDch h\u1EE3p \u{1F917} Transformers trong ch\u01B0\u01A1ng n\xE0y, vi\u1EC7c t\xEDch h\u1EE3p n\xF3 v\xE0o m\xE3 ho\u1EB7c th\u01B0 vi\u1EC7n c\u1EE7a ri\xEAng b\u1EA1n r\u1EA5t \u0111\u01A1n gi\u1EA3n."),Ue.forEach(e),pi=m(t),Ec=l(t,"P",{});var Rm=s(Ec);_s=o(Rm,"Chuy\u1EC3n \u0111\u1EBFn ph\u1EA7n cu\u1ED1i c\xF9ng \u0111\u1EC3 xem c\xE1ch t\u1EA3i t\u1EC7p l\xEAn kho l\u01B0u tr\u1EEF m\u1EDBi t\u1EA1o c\u1EE7a b\u1EA1n!"),Rm.forEach(e),ui=m(t),ce=l(t,"H2",{class:!0});var er=s(ce);$e=l(er,"A",{id:!0,class:!0,href:!0});var Km=s($e);Ao=l(Km,"SPAN",{});var Vm=s(Ao);j(pn.$$.fragment,Vm),Vm.forEach(e),Km.forEach(e),bs=m(er),wc=l(er,"SPAN",{});var Nu=s(wc);vs=o(Nu,"S\u1EED d\u1EE5ng th\u01B0 vi\u1EC7n Python "),Oo=l(Nu,"CODE",{});var Um=s(Oo);ks=o(Um,"huggingface_hub"),Um.forEach(e),Nu.forEach(e),er.forEach(e),mi=m(t),Ee=l(t,"P",{});var nr=s(Ee);ys=o(nr,"Th\u01B0 vi\u1EC7n Python "),Mo=l(nr,"CODE",{});var Ym=s(Mo);$s=o(Ym,"huggingface_hub"),Ym.forEach(e),Es=o(nr," l\xE0 m\u1ED9t g\xF3i cung c\u1EA5p m\u1ED9t b\u1ED9 c\xF4ng c\u1EE5 cho c\xE1c hub m\xF4 h\xECnh v\xE0 t\u1EADp d\u1EEF li\u1EC7u. N\xF3 cung c\u1EA5p c\xE1c ph\u01B0\u01A1ng th\u1EE9c v\xE0 l\u1EDBp \u0111\u01A1n gi\u1EA3n cho c\xE1c t\xE1c v\u1EE5 ph\u1ED5 bi\u1EBFn nh\u01B0 ti\u1EBFp nh\u1EADn th\xF4ng tin v\u1EC1 kho l\u01B0u tr\u1EEF tr\xEAn hub v\xE0 qu\u1EA3n l\xFD ch\xFAng. N\xF3 cung c\u1EA5p c\xE1c API \u0111\u01A1n gi\u1EA3n ho\u1EA1t \u0111\u1ED9ng tr\xEAn git \u0111\u1EC3 qu\u1EA3n l\xFD n\u1ED9i dung c\u1EE7a c\xE1c kho \u0111\xF3 v\xE0 t\xEDch h\u1EE3p Hub trong c\xE1c d\u1EF1 \xE1n v\xE0 th\u01B0 vi\u1EC7n c\u1EE7a b\u1EA1n."),nr.forEach(e),fi=m(t),vt=l(t,"P",{});var Ye=s(vt);ws=o(Ye,"T\u01B0\u01A1ng t\u1EF1 nh\u01B0 vi\u1EC7c s\u1EED d\u1EE5ng API "),No=l(Ye,"CODE",{});var Xm=s(No);js=o(Xm,"push_to_hub"),Xm.forEach(e),Ps=o(Ye,", \u0111i\u1EC1u n\xE0y s\u1EBD y\xEAu c\u1EA7u b\u1EA1n l\u01B0u token API v\xE0o b\u1ED9 nh\u1EDB cache c\u1EE7a m\xECnh. \u0110\u1EC3 th\u1EF1c hi\u1EC7n vi\u1EC7c n\xE0y, b\u1EA1n s\u1EBD c\u1EA7n s\u1EED d\u1EE5ng l\u1EC7nh "),So=l(Ye,"CODE",{});var Qm=s(So);Cs=o(Qm,"login"),Qm.forEach(e),Ts=o(Ye," t\u1EEB CLI, nh\u01B0 \u0111\xE3 \u0111\u1EC1 c\u1EADp trong ph\u1EA7n tr\u01B0\u1EDBc (m\u1ED9t l\u1EA7n n\u1EEFa, h\xE3y \u0111\u1EA3m b\u1EA3o th\xEAm c\xE1c l\u1EC7nh n\xE0y v\u1EDBi k\xFD t\u1EF1  "),Ho=l(Ye,"CODE",{});var Wm=s(Ho);qs=o(Wm,"!"),Wm.forEach(e),xs=o(Ye," n\u1EBFu ch\u1EA1y tr\xEAn Google Colab):"),Ye.forEach(e),gi=m(t),j(un.$$.fragment,t),di=m(t),we=l(t,"P",{});var cr=s(we);zs=o(cr,"G\xF3i "),Fo=l(cr,"CODE",{});var Jm=s(Fo);Ds=o(Jm,"huggingface_hub"),Jm.forEach(e),As=o(cr," cung c\u1EA5p m\u1ED9t s\u1ED1 ph\u01B0\u01A1ng th\u1EE9c v\xE0 l\u1EDBp h\u1EEFu \xEDch cho m\u1EE5c \u0111\xEDch c\u1EE7a ch\xFAng ta. Th\u1EE9 nh\u1EA5t, c\xF3 m\u1ED9t s\u1ED1 ph\u01B0\u01A1ng ph\xE1p \u0111\u1EC3 qu\u1EA3n l\xFD vi\u1EC7c t\u1EA1o, x\xF3a kho l\u01B0u tr\u1EEF v\xE0 c\xE1c ph\u01B0\u01A1ng ph\xE1p kh\xE1c:"),cr.forEach(e),_i=m(t),j(mn.$$.fragment,t),bi=m(t),je=l(t,"P",{});var or=s(je);Os=o(or,"Ngo\xE0i ra, n\xF3 cung c\u1EA5p l\u1EDBp "),Lo=l(or,"CODE",{});var Zm=s(Lo);Ms=o(Zm,"Repository"),Zm.forEach(e),Ns=o(or," r\u1EA5t m\u1EA1nh m\u1EBD \u0111\u1EC3 qu\u1EA3n l\xFD m\u1ED9t kho l\u01B0u tr\u1EEF c\u1EE5c b\u1ED9. Ch\xFAng ta s\u1EBD kh\xE1m ph\xE1 c\xE1c ph\u01B0\u01A1ng th\u1EE9c n\xE0y v\xE0 l\u1EDBp \u0111\xF3 trong ph\u1EA7n ti\u1EBFp theo \u0111\u1EC3 hi\u1EC3u c\xE1ch t\u1EADn d\u1EE5ng ch\xFAng."),or.forEach(e),vi=m(t),Pe=l(t,"P",{});var hr=s(Pe);Ss=o(hr,"Ph\u01B0\u01A1ng th\u1EE9c "),Go=l(hr,"CODE",{});var tf=s(Go);Hs=o(tf,"create_repo"),tf.forEach(e),Fs=o(hr," c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF m\u1EDBi tr\xEAn hub:"),hr.forEach(e),ki=m(t),j(fn.$$.fragment,t),yi=m(t),Ut=l(t,"P",{});var mo=s(Ut);Ls=o(mo,"Thao t\xE1c n\xE0y s\u1EBD t\u1EA1o kho l\u01B0u tr\u1EEF "),Io=l(mo,"CODE",{});var ef=s(Io);Gs=o(ef,"dummy-model"),ef.forEach(e),Is=o(mo," trong kh\xF4ng gian t\xEAn c\u1EE7a b\u1EA1n. N\u1EBFu mu\u1ED1n, b\u1EA1n c\xF3 th\u1EC3 ch\u1EC9 \u0111\u1ECBnh t\u1ED5 ch\u1EE9c n\xE0o m\xE0 kho l\u01B0u tr\u1EEF s\u1EBD thu\u1ED9c v\u1EC1 b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng tham s\u1ED1 "),Bo=l(mo,"CODE",{});var nf=s(Bo);Bs=o(nf,"organization"),nf.forEach(e),Rs=o(mo,":"),mo.forEach(e),$i=m(t),j(gn.$$.fragment,t),Ei=m(t),Yt=l(t,"P",{});var fo=s(Yt);Ks=o(fo,"Thao t\xE1c n\xE0y s\u1EBD t\u1EA1o kho l\u01B0u tr\u1EEF "),Ro=l(fo,"CODE",{});var cf=s(Ro);Vs=o(cf,"dummy-model"),cf.forEach(e),Us=o(fo," trong kh\xF4ng gian t\xEAn "),Ko=l(fo,"CODE",{});var of=s(Ko);Ys=o(of,"huggingface"),of.forEach(e),Xs=o(fo,`, gi\u1EA3 s\u1EED b\u1EA1n thu\u1ED9c t\u1ED5 ch\u1EE9c \u0111\xF3.
C\xE1c tham s\u1ED1 c\xF3 th\u1EC3 h\u1EEFu \xEDch kh\xE1c l\xE0:`),fo.forEach(e),wi=m(t),Xt=l(t,"UL",{});var go=s(Xt);jc=l(go,"LI",{});var Su=s(jc);Vo=l(Su,"CODE",{});var hf=s(Vo);Qs=o(hf,"private"),hf.forEach(e),Ws=o(Su,", \u0111\u1EC3 ch\u1EC9 \u0111\u1ECBnh xem li\u1EC7u kho l\u01B0u tr\u1EEF c\xF3 n\xEAn hi\u1EC3n th\u1ECB v\u1EDBi nh\u1EEFng ng\u01B0\u1EDDi kh\xE1c hay kh\xF4ng."),Su.forEach(e),Js=m(go),Pc=l(go,"LI",{});var Hu=s(Pc);Uo=l(Hu,"CODE",{});var lf=s(Uo);Zs=o(lf,"token"),lf.forEach(e),ta=o(Hu,", n\u1EBFu b\u1EA1n mu\u1ED1n ghi \u0111\xE8 token \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong b\u1ED9 nh\u1EDB cache c\u1EE7a m\xECnh b\u1EB1ng m\u1ED9t token nh\u1EA5t \u0111\u1ECBnh."),Hu.forEach(e),ea=m(go),at=l(go,"LI",{});var Gt=s(at);Yo=l(Gt,"CODE",{});var rf=s(Yo);na=o(rf,"repo_type"),rf.forEach(e),ca=o(Gt,", n\u1EBFu b\u1EA1n mu\u1ED1n t\u1EA1o "),Xo=l(Gt,"CODE",{});var sf=s(Xo);oa=o(sf,"dataset"),sf.forEach(e),ha=o(Gt,"  ho\u1EB7c "),Qo=l(Gt,"CODE",{});var af=s(Qo);ia=o(af,"space"),af.forEach(e),la=o(Gt," thay v\xEC m\u1ED9t m\xF4 h\xECnh. C\xE1c gi\xE1 tr\u1ECB \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn l\xE0 "),Wo=l(Gt,"CODE",{});var pf=s(Wo);ra=o(pf,'"dataset"'),pf.forEach(e),sa=o(Gt," v\xE0 "),Jo=l(Gt,"CODE",{});var uf=s(Jo);aa=o(uf,'"space"'),uf.forEach(e),pa=o(Gt,"."),Gt.forEach(e),go.forEach(e),ji=m(t),Cc=l(t,"P",{});var mf=s(Cc);ua=o(mf,"Khi kho l\u01B0u tr\u1EEF \u0111\u01B0\u1EE3c t\u1EA1o, ch\xFAng ta n\xEAn th\xEAm t\u1EC7p v\xE0o \u0111\xF3! Chuy\u1EC3n sang ph\u1EA7n ti\u1EBFp theo \u0111\u1EC3 xem ba c\xE1ch c\xF3 th\u1EC3 x\u1EED l\xFD v\u1EA5n \u0111\u1EC1 n\xE0y."),mf.forEach(e),Pi=m(t),oe=l(t,"H2",{class:!0});var ir=s(oe);Ce=l(ir,"A",{id:!0,class:!0,href:!0});var ff=s(Ce);Zo=l(ff,"SPAN",{});var gf=s(Zo);j(dn.$$.fragment,gf),gf.forEach(e),ff.forEach(e),ma=m(ir),th=l(ir,"SPAN",{});var df=s(th);fa=o(df,"S\u1EED d\u1EE5ng giao di\u1EC7n web"),df.forEach(e),ir.forEach(e),Ci=m(t),Tc=l(t,"P",{});var _f=s(Tc);ga=o(_f,"Giao di\u1EC7n web cung c\u1EA5p c\xE1c c\xF4ng c\u1EE5 \u0111\u1EC3 qu\u1EA3n l\xFD kho l\u01B0u tr\u1EEF tr\u1EF1c ti\u1EBFp trong Hub. S\u1EED d\u1EE5ng giao di\u1EC7n n\xE0y, b\u1EA1n c\xF3 th\u1EC3 d\u1EC5 d\xE0ng t\u1EA1o kho l\u01B0u tr\u1EEF, th\xEAm t\u1EC7p (th\u1EADm ch\xED c\u1EA3 t\u1EC7p l\u1EDBn!), Kh\xE1m ph\xE1 c\xE1c m\xF4 h\xECnh, tr\u1EF1c quan h\xF3a c\xE1c \u0111i\u1EC3m kh\xE1c bi\u1EC7t v\xE0 h\u01A1n th\u1EBF n\u1EEFa."),_f.forEach(e),Ti=m(t),Te=l(t,"P",{});var lr=s(Te);da=o(lr,"\u0110\u1EC3 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF m\u1EDBi, h\xE3y truy c\u1EADp "),_n=l(lr,"A",{href:!0,rel:!0});var bf=s(_n);_a=o(bf,"huggingface.co/new"),bf.forEach(e),ba=o(lr,":"),lr.forEach(e),qi=m(t),bn=l(t,"DIV",{class:!0});var vf=s(bn);vn=l(vf,"IMG",{src:!0,alt:!0,width:!0}),vf.forEach(e),xi=m(t),qc=l(t,"P",{});var kf=s(qc);va=o(kf,"\u0110\u1EA7u ti\xEAn, ch\u1EC9 \u0111\u1ECBnh ch\u1EE7 s\u1EDF h\u1EEFu c\u1EE7a kho l\u01B0u tr\u1EEF: \u0111\xE2y c\xF3 th\u1EC3 l\xE0 b\u1EA1n ho\u1EB7c b\u1EA5t k\u1EF3 t\u1ED5 ch\u1EE9c n\xE0o m\xE0 b\u1EA1n li\xEAn k\u1EBFt. N\u1EBFu b\u1EA1n ch\u1ECDn m\u1ED9t t\u1ED5 ch\u1EE9c, m\xF4 h\xECnh s\u1EBD \u0111\u01B0\u1EE3c gi\u1EDBi thi\u1EC7u tr\xEAn trang c\u1EE7a t\u1ED5 ch\u1EE9c v\xE0 m\u1ECDi th\xE0nh vi\xEAn c\u1EE7a t\u1ED5 ch\u1EE9c s\u1EBD c\xF3 kh\u1EA3 n\u0103ng \u0111\xF3ng g\xF3p v\xE0o kho l\u01B0u tr\u1EEF."),kf.forEach(e),zi=m(t),xc=l(t,"P",{});var yf=s(xc);ka=o(yf,"Ti\u1EBFp theo, nh\u1EADp t\xEAn m\xF4 h\xECnh c\u1EE7a b\u1EA1n. \u0110\xE2y c\u0169ng s\u1EBD l\xE0 t\xEAn c\u1EE7a kho l\u01B0u tr\u1EEF. Cu\u1ED1i c\xF9ng, b\u1EA1n c\xF3 th\u1EC3 ch\u1EC9 \u0111\u1ECBnh xem b\u1EA1n mu\u1ED1n m\xF4 h\xECnh c\u1EE7a m\xECnh l\xE0 c\xF4ng khai hay ri\xEAng t\u01B0. C\xE1c m\xF4 h\xECnh t\u01B0 nh\xE2n \u0111\u01B0\u1EE3c \u1EA9n kh\u1ECFi ch\u1EBF \u0111\u1ED9 xem c\xF4ng khai."),yf.forEach(e),Di=m(t),zc=l(t,"P",{});var $f=s(zc);ya=o($f,"Sau khi t\u1EA1o kho m\xF4 h\xECnh, b\u1EA1n s\u1EBD th\u1EA5y m\u1ED9t trang nh\u01B0 sau:"),$f.forEach(e),Ai=m(t),kn=l(t,"DIV",{class:!0});var Ef=s(kn);yn=l(Ef,"IMG",{src:!0,alt:!0,width:!0}),Ef.forEach(e),Oi=m(t),Dc=l(t,"P",{});var wf=s(Dc);$a=o(wf,"\u0110\xE2y l\xE0 n\u01A1i m\xF4 h\xECnh c\u1EE7a b\u1EA1n s\u1EBD \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF. \u0110\u1EC3 b\u1EAFt \u0111\u1EA7u \u0111i\u1EC1n n\xF3, b\u1EA1n c\xF3 th\u1EC3 th\xEAm t\u1EC7p README tr\u1EF1c ti\u1EBFp t\u1EEB giao di\u1EC7n web."),wf.forEach(e),Mi=m(t),$n=l(t,"DIV",{class:!0});var jf=s($n);En=l(jf,"IMG",{src:!0,alt:!0,width:!0}),jf.forEach(e),Ni=m(t),Ac=l(t,"P",{});var Pf=s(Ac);Ea=o(Pf,"T\u1EC7p README n\u1EB1m trong Markdown - h\xE3y tho\u1EA3i m\xE1i s\u1EED d\u1EE5ng n\xF3! Ph\u1EA7n th\u1EE9 ba c\u1EE7a ch\u01B0\u01A1ng n\xE0y d\xE0nh ri\xEAng cho vi\u1EC7c x\xE2y d\u1EF1ng m\u1ED9t th\u1EBB m\xF4 h\xECnh. \u0110\xE2y l\xE0 nh\u1EEFng \u0111i\u1EC1u quan tr\u1ECDng h\xE0ng \u0111\u1EA7u trong vi\u1EC7c mang l\u1EA1i gi\xE1 tr\u1ECB cho m\xF4 h\xECnh c\u1EE7a b\u1EA1n, v\xEC ch\xFAng l\xE0 n\u01A1i b\u1EA1n n\xF3i cho ng\u01B0\u1EDDi kh\xE1c bi\u1EBFt n\xF3 c\xF3 th\u1EC3 l\xE0m g\xEC."),Pf.forEach(e),Si=m(t),Qt=l(t,"P",{});var _o=s(Qt);wa=o(_o,"N\u1EBFu b\u1EA1n nh\xECn v\xE0o tab \u201CFiles and versions\u201D hay \u201CT\u1EC7p v\xE0 phi\xEAn b\u1EA3n\u201D, b\u1EA1n s\u1EBD th\u1EA5y r\u1EB1ng ch\u01B0a c\xF3 nhi\u1EC1u t\u1EC7p \u1EDF \u0111\xF3 - ch\u1EC9 c\xF3 "),eh=l(_o,"EM",{});var Cf=s(eh);ja=o(Cf,"README.md"),Cf.forEach(e),Pa=o(_o,"  b\u1EA1n v\u1EEBa t\u1EA1o v\xE0 t\u1EC7p "),nh=l(_o,"EM",{});var Tf=s(nh);Ca=o(Tf,".gitattributes"),Tf.forEach(e),Ta=o(_o," theo d\xF5i c\xE1c t\u1EC7p l\u1EDBn."),_o.forEach(e),Hi=m(t),wn=l(t,"DIV",{class:!0});var qf=s(wn);jn=l(qf,"IMG",{src:!0,alt:!0,width:!0}),qf.forEach(e),Fi=m(t),Oc=l(t,"P",{});var xf=s(Oc);qa=o(xf,"Ti\u1EBFp theo, ch\xFAng ta s\u1EBD xem x\xE9t c\xE1ch th\xEAm m\u1ED9t s\u1ED1 t\u1EC7p m\u1EDBi."),xf.forEach(e),Li=m(t),he=l(t,"H2",{class:!0});var rr=s(he);qe=l(rr,"A",{id:!0,class:!0,href:!0});var zf=s(qe);ch=l(zf,"SPAN",{});var Df=s(ch);j(Pn.$$.fragment,Df),Df.forEach(e),zf.forEach(e),xa=m(rr),oh=l(rr,"SPAN",{});var Af=s(oh);za=o(Af,"T\u1EA3i c\xE1c t\u1EC7p m\xF4 h\xECnh"),Af.forEach(e),rr.forEach(e),Gi=m(t),xe=l(t,"P",{});var sr=s(xe);Da=o(sr,"H\u1EC7 th\u1ED1ng qu\u1EA3n l\xFD t\u1EC7p tr\xEAn Hugging Face Hub d\u1EF1a tr\xEAn git cho c\xE1c t\u1EC7p th\xF4ng th\u01B0\u1EDDng v\xE0 git-lfs (vi\u1EBFt t\u1EAFt c\u1EE7a "),Cn=l(sr,"A",{href:!0,rel:!0});var Of=s(Cn);Aa=o(Of,"Git Large File Storage"),Of.forEach(e),Oa=o(sr,") cho c\xE1c t\u1EC7p l\u1EDBn h\u01A1n ."),sr.forEach(e),Ii=m(t),ze=l(t,"P",{});var ar=s(ze);Ma=o(ar,"Trong ph\u1EA7n ti\u1EBFp theo, ch\xFAng ta s\u1EBD xem x\xE9t ba c\xE1ch kh\xE1c nhau \u0111\u1EC3 t\u1EA3i t\u1EC7p l\xEAn Hub: th\xF4ng qua "),hh=l(ar,"CODE",{});var Mf=s(hh);Na=o(Mf,"huggingface_hub"),Mf.forEach(e),Sa=o(ar," v\xE0 th\xF4ng qua l\u1EC7nh git."),ar.forEach(e),Bi=m(t),ie=l(t,"H3",{class:!0});var pr=s(ie);De=l(pr,"A",{id:!0,class:!0,href:!0});var Nf=s(De);ih=l(Nf,"SPAN",{});var Sf=s(ih);j(Tn.$$.fragment,Sf),Sf.forEach(e),Nf.forEach(e),Ha=m(pr),Mc=l(pr,"SPAN",{});var Fu=s(Mc);Fa=o(Fu,"Ph\u01B0\u01A1ng ph\xE1p "),lh=l(Fu,"CODE",{});var Hf=s(lh);La=o(Hf,"upload_file"),Hf.forEach(e),Fu.forEach(e),pr.forEach(e),Ri=m(t),Ae=l(t,"P",{});var ur=s(Ae);Ga=o(ur,"S\u1EED d\u1EE5ng "),rh=l(ur,"CODE",{});var Ff=s(rh);Ia=o(Ff,"upload_file"),Ff.forEach(e),Ba=o(ur,` kh\xF4ng y\xEAu c\u1EA7u c\xE0i \u0111\u1EB7t git v\xE0 git-lfs tr\xEAn h\u1EC7 th\u1ED1ng c\u1EE7a b\u1EA1n. N\xF3 \u0111\u1EA9y c\xE1c t\u1EC7p tr\u1EF1c ti\u1EBFp \u0111\u1EBFn \u{1F917} Hub b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng c\xE1c y\xEAu c\u1EA7u HTTP POST. M\u1ED9t h\u1EA1n ch\u1EBF c\u1EE7a ph\u01B0\u01A1ng ph\xE1p n\xE0y l\xE0 n\xF3 kh\xF4ng x\u1EED l\xFD c\xE1c t\u1EC7p c\xF3 k\xEDch th\u01B0\u1EDBc l\u1EDBn h\u01A1n 5GB.
N\u1EBFu t\u1EC7p c\u1EE7a b\u1EA1n l\u1EDBn h\u01A1n 5GB, vui l\xF2ng l\xE0m theo hai ph\u01B0\u01A1ng ph\xE1p kh\xE1c \u0111\u01B0\u1EE3c n\xEAu chi ti\u1EBFt b\xEAn d\u01B0\u1EDBi.`),ur.forEach(e),Ki=m(t),Nc=l(t,"P",{});var Lf=s(Nc);Ra=o(Lf,"API c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng nh\u01B0 sau:"),Lf.forEach(e),Vi=m(t),j(qn.$$.fragment,t),Ui=m(t),pt=l(t,"P",{});var te=s(pt);Ka=o(te,"Thao t\xE1c n\xE0y s\u1EBD t\u1EA3i t\u1EC7p "),sh=l(te,"CODE",{});var Gf=s(sh);Va=o(Gf,"config.json"),Gf.forEach(e),Ua=o(te," c\xF3 s\u1EB5n t\u1EA1i "),ah=l(te,"CODE",{});var If=s(ah);Ya=o(If,"<path_to_file>"),If.forEach(e),Xa=o(te," v\xE0o th\u01B0 m\u1EE5c g\u1ED1c c\u1EE7a kho l\u01B0u tr\u1EEF l\xE0  "),ph=l(te,"CODE",{});var Bf=s(ph);Qa=o(Bf,"config.json"),Bf.forEach(e),Wa=o(te,", v\xE0o kho l\u01B0u tr\u1EEF "),uh=l(te,"CODE",{});var Rf=s(uh);Ja=o(Rf,"dummy-model"),Rf.forEach(e),Za=o(te,`.
C\xE1c tham s\u1ED1 c\xF3 th\u1EC3 h\u1EEFu \xEDch kh\xE1c l\xE0:`),te.forEach(e),Yi=m(t),Oe=l(t,"UL",{});var mr=s(Oe);Sc=l(mr,"LI",{});var Lu=s(Sc);mh=l(Lu,"CODE",{});var Kf=s(mh);tp=o(Kf,"token"),Kf.forEach(e),ep=o(Lu,", n\u1EBFu b\u1EA1n mu\u1ED1n ghi \u0111\xE8 token \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong b\u1ED9 nh\u1EDB cache c\u1EE7a m\xECnh b\u1EB1ng m\u1ED9t token nh\u1EA5t \u0111\u1ECBnh."),Lu.forEach(e),np=m(mr),ut=l(mr,"LI",{});var It=s(ut);fh=l(It,"CODE",{});var Vf=s(fh);cp=o(Vf,"repo_type"),Vf.forEach(e),op=o(It,", n\u1EBFu b\u1EA1n mu\u1ED1n t\u1EA3i l\xEAn "),gh=l(It,"CODE",{});var Uf=s(gh);hp=o(Uf,"dataset"),Uf.forEach(e),ip=o(It," ho\u1EB7c "),dh=l(It,"CODE",{});var Yf=s(dh);lp=o(Yf,"space"),Yf.forEach(e),rp=o(It," thay v\xEC m\u1ED9t m\xF4 h\xECnh. C\xE1c gi\xE1 tr\u1ECB \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn l\xE0 "),_h=l(It,"CODE",{});var Xf=s(_h);sp=o(Xf,'"dataset"'),Xf.forEach(e),ap=o(It," v\xE0 "),bh=l(It,"CODE",{});var Qf=s(bh);pp=o(Qf,'"space"'),Qf.forEach(e),up=o(It,"."),It.forEach(e),mr.forEach(e),Xi=m(t),le=l(t,"H3",{class:!0});var fr=s(le);Me=l(fr,"A",{id:!0,class:!0,href:!0});var Wf=s(Me);vh=l(Wf,"SPAN",{});var Jf=s(vh);j(xn.$$.fragment,Jf),Jf.forEach(e),Wf.forEach(e),mp=m(fr),Hc=l(fr,"SPAN",{});var Gu=s(Hc);fp=o(Gu,"L\u1EDBp "),kh=l(Gu,"CODE",{});var Zf=s(kh);gp=o(Zf,"Repository"),Zf.forEach(e),Gu.forEach(e),fr.forEach(e),Qi=m(t),Ne=l(t,"P",{});var gr=s(Ne);dp=o(gr,"L\u1EDBp "),yh=l(gr,"CODE",{});var tg=s(yh);_p=o(tg,"Repository"),tg.forEach(e),bp=o(gr," qu\u1EA3n l\xFD m\u1ED9t kho l\u01B0u tr\u1EEF c\u1EE5c b\u1ED9 theo c\xE1ch gi\u1ED1ng nh\u01B0 git. N\xF3 t\xF3m t\u1EAFt h\u1EA7u h\u1EBFt c\xE1c \u0111i\u1EC3m kh\xF3 kh\u0103n m\xE0 ng\u01B0\u1EDDi ta c\xF3 th\u1EC3 c\xF3 v\u1EDBi git \u0111\u1EC3 cung c\u1EA5p t\u1EA5t c\u1EA3 c\xE1c t\xEDnh n\u0103ng m\xE0 ch\xFAng t\xF4i y\xEAu c\u1EA7u."),gr.forEach(e),Wi=m(t),Se=l(t,"P",{});var dr=s(Se);vp=o(dr,"S\u1EED d\u1EE5ng l\u1EDBp n\xE0y y\xEAu c\u1EA7u ph\u1EA3i c\xE0i \u0111\u1EB7t git v\xE0 git-lfs, v\xEC v\u1EADy h\xE3y \u0111\u1EA3m b\u1EA3o r\u1EB1ng b\u1EA1n \u0111\xE3 c\xE0i \u0111\u1EB7t git-lfs (xem "),zn=l(dr,"A",{href:!0,rel:!0});var eg=s(zn);kp=o(eg,"t\u1EA1i \u0111\xE2y"),eg.forEach(e),yp=o(dr," \u0111\u1EC3 bi\u1EBFt h\u01B0\u1EDBng d\u1EABn c\xE0i \u0111\u1EB7t) v\xE0 thi\u1EBFt l\u1EADp tr\u01B0\u1EDBc khi b\u1EAFt \u0111\u1EA7u."),dr.forEach(e),Ji=m(t),Fc=l(t,"P",{});var ng=s(Fc);$p=o(ng,"\u0110\u1EC3 b\u1EAFt \u0111\u1EA7u ch\u01A1i v\u1EDBi kho l\u01B0u tr\u1EEF ch\xFAng ta v\u1EEBa t\u1EA1o, ch\xFAng ta c\xF3 th\u1EC3 b\u1EAFt \u0111\u1EA7u b\u1EB1ng c\xE1ch kh\u1EDFi t\u1EA1o n\xF3 v\xE0o m\u1ED9t th\u01B0 m\u1EE5c c\u1EE5c b\u1ED9 b\u1EB1ng c\xE1ch sao ch\xE9p kho l\u01B0u tr\u1EEF t\u1EEB xa:"),ng.forEach(e),Zi=m(t),j(Dn.$$.fragment,t),tl=m(t),kt=l(t,"P",{});var Xe=s(kt);Ep=o(Xe,"Thao t\xE1c n\xE0y \u0111\xE3 t\u1EA1o th\u01B0 m\u1EE5c "),$h=l(Xe,"CODE",{});var cg=s($h);wp=o(cg,"<path_to_dummy_folder>"),cg.forEach(e),jp=o(Xe," trong th\u01B0 m\u1EE5c l\xE0m vi\u1EC7c c\u1EE7a ch\xFAng ta. Th\u01B0 m\u1EE5c n\xE0y ch\u1EC9 ch\u1EE9a t\u1EC7p "),Eh=l(Xe,"CODE",{});var og=s(Eh);Pp=o(og,".gitattributes"),og.forEach(e),Cp=o(Xe," v\xEC \u0111\xF3 l\xE0 t\u1EC7p duy nh\u1EA5t \u0111\u01B0\u1EE3c t\u1EA1o khi kh\u1EDFi t\u1EA1o kho l\u01B0u tr\u1EEF th\xF4ng qua "),wh=l(Xe,"CODE",{});var hg=s(wh);Tp=o(hg,"create_repo"),hg.forEach(e),qp=o(Xe,"."),Xe.forEach(e),el=m(t),Lc=l(t,"P",{});var ig=s(Lc);xp=o(ig,"T\u1EEB th\u1EDDi \u0111i\u1EC3m n\xE0y, ch\xFAng ta c\xF3 th\u1EC3 t\u1EADn d\u1EE5ng m\u1ED9t s\u1ED1 ph\u01B0\u01A1ng ph\xE1p git truy\u1EC1n th\u1ED1ng:"),ig.forEach(e),nl=m(t),j(An.$$.fragment,t),cl=m(t),yt=l(t,"P",{});var Qe=s(yt);zp=o(Qe,"V\xE0 nh\u1EEFng c\xE1i kh\xE1c! Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn xem t\xE0i li\u1EC7u v\u1EC1 "),jh=l(Qe,"CODE",{});var lg=s(jh);Dp=o(lg,"Repository"),lg.forEach(e),Ap=o(Qe," hay "),Ph=l(Qe,"CODE",{});var rg=s(Ph);Op=o(rg,"Kho l\u01B0u tr\u1EEF"),rg.forEach(e),Mp=o(Qe," c\xF3 s\u1EB5n "),On=l(Qe,"A",{href:!0,rel:!0});var sg=s(On);Np=o(sg,"t\u1EA1i \u0111\xE2y"),sg.forEach(e),Sp=o(Qe," \u0111\u1EC3 bi\u1EBFt t\u1ED5ng quan v\u1EC1 t\u1EA5t c\u1EA3 c\xE1c ph\u01B0\u01A1ng ph\xE1p."),Qe.forEach(e),ol=m(t),Gc=l(t,"P",{});var ag=s(Gc);Hp=o(ag,"Hi\u1EC7n t\u1EA1i, ch\xFAng ta c\xF3 m\u1ED9t m\xF4 h\xECnh v\xE0 m\u1ED9t tokenizer m\xE0 ta mu\u1ED1n \u0111\u01B0a v\xE0o Hub. Ch\xFAng ta \u0111\xE3 nh\xE2n b\u1EA3n th\xE0nh c\xF4ng kho l\u01B0u tr\u1EEF, do \u0111\xF3 ch\xFAng t\xF4i c\xF3 th\u1EC3 l\u01B0u c\xE1c t\u1EC7p trong kho l\u01B0u tr\u1EEF \u0111\xF3."),ag.forEach(e),hl=m(t),Ic=l(t,"P",{});var pg=s(Ic);Fp=o(pg,"Tr\u01B0\u1EDBc ti\xEAn, ch\xFAng t\xF4i \u0111\u1EA3m b\u1EA3o r\u1EB1ng b\u1EA3n sao c\u1EE5c b\u1ED9 \u0111\u01B0\u1EE3c c\u1EADp nh\u1EADt b\u1EB1ng c\xE1ch k\xE9o v\u1EC1 nh\u1EEFng thay \u0111\u1ED5i m\u1EDBi nh\u1EA5t:"),pg.forEach(e),il=m(t),j(Mn.$$.fragment,t),ll=m(t),Bc=l(t,"P",{});var ug=s(Bc);Lp=o(ug,"Sau \u0111\xF3, ta l\u01B0u m\xF4 h\xECnh v\xE0 t\u1EC7p tokenizer:"),ug.forEach(e),rl=m(t),j(Nn.$$.fragment,t),sl=m(t),Sn=l(t,"P",{});var Iu=s(Sn);Ch=l(Iu,"CODE",{});var mg=s(Ch);Gp=o(mg,"<path_to_dummy_folder>"),mg.forEach(e),Ip=o(Iu," b\xE2y gi\u1EDD ch\u1EE9a t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p m\xF4 h\xECnh v\xE0 tokenizer. Ch\xFAng ta th\u1EF1c hi\u1EC7n theo quy tr\xECnh l\xE0m vi\u1EC7c git th\xF4ng th\u01B0\u1EDDng b\u1EB1ng c\xE1ch th\xEAm t\u1EC7p v\xE0o khu v\u1EF1c l\u01B0u tr\u1EEF thay \u0111\u1ED5i, cam k\u1EBFt ch\xFAng v\xE0 \u0111\u1EA9y ch\xFAng v\xE0o hub:"),Iu.forEach(e),al=m(t),j(Hn.$$.fragment,t),pl=m(t),Rc=l(t,"P",{});var fg=s(Rc);Bp=o(fg,"Xin ch\xFAc m\u1EEBng! B\u1EA1n v\u1EEBa \u0111\u1EA9y c\xE1c t\u1EC7p \u0111\u1EA7u ti\xEAn c\u1EE7a m\xECnh l\xEAn Hub."),fg.forEach(e),ul=m(t),re=l(t,"H3",{class:!0});var _r=s(re);He=l(_r,"A",{id:!0,class:!0,href:!0});var gg=s(He);Th=l(gg,"SPAN",{});var dg=s(Th);j(Fn.$$.fragment,dg),dg.forEach(e),gg.forEach(e),Rp=m(_r),qh=l(_r,"SPAN",{});var _g=s(qh);Kp=o(_g,"Ph\u01B0\u01A1ng ph\xE1p d\u1EF1a tr\xEAn git"),_g.forEach(e),_r.forEach(e),ml=m(t),Kc=l(t,"P",{});var bg=s(Kc);Vp=o(bg,"\u0110\xE2y l\xE0 c\xE1ch ti\u1EBFp c\u1EADn r\u1EA5t \u0111\u01A1n gi\u1EA3n \u0111\u1EC3 t\u1EA3i t\u1EC7p l\xEAn: ch\xFAng ta s\u1EBD l\xE0m tr\u1EF1c ti\u1EBFp v\u1EDBi git v\xE0 git-lfs. H\u1EA7u h\u1EBFt kh\xF3 kh\u0103n \u0111\xE3 \u0111\u01B0\u1EE3c lo\u1EA1i b\u1ECF b\u1EDFi c\xE1c c\xE1ch ti\u1EBFp c\u1EADn tr\u01B0\u1EDBc \u0111\xE2y, nh\u01B0ng c\xF3 m\u1ED9t s\u1ED1 l\u01B0u \xFD v\u1EDBi ph\u01B0\u01A1ng ph\xE1p ti\u1EBFp theo, v\xEC v\u1EADy ch\xFAng ta s\u1EBD theo m\u1ED9t tr\u01B0\u1EDDng h\u1EE3p s\u1EED d\u1EE5ng ph\u1EE9c t\u1EA1p h\u01A1n."),bg.forEach(e),fl=m(t),Fe=l(t,"P",{});var br=s(Fe);Up=o(br,"S\u1EED d\u1EE5ng l\u1EDBp n\xE0y y\xEAu c\u1EA7u ph\u1EA3i c\xE0i \u0111\u1EB7t git v\xE0 git-lfs, v\xEC v\u1EADy h\xE3y \u0111\u1EA3m b\u1EA3o b\u1EA1n \u0111\xE3 c\xE0i \u0111\u1EB7t "),Ln=l(br,"A",{href:!0,rel:!0});var vg=s(Ln);Yp=o(vg,"git-lfs"),vg.forEach(e),Xp=o(br," (xem h\u01B0\u1EDBng d\u1EABn c\xE0i \u0111\u1EB7t t\u1EA1i \u0111\xE2y) v\xE0 c\xE0i \u0111\u1EB7t tr\u01B0\u1EDBc khi b\u1EAFt \u0111\u1EA7u ."),br.forEach(e),gl=m(t),Vc=l(t,"P",{});var kg=s(Vc);Qp=o(kg,"Tr\u01B0\u1EDBc ti\xEAn, h\xE3y b\u1EAFt \u0111\u1EA7u b\u1EB1ng c\xE1ch kh\u1EDFi t\u1EA1o git-lfs:"),kg.forEach(e),dl=m(t),j(Gn.$$.fragment,t),_l=m(t),j(In.$$.fragment,t),bl=m(t),Uc=l(t,"P",{});var yg=s(Uc);Wp=o(yg,"Sau khi ho\xE0n t\u1EA5t, b\u01B0\u1EDBc \u0111\u1EA7u ti\xEAn l\xE0 sao ch\xE9p kho l\u01B0u tr\u1EEF m\xF4 h\xECnh c\u1EE7a b\u1EA1n:"),yg.forEach(e),vl=m(t),j(Bn.$$.fragment,t),kl=m(t),Wt=l(t,"P",{});var bo=s(Wt);Jp=o(bo,"T\xEAn ng\u01B0\u1EDDi d\xF9ng c\u1EE7a t\xF4i l\xE0 "),xh=l(bo,"CODE",{});var $g=s(xh);Zp=o($g,"lysandre"),$g.forEach(e),tu=o(bo," v\xE0 ta \u0111\xE3 s\u1EED d\u1EE5ng t\xEAn m\xF4 h\xECnh l\xE0 "),zh=l(bo,"CODE",{});var Eg=s(zh);eu=o(Eg,"dummy"),Eg.forEach(e),nu=o(bo,", v\xEC v\u1EADy l\u1EC7nh k\u1EBFt th\xFAc nh\u01B0 sau:"),bo.forEach(e),yl=m(t),j(Rn.$$.fragment,t),$l=m(t),Jt=l(t,"P",{});var vo=s(Jt);cu=o(vo,"B\xE2y gi\u1EDD ta c\xF3 m\u1ED9t th\u01B0 m\u1EE5c t\xEAn "),Dh=l(vo,"EM",{});var wg=s(Dh);ou=o(wg,"dummy"),wg.forEach(e),hu=o(vo," trong th\u01B0 m\u1EE5c l\xE0m vi\u1EC7c c\u1EE7a m\xECnh. Ta c\xF3 th\u1EC3 "),Ah=l(vo,"CODE",{});var jg=s(Ah);iu=o(jg,"cd"),jg.forEach(e),lu=o(vo," v\xE0o th\u01B0 m\u1EE5c v\xE0 xem n\u1ED9i dung:"),vo.forEach(e),El=m(t),j(Kn.$$.fragment,t),wl=m(t),j(Vn.$$.fragment,t),jl=m(t),mt=l(t,"P",{});var ee=s(mt);ru=o(ee,"N\u1EBFu b\u1EA1n v\u1EEBa t\u1EA1o kho l\u01B0u tr\u1EEF c\u1EE7a m\xECnh b\u1EB1ng ph\u01B0\u01A1ng ph\xE1p "),Oh=l(ee,"CODE",{});var Pg=s(Oh);su=o(Pg,"create_repo"),Pg.forEach(e),au=o(ee," c\u1EE7a Hugging Face Hub, th\xEC th\u01B0 m\u1EE5c n\xE0y ch\u1EC9 n\xEAn ch\u1EE9a t\u1EC7p "),Mh=l(ee,"CODE",{});var Cg=s(Mh);pu=o(Cg,".gitattributes"),Cg.forEach(e),uu=o(ee," \u1EA9n. N\u1EBFu b\u1EA1n \u0111\xE3 l\xE0m theo h\u01B0\u1EDBng d\u1EABn trong ph\u1EA7n tr\u01B0\u1EDBc \u0111\u1EC3 t\u1EA1o kho l\u01B0u tr\u1EEF b\u1EB1ng giao di\u1EC7n web, th\xEC th\u01B0 m\u1EE5c ph\u1EA3i ch\u1EE9a m\u1ED9t t\u1EC7p "),Nh=l(ee,"EM",{});var Tg=s(Nh);mu=o(Tg,"README.md"),Tg.forEach(e),fu=o(ee," duy nh\u1EA5t c\xF9ng v\u1EDBi t\u1EC7p "),Sh=l(ee,"CODE",{});var qg=s(Sh);gu=o(qg,".gitattributes"),qg.forEach(e),du=o(ee," \u1EA9n, nh\u01B0 \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB \u1EDF \u0111\xE2y."),ee.forEach(e),Pl=m(t),Le=l(t,"P",{});var vr=s(Le);_u=o(vr,"Vi\u1EC7c th\xEAm m\u1ED9t t\u1EC7p c\xF3 k\xEDch th\u01B0\u1EDBc th\xF4ng th\u01B0\u1EDDng, ch\u1EB3ng h\u1EA1n nh\u01B0 t\u1EC7p c\u1EA5u h\xECnh, t\u1EC7p t\u1EEB v\u1EF1ng ho\u1EB7c v\u1EC1 c\u01A1 b\u1EA3n l\xE0 b\u1EA5t k\u1EF3 t\u1EC7p n\xE0o d\u01B0\u1EDBi v\xE0i megabyte, \u0111\u01B0\u1EE3c th\u1EF1c hi\u1EC7n ch\xEDnh x\xE1c nh\u01B0 c\xE1ch ng\u01B0\u1EDDi ta l\xE0m trong b\u1EA5t k\u1EF3 h\u1EC7 th\u1ED1ng d\u1EF1a tr\xEAn git n\xE0o. Tuy nhi\xEAn, c\xE1c t\u1EC7p l\u1EDBn h\u01A1n ph\u1EA3i \u0111\u01B0\u1EE3c \u0111\u0103ng k\xFD th\xF4ng qua git-lfs \u0111\u1EC3 \u0111\u1EA9y ch\xFAng l\xEAn "),Hh=l(vr,"EM",{});var xg=s(Hh);bu=o(xg,"huggingface.co"),xg.forEach(e),vu=o(vr,"."),vr.forEach(e),Cl=m(t),Yc=l(t,"P",{});var zg=s(Yc);ku=o(zg,"H\xE3y quay l\u1EA1i Python m\u1ED9t ch\xFAt \u0111\u1EC3 t\u1EA1o m\u1ED9t m\xF4 h\xECnh v\xE0 tr\xECnh tokenize m\xE0 ch\xFAng ta mu\u1ED1n cam k\u1EBFt v\u1EDBi kho l\u01B0u tr\u1EEF dummy c\u1EE7a ch\xFAng ta:"),zg.forEach(e),Tl=m(t),Dt.l(t),Xc=m(t),Ge=l(t,"P",{});var kr=s(Ge);yu=o(kr,"B\xE2y gi\u1EDD ch\xFAng ta \u0111\xE3 l\u01B0u m\u1ED9t s\u1ED1 t\u1EA1o t\xE1c m\xF4 h\xECnh v\xE0 tokenizer, h\xE3y xem x\xE9t l\u1EA1i th\u01B0 m\u1EE5c "),Fh=l(kr,"EM",{});var Dg=s(Fh);$u=o(Dg,"dummy"),Dg.forEach(e),Eu=o(kr,":"),kr.forEach(e),ql=m(t),j(Un.$$.fragment,t),xl=m(t),Ot.l(t),Qc=m(t),j(Ie.$$.fragment,t),zl=o(t,Yu),Dl=m(t),Be=l(t,"P",{});var yr=s(Be);wu=o(yr,"B\xE2y gi\u1EDD ch\xFAng ta c\xF3 th\u1EC3 ti\u1EBFp t\u1EE5c v\xE0 ti\u1EBFn h\xE0nh nh\u01B0 ch\xFAng ta th\u01B0\u1EDDng l\xE0m v\u1EDBi c\xE1c kho l\u01B0u tr\u1EEF Git truy\u1EC1n th\u1ED1ng. Ch\xFAng ta c\xF3 th\u1EC3 th\xEAm t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p v\xE0o m\xF4i tr\u01B0\u1EDDng d\xE0n d\u1EF1ng c\u1EE7a Git b\u1EB1ng l\u1EC7nh "),Lh=l(yr,"CODE",{});var Ag=s(Lh);ju=o(Ag,"git add"),Ag.forEach(e),Pu=o(yr,":"),yr.forEach(e),Al=m(t),j(Yn.$$.fragment,t),Ol=m(t),Wc=l(t,"P",{});var Og=s(Wc);Cu=o(Og,"Sau \u0111\xF3, ch\xFAng ta c\xF3 th\u1EC3 xem x\xE9t c\xE1c t\u1EC7p hi\u1EC7n \u0111ang \u0111\u01B0\u1EE3c s\u1EAFp x\u1EBFp:"),Og.forEach(e),Ml=m(t),j(Xn.$$.fragment,t),Nl=m(t),Nt.l(t),Jc=m(t),Re=l(t,"P",{});var $r=s(Re);Tu=o($r,"T\u01B0\u01A1ng t\u1EF1, ch\xFAng ta c\xF3 th\u1EC3 \u0111\u1EA3m b\u1EA3o r\u1EB1ng git-lfs \u0111ang theo d\xF5i c\xE1c t\u1EC7p ch\xEDnh x\xE1c b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng l\u1EC7nh "),Gh=l($r,"CODE",{});var Mg=s(Gh);qu=o(Mg,"status"),Mg.forEach(e),xu=o($r,":"),$r.forEach(e),Sl=m(t),j(Qn.$$.fragment,t),Hl=m(t),Ht.l(t),Zc=m(t),Ke=l(t,"P",{});var Er=s(Ke);zu=o(Er,"H\xE3y ti\u1EBFn h\xE0nh c\xE1c b\u01B0\u1EDBc cu\u1ED1i c\xF9ng, cam k\u1EBFt v\xE0 \u0111\u1EA9y \u0111\u1EBFn kho l\u01B0u tr\u1EEF t\u1EEB xa "),Ih=l(Er,"EM",{});var Ng=s(Ih);Du=o(Ng,"huggingface.co"),Ng.forEach(e),Au=o(Er,":"),Er.forEach(e),Fl=m(t),j(Wn.$$.fragment,t),Ll=m(t),Lt.l(t),to=m(t),eo=l(t,"P",{});var Sg=s(eo);Ou=o(Sg,"Vi\u1EC7c \u0111\u1EA9y c\xF3 th\u1EC3 m\u1EA5t m\u1ED9t ch\xFAt th\u1EDDi gian, t\xF9y thu\u1ED9c v\xE0o t\u1ED1c \u0111\u1ED9 k\u1EBFt n\u1ED1i internet v\xE0 k\xEDch th\u01B0\u1EDBc t\u1EC7p c\u1EE7a b\u1EA1n:"),Sg.forEach(e),Gl=m(t),j(Jn.$$.fragment,t),Il=m(t),j(Zn.$$.fragment,t),Bl=m(t),ae.l(t),no=Hg(),this.h()},h(){d(p,"name","hf:doc:metadata"),d(p,"content",JSON.stringify(bd)),d(q,"id","chia-s-cc-m-hnh-hun-luyn-trc"),d(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"),d(q,"href","#chia-s-cc-m-hnh-hun-luyn-trc"),d($,"class","relative group"),d(gt,"id","s-dng-api-pushtohub"),d(gt,"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"),d(gt,"href","#s-dng-api-pushtohub"),d(dt,"class","relative group"),d(gc,"href","/course/chapter0"),d(en,"href","https://huggingface.co/join"),d(en,"rel","nofollow"),d(ln,"href","https://huggingface.co/user-or-organization/dummy-model"),d(ln,"rel","nofollow"),d(rn,"href","https://huggingface.co/transformers/model_sharing.html"),d(rn,"rel","nofollow"),d(sn,"href","https://github.com/huggingface/huggingface_hub"),d(sn,"rel","nofollow"),d(an,"href","https://github.com/allenai/allennlp"),d(an,"rel","nofollow"),d($e,"id","s-dng-th-vin-python-huggingfacehub"),d($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"),d($e,"href","#s-dng-th-vin-python-huggingfacehub"),d(ce,"class","relative group"),d(Ce,"id","s-dng-giao-din-web"),d(Ce,"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"),d(Ce,"href","#s-dng-giao-din-web"),d(oe,"class","relative group"),d(_n,"href","https://huggingface.co/new"),d(_n,"rel","nofollow"),Bt(vn.src,Ru="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/new_model.png")||d(vn,"src",Ru),d(vn,"alt","Page showcasing the model used for the creation of a new model repository."),d(vn,"width","80%"),d(bn,"class","flex justify-center"),Bt(yn.src,Ku="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/empty_model.png")||d(yn,"src",Ku),d(yn,"alt","An empty model page after creating a new repository."),d(yn,"width","80%"),d(kn,"class","flex justify-center"),Bt(En.src,Vu="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/dummy_model.png")||d(En,"src",Vu),d(En,"alt","The README file showing the Markdown capabilities."),d(En,"width","80%"),d($n,"class","flex justify-center"),Bt(jn.src,Uu="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter4/files.png")||d(jn,"src",Uu),d(jn,"alt","The 'Files and versions' tab only shows the .gitattributes and README.md files."),d(jn,"width","80%"),d(wn,"class","flex justify-center"),d(qe,"id","ti-cc-tp-m-hnh"),d(qe,"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"),d(qe,"href","#ti-cc-tp-m-hnh"),d(he,"class","relative group"),d(Cn,"href","https://git-lfs.github.com/"),d(Cn,"rel","nofollow"),d(De,"id","phng-php-uploadfile"),d(De,"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"),d(De,"href","#phng-php-uploadfile"),d(ie,"class","relative group"),d(Me,"id","lp-repository"),d(Me,"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"),d(Me,"href","#lp-repository"),d(le,"class","relative group"),d(zn,"href","https://git-lfs.github.com/"),d(zn,"rel","nofollow"),d(On,"href","https://github.com/huggingface/huggingface_hub/tree/main/src/huggingface_hub#advanced-programmatic-repository-management"),d(On,"rel","nofollow"),d(He,"id","phng-php-da-trn-git"),d(He,"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"),d(He,"href","#phng-php-da-trn-git"),d(re,"class","relative group"),d(Ln,"href","https://git-lfs.github.com/"),d(Ln,"rel","nofollow")},m(t,h){n(document.head,p),r(t,f,h),P(a,t,h),r(t,_,h),r(t,$,h),n($,q),n(q,N),P(T,N,null),n($,A),n($,z),n(z,D),r(t,g,h),tc[b].m(t,h),r(t,E,h),r(t,H,h),n(H,I),r(t,F,h),P(L,t,h),r(t,K,h),r(t,X,h),n(X,et),r(t,V,h),r(t,nt,h),n(nt,$t),r(t,J,h),r(t,B,h),n(B,ct),n(ct,ot),n(ct,U),n(U,Et),n(B,ht),n(B,S),n(S,R),n(S,ft),n(ft,Z),n(B,Y),n(B,it),n(it,Rt),r(t,wt,h),r(t,lt,h),n(lt,Q),r(t,tt,h),r(t,dt,h),n(dt,gt),n(gt,O),P(G,O,null),n(dt,pc),n(dt,ne),n(ne,uc),n(ne,W),n(W,mc),r(t,Je,h),ec[rt].m(t,h),r(t,jt,h),r(t,Pt,h),n(Pt,me),n(Pt,fe),n(fe,fc),n(Pt,wr),r(t,Rh,h),r(t,_t,h),n(_t,jr),n(_t,ko),n(ko,Pr),n(_t,Cr),n(_t,yo),n(yo,Tr),n(_t,qr),n(_t,gc),n(gc,xr),n(_t,zr),r(t,Kh,h),P(Ze,t,h),r(t,Vh,h),r(t,dc,h),n(dc,Dr),r(t,Uh,h),P(tn,t,h),r(t,Yh,h),r(t,ge,h),n(ge,Ar),n(ge,en),n(en,Or),n(ge,Mr),r(t,Xh,h),r(t,_c,h),n(_c,Nr),r(t,Qh,h),nc[Ct].m(t,h),r(t,bc,h),r(t,de,h),n(de,Sr),n(de,$o),n($o,Hr),n(de,Fr),r(t,Wh,h),r(t,vc,h),n(vc,Lr),r(t,Jh,h),cc[qt].m(t,h),r(t,kc,h),r(t,Kt,h),n(Kt,Gr),n(Kt,Eo),n(Eo,Ir),n(Kt,Br),n(Kt,wo),n(wo,Rr),n(Kt,Kr),r(t,Zh,h),P(nn,t,h),r(t,ti,h),r(t,_e,h),n(_e,Vr),n(_e,jo),n(jo,Ur),n(_e,Yr),r(t,ei,h),P(cn,t,h),r(t,ni,h),r(t,be,h),n(be,Xr),n(be,Po),n(Po,Qr),n(be,Wr),r(t,ci,h),P(on,t,h),r(t,oi,h),r(t,ve,h),n(ve,Jr),n(ve,Co),n(Co,Zr),n(ve,ts),r(t,hi,h),P(hn,t,h),r(t,ii,h),r(t,ke,h),n(ke,es),n(ke,To),n(To,ln),n(ln,ns),n(ke,cs),r(t,li,h),r(t,yc,h),n(yc,os),r(t,ri,h),se.m(t,h),r(t,$c,h),P(ye,t,h),r(t,si,h),r(t,Vt,h),n(Vt,hs),n(Vt,qo),n(qo,is),n(Vt,ls),n(Vt,rn),n(rn,rs),n(Vt,ss),r(t,ai,h),r(t,bt,h),n(bt,as),n(bt,xo),n(xo,ps),n(bt,us),n(bt,sn),n(sn,zo),n(zo,ms),n(bt,fs),n(bt,an),n(an,Do),n(Do,gs),n(bt,ds),r(t,pi,h),r(t,Ec,h),n(Ec,_s),r(t,ui,h),r(t,ce,h),n(ce,$e),n($e,Ao),P(pn,Ao,null),n(ce,bs),n(ce,wc),n(wc,vs),n(wc,Oo),n(Oo,ks),r(t,mi,h),r(t,Ee,h),n(Ee,ys),n(Ee,Mo),n(Mo,$s),n(Ee,Es),r(t,fi,h),r(t,vt,h),n(vt,ws),n(vt,No),n(No,js),n(vt,Ps),n(vt,So),n(So,Cs),n(vt,Ts),n(vt,Ho),n(Ho,qs),n(vt,xs),r(t,gi,h),P(un,t,h),r(t,di,h),r(t,we,h),n(we,zs),n(we,Fo),n(Fo,Ds),n(we,As),r(t,_i,h),P(mn,t,h),r(t,bi,h),r(t,je,h),n(je,Os),n(je,Lo),n(Lo,Ms),n(je,Ns),r(t,vi,h),r(t,Pe,h),n(Pe,Ss),n(Pe,Go),n(Go,Hs),n(Pe,Fs),r(t,ki,h),P(fn,t,h),r(t,yi,h),r(t,Ut,h),n(Ut,Ls),n(Ut,Io),n(Io,Gs),n(Ut,Is),n(Ut,Bo),n(Bo,Bs),n(Ut,Rs),r(t,$i,h),P(gn,t,h),r(t,Ei,h),r(t,Yt,h),n(Yt,Ks),n(Yt,Ro),n(Ro,Vs),n(Yt,Us),n(Yt,Ko),n(Ko,Ys),n(Yt,Xs),r(t,wi,h),r(t,Xt,h),n(Xt,jc),n(jc,Vo),n(Vo,Qs),n(jc,Ws),n(Xt,Js),n(Xt,Pc),n(Pc,Uo),n(Uo,Zs),n(Pc,ta),n(Xt,ea),n(Xt,at),n(at,Yo),n(Yo,na),n(at,ca),n(at,Xo),n(Xo,oa),n(at,ha),n(at,Qo),n(Qo,ia),n(at,la),n(at,Wo),n(Wo,ra),n(at,sa),n(at,Jo),n(Jo,aa),n(at,pa),r(t,ji,h),r(t,Cc,h),n(Cc,ua),r(t,Pi,h),r(t,oe,h),n(oe,Ce),n(Ce,Zo),P(dn,Zo,null),n(oe,ma),n(oe,th),n(th,fa),r(t,Ci,h),r(t,Tc,h),n(Tc,ga),r(t,Ti,h),r(t,Te,h),n(Te,da),n(Te,_n),n(_n,_a),n(Te,ba),r(t,qi,h),r(t,bn,h),n(bn,vn),r(t,xi,h),r(t,qc,h),n(qc,va),r(t,zi,h),r(t,xc,h),n(xc,ka),r(t,Di,h),r(t,zc,h),n(zc,ya),r(t,Ai,h),r(t,kn,h),n(kn,yn),r(t,Oi,h),r(t,Dc,h),n(Dc,$a),r(t,Mi,h),r(t,$n,h),n($n,En),r(t,Ni,h),r(t,Ac,h),n(Ac,Ea),r(t,Si,h),r(t,Qt,h),n(Qt,wa),n(Qt,eh),n(eh,ja),n(Qt,Pa),n(Qt,nh),n(nh,Ca),n(Qt,Ta),r(t,Hi,h),r(t,wn,h),n(wn,jn),r(t,Fi,h),r(t,Oc,h),n(Oc,qa),r(t,Li,h),r(t,he,h),n(he,qe),n(qe,ch),P(Pn,ch,null),n(he,xa),n(he,oh),n(oh,za),r(t,Gi,h),r(t,xe,h),n(xe,Da),n(xe,Cn),n(Cn,Aa),n(xe,Oa),r(t,Ii,h),r(t,ze,h),n(ze,Ma),n(ze,hh),n(hh,Na),n(ze,Sa),r(t,Bi,h),r(t,ie,h),n(ie,De),n(De,ih),P(Tn,ih,null),n(ie,Ha),n(ie,Mc),n(Mc,Fa),n(Mc,lh),n(lh,La),r(t,Ri,h),r(t,Ae,h),n(Ae,Ga),n(Ae,rh),n(rh,Ia),n(Ae,Ba),r(t,Ki,h),r(t,Nc,h),n(Nc,Ra),r(t,Vi,h),P(qn,t,h),r(t,Ui,h),r(t,pt,h),n(pt,Ka),n(pt,sh),n(sh,Va),n(pt,Ua),n(pt,ah),n(ah,Ya),n(pt,Xa),n(pt,ph),n(ph,Qa),n(pt,Wa),n(pt,uh),n(uh,Ja),n(pt,Za),r(t,Yi,h),r(t,Oe,h),n(Oe,Sc),n(Sc,mh),n(mh,tp),n(Sc,ep),n(Oe,np),n(Oe,ut),n(ut,fh),n(fh,cp),n(ut,op),n(ut,gh),n(gh,hp),n(ut,ip),n(ut,dh),n(dh,lp),n(ut,rp),n(ut,_h),n(_h,sp),n(ut,ap),n(ut,bh),n(bh,pp),n(ut,up),r(t,Xi,h),r(t,le,h),n(le,Me),n(Me,vh),P(xn,vh,null),n(le,mp),n(le,Hc),n(Hc,fp),n(Hc,kh),n(kh,gp),r(t,Qi,h),r(t,Ne,h),n(Ne,dp),n(Ne,yh),n(yh,_p),n(Ne,bp),r(t,Wi,h),r(t,Se,h),n(Se,vp),n(Se,zn),n(zn,kp),n(Se,yp),r(t,Ji,h),r(t,Fc,h),n(Fc,$p),r(t,Zi,h),P(Dn,t,h),r(t,tl,h),r(t,kt,h),n(kt,Ep),n(kt,$h),n($h,wp),n(kt,jp),n(kt,Eh),n(Eh,Pp),n(kt,Cp),n(kt,wh),n(wh,Tp),n(kt,qp),r(t,el,h),r(t,Lc,h),n(Lc,xp),r(t,nl,h),P(An,t,h),r(t,cl,h),r(t,yt,h),n(yt,zp),n(yt,jh),n(jh,Dp),n(yt,Ap),n(yt,Ph),n(Ph,Op),n(yt,Mp),n(yt,On),n(On,Np),n(yt,Sp),r(t,ol,h),r(t,Gc,h),n(Gc,Hp),r(t,hl,h),r(t,Ic,h),n(Ic,Fp),r(t,il,h),P(Mn,t,h),r(t,ll,h),r(t,Bc,h),n(Bc,Lp),r(t,rl,h),P(Nn,t,h),r(t,sl,h),r(t,Sn,h),n(Sn,Ch),n(Ch,Gp),n(Sn,Ip),r(t,al,h),P(Hn,t,h),r(t,pl,h),r(t,Rc,h),n(Rc,Bp),r(t,ul,h),r(t,re,h),n(re,He),n(He,Th),P(Fn,Th,null),n(re,Rp),n(re,qh),n(qh,Kp),r(t,ml,h),r(t,Kc,h),n(Kc,Vp),r(t,fl,h),r(t,Fe,h),n(Fe,Up),n(Fe,Ln),n(Ln,Yp),n(Fe,Xp),r(t,gl,h),r(t,Vc,h),n(Vc,Qp),r(t,dl,h),P(Gn,t,h),r(t,_l,h),P(In,t,h),r(t,bl,h),r(t,Uc,h),n(Uc,Wp),r(t,vl,h),P(Bn,t,h),r(t,kl,h),r(t,Wt,h),n(Wt,Jp),n(Wt,xh),n(xh,Zp),n(Wt,tu),n(Wt,zh),n(zh,eu),n(Wt,nu),r(t,yl,h),P(Rn,t,h),r(t,$l,h),r(t,Jt,h),n(Jt,cu),n(Jt,Dh),n(Dh,ou),n(Jt,hu),n(Jt,Ah),n(Ah,iu),n(Jt,lu),r(t,El,h),P(Kn,t,h),r(t,wl,h),P(Vn,t,h),r(t,jl,h),r(t,mt,h),n(mt,ru),n(mt,Oh),n(Oh,su),n(mt,au),n(mt,Mh),n(Mh,pu),n(mt,uu),n(mt,Nh),n(Nh,mu),n(mt,fu),n(mt,Sh),n(Sh,gu),n(mt,du),r(t,Pl,h),r(t,Le,h),n(Le,_u),n(Le,Hh),n(Hh,bu),n(Le,vu),r(t,Cl,h),r(t,Yc,h),n(Yc,ku),r(t,Tl,h),oc[zt].m(t,h),r(t,Xc,h),r(t,Ge,h),n(Ge,yu),n(Ge,Fh),n(Fh,$u),n(Ge,Eu),r(t,ql,h),P(Un,t,h),r(t,xl,h),hc[At].m(t,h),r(t,Qc,h),P(Ie,t,h),r(t,zl,h),r(t,Dl,h),r(t,Be,h),n(Be,wu),n(Be,Lh),n(Lh,ju),n(Be,Pu),r(t,Al,h),P(Yn,t,h),r(t,Ol,h),r(t,Wc,h),n(Wc,Cu),r(t,Ml,h),P(Xn,t,h),r(t,Nl,h),ic[Mt].m(t,h),r(t,Jc,h),r(t,Re,h),n(Re,Tu),n(Re,Gh),n(Gh,qu),n(Re,xu),r(t,Sl,h),P(Qn,t,h),r(t,Hl,h),lc[St].m(t,h),r(t,Zc,h),r(t,Ke,h),n(Ke,zu),n(Ke,Ih),n(Ih,Du),n(Ke,Au),r(t,Fl,h),P(Wn,t,h),r(t,Ll,h),rc[Ft].m(t,h),r(t,to,h),r(t,eo,h),n(eo,Ou),r(t,Gl,h),P(Jn,t,h),r(t,Il,h),P(Zn,t,h),r(t,Bl,h),ae.m(t,h),r(t,no,h),Rl=!0},p(t,[h]){const sc={};h&1&&(sc.fw=t[0]),a.$set(sc);let co=b;b=Qu(t),b!==co&&(ue(),v(tc[co],1,1,()=>{tc[co]=null}),pe(),y=tc[b],y||(y=tc[b]=Xu[b](t),y.c()),k(y,1),y.m(E.parentNode,E));let oo=rt;rt=Ju(t),rt!==oo&&(ue(),v(ec[oo],1,1,()=>{ec[oo]=null}),pe(),st=ec[rt],st||(st=ec[rt]=Wu[rt](t),st.c()),k(st,1),st.m(jt.parentNode,jt));let ho=Ct;Ct=tm(t),Ct!==ho&&(ue(),v(nc[ho],1,1,()=>{nc[ho]=null}),pe(),Tt=nc[Ct],Tt||(Tt=nc[Ct]=Zu[Ct](t),Tt.c()),k(Tt,1),Tt.m(bc.parentNode,bc));let io=qt;qt=nm(t),qt!==io&&(ue(),v(cc[io],1,1,()=>{cc[io]=null}),pe(),xt=cc[qt],xt||(xt=cc[qt]=em[qt](t),xt.c()),k(xt,1),xt.m(kc.parentNode,kc)),Kl!==(Kl=cm(t))&&(se.d(1),se=Kl(t),se&&(se.c(),se.m($c.parentNode,$c)));const Bh={};h&2&&(Bh.$$scope={dirty:h,ctx:t}),ye.$set(Bh);let lo=zt;zt=hm(t),zt!==lo&&(ue(),v(oc[lo],1,1,()=>{oc[lo]=null}),pe(),Dt=oc[zt],Dt||(Dt=oc[zt]=om[zt](t),Dt.c()),k(Dt,1),Dt.m(Xc.parentNode,Xc));let Zt=At;At=lm(t),At!==Zt&&(ue(),v(hc[Zt],1,1,()=>{hc[Zt]=null}),pe(),Ot=hc[At],Ot||(Ot=hc[At]=im[At](t),Ot.c()),k(Ot,1),Ot.m(Qc.parentNode,Qc));const ro={};h&2&&(ro.$$scope={dirty:h,ctx:t}),Ie.$set(ro);let so=Mt;Mt=sm(t),Mt!==so&&(ue(),v(ic[so],1,1,()=>{ic[so]=null}),pe(),Nt=ic[Mt],Nt||(Nt=ic[Mt]=rm[Mt](t),Nt.c()),k(Nt,1),Nt.m(Jc.parentNode,Jc));let ac=St;St=pm(t),St!==ac&&(ue(),v(lc[ac],1,1,()=>{lc[ac]=null}),pe(),Ht=lc[St],Ht||(Ht=lc[St]=am[St](t),Ht.c()),k(Ht,1),Ht.m(Zc.parentNode,Zc));let ao=Ft;Ft=mm(t),Ft!==ao&&(ue(),v(rc[ao],1,1,()=>{rc[ao]=null}),pe(),Lt=rc[Ft],Lt||(Lt=rc[Ft]=um[Ft](t),Lt.c()),k(Lt,1),Lt.m(to.parentNode,to)),Vl!==(Vl=fm(t))&&(ae.d(1),ae=Vl(t),ae&&(ae.c(),ae.m(no.parentNode,no)))},i(t){Rl||(k(a.$$.fragment,t),k(T.$$.fragment,t),k(y),k(L.$$.fragment,t),k(G.$$.fragment,t),k(st),k(Ze.$$.fragment,t),k(tn.$$.fragment,t),k(Tt),k(xt),k(nn.$$.fragment,t),k(cn.$$.fragment,t),k(on.$$.fragment,t),k(hn.$$.fragment,t),k(ye.$$.fragment,t),k(pn.$$.fragment,t),k(un.$$.fragment,t),k(mn.$$.fragment,t),k(fn.$$.fragment,t),k(gn.$$.fragment,t),k(dn.$$.fragment,t),k(Pn.$$.fragment,t),k(Tn.$$.fragment,t),k(qn.$$.fragment,t),k(xn.$$.fragment,t),k(Dn.$$.fragment,t),k(An.$$.fragment,t),k(Mn.$$.fragment,t),k(Nn.$$.fragment,t),k(Hn.$$.fragment,t),k(Fn.$$.fragment,t),k(Gn.$$.fragment,t),k(In.$$.fragment,t),k(Bn.$$.fragment,t),k(Rn.$$.fragment,t),k(Kn.$$.fragment,t),k(Vn.$$.fragment,t),k(Dt),k(Un.$$.fragment,t),k(Ot),k(Ie.$$.fragment,t),k(Yn.$$.fragment,t),k(Xn.$$.fragment,t),k(Nt),k(Qn.$$.fragment,t),k(Ht),k(Wn.$$.fragment,t),k(Lt),k(Jn.$$.fragment,t),k(Zn.$$.fragment,t),Rl=!0)},o(t){v(a.$$.fragment,t),v(T.$$.fragment,t),v(y),v(L.$$.fragment,t),v(G.$$.fragment,t),v(st),v(Ze.$$.fragment,t),v(tn.$$.fragment,t),v(Tt),v(xt),v(nn.$$.fragment,t),v(cn.$$.fragment,t),v(on.$$.fragment,t),v(hn.$$.fragment,t),v(ye.$$.fragment,t),v(pn.$$.fragment,t),v(un.$$.fragment,t),v(mn.$$.fragment,t),v(fn.$$.fragment,t),v(gn.$$.fragment,t),v(dn.$$.fragment,t),v(Pn.$$.fragment,t),v(Tn.$$.fragment,t),v(qn.$$.fragment,t),v(xn.$$.fragment,t),v(Dn.$$.fragment,t),v(An.$$.fragment,t),v(Mn.$$.fragment,t),v(Nn.$$.fragment,t),v(Hn.$$.fragment,t),v(Fn.$$.fragment,t),v(Gn.$$.fragment,t),v(In.$$.fragment,t),v(Bn.$$.fragment,t),v(Rn.$$.fragment,t),v(Kn.$$.fragment,t),v(Vn.$$.fragment,t),v(Dt),v(Un.$$.fragment,t),v(Ot),v(Ie.$$.fragment,t),v(Yn.$$.fragment,t),v(Xn.$$.fragment,t),v(Nt),v(Qn.$$.fragment,t),v(Ht),v(Wn.$$.fragment,t),v(Lt),v(Jn.$$.fragment,t),v(Zn.$$.fragment,t),Rl=!1},d(t){e(p),t&&e(f),C(a,t),t&&e(_),t&&e($),C(T),t&&e(g),tc[b].d(t),t&&e(E),t&&e(H),t&&e(F),C(L,t),t&&e(K),t&&e(X),t&&e(V),t&&e(nt),t&&e(J),t&&e(B),t&&e(wt),t&&e(lt),t&&e(tt),t&&e(dt),C(G),t&&e(Je),ec[rt].d(t),t&&e(jt),t&&e(Pt),t&&e(Rh),t&&e(_t),t&&e(Kh),C(Ze,t),t&&e(Vh),t&&e(dc),t&&e(Uh),C(tn,t),t&&e(Yh),t&&e(ge),t&&e(Xh),t&&e(_c),t&&e(Qh),nc[Ct].d(t),t&&e(bc),t&&e(de),t&&e(Wh),t&&e(vc),t&&e(Jh),cc[qt].d(t),t&&e(kc),t&&e(Kt),t&&e(Zh),C(nn,t),t&&e(ti),t&&e(_e),t&&e(ei),C(cn,t),t&&e(ni),t&&e(be),t&&e(ci),C(on,t),t&&e(oi),t&&e(ve),t&&e(hi),C(hn,t),t&&e(ii),t&&e(ke),t&&e(li),t&&e(yc),t&&e(ri),se.d(t),t&&e($c),C(ye,t),t&&e(si),t&&e(Vt),t&&e(ai),t&&e(bt),t&&e(pi),t&&e(Ec),t&&e(ui),t&&e(ce),C(pn),t&&e(mi),t&&e(Ee),t&&e(fi),t&&e(vt),t&&e(gi),C(un,t),t&&e(di),t&&e(we),t&&e(_i),C(mn,t),t&&e(bi),t&&e(je),t&&e(vi),t&&e(Pe),t&&e(ki),C(fn,t),t&&e(yi),t&&e(Ut),t&&e($i),C(gn,t),t&&e(Ei),t&&e(Yt),t&&e(wi),t&&e(Xt),t&&e(ji),t&&e(Cc),t&&e(Pi),t&&e(oe),C(dn),t&&e(Ci),t&&e(Tc),t&&e(Ti),t&&e(Te),t&&e(qi),t&&e(bn),t&&e(xi),t&&e(qc),t&&e(zi),t&&e(xc),t&&e(Di),t&&e(zc),t&&e(Ai),t&&e(kn),t&&e(Oi),t&&e(Dc),t&&e(Mi),t&&e($n),t&&e(Ni),t&&e(Ac),t&&e(Si),t&&e(Qt),t&&e(Hi),t&&e(wn),t&&e(Fi),t&&e(Oc),t&&e(Li),t&&e(he),C(Pn),t&&e(Gi),t&&e(xe),t&&e(Ii),t&&e(ze),t&&e(Bi),t&&e(ie),C(Tn),t&&e(Ri),t&&e(Ae),t&&e(Ki),t&&e(Nc),t&&e(Vi),C(qn,t),t&&e(Ui),t&&e(pt),t&&e(Yi),t&&e(Oe),t&&e(Xi),t&&e(le),C(xn),t&&e(Qi),t&&e(Ne),t&&e(Wi),t&&e(Se),t&&e(Ji),t&&e(Fc),t&&e(Zi),C(Dn,t),t&&e(tl),t&&e(kt),t&&e(el),t&&e(Lc),t&&e(nl),C(An,t),t&&e(cl),t&&e(yt),t&&e(ol),t&&e(Gc),t&&e(hl),t&&e(Ic),t&&e(il),C(Mn,t),t&&e(ll),t&&e(Bc),t&&e(rl),C(Nn,t),t&&e(sl),t&&e(Sn),t&&e(al),C(Hn,t),t&&e(pl),t&&e(Rc),t&&e(ul),t&&e(re),C(Fn),t&&e(ml),t&&e(Kc),t&&e(fl),t&&e(Fe),t&&e(gl),t&&e(Vc),t&&e(dl),C(Gn,t),t&&e(_l),C(In,t),t&&e(bl),t&&e(Uc),t&&e(vl),C(Bn,t),t&&e(kl),t&&e(Wt),t&&e(yl),C(Rn,t),t&&e($l),t&&e(Jt),t&&e(El),C(Kn,t),t&&e(wl),C(Vn,t),t&&e(jl),t&&e(mt),t&&e(Pl),t&&e(Le),t&&e(Cl),t&&e(Yc),t&&e(Tl),oc[zt].d(t),t&&e(Xc),t&&e(Ge),t&&e(ql),C(Un,t),t&&e(xl),hc[At].d(t),t&&e(Qc),C(Ie,t),t&&e(zl),t&&e(Dl),t&&e(Be),t&&e(Al),C(Yn,t),t&&e(Ol),t&&e(Wc),t&&e(Ml),C(Xn,t),t&&e(Nl),ic[Mt].d(t),t&&e(Jc),t&&e(Re),t&&e(Sl),C(Qn,t),t&&e(Hl),lc[St].d(t),t&&e(Zc),t&&e(Ke),t&&e(Fl),C(Wn,t),t&&e(Ll),rc[Ft].d(t),t&&e(to),t&&e(eo),t&&e(Gl),C(Jn,t),t&&e(Il),C(Zn,t),t&&e(Bl),ae.d(t),t&&e(no)}}}const bd={local:"chia-s-cc-m-hnh-hun-luyn-trc",sections:[{local:"s-dng-api-pushtohub",title:"S\u1EED d\u1EE5ng API `push_to_hub`"},{local:"s-dng-th-vin-python-huggingfacehub",title:"S\u1EED d\u1EE5ng th\u01B0 vi\u1EC7n Python `huggingface_hub`"},{local:"s-dng-giao-din-web",title:"S\u1EED d\u1EE5ng giao di\u1EC7n web"},{local:"ti-cc-tp-m-hnh",sections:[{local:"phng-php-uploadfile",title:"Ph\u01B0\u01A1ng ph\xE1p `upload_file`"},{local:"lp-repository",title:"L\u1EDBp `Repository`"},{local:"phng-php-da-trn-git",title:"Ph\u01B0\u01A1ng ph\xE1p d\u1EF1a tr\xEAn git"}],title:"T\u1EA3i c\xE1c t\u1EC7p m\xF4 h\xECnh"}],title:"Chia s\u1EBB c\xE1c m\xF4 h\xECnh hu\u1EA5n luy\u1EC7n tr\u01B0\u1EDBc"};function vd(x,p,f){let a="pt";return Kg(()=>{const _=new URLSearchParams(window.location.search);f(0,a=_.get("fw")||"pt")}),[a]}class Td extends Gg{constructor(p){super();Ig(this,p,vd,_d,Bg,{})}}export{Td as default,bd as metadata};
