import{s as R,o as D}from"../chunks/scheduler.cc52f4b9.js";import{S as J,i as Q,e as w,s as m,c as v,h as V,a as b,d as l,b as f,f as I,g as H,j as U,k as O,l as W,m as r,n as M,t as C,o as k,p as x}from"../chunks/index.9480bb2b.js";import{C as X,H as Y,E as Z}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.009dc98d.js";import{C as ee}from"../chunks/CourseFloatingBanner.6488bde3.js";import{F as te}from"../chunks/FrameworkSwitchCourse.42d12053.js";function ne(u){let n,a="<li>如何从模型中心（hub）加载大型数据集</li> <li>如何使用 Keras 微调模型</li> <li>如何使用 Keras 进行预测</li> <li>如何使用自定义指标</li>";return{c(){n=w("ul"),n.innerHTML=a},l(i){n=b(i,"UL",{"data-svelte-h":!0}),U(n)!=="svelte-40dj82"&&(n.innerHTML=a)},m(i,s){r(i,n,s)},d(i){i&&l(n)}}}function ie(u){let n,a="<li>如何从模型中心（hub）加载大型数据集</li> <li>如何使用高级的 <code>Trainer</code> API 微调一个模型</li> <li>如何使用自定义训练过程</li> <li>如何利用🤗 Accelerate 库在所有分布式设备上轻松运行自定义训练过程</li>";return{c(){n=w("ul"),n.innerHTML=a},l(i){n=b(i,"UL",{"data-svelte-h":!0}),U(n)!=="svelte-16u9q8m"&&(n.innerHTML=a)},m(i,s){r(i,n,s)},d(i){i&&l(n)}}}function le(u){let n,a,i,s,p,y,c,P,$,z,_,E,h,q='在 <a href="/course/chapter2">第二章</a> 我们探索了如何使用 Tokenizer 和预训练模型进行预测。那么如何使用自己的数据集微调预训练模型呢？本章将解决这个问题！你将学到：',S,L,g,K='为了将经过训练的参数上传到 Hugging Face Hub，你需要一个 huggingface.co 帐户： <a href="https://huggingface.co/join" rel="nofollow">创建一个账户</a>',F,d,j,T,A;p=new te({props:{fw:u[0]}}),c=new X({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),$=new Y({props:{title:"本章简介",local:"本章简介",headingTag:"h1"}}),_=new ee({props:{chapter:3,classNames:"absolute z-10 right-0 top-0"}});function B(e,t){return e[0]==="pt"?ie:ne}let N=B(u),o=N(u);return d=new Z({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter3/1.mdx"}}),{c(){n=w("meta"),a=m(),i=w("p"),s=m(),v(p.$$.fragment),y=m(),v(c.$$.fragment),P=m(),v($.$$.fragment),z=m(),v(_.$$.fragment),E=m(),h=w("p"),h.innerHTML=q,S=m(),o.c(),L=m(),g=w("p"),g.innerHTML=K,F=m(),v(d.$$.fragment),j=m(),T=w("p"),this.h()},l(e){const t=V("svelte-u9bgzb",document.head);n=b(t,"META",{name:!0,content:!0}),t.forEach(l),a=f(e),i=b(e,"P",{}),I(i).forEach(l),s=f(e),H(p.$$.fragment,e),y=f(e),H(c.$$.fragment,e),P=f(e),H($.$$.fragment,e),z=f(e),H(_.$$.fragment,e),E=f(e),h=b(e,"P",{"data-svelte-h":!0}),U(h)!=="svelte-o87ddn"&&(h.innerHTML=q),S=f(e),o.l(e),L=f(e),g=b(e,"P",{"data-svelte-h":!0}),U(g)!=="svelte-1mtzd9o"&&(g.innerHTML=K),F=f(e),H(d.$$.fragment,e),j=f(e),T=b(e,"P",{}),I(T).forEach(l),this.h()},h(){O(n,"name","hf:doc:metadata"),O(n,"content",re)},m(e,t){W(document.head,n),r(e,a,t),r(e,i,t),r(e,s,t),M(p,e,t),r(e,y,t),M(c,e,t),r(e,P,t),M($,e,t),r(e,z,t),M(_,e,t),r(e,E,t),r(e,h,t),r(e,S,t),o.m(e,t),r(e,L,t),r(e,g,t),r(e,F,t),M(d,e,t),r(e,j,t),r(e,T,t),A=!0},p(e,[t]){const G={};t&1&&(G.fw=e[0]),p.$set(G),N!==(N=B(e))&&(o.d(1),o=N(e),o&&(o.c(),o.m(L.parentNode,L)))},i(e){A||(C(p.$$.fragment,e),C(c.$$.fragment,e),C($.$$.fragment,e),C(_.$$.fragment,e),C(d.$$.fragment,e),A=!0)},o(e){k(p.$$.fragment,e),k(c.$$.fragment,e),k($.$$.fragment,e),k(_.$$.fragment,e),k(d.$$.fragment,e),A=!1},d(e){e&&(l(a),l(i),l(s),l(y),l(P),l(z),l(E),l(h),l(S),l(L),l(g),l(F),l(j),l(T)),l(n),x(p,e),x(c,e),x($,e),x(_,e),o.d(e),x(d,e)}}}const re='{"title":"本章简介","local":"本章简介","sections":[],"depth":1}';function ae(u,n,a){let i="pt";return D(()=>{const s=new URLSearchParams(window.location.search);a(0,i=s.get("fw")||"pt")}),[i]}class ue extends J{constructor(n){super(),Q(this,n,ae,le,R,{})}}export{ue as component};
