import{s as I,n as j,o as D}from"../chunks/scheduler.37c15a92.js";import{S as N,i as F,g as f,s as r,r as P,A as O,h,f as a,c as o,j as z,u as L,x as C,k as G,y as U,a as n,v as R,d as A,t as k,w as B}from"../chunks/index.2bf4358c.js";import{C as W}from"../chunks/CourseFloatingBanner.15ba07e6.js";import{H as X,E as Y}from"../chunks/EditOnGithub.8916dc7c.js";function J(M){let s,g,p,T,i,w,l,y,m,H="In this chapter, you saw how to approach different NLP tasks using the high-level <code>pipeline()</code> function from 🤗 Transformers. You also saw how to search for and use models in the Hub, as well as how to use the Inference API to test the models directly in your browser.",_,d,S="We discussed how Transformer models work at a high level, and talked about the importance of transfer learning and fine-tuning. A key aspect is that you can use the full architecture or only the encoder or decoder, depending on what kind of task you aim to solve. The following table summarizes this:",b,u,q="<thead><tr><th>Model</th> <th>Examples</th> <th>Tasks</th></tr></thead> <tbody><tr><td>Encoder</td> <td>ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa</td> <td>Sentence classification, named entity recognition, extractive question answering</td></tr> <tr><td>Decoder</td> <td>CTRL, GPT, GPT-2, Transformer XL</td> <td>Text generation</td></tr> <tr><td>Encoder-decoder</td> <td>BART, T5, Marian, mBART</td> <td>Summarization, translation, generative question answering</td></tr></tbody>",v,c,E,$,x;return i=new X({props:{title:"Summary",local:"summary",headingTag:"h1"}}),l=new W({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),c=new Y({props:{source:"https://github.com/huggingface/course/blob/main/chapters/en/chapter1/9.mdx"}}),{c(){s=f("meta"),g=r(),p=f("p"),T=r(),P(i.$$.fragment),w=r(),P(l.$$.fragment),y=r(),m=f("p"),m.innerHTML=H,_=r(),d=f("p"),d.textContent=S,b=r(),u=f("table"),u.innerHTML=q,v=r(),P(c.$$.fragment),E=r(),$=f("p"),this.h()},l(t){const e=O("svelte-u9bgzb",document.head);s=h(e,"META",{name:!0,content:!0}),e.forEach(a),g=o(t),p=h(t,"P",{}),z(p).forEach(a),T=o(t),L(i.$$.fragment,t),w=o(t),L(l.$$.fragment,t),y=o(t),m=h(t,"P",{"data-svelte-h":!0}),C(m)!=="svelte-1hpqyzf"&&(m.innerHTML=H),_=o(t),d=h(t,"P",{"data-svelte-h":!0}),C(d)!=="svelte-xp4tj6"&&(d.textContent=S),b=o(t),u=h(t,"TABLE",{"data-svelte-h":!0}),C(u)!=="svelte-1v7q8ve"&&(u.innerHTML=q),v=o(t),L(c.$$.fragment,t),E=o(t),$=h(t,"P",{}),z($).forEach(a),this.h()},h(){G(s,"name","hf:doc:metadata"),G(s,"content",K)},m(t,e){U(document.head,s),n(t,g,e),n(t,p,e),n(t,T,e),R(i,t,e),n(t,w,e),R(l,t,e),n(t,y,e),n(t,m,e),n(t,_,e),n(t,d,e),n(t,b,e),n(t,u,e),n(t,v,e),R(c,t,e),n(t,E,e),n(t,$,e),x=!0},p:j,i(t){x||(A(i.$$.fragment,t),A(l.$$.fragment,t),A(c.$$.fragment,t),x=!0)},o(t){k(i.$$.fragment,t),k(l.$$.fragment,t),k(c.$$.fragment,t),x=!1},d(t){t&&(a(g),a(p),a(T),a(w),a(y),a(m),a(_),a(d),a(b),a(u),a(v),a(E),a($)),a(s),B(i,t),B(l,t),B(c,t)}}}const K='{"title":"Summary","local":"summary","sections":[],"depth":1}';function Q(M){return D(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class at extends N{constructor(s){super(),F(this,s,Q,J,I,{})}}export{at as component};
