import{s as F,n as G,o as I}from"../chunks/scheduler.cc52f4b9.js";import{S as O,i as R,e as c,s,c as k,h as J,a as h,d as n,b as l,f as B,g as E,j as q,k as D,l as K,m as a,n as L,t as M,o as H,p as S}from"../chunks/index.9480bb2b.js";import{C as Q,H as V,E as W}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.009dc98d.js";import{C as X}from"../chunks/CourseFloatingBanner.6488bde3.js";function Y(N){let i,g,_,C,r,d,m,b,p,v,o,U="恭喜你跟随课程走到这里！回顾一下，在这一章中，你已经：",T,f,j="<li><p>学习了 Transformers 模型的基本构造块。</p></li> <li><p>了解了 Tokenizer 管道的组成。</p></li> <li><p>了解了如何在实践中使用 Transformers 模型。</p></li> <li><p>学习了如何利用 tokenizer 将文本转换为模型可以理解的张量。</p></li> <li><p>设定了 tokenizer 和模型，可以从输入的文本获取预测的结果。</p></li> <li><p>了解了 inputs IDs 的局限性，并学习了关于注意力掩码（attention mask）的知识。</p></li> <li><p>试用了灵活且可配置的 Tokenizer 方法。</p></li>",w,u,A="从现在开始，你应该能够自由浏览🤗 Transformers 文档：你会遇到许多看起来很熟悉的词汇；而且到目前为止，你已经见到了你大部分时间会使用的方法。",z,$,P,x,y;return r=new Q({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),m=new V({props:{title:"基本用法完成！",local:"基本用法完成！",headingTag:"h1"}}),p=new X({props:{chapter:2,classNames:"absolute z-10 right-0 top-0"}}),$=new W({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter2/7.mdx"}}),{c(){i=c("meta"),g=s(),_=c("p"),C=s(),k(r.$$.fragment),d=s(),k(m.$$.fragment),b=s(),k(p.$$.fragment),v=s(),o=c("p"),o.textContent=U,T=s(),f=c("ul"),f.innerHTML=j,w=s(),u=c("p"),u.textContent=A,z=s(),k($.$$.fragment),P=s(),x=c("p"),this.h()},l(t){const e=J("svelte-u9bgzb",document.head);i=h(e,"META",{name:!0,content:!0}),e.forEach(n),g=l(t),_=h(t,"P",{}),B(_).forEach(n),C=l(t),E(r.$$.fragment,t),d=l(t),E(m.$$.fragment,t),b=l(t),E(p.$$.fragment,t),v=l(t),o=h(t,"P",{"data-svelte-h":!0}),q(o)!=="svelte-1funfwo"&&(o.textContent=U),T=l(t),f=h(t,"UL",{"data-svelte-h":!0}),q(f)!=="svelte-1q1thbn"&&(f.innerHTML=j),w=l(t),u=h(t,"P",{"data-svelte-h":!0}),q(u)!=="svelte-7cm3eh"&&(u.textContent=A),z=l(t),E($.$$.fragment,t),P=l(t),x=h(t,"P",{}),B(x).forEach(n),this.h()},h(){D(i,"name","hf:doc:metadata"),D(i,"content",Z)},m(t,e){K(document.head,i),a(t,g,e),a(t,_,e),a(t,C,e),L(r,t,e),a(t,d,e),L(m,t,e),a(t,b,e),L(p,t,e),a(t,v,e),a(t,o,e),a(t,T,e),a(t,f,e),a(t,w,e),a(t,u,e),a(t,z,e),L($,t,e),a(t,P,e),a(t,x,e),y=!0},p:G,i(t){y||(M(r.$$.fragment,t),M(m.$$.fragment,t),M(p.$$.fragment,t),M($.$$.fragment,t),y=!0)},o(t){H(r.$$.fragment,t),H(m.$$.fragment,t),H(p.$$.fragment,t),H($.$$.fragment,t),y=!1},d(t){t&&(n(g),n(_),n(C),n(d),n(b),n(v),n(o),n(T),n(f),n(w),n(u),n(z),n(P),n(x)),n(i),S(r,t),S(m,t),S(p,t),S($,t)}}}const Z='{"title":"基本用法完成！","local":"基本用法完成！","sections":[],"depth":1}';function tt(N){return I(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class st extends O{constructor(i){super(),R(this,i,tt,Y,F,{})}}export{st as component};
