import{S as Tt,i as _t,s as Rt,e as a,k as d,w as mt,t as n,M as bt,c as o,d as t,m as i,a as s,x as pt,h as l,b as w,G as e,g as R,y as ht,L as At,q as ft,o as vt,B as Et,v as $t}from"../../chunks/vendor-hf-doc-builder.js";import{I as yt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as Bt}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";function Dt(Ve){let p,Z,h,b,C,y,le,M,de,ee,B,te,u,ie,z,ce,ue,N,me,pe,G,he,fe,re,m,ve,H,Ee,Te,S,_e,Re,ae,A,k,f,I,be,Ae,O,$e,ye,U,Be,De,v,E,V,Le,qe,X,Pe,ge,F,xe,we,T,J,Ce,Me,Y,ze,Ne,j,Ge,He,_,K,Se,ke,Q,Ie,Oe,W,Ue,oe;return y=new yt({}),B=new Bt({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),{c(){p=a("meta"),Z=d(),h=a("h1"),b=a("a"),C=a("span"),mt(y.$$.fragment),le=d(),M=a("span"),de=n("R\xE9sum\xE9 du chapitre"),ee=d(),mt(B.$$.fragment),te=d(),u=a("p"),ie=n("Au cours de ce chapitre, vous avez vu comment approcher diff\xE9rents probl\xE8mes de NLP en utilisant la fonction "),z=a("code"),ce=n("pipeline()"),ue=n(" de la biblioth\xE8que \u{1F917} "),N=a("em"),me=n("Transformers"),pe=n(". Vous avez \xE9galement vu comment rechercher et utiliser des mod\xE8les dans le "),G=a("em"),he=n("Hub"),fe=n(" ainsi que comment utiliser l\u2019API d\u2019inf\xE9rence pour tester les mod\xE8les directement dans votre navigateur."),re=d(),m=a("p"),ve=n("Nous avons pu aborder le fonctionnement des "),H=a("em"),Ee=n("transformers"),Te=n(" de fa\xE7on g\xE9n\xE9rale et parler de l\u2019importance de l\u2019apprentissage par transfert et du "),S=a("em"),_e=n("finetuning"),Re=n(". Un point important est que vous pouvez utiliser l\u2019architecture compl\xE8te ou seulement l\u2019encodeur ou le d\xE9codeur, selon le type de t\xE2che que vous souhaitez r\xE9soudre. Le tableau suivant r\xE9sume ceci :"),ae=d(),A=a("table"),k=a("thead"),f=a("tr"),I=a("th"),be=n("Mod\xE8le"),Ae=d(),O=a("th"),$e=n("Exemples"),ye=d(),U=a("th"),Be=n("T\xE2ches"),De=d(),v=a("tbody"),E=a("tr"),V=a("td"),Le=n("Encodeur"),qe=d(),X=a("td"),Pe=n("ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa"),ge=d(),F=a("td"),xe=n("Classification de phrase, reconnaissance d\u2019entit\xE9s nomm\xE9es, extraction de question-r\xE9ponse"),we=d(),T=a("tr"),J=a("td"),Ce=n("D\xE9codeur"),Me=d(),Y=a("td"),ze=n("CTRL, GPT, GPT-2, Transformer XL"),Ne=d(),j=a("td"),Ge=n("G\xE9n\xE9ration de texte"),He=d(),_=a("tr"),K=a("td"),Se=n("Encodeur-d\xE9codeur"),ke=d(),Q=a("td"),Ie=n("BART, T5, Marian, mBART"),Oe=d(),W=a("td"),Ue=n("R\xE9sum\xE9, traduction, g\xE9n\xE9ration de question-r\xE9ponse"),this.h()},l(r){const c=bt('[data-svelte="svelte-1phssyn"]',document.head);p=o(c,"META",{name:!0,content:!0}),c.forEach(t),Z=i(r),h=o(r,"H1",{class:!0});var se=s(h);b=o(se,"A",{id:!0,class:!0,href:!0});var Xe=s(b);C=o(Xe,"SPAN",{});var Fe=s(C);pt(y.$$.fragment,Fe),Fe.forEach(t),Xe.forEach(t),le=i(se),M=o(se,"SPAN",{});var Je=s(M);de=l(Je,"R\xE9sum\xE9 du chapitre"),Je.forEach(t),se.forEach(t),ee=i(r),pt(B.$$.fragment,r),te=i(r),u=o(r,"P",{});var $=s(u);ie=l($,"Au cours de ce chapitre, vous avez vu comment approcher diff\xE9rents probl\xE8mes de NLP en utilisant la fonction "),z=o($,"CODE",{});var Ye=s(z);ce=l(Ye,"pipeline()"),Ye.forEach(t),ue=l($," de la biblioth\xE8que \u{1F917} "),N=o($,"EM",{});var je=s(N);me=l(je,"Transformers"),je.forEach(t),pe=l($,". Vous avez \xE9galement vu comment rechercher et utiliser des mod\xE8les dans le "),G=o($,"EM",{});var Ke=s(G);he=l(Ke,"Hub"),Ke.forEach(t),fe=l($," ainsi que comment utiliser l\u2019API d\u2019inf\xE9rence pour tester les mod\xE8les directement dans votre navigateur."),$.forEach(t),re=i(r),m=o(r,"P",{});var D=s(m);ve=l(D,"Nous avons pu aborder le fonctionnement des "),H=o(D,"EM",{});var Qe=s(H);Ee=l(Qe,"transformers"),Qe.forEach(t),Te=l(D," de fa\xE7on g\xE9n\xE9rale et parler de l\u2019importance de l\u2019apprentissage par transfert et du "),S=o(D,"EM",{});var We=s(S);_e=l(We,"finetuning"),We.forEach(t),Re=l(D,". Un point important est que vous pouvez utiliser l\u2019architecture compl\xE8te ou seulement l\u2019encodeur ou le d\xE9codeur, selon le type de t\xE2che que vous souhaitez r\xE9soudre. Le tableau suivant r\xE9sume ceci :"),D.forEach(t),ae=i(r),A=o(r,"TABLE",{});var ne=s(A);k=o(ne,"THEAD",{});var Ze=s(k);f=o(Ze,"TR",{});var L=s(f);I=o(L,"TH",{});var et=s(I);be=l(et,"Mod\xE8le"),et.forEach(t),Ae=i(L),O=o(L,"TH",{});var tt=s(O);$e=l(tt,"Exemples"),tt.forEach(t),ye=i(L),U=o(L,"TH",{});var rt=s(U);Be=l(rt,"T\xE2ches"),rt.forEach(t),L.forEach(t),Ze.forEach(t),De=i(ne),v=o(ne,"TBODY",{});var q=s(v);E=o(q,"TR",{});var P=s(E);V=o(P,"TD",{});var at=s(V);Le=l(at,"Encodeur"),at.forEach(t),qe=i(P),X=o(P,"TD",{});var ot=s(X);Pe=l(ot,"ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa"),ot.forEach(t),ge=i(P),F=o(P,"TD",{});var st=s(F);xe=l(st,"Classification de phrase, reconnaissance d\u2019entit\xE9s nomm\xE9es, extraction de question-r\xE9ponse"),st.forEach(t),P.forEach(t),we=i(q),T=o(q,"TR",{});var g=s(T);J=o(g,"TD",{});var nt=s(J);Ce=l(nt,"D\xE9codeur"),nt.forEach(t),Me=i(g),Y=o(g,"TD",{});var lt=s(Y);ze=l(lt,"CTRL, GPT, GPT-2, Transformer XL"),lt.forEach(t),Ne=i(g),j=o(g,"TD",{});var dt=s(j);Ge=l(dt,"G\xE9n\xE9ration de texte"),dt.forEach(t),g.forEach(t),He=i(q),_=o(q,"TR",{});var x=s(_);K=o(x,"TD",{});var it=s(K);Se=l(it,"Encodeur-d\xE9codeur"),it.forEach(t),ke=i(x),Q=o(x,"TD",{});var ct=s(Q);Ie=l(ct,"BART, T5, Marian, mBART"),ct.forEach(t),Oe=i(x),W=o(x,"TD",{});var ut=s(W);Ue=l(ut,"R\xE9sum\xE9, traduction, g\xE9n\xE9ration de question-r\xE9ponse"),ut.forEach(t),x.forEach(t),q.forEach(t),ne.forEach(t),this.h()},h(){w(p,"name","hf:doc:metadata"),w(p,"content",JSON.stringify(Lt)),w(b,"id","rsum-du-chapitre"),w(b,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),w(b,"href","#rsum-du-chapitre"),w(h,"class","relative group")},m(r,c){e(document.head,p),R(r,Z,c),R(r,h,c),e(h,b),e(b,C),ht(y,C,null),e(h,le),e(h,M),e(M,de),R(r,ee,c),ht(B,r,c),R(r,te,c),R(r,u,c),e(u,ie),e(u,z),e(z,ce),e(u,ue),e(u,N),e(N,me),e(u,pe),e(u,G),e(G,he),e(u,fe),R(r,re,c),R(r,m,c),e(m,ve),e(m,H),e(H,Ee),e(m,Te),e(m,S),e(S,_e),e(m,Re),R(r,ae,c),R(r,A,c),e(A,k),e(k,f),e(f,I),e(I,be),e(f,Ae),e(f,O),e(O,$e),e(f,ye),e(f,U),e(U,Be),e(A,De),e(A,v),e(v,E),e(E,V),e(V,Le),e(E,qe),e(E,X),e(X,Pe),e(E,ge),e(E,F),e(F,xe),e(v,we),e(v,T),e(T,J),e(J,Ce),e(T,Me),e(T,Y),e(Y,ze),e(T,Ne),e(T,j),e(j,Ge),e(v,He),e(v,_),e(_,K),e(K,Se),e(_,ke),e(_,Q),e(Q,Ie),e(_,Oe),e(_,W),e(W,Ue),oe=!0},p:At,i(r){oe||(ft(y.$$.fragment,r),ft(B.$$.fragment,r),oe=!0)},o(r){vt(y.$$.fragment,r),vt(B.$$.fragment,r),oe=!1},d(r){t(p),r&&t(Z),r&&t(h),Et(y),r&&t(ee),Et(B,r),r&&t(te),r&&t(u),r&&t(re),r&&t(m),r&&t(ae),r&&t(A)}}}const Lt={local:"rsum-du-chapitre",title:"R\xE9sum\xE9 du chapitre"};function qt(Ve){return $t(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class wt extends Tt{constructor(p){super();_t(this,p,qt,Dt,Rt,{})}}export{wt as default,Lt as metadata};
