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