import{s as k,n as q,o as D}from"../chunks/scheduler.37c15a92.js";import{S as F,i as I,g as u,s as r,r as R,A as O,h as c,f as a,c as i,j as S,u as L,x as w,k as j,y as U,a as n,v as A,d as B,t as y,w as M}from"../chunks/index.2bf4358c.js";import{C as X}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as J,E as K}from"../chunks/EditOnGithub.8916dc7c.js";function Q(H){let s,T,h,_,m,b,l,g,o,z="在本章中，您了解了如何使用来自🤗Transformers的函数pipeline()处理不同的NLP任务。您还了解了如何在模型中心（hub）中搜索和使用模型，以及如何使用推理API直接在浏览器中测试模型。",C,p,G="我们讨论了Transformer模型如何在应用层上工作，并讨论了迁移学习和微调的重要性。您可以使用完整的体系结构，也可以仅使用编码器或解码器，具体取决于您要解决的任务类型。下表总结了这一点：",E,f,N="<thead><tr><th>模型</th> <th>示例</th> <th>任务</th></tr></thead> <tbody><tr><td>编码器</td> <td>ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa</td> <td>句子分类、命名实体识别、从文本中提取答案</td></tr> <tr><td>解码器</td> <td>CTRL, GPT, GPT-2, Transformer XL</td> <td>文本生成</td></tr> <tr><td>编码器-解码器</td> <td>BART, T5, Marian, mBART</td> <td>文本摘要、翻译、生成问题的回答</td></tr></tbody>",x,d,P,$,v;return m=new J({props:{title:"总结",local:"总结",headingTag:"h1"}}),l=new X({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),d=new K({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter1/9.mdx"}}),{c(){s=u("meta"),T=r(),h=u("p"),_=r(),R(m.$$.fragment),b=r(),R(l.$$.fragment),g=r(),o=u("p"),o.textContent=z,C=r(),p=u("p"),p.textContent=G,E=r(),f=u("table"),f.innerHTML=N,x=r(),R(d.$$.fragment),P=r(),$=u("p"),this.h()},l(t){const e=O("svelte-u9bgzb",document.head);s=c(e,"META",{name:!0,content:!0}),e.forEach(a),T=i(t),h=c(t,"P",{}),S(h).forEach(a),_=i(t),L(m.$$.fragment,t),b=i(t),L(l.$$.fragment,t),g=i(t),o=c(t,"P",{"data-svelte-h":!0}),w(o)!=="svelte-fb27o5"&&(o.textContent=z),C=i(t),p=c(t,"P",{"data-svelte-h":!0}),w(p)!=="svelte-g4pvpp"&&(p.textContent=G),E=i(t),f=c(t,"TABLE",{"data-svelte-h":!0}),w(f)!=="svelte-16e7jpy"&&(f.innerHTML=N),x=i(t),L(d.$$.fragment,t),P=i(t),$=c(t,"P",{}),S($).forEach(a),this.h()},h(){j(s,"name","hf:doc:metadata"),j(s,"content",V)},m(t,e){U(document.head,s),n(t,T,e),n(t,h,e),n(t,_,e),A(m,t,e),n(t,b,e),A(l,t,e),n(t,g,e),n(t,o,e),n(t,C,e),n(t,p,e),n(t,E,e),n(t,f,e),n(t,x,e),A(d,t,e),n(t,P,e),n(t,$,e),v=!0},p:q,i(t){v||(B(m.$$.fragment,t),B(l.$$.fragment,t),B(d.$$.fragment,t),v=!0)},o(t){y(m.$$.fragment,t),y(l.$$.fragment,t),y(d.$$.fragment,t),v=!1},d(t){t&&(a(T),a(h),a(_),a(b),a(g),a(o),a(C),a(p),a(E),a(f),a(x),a(P),a($)),a(s),M(m,t),M(l,t),M(d,t)}}}const V='{"title":"总结","local":"总结","sections":[],"depth":1}';function W(H){return D(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class at extends F{constructor(s){super(),I(this,s,W,Q,k,{})}}export{at as component};
