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