import{s as I,o as O}from"../chunks/scheduler.37c15a92.js";import{S as R,i as D,g,s as m,r as x,A as J,h as w,f as a,c as f,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.9ff4c771.js";import{F as W}from"../chunks/FrameworkSwitchCourse.8d4d4ab6.js";import{H as X,E as Y}from"../chunks/getInferenceSnippets.24b50994.js";function Z(c){let t,l="<li>如何从模型中心（hub）加载大型数据集</li> <li>如何使用 Keras 微调模型</li> <li>如何使用 Keras 进行预测</li> <li>如何使用自定义指标</li>";return{c(){t=g("ul"),t.innerHTML=l},l(i){t=w(i,"UL",{"data-svelte-h":!0}),j(t)!=="svelte-40dj82"&&(t.innerHTML=l)},m(i,s){r(i,t,s)},d(i){i&&a(t)}}}function ee(c){let t,l="<li>如何从模型中心（hub）加载大型数据集</li> <li>如何使用高级的 <code>Trainer</code> API 微调一个模型</li> <li>如何使用自定义训练过程</li> <li>如何利用🤗 Accelerate 库在所有分布式设备上轻松运行自定义训练过程</li>";return{c(){t=g("ul"),t.innerHTML=l},l(i){t=w(i,"UL",{"data-svelte-h":!0}),j(t)!=="svelte-16u9q8m"&&(t.innerHTML=l)},m(i,s){r(i,t,s)},d(i){i&&a(t)}}}function te(c){let t,l,i,s,u,H,p,T,$,L,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,d,C,v,P;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 q(e,n){return e[0]==="pt"?ee:Z}let y=q(c),o=y(c);return d=new Y({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter3/1.mdx"}}),{c(){t=g("meta"),l=m(),i=g("p"),s=m(),x(u.$$.fragment),H=m(),x(p.$$.fragment),T=m(),x($.$$.fragment),L=m(),h=g("p"),h.innerHTML=N,k=m(),o.c(),b=m(),_=g("p"),_.innerHTML=U,M=m(),x(d.$$.fragment),C=m(),v=g("p"),this.h()},l(e){const n=J("svelte-u9bgzb",document.head);t=w(n,"META",{name:!0,content:!0}),n.forEach(a),l=f(e),i=w(e,"P",{}),B(i).forEach(a),s=f(e),E(u.$$.fragment,e),H=f(e),E(p.$$.fragment,e),T=f(e),E($.$$.fragment,e),L=f(e),h=w(e,"P",{"data-svelte-h":!0}),j(h)!=="svelte-o87ddn"&&(h.innerHTML=N),k=f(e),o.l(e),b=f(e),_=w(e,"P",{"data-svelte-h":!0}),j(_)!=="svelte-1mtzd9o"&&(_.innerHTML=U),M=f(e),E(d.$$.fragment,e),C=f(e),v=w(e,"P",{}),B(v).forEach(a),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,i,n),r(e,s,n),z(u,e,n),r(e,H,n),z(p,e,n),r(e,T,n),z($,e,n),r(e,L,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(d,e,n),r(e,C,n),r(e,v,n),P=!0},p(e,[n]){const K={};n&1&&(K.fw=e[0]),u.$set(K),y!==(y=q(e))&&(o.d(1),o=y(e),o&&(o.c(),o.m(b.parentNode,b)))},i(e){P||(A(u.$$.fragment,e),A(p.$$.fragment,e),A($.$$.fragment,e),A(d.$$.fragment,e),P=!0)},o(e){F(u.$$.fragment,e),F(p.$$.fragment,e),F($.$$.fragment,e),F(d.$$.fragment,e),P=!1},d(e){e&&(a(l),a(i),a(s),a(H),a(T),a(L),a(h),a(k),a(b),a(_),a(M),a(C),a(v)),a(t),S(u,e),S(p,e),S($,e),o.d(e),S(d,e)}}}const ne='{"title":"本章简介","local":"本章简介","sections":[],"depth":1}';function ie(c,t,l){let i="pt";return O(()=>{const s=new URLSearchParams(window.location.search);l(0,i=s.get("fw")||"pt")}),[i]}class me extends R{constructor(t){super(),D(this,t,ie,te,I,{})}}export{me as component};
