import{s as D,n as I,o as J}from"../chunks/scheduler.37c15a92.js";import{S as K,i as Q,g as r,s,r as q,A as V,h as i,f as a,c as l,j as N,u as O,x as v,k as X,y as W,a as o,v as z,d as G,t as S,w as k}from"../chunks/index.2bf4358c.js";import{C as Y}from"../chunks/CourseFloatingBanner.15ba07e6.js";import{H as Z,E as ee}from"../chunks/EditOnGithub.8916dc7c.js";function te(A){let n,x,$,C,m,w,d,P,f,R="Os modelos de decodificador usam apenas o decodificador de um modelo Transformer. Em cada etapa, para uma determinada palavra, as camadas de atenção só podem acessar as palavras posicionadas antes dela na frase. Esses modelos geralmente são chamados de <em>modelos auto-regressivos</em>.",T,p,U="O pré-treinamento de modelos de decodificadores geralmente gira em torno de prever a próxima palavra na frase.",b,c,j="Esses modelos são mais adequados para tarefas que envolvem geração de texto.",E,u,B="Os representantes desta família de modelos incluem:",L,h,F='<li><a href="https://huggingface.co/transformers/model_doc/ctrl.html" rel="nofollow">CTRL</a></li> <li><a href="https://huggingface.co/docs/transformers/model_doc/openai-gpt" rel="nofollow">GPT</a></li> <li><a href="https://huggingface.co/transformers/model_doc/gpt2.html" rel="nofollow">GPT-2</a></li> <li><a href="https://huggingface.co/transformers/model_doc/transfo-xl.html" rel="nofollow">Transformer XL</a></li>',M,g,y,_,H;return m=new Z({props:{title:"Modelos decodificadores",local:"modelos-decodificadores",headingTag:"h1"}}),d=new Y({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),g=new ee({props:{source:"https://github.com/huggingface/course/blob/main/chapters/pt/chapter1/6.mdx"}}),{c(){n=r("meta"),x=s(),$=r("p"),C=s(),q(m.$$.fragment),w=s(),q(d.$$.fragment),P=s(),f=r("p"),f.innerHTML=R,T=s(),p=r("p"),p.textContent=U,b=s(),c=r("p"),c.textContent=j,E=s(),u=r("p"),u.textContent=B,L=s(),h=r("ul"),h.innerHTML=F,M=s(),q(g.$$.fragment),y=s(),_=r("p"),this.h()},l(e){const t=V("svelte-u9bgzb",document.head);n=i(t,"META",{name:!0,content:!0}),t.forEach(a),x=l(e),$=i(e,"P",{}),N($).forEach(a),C=l(e),O(m.$$.fragment,e),w=l(e),O(d.$$.fragment,e),P=l(e),f=i(e,"P",{"data-svelte-h":!0}),v(f)!=="svelte-1cb7r38"&&(f.innerHTML=R),T=l(e),p=i(e,"P",{"data-svelte-h":!0}),v(p)!=="svelte-fzoyvo"&&(p.textContent=U),b=l(e),c=i(e,"P",{"data-svelte-h":!0}),v(c)!=="svelte-1knwfdy"&&(c.textContent=j),E=l(e),u=i(e,"P",{"data-svelte-h":!0}),v(u)!=="svelte-1x0lt16"&&(u.textContent=B),L=l(e),h=i(e,"UL",{"data-svelte-h":!0}),v(h)!=="svelte-1tiql5w"&&(h.innerHTML=F),M=l(e),O(g.$$.fragment,e),y=l(e),_=i(e,"P",{}),N(_).forEach(a),this.h()},h(){X(n,"name","hf:doc:metadata"),X(n,"content",ae)},m(e,t){W(document.head,n),o(e,x,t),o(e,$,t),o(e,C,t),z(m,e,t),o(e,w,t),z(d,e,t),o(e,P,t),o(e,f,t),o(e,T,t),o(e,p,t),o(e,b,t),o(e,c,t),o(e,E,t),o(e,u,t),o(e,L,t),o(e,h,t),o(e,M,t),z(g,e,t),o(e,y,t),o(e,_,t),H=!0},p:I,i(e){H||(G(m.$$.fragment,e),G(d.$$.fragment,e),G(g.$$.fragment,e),H=!0)},o(e){S(m.$$.fragment,e),S(d.$$.fragment,e),S(g.$$.fragment,e),H=!1},d(e){e&&(a(x),a($),a(C),a(w),a(P),a(f),a(T),a(p),a(b),a(c),a(E),a(u),a(L),a(h),a(M),a(y),a(_)),a(n),k(m,e),k(d,e),k(g,e)}}}const ae='{"title":"Modelos decodificadores","local":"modelos-decodificadores","sections":[],"depth":1}';function oe(A){return J(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ie extends K{constructor(n){super(),Q(this,n,oe,te,D,{})}}export{ie as component};
