import{s as N,o as q}from"../chunks/scheduler.37c15a92.js";import{S as R,i as Y,g as $,s as c,r as x,A as D,h as _,f as a,c as f,j as B,u as P,x as C,k as K,y as G,a as r,v as I,d as z,t as A,w as E}from"../chunks/index.2bf4358c.js";import{C as J}from"../chunks/CourseFloatingBanner.15ba07e6.js";import{F as O}from"../chunks/FrameworkSwitchCourse.8d4d4ab6.js";import{H as Q}from"../chunks/Heading.8ada512a.js";function V(m){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=$("ul"),t.innerHTML=i},l(o){t=_(o,"UL",{"data-svelte-h":!0}),C(t)!=="svelte-1uy4s3d"&&(t.innerHTML=i)},m(o,l){r(o,t,l)},d(o){o&&a(t)}}}function W(m){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=$("ul"),t.innerHTML=i},l(o){t=_(o,"UL",{"data-svelte-h":!0}),C(t)!=="svelte-16go9vk"&&(t.innerHTML=i)},m(o,l){r(o,t,l)},d(o){o&&a(t)}}}function X(m){let t,i,o,l,u,v,p,y,d,b,h,F='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:',k,g,w,S='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>',T,H,L;u=new O({props:{fw:m[0]}}),p=new Q({props:{title:"Introduction",local:"introduction",headingTag:"h1"}}),d=new J({props:{chapter:3,classNames:"absolute z-10 right-0 top-0"}});function U(e,n){return e[0]==="pt"?W:V}let M=U(m),s=M(m);return{c(){t=$("meta"),i=c(),o=$("p"),l=c(),x(u.$$.fragment),v=c(),x(p.$$.fragment),y=c(),x(d.$$.fragment),b=c(),h=$("p"),h.innerHTML=F,k=c(),s.c(),g=c(),w=$("p"),w.innerHTML=S,T=c(),H=$("p"),this.h()},l(e){const n=D("svelte-u9bgzb",document.head);t=_(n,"META",{name:!0,content:!0}),n.forEach(a),i=f(e),o=_(e,"P",{}),B(o).forEach(a),l=f(e),P(u.$$.fragment,e),v=f(e),P(p.$$.fragment,e),y=f(e),P(d.$$.fragment,e),b=f(e),h=_(e,"P",{"data-svelte-h":!0}),C(h)!=="svelte-137zttn"&&(h.innerHTML=F),k=f(e),s.l(e),g=f(e),w=_(e,"P",{"data-svelte-h":!0}),C(w)!=="svelte-1l49lxx"&&(w.innerHTML=S),T=f(e),H=_(e,"P",{}),B(H).forEach(a),this.h()},h(){K(t,"name","hf:doc:metadata"),K(t,"content",Z)},m(e,n){G(document.head,t),r(e,i,n),r(e,o,n),r(e,l,n),I(u,e,n),r(e,v,n),I(p,e,n),r(e,y,n),I(d,e,n),r(e,b,n),r(e,h,n),r(e,k,n),s.m(e,n),r(e,g,n),r(e,w,n),r(e,T,n),r(e,H,n),L=!0},p(e,[n]){const j={};n&1&&(j.fw=e[0]),u.$set(j),M!==(M=U(e))&&(s.d(1),s=M(e),s&&(s.c(),s.m(g.parentNode,g)))},i(e){L||(z(u.$$.fragment,e),z(p.$$.fragment,e),z(d.$$.fragment,e),L=!0)},o(e){A(u.$$.fragment,e),A(p.$$.fragment,e),A(d.$$.fragment,e),L=!1},d(e){e&&(a(i),a(o),a(l),a(v),a(y),a(b),a(h),a(k),a(g),a(w),a(T),a(H)),a(t),E(u,e),E(p,e),E(d,e),s.d(e)}}}const Z='{"title":"Introduction","local":"introduction","sections":[],"depth":1}';function ee(m,t,i){let o="pt";return q(()=>{const l=new URLSearchParams(window.location.search);i(0,o=l.get("fw")||"pt")}),[o]}class ie extends R{constructor(t){super(),Y(this,t,ee,X,N,{})}}export{ie as component};
