import{S as _e,i as Ee,s as be,e as i,k as H,w as me,t as n,M as ge,c as s,d as r,m as z,x as de,a as l,h as a,b as T,G as e,g as N,y as pe,q as fe,o as he,B as ve,v as we}from"../../chunks/vendor-hf-doc-builder.js";import{I as $e}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{F as ke}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";function Ie(J){let o,m,f,h,v,E,I,u,P,_,S,L,d,y,$,x,g,M;return{c(){o=i("ul"),m=i("li"),f=n("savoir comment pr\xE9parer un tr\xE8s grand jeu de donn\xE9es \xE0 partir du "),h=i("em"),v=n("Hub"),E=n(","),I=H(),u=i("li"),P=n("savoir comment utiliser Keras pour "),_=i("em"),S=n("finetuner"),L=n(" un mod\xE8le,"),d=H(),y=i("li"),$=n("savoir comment utiliser Keras pour obtenir des pr\xE9dictions,"),x=H(),g=i("li"),M=n("savoir comment utiliser des m\xE9triques personnalis\xE9es.")},l(A){o=s(A,"UL",{});var p=l(o);m=s(p,"LI",{});var k=l(m);f=a(k,"savoir comment pr\xE9parer un tr\xE8s grand jeu de donn\xE9es \xE0 partir du "),h=s(k,"EM",{});var q=l(h);v=a(q,"Hub"),q.forEach(r),E=a(k,","),k.forEach(r),I=z(p),u=s(p,"LI",{});var j=l(u);P=a(j,"savoir comment utiliser Keras pour "),_=s(j,"EM",{});var C=l(_);S=a(C,"finetuner"),C.forEach(r),L=a(j," un mod\xE8le,"),j.forEach(r),d=z(p),y=s(p,"LI",{});var w=l(y);$=a(w,"savoir comment utiliser Keras pour obtenir des pr\xE9dictions,"),w.forEach(r),x=z(p),g=s(p,"LI",{});var c=l(g);M=a(c,"savoir comment utiliser des m\xE9triques personnalis\xE9es."),c.forEach(r),p.forEach(r)},m(A,p){N(A,o,p),e(o,m),e(m,f),e(m,h),e(h,v),e(m,E),e(o,I),e(o,u),e(u,P),e(u,_),e(_,S),e(u,L),e(o,d),e(o,y),e(y,$),e(o,x),e(o,g),e(g,M)},d(A){A&&r(o)}}}function ye(J){let o,m,f,h,v,E,I,u,P,_,S,L,d,y,$,x,g,M,A,p,k,q,j,C;return{c(){o=i("ul"),m=i("li"),f=n("savoir comment pr\xE9parer un tr\xE8s grand jeu de donn\xE9es \xE0 partir du "),h=i("em"),v=n("Hub"),E=n(","),I=H(),u=i("li"),P=n("savoir comment utiliser l\u2019API de haut niveau "),_=i("code"),S=n("Trainer"),L=n(" pour "),d=i("em"),y=n("finetuner"),$=n(" un mod\xE8le,"),x=H(),g=i("li"),M=n("savoir comment utiliser une boucle d\u2019entra\xEEnement personnalis\xE9e,"),A=H(),p=i("li"),k=n("savoir comment tirer parti de la biblioth\xE8que \u{1F917} "),q=i("em"),j=n("Accelerate"),C=n(` pour ex\xE9cuter facilement cette boucle d\u2019entra\xEEnement personnalis\xE9e sur n\u2019importe quelle configuration distribu\xE9e.
configuration distribu\xE9e`)},l(w){o=s(w,"UL",{});var c=l(o);m=s(c,"LI",{});var U=l(m);f=a(U,"savoir comment pr\xE9parer un tr\xE8s grand jeu de donn\xE9es \xE0 partir du "),h=s(U,"EM",{});var O=l(h);v=a(O,"Hub"),O.forEach(r),E=a(U,","),U.forEach(r),I=z(c),u=s(c,"LI",{});var F=l(u);P=a(F,"savoir comment utiliser l\u2019API de haut niveau "),_=s(F,"CODE",{});var W=l(_);S=a(W,"Trainer"),W.forEach(r),L=a(F," pour "),d=s(F,"EM",{});var V=l(d);y=a(V,"finetuner"),V.forEach(r),$=a(F," un mod\xE8le,"),F.forEach(r),x=z(c),g=s(c,"LI",{});var X=l(g);M=a(X,"savoir comment utiliser une boucle d\u2019entra\xEEnement personnalis\xE9e,"),X.forEach(r),A=z(c),p=s(c,"LI",{});var B=l(p);k=a(B,"savoir comment tirer parti de la biblioth\xE8que \u{1F917} "),q=s(B,"EM",{});var K=l(q);j=a(K,"Accelerate"),K.forEach(r),C=a(B,` pour ex\xE9cuter facilement cette boucle d\u2019entra\xEEnement personnalis\xE9e sur n\u2019importe quelle configuration distribu\xE9e.
configuration distribu\xE9e`),B.forEach(r),c.forEach(r)},m(w,c){N(w,o,c),e(o,m),e(m,f),e(m,h),e(h,v),e(m,E),e(o,I),e(o,u),e(u,P),e(u,_),e(_,S),e(u,L),e(u,d),e(d,y),e(u,$),e(o,x),e(o,g),e(g,M),e(o,A),e(o,p),e(p,k),e(p,q),e(q,j),e(p,C)},d(w){w&&r(o)}}}function Me(J){let o,m,f,h,v,E,I,u,P,_,S,L,d,y,$,x,g,M,A,p,k,q,j,C,w,c,U,O,F,W,V,X,B,K,ee,Y;f=new ke({props:{fw:J[0]}}),u=new $e({});function te(t,b){return t[0]==="pt"?ye:Ie}let Z=te(J),D=Z(J);return{c(){o=i("meta"),m=H(),me(f.$$.fragment),h=H(),v=i("h1"),E=i("a"),I=i("span"),me(u.$$.fragment),P=H(),_=i("span"),S=n("Introduction"),L=H(),d=i("p"),y=n("Dans le "),$=i("a"),x=n("chapitre 2"),g=n(" nous avons \xE9tudi\xE9 comment utiliser les "),M=i("em"),A=n("tokenizers"),p=n(` et les mod\xE8les pr\xE9-entra\xEEn\xE9s pour faire des pr\xE9dictions.
Mais que faire si vous souhaitez `),k=i("em"),q=n("finetuner"),j=n(" un mod\xE8le pr\xE9-entra\xEEn\xE9 pour votre propre jeu de donn\xE9es ? C\u2019est le sujet de ce chapitre ! Vous allez apprendre \xE0 :"),C=H(),D.c(),w=H(),c=i("p"),U=n("Afin de t\xE9l\xE9charger vos "),O=i("em"),F=n("checkpoints"),W=n(" entra\xEEn\xE9s sur le "),V=i("em"),X=n("Hub"),B=n(" Hugging Face, vous aurez besoin d\u2019un compte huggingface.co : "),K=i("a"),ee=n("cr\xE9er un compte"),this.h()},l(t){const b=ge('[data-svelte="svelte-1phssyn"]',document.head);o=s(b,"META",{name:!0,content:!0}),b.forEach(r),m=z(t),de(f.$$.fragment,t),h=z(t),v=s(t,"H1",{class:!0});var R=l(v);E=s(R,"A",{id:!0,class:!0,href:!0});var re=l(E);I=s(re,"SPAN",{});var oe=l(I);de(u.$$.fragment,oe),oe.forEach(r),re.forEach(r),P=z(R),_=s(R,"SPAN",{});var ne=l(_);S=a(ne,"Introduction"),ne.forEach(r),R.forEach(r),L=z(t),d=s(t,"P",{});var G=l(d);y=a(G,"Dans le "),$=s(G,"A",{href:!0});var ae=l($);x=a(ae,"chapitre 2"),ae.forEach(r),g=a(G," nous avons \xE9tudi\xE9 comment utiliser les "),M=s(G,"EM",{});var ie=l(M);A=a(ie,"tokenizers"),ie.forEach(r),p=a(G,` et les mod\xE8les pr\xE9-entra\xEEn\xE9s pour faire des pr\xE9dictions.
Mais que faire si vous souhaitez `),k=s(G,"EM",{});var se=l(k);q=a(se,"finetuner"),se.forEach(r),j=a(G," un mod\xE8le pr\xE9-entra\xEEn\xE9 pour votre propre jeu de donn\xE9es ? C\u2019est le sujet de ce chapitre ! Vous allez apprendre \xE0 :"),G.forEach(r),C=z(t),D.l(t),w=z(t),c=s(t,"P",{});var Q=l(c);U=a(Q,"Afin de t\xE9l\xE9charger vos "),O=s(Q,"EM",{});var le=l(O);F=a(le,"checkpoints"),le.forEach(r),W=a(Q," entra\xEEn\xE9s sur le "),V=s(Q,"EM",{});var ue=l(V);X=a(ue,"Hub"),ue.forEach(r),B=a(Q," Hugging Face, vous aurez besoin d\u2019un compte huggingface.co : "),K=s(Q,"A",{href:!0,rel:!0});var ce=l(K);ee=a(ce,"cr\xE9er un compte"),ce.forEach(r),Q.forEach(r),this.h()},h(){T(o,"name","hf:doc:metadata"),T(o,"content",JSON.stringify(Ae)),T(E,"id","introduction"),T(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"),T(E,"href","#introduction"),T(v,"class","relative group"),T($,"href","/course/fr/chapter2"),T(K,"href","https://huggingface.co/join"),T(K,"rel","nofollow")},m(t,b){e(document.head,o),N(t,m,b),pe(f,t,b),N(t,h,b),N(t,v,b),e(v,E),e(E,I),pe(u,I,null),e(v,P),e(v,_),e(_,S),N(t,L,b),N(t,d,b),e(d,y),e(d,$),e($,x),e(d,g),e(d,M),e(M,A),e(d,p),e(d,k),e(k,q),e(d,j),N(t,C,b),D.m(t,b),N(t,w,b),N(t,c,b),e(c,U),e(c,O),e(O,F),e(c,W),e(c,V),e(V,X),e(c,B),e(c,K),e(K,ee),Y=!0},p(t,[b]){const R={};b&1&&(R.fw=t[0]),f.$set(R),Z!==(Z=te(t))&&(D.d(1),D=Z(t),D&&(D.c(),D.m(w.parentNode,w)))},i(t){Y||(fe(f.$$.fragment,t),fe(u.$$.fragment,t),Y=!0)},o(t){he(f.$$.fragment,t),he(u.$$.fragment,t),Y=!1},d(t){r(o),t&&r(m),ve(f,t),t&&r(h),t&&r(v),ve(u),t&&r(L),t&&r(d),t&&r(C),D.d(t),t&&r(w),t&&r(c)}}}const Ae={local:"introduction",title:"Introduction"};function Le(J,o,m){let f="pt";return we(()=>{const h=new URLSearchParams(window.location.search);m(0,f=h.get("fw")||"pt")}),[f]}class ze extends _e{constructor(o){super();Ee(this,o,Le,Me,be,{})}}export{ze as default,Ae as metadata};
