import{s as D,n as I,o as N}from"../chunks/scheduler.cc52f4b9.js";import{S as O,i as R,e as d,s as i,c as T,h as J,a as h,d as a,b as l,f as q,g as z,j,k as A,l as K,m as n,n as E,t as M,o as S,p as H}from"../chunks/index.5b747fde.js";import{C as Q,H as V,E as W}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.d38ac5a9.js";import{C as X}from"../chunks/CourseFloatingBanner.b33fcd79.js";function Y(B){let o,b,$,_,s,x,r,y,m,v,p,F="Great job following the course up to here! To recap, in this chapter you:",w,u,G="<li>Learned the basic building blocks of a Transformer model.</li> <li>Learned what makes up a tokenization pipeline.</li> <li>Saw how to use a Transformer model in practice.</li> <li>Learned how to leverage a tokenizer to convert text to tensors that are understandable by the model.</li> <li>Set up a tokenizer and a model together to get from text to predictions.</li> <li>Learned the limitations of input IDs, and learned about attention masks.</li> <li>Played around with versatile and configurable tokenizer methods.</li>",C,f,U="From now on, you should be able to freely navigate the 🤗 Transformers docs: the vocabulary will sound familiar, and you’ve already seen the methods that you’ll use the majority of the time.",k,c,L,g,P;return s=new Q({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),r=new V({props:{title:"Basic usage completed!",local:"basic-usage-completed",headingTag:"h1"}}),m=new X({props:{chapter:2,classNames:"absolute z-10 right-0 top-0"}}),c=new W({props:{source:"https://github.com/huggingface/course/blob/main/chapters/en/chapter2/7.mdx"}}),{c(){o=d("meta"),b=i(),$=d("p"),_=i(),T(s.$$.fragment),x=i(),T(r.$$.fragment),y=i(),T(m.$$.fragment),v=i(),p=d("p"),p.textContent=F,w=i(),u=d("ul"),u.innerHTML=G,C=i(),f=d("p"),f.textContent=U,k=i(),T(c.$$.fragment),L=i(),g=d("p"),this.h()},l(e){const t=J("svelte-u9bgzb",document.head);o=h(t,"META",{name:!0,content:!0}),t.forEach(a),b=l(e),$=h(e,"P",{}),q($).forEach(a),_=l(e),z(s.$$.fragment,e),x=l(e),z(r.$$.fragment,e),y=l(e),z(m.$$.fragment,e),v=l(e),p=h(e,"P",{"data-svelte-h":!0}),j(p)!=="svelte-86zoah"&&(p.textContent=F),w=l(e),u=h(e,"UL",{"data-svelte-h":!0}),j(u)!=="svelte-1gcbkvs"&&(u.innerHTML=G),C=l(e),f=h(e,"P",{"data-svelte-h":!0}),j(f)!=="svelte-yk1ddo"&&(f.textContent=U),k=l(e),z(c.$$.fragment,e),L=l(e),g=h(e,"P",{}),q(g).forEach(a),this.h()},h(){A(o,"name","hf:doc:metadata"),A(o,"content",Z)},m(e,t){K(document.head,o),n(e,b,t),n(e,$,t),n(e,_,t),E(s,e,t),n(e,x,t),E(r,e,t),n(e,y,t),E(m,e,t),n(e,v,t),n(e,p,t),n(e,w,t),n(e,u,t),n(e,C,t),n(e,f,t),n(e,k,t),E(c,e,t),n(e,L,t),n(e,g,t),P=!0},p:I,i(e){P||(M(s.$$.fragment,e),M(r.$$.fragment,e),M(m.$$.fragment,e),M(c.$$.fragment,e),P=!0)},o(e){S(s.$$.fragment,e),S(r.$$.fragment,e),S(m.$$.fragment,e),S(c.$$.fragment,e),P=!1},d(e){e&&(a(b),a($),a(_),a(x),a(y),a(v),a(p),a(w),a(u),a(C),a(f),a(k),a(L),a(g)),a(o),H(s,e),H(r,e),H(m,e),H(c,e)}}}const Z='{"title":"Basic usage completed!","local":"basic-usage-completed","sections":[],"depth":1}';function ee(B){return N(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ie extends O{constructor(o){super(),R(this,o,ee,Y,D,{})}}export{ie as component};
