import{s as I,o as O}from"../chunks/scheduler.37c15a92.js";import{S as R,i as D,g as w,s as f,r as y,A as J,h as d,f as i,c as m,j as B,u as E,x as j,k as G,y as Q,a as r,v as z,d as A,t as F,w as S}from"../chunks/index.2bf4358c.js";import{C as V}from"../chunks/CourseFloatingBanner.06521e8b.js";import{F as W}from"../chunks/FrameworkSwitchCourse.8d4d4ab6.js";import{H as X,E as Y}from"../chunks/EditOnGithub.8916dc7c.js";function Z(c){let t,l="<li>如何从模型中心(hub)准备大型数据集</li> <li>如何使用 Keras 微调模型</li> <li>如何使用 Keras 进行预测</li> <li>如何使用自定义指标</li>";return{c(){t=w("ul"),t.innerHTML=l},l(a){t=d(a,"UL",{"data-svelte-h":!0}),j(t)!=="svelte-oxlfoe"&&(t.innerHTML=l)},m(a,s){r(a,t,s)},d(a){a&&i(t)}}}function ee(c){let t,l="<li>如何从模型中心(hub)准备大型数据集</li> <li>如何使用高级<code>训练</code>API微调一个模型</li> <li>如何使用自定义训练过程</li> <li>如何利用🤗 Accelerate库在任何分布式设备上轻松运行自定义训练过程</li>";return{c(){t=w("ul"),t.innerHTML=l},l(a){t=d(a,"UL",{"data-svelte-h":!0}),j(t)!=="svelte-1x3jxee"&&(t.innerHTML=l)},m(a,s){r(a,t,s)},d(a){a&&i(t)}}}function te(c){let t,l,a,s,u,H,p,L,$,T,h,N='在 <a href="/course/chapter2">第二章</a> 我们探索了如何使用标记器(Tokenizer)和预训练模型进行预测。但是，如果您想为自己的数据集微调预训练模型，该怎么做呢？这就是本章的主题！你将学到:',k,b,_,U='为了将经过训练的参数上传到Hugging Face Hub，您需要一个huggingface.co帐户: <a href="https://huggingface.co/join" rel="nofollow">创建一个账户</a>',M,g,x,v,C;u=new W({props:{fw:c[0]}}),p=new X({props:{title:"本章简介",local:"本章简介",headingTag:"h1"}}),$=new V({props:{chapter:3,classNames:"absolute z-10 right-0 top-0"}});function K(e,n){return e[0]==="pt"?ee:Z}let P=K(c),o=P(c);return g=new Y({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter3/1.mdx"}}),{c(){t=w("meta"),l=f(),a=w("p"),s=f(),y(u.$$.fragment),H=f(),y(p.$$.fragment),L=f(),y($.$$.fragment),T=f(),h=w("p"),h.innerHTML=N,k=f(),o.c(),b=f(),_=w("p"),_.innerHTML=U,M=f(),y(g.$$.fragment),x=f(),v=w("p"),this.h()},l(e){const n=J("svelte-u9bgzb",document.head);t=d(n,"META",{name:!0,content:!0}),n.forEach(i),l=m(e),a=d(e,"P",{}),B(a).forEach(i),s=m(e),E(u.$$.fragment,e),H=m(e),E(p.$$.fragment,e),L=m(e),E($.$$.fragment,e),T=m(e),h=d(e,"P",{"data-svelte-h":!0}),j(h)!=="svelte-14a5pvs"&&(h.innerHTML=N),k=m(e),o.l(e),b=m(e),_=d(e,"P",{"data-svelte-h":!0}),j(_)!=="svelte-tai8sw"&&(_.innerHTML=U),M=m(e),E(g.$$.fragment,e),x=m(e),v=d(e,"P",{}),B(v).forEach(i),this.h()},h(){G(t,"name","hf:doc:metadata"),G(t,"content",ne)},m(e,n){Q(document.head,t),r(e,l,n),r(e,a,n),r(e,s,n),z(u,e,n),r(e,H,n),z(p,e,n),r(e,L,n),z($,e,n),r(e,T,n),r(e,h,n),r(e,k,n),o.m(e,n),r(e,b,n),r(e,_,n),r(e,M,n),z(g,e,n),r(e,x,n),r(e,v,n),C=!0},p(e,[n]){const q={};n&1&&(q.fw=e[0]),u.$set(q),P!==(P=K(e))&&(o.d(1),o=P(e),o&&(o.c(),o.m(b.parentNode,b)))},i(e){C||(A(u.$$.fragment,e),A(p.$$.fragment,e),A($.$$.fragment,e),A(g.$$.fragment,e),C=!0)},o(e){F(u.$$.fragment,e),F(p.$$.fragment,e),F($.$$.fragment,e),F(g.$$.fragment,e),C=!1},d(e){e&&(i(l),i(a),i(s),i(H),i(L),i(T),i(h),i(k),i(b),i(_),i(M),i(x),i(v)),i(t),S(u,e),S(p,e),S($,e),o.d(e),S(g,e)}}}const ne='{"title":"本章简介","local":"本章简介","sections":[],"depth":1}';function ae(c,t,l){let a="pt";return O(()=>{const s=new URLSearchParams(window.location.search);l(0,a=s.get("fw")||"pt")}),[a]}class fe extends R{constructor(t){super(),D(this,t,ae,te,I,{})}}export{fe as component};
