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