import{s as U,n as N,o as O}from"../chunks/scheduler.37c15a92.js";import{S as G,i as J,g as l,s,r as q,A as K,h as r,f as a,c as o,j as z,u as D,x as _,k as S,y as Q,a as n,v as W,d as B,t as F,w as R}from"../chunks/index.2bf4358c.js";import{C as V}from"../chunks/CourseFloatingBanner.15ba07e6.js";import{H as X}from"../chunks/Heading.8ada512a.js";function Y(b){let i,$,w,g,u,v,h,H,c,A='In <a href="/course/chapter3">Chapter 3</a> you got your first taste of the 🤗 Datasets library and saw that there were three main steps when it came to fine-tuning a model:',C,p,k="<li>Load a dataset from the Hugging Face Hub.</li> <li>Preprocess the data with <code>Dataset.map()</code>.</li> <li>Load and compute metrics.</li>",L,m,E="But this is just scratching the surface of what 🤗 Datasets can do! In this chapter, we will take a deep dive into the library. Along the way, we’ll find answers to the following questions:",x,d,I="<li>What do you do when your dataset is not on the Hub?</li> <li>How can you slice and dice a dataset? (And what if you <em>really</em> need to use Pandas?)</li> <li>What do you do when your dataset is huge and will melt your laptop’s RAM?</li> <li>What the heck are “memory mapping” and Apache Arrow?</li> <li>How can you create your own dataset and push it to the Hub?</li>",M,f,j='The techniques you learn here will prepare you for the advanced tokenization and fine-tuning tasks in <a href="/course/chapter6">Chapter 6</a> and <a href="/course/chapter7">Chapter 7</a> — so grab a coffee and let’s get started!',P,y,T;return u=new X({props:{title:"Introduction",local:"introduction",headingTag:"h1"}}),h=new V({props:{chapter:5,classNames:"absolute z-10 right-0 top-0"}}),{c(){i=l("meta"),$=s(),w=l("p"),g=s(),q(u.$$.fragment),v=s(),q(h.$$.fragment),H=s(),c=l("p"),c.innerHTML=A,C=s(),p=l("ol"),p.innerHTML=k,L=s(),m=l("p"),m.textContent=E,x=s(),d=l("ul"),d.innerHTML=I,M=s(),f=l("p"),f.innerHTML=j,P=s(),y=l("p"),this.h()},l(t){const e=K("svelte-u9bgzb",document.head);i=r(e,"META",{name:!0,content:!0}),e.forEach(a),$=o(t),w=r(t,"P",{}),z(w).forEach(a),g=o(t),D(u.$$.fragment,t),v=o(t),D(h.$$.fragment,t),H=o(t),c=r(t,"P",{"data-svelte-h":!0}),_(c)!=="svelte-kgw5en"&&(c.innerHTML=A),C=o(t),p=r(t,"OL",{"data-svelte-h":!0}),_(p)!=="svelte-1ou2s90"&&(p.innerHTML=k),L=o(t),m=r(t,"P",{"data-svelte-h":!0}),_(m)!=="svelte-ow4a6"&&(m.textContent=E),x=o(t),d=r(t,"UL",{"data-svelte-h":!0}),_(d)!=="svelte-lj4ah0"&&(d.innerHTML=I),M=o(t),f=r(t,"P",{"data-svelte-h":!0}),_(f)!=="svelte-1n9tshc"&&(f.innerHTML=j),P=o(t),y=r(t,"P",{}),z(y).forEach(a),this.h()},h(){S(i,"name","hf:doc:metadata"),S(i,"content",Z)},m(t,e){Q(document.head,i),n(t,$,e),n(t,w,e),n(t,g,e),W(u,t,e),n(t,v,e),W(h,t,e),n(t,H,e),n(t,c,e),n(t,C,e),n(t,p,e),n(t,L,e),n(t,m,e),n(t,x,e),n(t,d,e),n(t,M,e),n(t,f,e),n(t,P,e),n(t,y,e),T=!0},p:N,i(t){T||(B(u.$$.fragment,t),B(h.$$.fragment,t),T=!0)},o(t){F(u.$$.fragment,t),F(h.$$.fragment,t),T=!1},d(t){t&&(a($),a(w),a(g),a(v),a(H),a(c),a(C),a(p),a(L),a(m),a(x),a(d),a(M),a(f),a(P),a(y)),a(i),R(u,t),R(h,t)}}}const Z='{"title":"Introduction","local":"introduction","sections":[],"depth":1}';function tt(b){return O(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class st extends G{constructor(i){super(),J(this,i,tt,Y,U,{})}}export{st as component};
