import{s as N,o as j}from"../chunks/scheduler.cc52f4b9.js";import{S as K,i as O,e as g,s as f,c as P,h as R,a as w,d as n,b as c,f as q,g as H,j as I,k as G,l as B,m as o,n as M,t as T,o as S,p as E}from"../chunks/index.d2856393.js";import{C as D,H as J,E as Q}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.8ffb7edb.js";import{F as V}from"../chunks/FrameworkSwitchCourse.22a5e932.js";function W(p){let t,l='<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=g("ul"),t.innerHTML=l},l(i){t=w(i,"UL",{"data-svelte-h":!0}),I(t)!=="svelte-1ezm5pa"&&(t.innerHTML=l)},m(i,r){o(i,t,r)},d(i){i&&n(t)}}}function X(p){let t,l='<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=g("ul"),t.innerHTML=l},l(i){t=w(i,"UL",{"data-svelte-h":!0}),I(t)!=="svelte-1webhli"&&(t.innerHTML=l)},m(i,r){o(i,t,r)},d(i){i&&n(t)}}}function Y(p){let t,l,i,r,m,v,u,k,d,x,$,U="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:",z,_,h,y,b,C;m=new V({props:{fw:p[0]}}),u=new D({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),d=new J({props:{title:"Affinamento, Fatto!",local:"affinamento-fatto",headingTag:"h1"}});function A(e,a){return e[0]==="pt"?X:W}let L=A(p),s=L(p);return h=new Q({props:{source:"https://github.com/huggingface/course/blob/main/chapters/it/chapter3/5.mdx"}}),{c(){t=g("meta"),l=f(),i=g("p"),r=f(),P(m.$$.fragment),v=f(),P(u.$$.fragment),k=f(),P(d.$$.fragment),x=f(),$=g("p"),$.textContent=U,z=f(),s.c(),_=f(),P(h.$$.fragment),y=f(),b=g("p"),this.h()},l(e){const a=R("svelte-u9bgzb",document.head);t=w(a,"META",{name:!0,content:!0}),a.forEach(n),l=c(e),i=w(e,"P",{}),q(i).forEach(n),r=c(e),H(m.$$.fragment,e),v=c(e),H(u.$$.fragment,e),k=c(e),H(d.$$.fragment,e),x=c(e),$=w(e,"P",{"data-svelte-h":!0}),I($)!=="svelte-c3rlka"&&($.textContent=U),z=c(e),s.l(e),_=c(e),H(h.$$.fragment,e),y=c(e),b=w(e,"P",{}),q(b).forEach(n),this.h()},h(){G(t,"name","hf:doc:metadata"),G(t,"content",Z)},m(e,a){B(document.head,t),o(e,l,a),o(e,i,a),o(e,r,a),M(m,e,a),o(e,v,a),M(u,e,a),o(e,k,a),M(d,e,a),o(e,x,a),o(e,$,a),o(e,z,a),s.m(e,a),o(e,_,a),M(h,e,a),o(e,y,a),o(e,b,a),C=!0},p(e,[a]){const F={};a&1&&(F.fw=e[0]),m.$set(F),L!==(L=A(e))&&(s.d(1),s=L(e),s&&(s.c(),s.m(_.parentNode,_)))},i(e){C||(T(m.$$.fragment,e),T(u.$$.fragment,e),T(d.$$.fragment,e),T(h.$$.fragment,e),C=!0)},o(e){S(m.$$.fragment,e),S(u.$$.fragment,e),S(d.$$.fragment,e),S(h.$$.fragment,e),C=!1},d(e){e&&(n(l),n(i),n(r),n(v),n(k),n(x),n($),n(z),n(_),n(y),n(b)),n(t),E(m,e),E(u,e),E(d,e),s.d(e),E(h,e)}}}const Z='{"title":"Affinamento, Fatto!","local":"affinamento-fatto","sections":[],"depth":1}';function ee(p,t,l){let i="pt";return j(()=>{const r=new URLSearchParams(window.location.search);l(0,i=r.get("fw")||"pt")}),[i]}class oe extends K{constructor(t){super(),O(this,t,ee,Y,N,{})}}export{oe as component};
