import{s as B,n as D,o as F}from"../chunks/scheduler.37c15a92.js";import{S as G,i as I,g as c,s as i,r as z,A as O,h as $,f as n,c as l,j as U,u as k,x as E,k as j,y as R,a,v as y,d as H,t as L,w as M}from"../chunks/index.2bf4358c.js";import{C as J}from"../chunks/CourseFloatingBanner.9ff4c771.js";import{H as K,E as Q}from"../chunks/getInferenceSnippets.80a69898.js";function V(S){let s,d,h,g,r,x,m,C,o,q="恭喜你跟随课程走到这里！回顾一下，在这一章中，你已经：",b,p,A="<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>",v,f,N="从现在开始，你应该能够自由浏览🤗 Transformers 文档：你会遇到许多看起来很熟悉的词汇；而且到目前为止，你已经见到了你大部分时间会使用的方法。",w,u,T,_,P;return r=new K({props:{title:"基本用法完成！",local:"基本用法完成！",headingTag:"h1"}}),m=new J({props:{chapter:2,classNames:"absolute z-10 right-0 top-0"}}),u=new Q({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter2/7.mdx"}}),{c(){s=c("meta"),d=i(),h=c("p"),g=i(),z(r.$$.fragment),x=i(),z(m.$$.fragment),C=i(),o=c("p"),o.textContent=q,b=i(),p=c("ul"),p.innerHTML=A,v=i(),f=c("p"),f.textContent=N,w=i(),z(u.$$.fragment),T=i(),_=c("p"),this.h()},l(t){const e=O("svelte-u9bgzb",document.head);s=$(e,"META",{name:!0,content:!0}),e.forEach(n),d=l(t),h=$(t,"P",{}),U(h).forEach(n),g=l(t),k(r.$$.fragment,t),x=l(t),k(m.$$.fragment,t),C=l(t),o=$(t,"P",{"data-svelte-h":!0}),E(o)!=="svelte-1funfwo"&&(o.textContent=q),b=l(t),p=$(t,"UL",{"data-svelte-h":!0}),E(p)!=="svelte-1q1thbn"&&(p.innerHTML=A),v=l(t),f=$(t,"P",{"data-svelte-h":!0}),E(f)!=="svelte-7cm3eh"&&(f.textContent=N),w=l(t),k(u.$$.fragment,t),T=l(t),_=$(t,"P",{}),U(_).forEach(n),this.h()},h(){j(s,"name","hf:doc:metadata"),j(s,"content",W)},m(t,e){R(document.head,s),a(t,d,e),a(t,h,e),a(t,g,e),y(r,t,e),a(t,x,e),y(m,t,e),a(t,C,e),a(t,o,e),a(t,b,e),a(t,p,e),a(t,v,e),a(t,f,e),a(t,w,e),y(u,t,e),a(t,T,e),a(t,_,e),P=!0},p:D,i(t){P||(H(r.$$.fragment,t),H(m.$$.fragment,t),H(u.$$.fragment,t),P=!0)},o(t){L(r.$$.fragment,t),L(m.$$.fragment,t),L(u.$$.fragment,t),P=!1},d(t){t&&(n(d),n(h),n(g),n(x),n(C),n(o),n(b),n(p),n(v),n(f),n(w),n(T),n(_)),n(s),M(r,t),M(m,t),M(u,t)}}}const W='{"title":"基本用法完成！","local":"基本用法完成！","sections":[],"depth":1}';function X(S){return F(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class nt extends G{constructor(s){super(),I(this,s,X,V,B,{})}}export{nt as component};
