import{s as G,o as N}from"../chunks/scheduler.37c15a92.js";import{S as B,i as K,g,s as u,r as H,A as O,h as b,f as s,c,j as I,u as x,x as U,k as q,y as Q,a as o,v as E,d as L,t as T,w as M}from"../chunks/index.2bf4358c.js";import{C as R}from"../chunks/CourseFloatingBanner.6add7356.js";import{F as D}from"../chunks/FrameworkSwitchCourse.8d4d4ab6.js";import{H as J}from"../chunks/Heading.8ada512a.js";import{E as V}from"../chunks/getInferenceSnippets.b37612c0.js";function W(p){let t,r='<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=g("ul"),t.innerHTML=r},l(n){t=b(n,"UL",{"data-svelte-h":!0}),U(t)!=="svelte-1a36n6e"&&(t.innerHTML=r)},m(n,l){o(n,t,l)},d(n){n&&s(t)}}}function X(p){let t,r='<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=g("ul"),t.innerHTML=r},l(n){t=b(n,"UL",{"data-svelte-h":!0}),U(t)!=="svelte-kh7jyh"&&(t.innerHTML=r)},m(n,l){o(n,t,l)},d(n){n&&s(t)}}}function Y(p){let t,r,n,l,m,y,f,j,d,v,h,z="¡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:",k,_,$,A,w,C;m=new D({props:{fw:p[0]}}),f=new J({props:{title:"Ajuste de modelos, ¡hecho!",local:"ajuste-de-modelos-hecho",headingTag:"h1"}}),d=new R({props:{chapter:3,classNames:"absolute z-10 right-0 top-0"}});function S(e,a){return e[0]==="pt"?X:W}let P=S(p),i=P(p);return $=new V({props:{source:"https://github.com/huggingface/course/blob/main/chapters/es/chapter3/5.mdx"}}),{c(){t=g("meta"),r=u(),n=g("p"),l=u(),H(m.$$.fragment),y=u(),H(f.$$.fragment),j=u(),H(d.$$.fragment),v=u(),h=g("p"),h.textContent=z,k=u(),i.c(),_=u(),H($.$$.fragment),A=u(),w=g("p"),this.h()},l(e){const a=O("svelte-u9bgzb",document.head);t=b(a,"META",{name:!0,content:!0}),a.forEach(s),r=c(e),n=b(e,"P",{}),I(n).forEach(s),l=c(e),x(m.$$.fragment,e),y=c(e),x(f.$$.fragment,e),j=c(e),x(d.$$.fragment,e),v=c(e),h=b(e,"P",{"data-svelte-h":!0}),U(h)!=="svelte-a5tke2"&&(h.textContent=z),k=c(e),i.l(e),_=c(e),x($.$$.fragment,e),A=c(e),w=b(e,"P",{}),I(w).forEach(s),this.h()},h(){q(t,"name","hf:doc:metadata"),q(t,"content",Z)},m(e,a){Q(document.head,t),o(e,r,a),o(e,n,a),o(e,l,a),E(m,e,a),o(e,y,a),E(f,e,a),o(e,j,a),E(d,e,a),o(e,v,a),o(e,h,a),o(e,k,a),i.m(e,a),o(e,_,a),E($,e,a),o(e,A,a),o(e,w,a),C=!0},p(e,[a]){const F={};a&1&&(F.fw=e[0]),m.$set(F),P!==(P=S(e))&&(i.d(1),i=P(e),i&&(i.c(),i.m(_.parentNode,_)))},i(e){C||(L(m.$$.fragment,e),L(f.$$.fragment,e),L(d.$$.fragment,e),L($.$$.fragment,e),C=!0)},o(e){T(m.$$.fragment,e),T(f.$$.fragment,e),T(d.$$.fragment,e),T($.$$.fragment,e),C=!1},d(e){e&&(s(r),s(n),s(l),s(y),s(j),s(v),s(h),s(k),s(_),s(A),s(w)),s(t),M(m,e),M(f,e),M(d,e),i.d(e),M($,e)}}}const Z='{"title":"Ajuste de modelos, ¡hecho!","local":"ajuste-de-modelos-hecho","sections":[],"depth":1}';function ee(p,t,r){let n="pt";return N(()=>{const l=new URLSearchParams(window.location.search);r(0,n=l.get("fw")||"pt")}),[n]}class le extends B{constructor(t){super(),K(this,t,ee,Y,G,{})}}export{le as component};
