import{s as I,n as J,o as K}from"../chunks/scheduler.37c15a92.js";import{S as Q,i as V,g as r,s as l,r as y,A as W,h as m,f as a,c as i,j as B,u as z,x as b,k as G,y as X,a as n,v as j,d as D,t as S,w as k}from"../chunks/index.2bf4358c.js";import{C as Y}from"../chunks/CourseFloatingBanner.9ff4c771.js";import{H as Z,E as tt}from"../chunks/getInferenceSnippets.8b9eb92a.js";function et(F){let s,H,d,g,o,x,p,C,u,N='我们在 <a href="/course/chapter3">第三章</a> 第一次体验了🤗 Datasets 库，了解到微调模型主要有三个步骤：',L,f,O="<li>从 Hugging Face Hub 加载数据集。</li> <li>使用 <code>Dataset.map()</code> 预处理数据。</li> <li>加载和计算指标（特征）。</li>",M,c,R="但这仅仅触及了🤗 Datasets 库能做的事情的冰山一角！在本章，我们将深入探索这个库。一路上，我们会找到以下问题的答案：",w,$,U="<li>当你的数据集不在 Hub 上时，你应该怎么做？</li> <li>你如何切分和操作数据集？（如果你非常需要使用 Pandas，该如何处理？）</li> <li>当你的数据集非常大，会撑爆你笔记本电脑的 RAM 时，你应该怎么办？</li> <li>什么是“内存映射”和 “Apache Arrow”？</li> <li>如何创建自己的数据集并将其推送到中心？</li>",P,h,q='你在这里学到的技术将为你在 <a href="/course/chapter6">第六章</a> 和 <a href="/course/chapter7">第七章</a> 中的高级 tokenization 和微调任务做好准备——所以，来杯咖啡，让我们开始吧！',T,_,E,v,A;return o=new Z({props:{title:"本章简介",local:"本章简介",headingTag:"h1"}}),p=new Y({props:{chapter:5,classNames:"absolute z-10 right-0 top-0"}}),_=new tt({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter5/1.mdx"}}),{c(){s=r("meta"),H=l(),d=r("p"),g=l(),y(o.$$.fragment),x=l(),y(p.$$.fragment),C=l(),u=r("p"),u.innerHTML=N,L=l(),f=r("ol"),f.innerHTML=O,M=l(),c=r("p"),c.textContent=R,w=l(),$=r("ul"),$.innerHTML=U,P=l(),h=r("p"),h.innerHTML=q,T=l(),y(_.$$.fragment),E=l(),v=r("p"),this.h()},l(t){const e=W("svelte-u9bgzb",document.head);s=m(e,"META",{name:!0,content:!0}),e.forEach(a),H=i(t),d=m(t,"P",{}),B(d).forEach(a),g=i(t),z(o.$$.fragment,t),x=i(t),z(p.$$.fragment,t),C=i(t),u=m(t,"P",{"data-svelte-h":!0}),b(u)!=="svelte-5nw9be"&&(u.innerHTML=N),L=i(t),f=m(t,"OL",{"data-svelte-h":!0}),b(f)!=="svelte-ber0as"&&(f.innerHTML=O),M=i(t),c=m(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-jvd52c"&&(c.textContent=R),w=i(t),$=m(t,"UL",{"data-svelte-h":!0}),b($)!=="svelte-jblipn"&&($.innerHTML=U),P=i(t),h=m(t,"P",{"data-svelte-h":!0}),b(h)!=="svelte-1s3ig98"&&(h.innerHTML=q),T=i(t),z(_.$$.fragment,t),E=i(t),v=m(t,"P",{}),B(v).forEach(a),this.h()},h(){G(s,"name","hf:doc:metadata"),G(s,"content",at)},m(t,e){X(document.head,s),n(t,H,e),n(t,d,e),n(t,g,e),j(o,t,e),n(t,x,e),j(p,t,e),n(t,C,e),n(t,u,e),n(t,L,e),n(t,f,e),n(t,M,e),n(t,c,e),n(t,w,e),n(t,$,e),n(t,P,e),n(t,h,e),n(t,T,e),j(_,t,e),n(t,E,e),n(t,v,e),A=!0},p:J,i(t){A||(D(o.$$.fragment,t),D(p.$$.fragment,t),D(_.$$.fragment,t),A=!0)},o(t){S(o.$$.fragment,t),S(p.$$.fragment,t),S(_.$$.fragment,t),A=!1},d(t){t&&(a(H),a(d),a(g),a(x),a(C),a(u),a(L),a(f),a(M),a(c),a(w),a($),a(P),a(h),a(T),a(E),a(v)),a(s),k(o,t),k(p,t),k(_,t)}}}const at='{"title":"本章简介","local":"本章简介","sections":[],"depth":1}';function nt(F){return K(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mt extends Q{constructor(s){super(),V(this,s,nt,et,I,{})}}export{mt as component};
