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