import{s as q,o as G}from"../chunks/scheduler.37c15a92.js";import{S as N,i as j,g as _,s as d,r as H,A as K,h as w,f as o,c as h,j as A,u as x,x as I,k as F,y as O,a as l,v as y,d as L,t as T,w as E}from"../chunks/index.2bf4358c.js";import{F as R}from"../chunks/FrameworkSwitchCourse.8d4d4ab6.js";import{H as B,E as D}from"../chunks/getInferenceSnippets.97e75ee2.js";function J(c){let t,n='<li>Scoperto i datasets nel <a href="https://huggingface.co/datasets" rel="nofollow">Hub</a></li> <li>Imparato come caricare e preprocessare i datasets</li> <li>Imparato come affinare e valutare un modello con Keras</li> <li>Implementato una metric personalizzata</li>';return{c(){t=_("ul"),t.innerHTML=n},l(a){t=w(a,"UL",{"data-svelte-h":!0}),I(t)!=="svelte-1ezm5pa"&&(t.innerHTML=n)},m(a,r){l(a,t,r)},d(a){a&&o(t)}}}function Q(c){let t,n='<li>Scoperto i datasets nel <a href="https://huggingface.co/datasets" rel="nofollow">Hub</a></li> <li>Imparato come caricare e preprocessare i datasets, usando anche padding dinamico e funzioni di raccolta</li> <li>Implementato il vostro affinamento e valutazione di un modello</li> <li>Implementato un ciclo di addestramento di basso livello</li> <li>Usato 🤗 Accelerate per adattare in maniera semplice il vostro ciclo di addestramento all’utilizzo di svariate GPU o TPU</li>';return{c(){t=_("ul"),t.innerHTML=n},l(a){t=w(a,"UL",{"data-svelte-h":!0}),I(t)!=="svelte-1webhli"&&(t.innerHTML=n)},m(a,r){l(a,t,r)},d(a){a&&o(t)}}}function V(c){let t,n,a,r,m,b,f,g,p,M="Che divertimento. Nei primi due capitoli abbiamo scoperto i modelli e i tokenizzatori, e adesso sapete come affinarli per i vostri dati. Per riassumere, in questo capitolo avete:",k,$,u,z,v,P;m=new R({props:{fw:c[0]}}),f=new B({props:{title:"Affinamento, Fatto!",local:"affinamento-fatto",headingTag:"h1"}});function S(e,i){return e[0]==="pt"?Q:J}let C=S(c),s=C(c);return u=new D({props:{source:"https://github.com/huggingface/course/blob/main/chapters/it/chapter3/5.mdx"}}),{c(){t=_("meta"),n=d(),a=_("p"),r=d(),H(m.$$.fragment),b=d(),H(f.$$.fragment),g=d(),p=_("p"),p.textContent=M,k=d(),s.c(),$=d(),H(u.$$.fragment),z=d(),v=_("p"),this.h()},l(e){const i=K("svelte-u9bgzb",document.head);t=w(i,"META",{name:!0,content:!0}),i.forEach(o),n=h(e),a=w(e,"P",{}),A(a).forEach(o),r=h(e),x(m.$$.fragment,e),b=h(e),x(f.$$.fragment,e),g=h(e),p=w(e,"P",{"data-svelte-h":!0}),I(p)!=="svelte-c3rlka"&&(p.textContent=M),k=h(e),s.l(e),$=h(e),x(u.$$.fragment,e),z=h(e),v=w(e,"P",{}),A(v).forEach(o),this.h()},h(){F(t,"name","hf:doc:metadata"),F(t,"content",W)},m(e,i){O(document.head,t),l(e,n,i),l(e,a,i),l(e,r,i),y(m,e,i),l(e,b,i),y(f,e,i),l(e,g,i),l(e,p,i),l(e,k,i),s.m(e,i),l(e,$,i),y(u,e,i),l(e,z,i),l(e,v,i),P=!0},p(e,[i]){const U={};i&1&&(U.fw=e[0]),m.$set(U),C!==(C=S(e))&&(s.d(1),s=C(e),s&&(s.c(),s.m($.parentNode,$)))},i(e){P||(L(m.$$.fragment,e),L(f.$$.fragment,e),L(u.$$.fragment,e),P=!0)},o(e){T(m.$$.fragment,e),T(f.$$.fragment,e),T(u.$$.fragment,e),P=!1},d(e){e&&(o(n),o(a),o(r),o(b),o(g),o(p),o(k),o($),o(z),o(v)),o(t),E(m,e),E(f,e),s.d(e),E(u,e)}}}const W='{"title":"Affinamento, Fatto!","local":"affinamento-fatto","sections":[],"depth":1}';function X(c,t,n){let a="pt";return G(()=>{const r=new URLSearchParams(window.location.search);n(0,a=r.get("fw")||"pt")}),[a]}class ae extends N{constructor(t){super(),j(this,t,X,V,q,{})}}export{ae as component};
