import{s as O,o as R}from"../chunks/scheduler.cc52f4b9.js";import{S as B,i as D,e as g,s as m,c as y,h as J,a as b,d as r,b as u,f as N,g as P,j,k as G,l as Q,m as n,n as E,t as S,o as q,p as I}from"../chunks/index.d2856393.js";import{C as V,H as W,E as X}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.8ffb7edb.js";import{F as Y}from"../chunks/FrameworkSwitchCourse.22a5e932.js";function Z(p){let t,l="<li>Come preparare un grande dataset dall’Hub</li> <li>Come usare Keras per affinare un modello</li> <li>Come usare Keras per ottenere delle predizioni</li> <li>Come usare una metrica personalizzata</li>";return{c(){t=g("ul"),t.innerHTML=l},l(i){t=b(i,"UL",{"data-svelte-h":!0}),j(t)!=="svelte-mrwdvj"&&(t.innerHTML=l)},m(i,o){n(i,t,o)},d(i){i&&r(t)}}}function ee(p){let t,l="<li>Come preparare un grande dataset dall’Hub</li> <li>Come usare l’API di alto livello <code>Trainer</code> per affinare un modello</li> <li>Come usare un ciclo di addestramento personalizzato</li> <li>Come utilizzare la libreria 🤗 Accelerate per eseguire facilmente quel ciclo di addestramento personalizzato su qualsiasi sistema distribuito</li>";return{c(){t=g("ul"),t.innerHTML=l},l(i){t=b(i,"UL",{"data-svelte-h":!0}),j(t)!=="svelte-15bggv2"&&(t.innerHTML=l)},m(i,o){n(i,t,o)},d(i){i&&r(t)}}}function te(p){let t,l,i,o,c,v,f,C,d,H,$,A='Nel <a href="/course/chapter2">Capitolo 2</a> abbiamo scoperto come utilizzare i tokenizzatori e i modelli preaddestrati per effettuare delle predizioni. Ma cosa fare se si vuole affinare un modello preaddestrato col tuo dataset? Lo scopriremo in questo capitolo! Impareremo:',L,w,_,F='Per caricare i checkpoint di addestramento sull’Hub di Hugging Face è necessario un account huggingface.co: <a href="https://huggingface.co/join" rel="nofollow">creare un account</a>',M,h,T,z,k;c=new Y({props:{fw:p[0]}}),f=new V({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),d=new W({props:{title:"Introduzione",local:"introduzione",headingTag:"h1"}});function U(e,a){return e[0]==="pt"?ee:Z}let x=U(p),s=x(p);return h=new X({props:{source:"https://github.com/huggingface/course/blob/main/chapters/it/chapter3/1.mdx"}}),{c(){t=g("meta"),l=m(),i=g("p"),o=m(),y(c.$$.fragment),v=m(),y(f.$$.fragment),C=m(),y(d.$$.fragment),H=m(),$=g("p"),$.innerHTML=A,L=m(),s.c(),w=m(),_=g("p"),_.innerHTML=F,M=m(),y(h.$$.fragment),T=m(),z=g("p"),this.h()},l(e){const a=J("svelte-u9bgzb",document.head);t=b(a,"META",{name:!0,content:!0}),a.forEach(r),l=u(e),i=b(e,"P",{}),N(i).forEach(r),o=u(e),P(c.$$.fragment,e),v=u(e),P(f.$$.fragment,e),C=u(e),P(d.$$.fragment,e),H=u(e),$=b(e,"P",{"data-svelte-h":!0}),j($)!=="svelte-10rihi9"&&($.innerHTML=A),L=u(e),s.l(e),w=u(e),_=b(e,"P",{"data-svelte-h":!0}),j(_)!=="svelte-1xwv836"&&(_.innerHTML=F),M=u(e),P(h.$$.fragment,e),T=u(e),z=b(e,"P",{}),N(z).forEach(r),this.h()},h(){G(t,"name","hf:doc:metadata"),G(t,"content",ae)},m(e,a){Q(document.head,t),n(e,l,a),n(e,i,a),n(e,o,a),E(c,e,a),n(e,v,a),E(f,e,a),n(e,C,a),E(d,e,a),n(e,H,a),n(e,$,a),n(e,L,a),s.m(e,a),n(e,w,a),n(e,_,a),n(e,M,a),E(h,e,a),n(e,T,a),n(e,z,a),k=!0},p(e,[a]){const K={};a&1&&(K.fw=e[0]),c.$set(K),x!==(x=U(e))&&(s.d(1),s=x(e),s&&(s.c(),s.m(w.parentNode,w)))},i(e){k||(S(c.$$.fragment,e),S(f.$$.fragment,e),S(d.$$.fragment,e),S(h.$$.fragment,e),k=!0)},o(e){q(c.$$.fragment,e),q(f.$$.fragment,e),q(d.$$.fragment,e),q(h.$$.fragment,e),k=!1},d(e){e&&(r(l),r(i),r(o),r(v),r(C),r(H),r($),r(L),r(w),r(_),r(M),r(T),r(z)),r(t),I(c,e),I(f,e),I(d,e),s.d(e),I(h,e)}}}const ae='{"title":"Introduzione","local":"introduzione","sections":[],"depth":1}';function ie(p,t,l){let i="pt";return R(()=>{const o=new URLSearchParams(window.location.search);l(0,i=o.get("fw")||"pt")}),[i]}class se extends B{constructor(t){super(),D(this,t,ie,te,O,{})}}export{se as component};
