import{s as I,o as q}from"../chunks/scheduler.37c15a92.js";import{S as N,i as B,g as _,s as d,r as C,A as G,h as g,f as o,c as h,j as S,u as P,x as M,k as F,y as K,a as l,v as H,d as L,t as T,w as x}from"../chunks/index.2bf4358c.js";import{C as Q}from"../chunks/CourseFloatingBanner.15ba07e6.js";import{F as R}from"../chunks/FrameworkSwitchCourse.8d4d4ab6.js";import{H as D}from"../chunks/Heading.8ada512a.js";function J(c){let t,s='<li>Aprendiste sobre los conjuntos de datos en <a href="https://huggingface.co/datasets" rel="nofollow">Hub</a></li> <li>Aprendiste a cargar y preprocesar conjuntos de datos</li> <li>Aprendiste a ajustar (fine-tuning) y evaluar un modelo con Keras</li> <li>Implementaste una métrica personalizada</li>';return{c(){t=_("ul"),t.innerHTML=s},l(a){t=g(a,"UL",{"data-svelte-h":!0}),M(t)!=="svelte-1a36n6e"&&(t.innerHTML=s)},m(a,r){l(a,t,r)},d(a){a&&o(t)}}}function O(c){let t,s='<li>Aprendiste sobre los conjuntos de datos del <a href="https://huggingface.co/datasets" rel="nofollow">Hub</a></li> <li>Aprendiste a cargar y preprocesar conjuntos de datos, incluyendo el uso de padding dinámico y los “collators”</li> <li>Implementaste tu propio ajuste (fine-tuning) y cómo evaluar un modelo</li> <li>Implementaste un bucle de entrenamiento de bajo nivel</li> <li>Utilizaste 🤗 Accelerate para adaptar fácilmente tu bucle de entrenamiento para que funcione en múltiples GPUs o TPUs</li>';return{c(){t=_("ul"),t.innerHTML=s},l(a){t=g(a,"UL",{"data-svelte-h":!0}),M(t)!=="svelte-kh7jyh"&&(t.innerHTML=s)},m(a,r){l(a,t,r)},d(a){a&&o(t)}}}function V(c){let t,s,a,r,u,b,m,y,p,j,f,U="¡Qué divertido! En los dos primeros capítulos aprendiste sobre modelos y tokenizadores, y ahora sabes cómo ajustarlos a tus propios datos. Para recapitular, en este capítulo:",v,$,w,k;u=new R({props:{fw:c[0]}}),m=new D({props:{title:"Ajuste de modelos, ¡hecho!",local:"ajuste-de-modelos-hecho",headingTag:"h1"}}),p=new Q({props:{chapter:3,classNames:"absolute z-10 right-0 top-0"}});function z(e,n){return e[0]==="pt"?O:J}let A=z(c),i=A(c);return{c(){t=_("meta"),s=d(),a=_("p"),r=d(),C(u.$$.fragment),b=d(),C(m.$$.fragment),y=d(),C(p.$$.fragment),j=d(),f=_("p"),f.textContent=U,v=d(),i.c(),$=d(),w=_("p"),this.h()},l(e){const n=G("svelte-u9bgzb",document.head);t=g(n,"META",{name:!0,content:!0}),n.forEach(o),s=h(e),a=g(e,"P",{}),S(a).forEach(o),r=h(e),P(u.$$.fragment,e),b=h(e),P(m.$$.fragment,e),y=h(e),P(p.$$.fragment,e),j=h(e),f=g(e,"P",{"data-svelte-h":!0}),M(f)!=="svelte-a5tke2"&&(f.textContent=U),v=h(e),i.l(e),$=h(e),w=g(e,"P",{}),S(w).forEach(o),this.h()},h(){F(t,"name","hf:doc:metadata"),F(t,"content",W)},m(e,n){K(document.head,t),l(e,s,n),l(e,a,n),l(e,r,n),H(u,e,n),l(e,b,n),H(m,e,n),l(e,y,n),H(p,e,n),l(e,j,n),l(e,f,n),l(e,v,n),i.m(e,n),l(e,$,n),l(e,w,n),k=!0},p(e,[n]){const E={};n&1&&(E.fw=e[0]),u.$set(E),A!==(A=z(e))&&(i.d(1),i=A(e),i&&(i.c(),i.m($.parentNode,$)))},i(e){k||(L(u.$$.fragment,e),L(m.$$.fragment,e),L(p.$$.fragment,e),k=!0)},o(e){T(u.$$.fragment,e),T(m.$$.fragment,e),T(p.$$.fragment,e),k=!1},d(e){e&&(o(s),o(a),o(r),o(b),o(y),o(j),o(f),o(v),o($),o(w)),o(t),x(u,e),x(m,e),x(p,e),i.d(e)}}}const W='{"title":"Ajuste de modelos, ¡hecho!","local":"ajuste-de-modelos-hecho","sections":[],"depth":1}';function X(c,t,s){let a="pt";return q(()=>{const r=new URLSearchParams(window.location.search);s(0,a=r.get("fw")||"pt")}),[a]}class ne extends N{constructor(t){super(),B(this,t,X,V,I,{})}}export{ne as component};
