import{s as G,o as O}from"../chunks/scheduler.37c15a92.js";import{S as R,i as Y,g,s as u,r as P,A as D,h as _,f as o,c,j as N,u as E,x as S,k as q,y as J,a as r,v as I,d as z,t as A,w as F}from"../chunks/index.7cb9c9b8.js";import{C as Q}from"../chunks/CourseFloatingBanner.df82c153.js";import{F as V}from"../chunks/FrameworkSwitchCourse.97630871.js";import{H as W,E as X}from"../chunks/index.706e2c58.js";function Z(f){let t,i="<li>How to prepare a large dataset from the Hub</li> <li>How to use Keras to fine-tune a model</li> <li>How to use Keras to get predictions</li> <li>How to use a custom metric</li>";return{c(){t=g("ul"),t.innerHTML=i},l(a){t=_(a,"UL",{"data-svelte-h":!0}),S(t)!=="svelte-1uy4s3d"&&(t.innerHTML=i)},m(a,l){r(a,t,l)},d(a){a&&o(t)}}}function ee(f){let t,i="<li>How to prepare a large dataset from the Hub</li> <li>How to use the high-level <code>Trainer</code> API to fine-tune a model</li> <li>How to use a custom training loop</li> <li>How to leverage the 🤗 Accelerate library to easily run that custom training loop on any distributed setup</li>";return{c(){t=g("ul"),t.innerHTML=i},l(a){t=_(a,"UL",{"data-svelte-h":!0}),S(t)!=="svelte-16go9vk"&&(t.innerHTML=i)},m(a,l){r(a,t,l)},d(a){a&&o(t)}}}function te(f){let t,i,a,l,m,v,p,y,d,k,h,U='In <a href="/course/chapter2">Chapter 2</a> we explored how to use tokenizers and pretrained models to make predictions. But what if you want to fine-tune a pretrained model for your own dataset? That’s the topic of this chapter! You will learn:',T,H,$,j='In order to upload your trained checkpoints to the Hugging Face Hub, you will need a huggingface.co account: <a href="https://huggingface.co/join" rel="nofollow">create an account</a>',L,w,M,b,x;m=new V({props:{fw:f[0]}}),p=new W({props:{title:"Introduction",local:"introduction",headingTag:"h1"}}),d=new Q({props:{chapter:3,classNames:"absolute z-10 right-0 top-0"}});function B(e,n){return e[0]==="pt"?ee:Z}let C=B(f),s=C(f);return w=new X({props:{source:"https://github.com/huggingface/course/blob/main/chapters/en/chapter3/1.mdx"}}),{c(){t=g("meta"),i=u(),a=g("p"),l=u(),P(m.$$.fragment),v=u(),P(p.$$.fragment),y=u(),P(d.$$.fragment),k=u(),h=g("p"),h.innerHTML=U,T=u(),s.c(),H=u(),$=g("p"),$.innerHTML=j,L=u(),P(w.$$.fragment),M=u(),b=g("p"),this.h()},l(e){const n=D("svelte-u9bgzb",document.head);t=_(n,"META",{name:!0,content:!0}),n.forEach(o),i=c(e),a=_(e,"P",{}),N(a).forEach(o),l=c(e),E(m.$$.fragment,e),v=c(e),E(p.$$.fragment,e),y=c(e),E(d.$$.fragment,e),k=c(e),h=_(e,"P",{"data-svelte-h":!0}),S(h)!=="svelte-137zttn"&&(h.innerHTML=U),T=c(e),s.l(e),H=c(e),$=_(e,"P",{"data-svelte-h":!0}),S($)!=="svelte-1l49lxx"&&($.innerHTML=j),L=c(e),E(w.$$.fragment,e),M=c(e),b=_(e,"P",{}),N(b).forEach(o),this.h()},h(){q(t,"name","hf:doc:metadata"),q(t,"content",ne)},m(e,n){J(document.head,t),r(e,i,n),r(e,a,n),r(e,l,n),I(m,e,n),r(e,v,n),I(p,e,n),r(e,y,n),I(d,e,n),r(e,k,n),r(e,h,n),r(e,T,n),s.m(e,n),r(e,H,n),r(e,$,n),r(e,L,n),I(w,e,n),r(e,M,n),r(e,b,n),x=!0},p(e,[n]){const K={};n&1&&(K.fw=e[0]),m.$set(K),C!==(C=B(e))&&(s.d(1),s=C(e),s&&(s.c(),s.m(H.parentNode,H)))},i(e){x||(z(m.$$.fragment,e),z(p.$$.fragment,e),z(d.$$.fragment,e),z(w.$$.fragment,e),x=!0)},o(e){A(m.$$.fragment,e),A(p.$$.fragment,e),A(d.$$.fragment,e),A(w.$$.fragment,e),x=!1},d(e){e&&(o(i),o(a),o(l),o(v),o(y),o(k),o(h),o(T),o(H),o($),o(L),o(M),o(b)),o(t),F(m,e),F(p,e),F(d,e),s.d(e),F(w,e)}}}const ne='{"title":"Introduction","local":"introduction","sections":[],"depth":1}';function ae(f,t,i){let a="pt";return O(()=>{const l=new URLSearchParams(window.location.search);i(0,a=l.get("fw")||"pt")}),[a]}class ue extends R{constructor(t){super(),Y(this,t,ae,te,G,{})}}export{ue as component};
