var Co=Object.defineProperty,Ao=Object.defineProperties;var So=Object.getOwnPropertyDescriptors;var fo=Object.getOwnPropertySymbols;var Po=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable;var po=(s,t,i)=>t in s?Co(s,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[t]=i,Ht=(s,t)=>{for(var i in t||(t={}))Po.call(t,i)&&po(s,i,t[i]);if(fo)for(var i of fo(t))No.call(t,i)&&po(s,i,t[i]);return s},It=(s,t)=>Ao(s,So(t));import{D as Ho,S as wo,i as ko,s as xo,e as n,k as b,Y as yo,l as ho,c,a as f,m as w,Z as Eo,d as o,b as u,g as v,G as a,Q as zo,t as A,h as S,j as Io,_ as To,L as mo,K as Qo,$ as Uo,v as qo,a0 as _o,a1 as Lo,w as N,M as Mo,x as H,y as I,o as q,p as Oo,q as C,B as T,n as Fo}from"../../chunks/vendor-hf-doc-builder.js";import{I as B}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{F as Go}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";const Tt=Ho({});function vo(s,t,i){const r=s.slice();return r[11]=t[i],r[13]=i,r}function go(s){let t,i,r=s[11].correct?"Correct!":"Incorrect.",l,h,g,E=s[11].explain+"",k;return{c(){t=n("div"),i=n("span"),l=A(r),h=b(),g=new yo,this.h()},l(x){t=c(x,"DIV",{class:!0});var y=f(t);i=c(y,"SPAN",{class:!0});var P=f(i);l=S(P,r),P.forEach(o),h=w(y),g=Eo(y),y.forEach(o),this.h()},h(){u(i,"class","font-bold"),g.a=null,u(t,"class",k="alert alert-"+(s[11].correct?"success":"error")+" mt-1 mb-2.5 leading-normal")},m(x,y){v(x,t,y),a(t,i),a(i,l),a(t,h),g.m(E,t)},p(x,y){y&1&&r!==(r=x[11].correct?"Correct!":"Incorrect.")&&Io(l,r),y&1&&E!==(E=x[11].explain+"")&&g.p(E),y&1&&k!==(k="alert alert-"+(x[11].correct?"success":"error")+" mt-1 mb-2.5 leading-normal")&&u(t,"class",k)},d(x){x&&o(t)}}}function $o(s){let t,i,r,l,h,g=s[11].text+"",E,k=s[4]&&s[4].includes(s[13]),x,y,P,_=k&&go(s);return{c(){t=n("label"),i=n("input"),l=b(),h=new yo,E=b(),_&&_.c(),x=ho(),this.h()},l(p){t=c(p,"LABEL",{class:!0});var d=f(t);i=c(d,"INPUT",{autocomplete:!0,class:!0,name:!0,type:!0}),l=w(d),h=Eo(d),d.forEach(o),E=w(p),_&&_.l(p),x=ho(),this.h()},h(){u(i,"autocomplete","off"),u(i,"class","form-input -mt-1.5 mr-2"),u(i,"name","choice"),u(i,"type","checkbox"),i.__value=r=s[13],i.value=i.__value,s[7][0].push(i),h.a=null,u(t,"class","block")},m(p,d){v(p,t,d),a(t,i),i.checked=~s[3].indexOf(i.__value),a(t,l),h.m(g,t),v(p,E,d),_&&_.m(p,d),v(p,x,d),y||(P=zo(i,"change",s[6]),y=!0)},p(p,d){d&8&&(i.checked=~p[3].indexOf(i.__value)),d&1&&g!==(g=p[11].text+"")&&h.p(g),d&16&&(k=p[4]&&p[4].includes(p[13])),k?_?_.p(p,d):(_=go(p),_.c(),_.m(x.parentNode,x)):_&&(_.d(1),_=null)},d(p){p&&o(t),s[7][0].splice(s[7][0].indexOf(i),1),p&&o(E),_&&_.d(p),p&&o(x),y=!1,P()}}}function bo(s){let t;function i(h,g){return h[1]?Yo:h[2]?Vo:Do}let r=i(s),l=r(s);return{c(){t=n("div"),l.c(),this.h()},l(h){t=c(h,"DIV",{class:!0});var g=f(t);l.l(g),g.forEach(o),this.h()},h(){u(t,"class","font-semibold leading-snug")},m(h,g){v(h,t,g),l.m(t,null)},p(h,g){r!==(r=i(h))&&(l.d(1),l=r(h),l&&(l.c(),l.m(t,null)))},d(h){h&&o(t),l.d()}}}function Do(s){let t,i;return{c(){t=n("span"),i=A("You got all the answers!"),this.h()},l(r){t=c(r,"SPAN",{class:!0});var l=f(t);i=S(l,"You got all the answers!"),l.forEach(o),this.h()},h(){u(t,"class","text-green-900 dark:text-green-200")},m(r,l){v(r,t,l),a(t,i)},d(r){r&&o(t)}}}function Vo(s){let t,i;return{c(){t=n("span"),i=A("You didn't select all the correct answers, there's more!"),this.h()},l(r){t=c(r,"SPAN",{class:!0});var l=f(t);i=S(l,"You didn't select all the correct answers, there's more!"),l.forEach(o),this.h()},h(){u(t,"class","text-red-900 dark:text-red-200")},m(r,l){v(r,t,l),a(t,i)},d(r){r&&o(t)}}}function Yo(s){let t,i;return{c(){t=n("span"),i=A("Looks like at least one of your answers is wrong, try again!"),this.h()},l(r){t=c(r,"SPAN",{class:!0});var l=f(t);i=S(l,"Looks like at least one of your answers is wrong, try again!"),l.forEach(o),this.h()},h(){u(t,"class","text-red-900 dark:text-red-200")},m(r,l){v(r,t,l),a(t,i)},d(r){r&&o(t)}}}function Ro(s){let t,i,r,l,h,g,E,k,x,y,P=s[0],_=[];for(let d=0;d<P.length;d+=1)_[d]=$o(vo(s,P,d));let p=s[4].length&&bo(s);return{c(){t=n("div"),i=n("form");for(let d=0;d<_.length;d+=1)_[d].c();r=b(),l=n("div"),h=n("button"),g=A("Submit"),k=b(),p&&p.c(),this.h()},l(d){t=c(d,"DIV",{});var z=f(t);i=c(z,"FORM",{});var $=f(i);for(let U=0;U<_.length;U+=1)_[U].l($);r=w($),l=c($,"DIV",{class:!0});var Q=f(l);h=c(Q,"BUTTON",{class:!0,type:!0});var J=f(h);g=S(J,"Submit"),J.forEach(o),k=w(Q),p&&p.l(Q),Q.forEach(o),$.forEach(o),z.forEach(o),this.h()},h(){u(h,"class","btn px-4 mr-4"),u(h,"type","submit"),h.disabled=E=!s[3].length,u(l,"class","flex flex-row items-center mt-3")},m(d,z){v(d,t,z),a(t,i);for(let $=0;$<_.length;$+=1)_[$].m(i,null);a(i,r),a(i,l),a(l,h),a(h,g),a(l,k),p&&p.m(l,null),x||(y=zo(i,"submit",To(s[8])),x=!0)},p(d,[z]){if(z&25){P=d[0];let $;for($=0;$<P.length;$+=1){const Q=vo(d,P,$);_[$]?_[$].p(Q,z):(_[$]=$o(Q),_[$].c(),_[$].m(i,r))}for(;$<_.length;$+=1)_[$].d(1);_.length=P.length}z&8&&E!==(E=!d[3].length)&&(h.disabled=E),d[4].length?p?p.p(d,z):(p=bo(d),p.c(),p.m(l,null)):p&&(p.d(1),p=null)},i:mo,o:mo,d(d){d&&o(t),Qo(_,d),p&&p.d(),x=!1,y()}}}function Bo(s="_"){return`${s}${Math.random().toString(36).substr(2,9)}`}function jo(s,t,i){let r;Uo(s,Tt,d=>i(9,r=d));let{choices:l}=t;const h=Bo();let g=!1,E=!1,k=[],x=[];qo(()=>{_o(Tt,r=It(Ht({},r),{[h]:{correct:!1}}),r)});function y(){i(1,g=!1),i(2,E=!1);for(let z=0;z<l.length;z++){const $=l[z];$.correct&&!k.includes(z)?i(2,E=!0):!$.correct&&k.includes(z)&&i(1,g=!0)}if(i(4,x=k),_o(Tt,r=It(Ht({},r),{[h]:{correct:!E&&!g}}),r),Object.values(r).every(({correct:z})=>z)){const z=new Event("ChapterComplete");window.dispatchEvent(z)}}const P=[[]];function _(){k=Lo(P[0],this.__value,this.checked),i(3,k)}const p=()=>y();return s.$$set=d=>{"choices"in d&&i(0,l=d.choices)},[l,g,E,k,x,y,_,P,p]}class j extends wo{constructor(t){super();ko(this,t,jo,Ro,xo,{choices:0})}}function Jo(s){let t,i;return t=new j({props:{choices:[{text:"Un tokenizer",explain:"Corretto! Tutti i tokenizers hanno il metodo <code>push_to_hub</code>, che carica tutti i file del tokenizer (vocabolario, architettura del tokenizer, ecc.) su un repository specificatoo. Questa non \xE8 l'unica risposta giusta per\xF2!",correct:!0},{text:"La configurazione di un modello",explain:"Vero! Gli oggetti di contennti la configurazione di tutti i modelli hanno il metodo <code>push_to_hub</code>, che li carica su un repository specificato. Cosa altro si pu\xF2 condividere?",correct:!0},{text:"Un modello",explain:"Corretto! Tutti i modelli hanno il metodo <code>push_to_hub</code>, e utilizzandolo si possono caricare, insieme ai loro file di configurazione, su un repository specificato. Si possono condividere anche altre cose.",correct:!0},{text:"Tutti i precedenti, usando una callback dedicata",explain:"Giusto \u2014 la callback <code>PushToHubCallback</code> caricher\xE0 tutti questi oggetti su un repository regolarmente durante l'addestramento.",correct:!0}]}}),{c(){N(t.$$.fragment)},l(r){H(t.$$.fragment,r)},m(r,l){I(t,r,l),i=!0},i(r){i||(C(t.$$.fragment,r),i=!0)},o(r){q(t.$$.fragment,r),i=!1},d(r){T(t,r)}}}function Ko(s){let t,i;return t=new j({props:{choices:[{text:"Un tokenizer",explain:"Corretto! Tutti i tokenizers hanno il metodo <code>push_to_hub</code>, che carica tutti i file del tokenizer (vocabolario, architettura del tokenizer, ecc.) su un repository specificatoo. Questa non \xE8 l'unica risposta giusta per\xF2!",correct:!0},{text:"La configurazione di un modello",explain:"Vero! Gli oggetti di contennti la configurazione di tutti i modelli hanno il metodo <code>push_to_hub</code>, che li carica su un repository specificato. Cosa altro si pu\xF2 condividere?",correct:!0},{text:"Un modello",explain:"Corretto! Tutti i modelli hanno il metodo <code>push_to_hub</code>, e utilizzandolo si possono caricare, insieme ai loro file di configurazione, su un repository specificato. Si possono condividere anche altre cose.",correct:!0},{text:"Un Trainer",explain:"Giusto \u2014 l'oggetto <code>Trainer</code> implementa il metodo <code>push_to_hub</code>, e utilizzandolo, si possono caricare modello, configurazione, tokenizer, e cartellino su un repository specificato. Prova un'altra risposta!",correct:!0}]}}),{c(){N(t.$$.fragment)},l(r){H(t.$$.fragment,r)},m(r,l){I(t,r,l),i=!0},i(r){i||(C(t.$$.fragment,r),i=!0)},o(r){q(t.$$.fragment,r),i=!1},d(r){T(t,r)}}}function Zo(s){let t,i,r,l,h,g,E,k,x,y,P,_,p,d,z,$,Q,J,U,ft,ye,pt,Me,ie,Oe,O,K,Ee,re,dt,ze,ht,Fe,ae,Ge,F,Z,qe,le,mt,Ce,_t,De,se,Ve,G,W,Ae,ne,vt,Se,gt,Ye,ce,Re,D,X,Pe,ue,$t,fe,bt,Ne,wt,kt,Be,L,M,ke,V,ee,He,pe,xt,de,yt,Ie,Et,zt,je,he,Je,Y,te,Te,me,qt,Qe,Ct,Ke,_e,Ze,R,oe,Ue,ve,At,ge,St,Le,Pt,Nt,We,$e,Xe;r=new Go({props:{fw:s[0]}}),k=new B({}),U=new B({}),ie=new j({props:{choices:[{text:"Modelli dalla libreria \u{1F917} Transformers.",explain:"I modelli della libreria \u{1F917} Transformers sono supportati dall'Hub di Hugging Face, ma non sono gli unici!"},{text:"Tutti i modelli con una interfaccia simile ai \u{1F917} Transformers.",explain:"Non ci sono requisiti relativi all'interfaccia quando si carica un modello sull'Hub di Hugging Face. "},{text:"Non ci sono limiti.",explain:"Esatto! Non ci sono limiti quando si carica un modello sull'Hub.",correct:!0},{text:"Modelli che sono in qualche modo relativi all'NLP.",explain:"Non ci sono requisiti relativi al campo di applicazione!"}]}}),re=new B({}),ae=new j({props:{choices:[{text:"Attraverso un account GCP.",explain:"Sbagliato!"},{text:"Attraverso un sistema di distribuzione peer-to-peer.",explain:"Sbagliato!"},{text:"Attraverso git e git-lfs.",explain:"Corretto! I modelli sull'Hub sono semplici repository Git, che usano <code>git-lfs</code> per i file di grandi dimensioni.",correct:!0}]}}),le=new B({}),se=new j({props:{choices:[{text:"Effettuare un fork di un repository esistente.",explain:"Non \xE8 possibile effettuare fork di repository sull'Hugging Face Hub."},{text:"Creare un nuvo repository di un modello.",explain:"Corretto! Per\xF2 si pu\xF2 fare anche altro.",correct:!0},{text:"Gestire ed editare file.",explain:"Corretto! Ma non \xE8 l'unica risposta giusta.",correct:!0},{text:"Caricare file.",explain:"Giusto! Ma non \xE8 tutto.",correct:!0},{text:"Visualizzare le differenze tra le versioni.",explain:"Corretto! Per\xF2 si pu\xF2 fare anche altro.",correct:!0}]}}),ne=new B({}),ce=new j({props:{choices:[{text:"Una descrizione approssimativa del modello, e pertanto meno importante dei file del modello e del tokenizer.",explain:"\xC8 effettivamente una descrizione del modello, ma \xE8 molto importante: se incompleto o mancante, l'utilit\xE0 del modello \xE8 ridotta drasticamente."},{text:"Un modo per assicurare riproducibilit\xE0, riutilizzo, e correttezza.",explain:"Corretto! Condividere le informazioni giuste sul cartellino aiuter\xE0 gli utenti a utilizzare il vostro modello ed essere a conoscenza dei suoi limiti e bias.",correct:!0},{text:"Un file Python che pu\xF2 essere eseguito per ottenere informazioni sul modello.",explain:"I cartellini sono semplici file Markdown."}]}}),ue=new B({});const Qt=[Ko,Jo],be=[];function Ut(e,m){return e[0]==="pt"?0:1}return L=Ut(s),M=be[L]=Qt[L](s),pe=new B({}),he=new j({props:{choices:[{text:"Log in sul sito web.",explain:"Questo non vi sar\xE0 utile mentre lavorate sulla vostra macchina locale."},{text:"Eseguire 'huggingface-cli login' in un terminale.",explain:"Corretto \u2014 questo scaricher\xE0 e salver\xE0 in una cartella di cache il vostro token di autenticazione personale.",correct:!0},{text:"Eseguire 'notebook_login()' in un notebook.",explain:"Corretto \u2014 questo mostrer\xE0 un widget che permette di autenticarsi.",correct:!0}]}}),me=new B({}),_e=new j({props:{choices:[{text:"Usando direttamente il metodo push_to_hub su modello e tokenizer.",explain:"Corretto!",correct:!0},{text:"All'interno di un runtime di Python, facendo wrapping di entrambi con l'utility <code>huggingface_hub</code>.",explain:"Modelli e tokenizer beneficiano gi\xE0 delle utilities di <code>huggingface_hub</code>: non c'\xE8 bisogno di wrapping addizionale!"},{text:"Salvandoli su disco e invocando il comando <code>transformers-cli upload-model</code>",explain:"Il commando <code>upload-model</code> non esiste."}]}}),ve=new B({}),$e=new j({props:{choices:[{text:"git commit.",explain:"Corretto, il metodo <code>git_commit()</code> \xE8 li per questo.",correct:!0},{text:"git pull",explain:"Questa \xE8 la funzione del metodo <code>git_pull()</code>.",correct:!0},{text:"git push",explain:"Il metodo <code>git_push()</code> fa esattamente questo.",correct:!0},{text:"git merge",explain:"No, questa operazione non \xE8 possibile con questa API."}]}}),{c(){t=n("meta"),i=b(),N(r.$$.fragment),l=b(),h=n("h1"),g=n("a"),E=n("span"),N(k.$$.fragment),x=b(),y=n("span"),P=A("Quiz di fine capitolo"),_=b(),p=n("p"),d=A("Mettiamo alla prova quello che avete imparato in questo capitolo!"),z=b(),$=n("h3"),Q=n("a"),J=n("span"),N(U.$$.fragment),ft=b(),ye=n("span"),pt=A("1. Quali modelli si possono caricare sull\u2019Hub?"),Me=b(),N(ie.$$.fragment),Oe=b(),O=n("h3"),K=n("a"),Ee=n("span"),N(re.$$.fragment),dt=b(),ze=n("span"),ht=A("2. Come si gestisce un modello sull\u2019Hub?"),Fe=b(),N(ae.$$.fragment),Ge=b(),F=n("h3"),Z=n("a"),qe=n("span"),N(le.$$.fragment),mt=b(),Ce=n("span"),_t=A("3. Cosa si pu\xF2 fare attraverso l\u2019interfacca web di Hugging Face Hub?"),De=b(),N(se.$$.fragment),Ve=b(),G=n("h3"),W=n("a"),Ae=n("span"),N(ne.$$.fragment),vt=b(),Se=n("span"),gt=A("4. Cos\u2019\xE8 il cartellino del modello?"),Ye=b(),N(ce.$$.fragment),Re=b(),D=n("h3"),X=n("a"),Pe=n("span"),N(ue.$$.fragment),$t=b(),fe=n("span"),bt=A("5. QUali di questi oggetti della libreria \u{1F917} Transformers pu\xF2 essere direttamente condiviso sull\u2019Hub con "),Ne=n("code"),wt=A("push_to_hub()"),kt=A("?"),Be=b(),M.c(),ke=b(),V=n("h3"),ee=n("a"),He=n("span"),N(pe.$$.fragment),xt=b(),de=n("span"),yt=A("6. Qual \xE8 il primo passo da fare quando si usano il metodo "),Ie=n("code"),Et=A("push_to_hub()"),zt=A(" o gli strumenti da riga di comando (CLI)?"),je=b(),N(he.$$.fragment),Je=b(),Y=n("h3"),te=n("a"),Te=n("span"),N(me.$$.fragment),qt=b(),Qe=n("span"),Ct=A("7. Se state usando un modello e un tokenizer \u2014 come li caricate sull\u2019Hub?"),Ke=b(),N(_e.$$.fragment),Ze=b(),R=n("h3"),oe=n("a"),Ue=n("span"),N(ve.$$.fragment),At=b(),ge=n("span"),St=A("8. Quali operazioni di git si possono fare con la classe "),Le=n("code"),Pt=A("Repository"),Nt=A("?"),We=b(),N($e.$$.fragment),this.h()},l(e){const m=Mo('[data-svelte="svelte-1phssyn"]',document.head);t=c(m,"META",{name:!0,content:!0}),m.forEach(o),i=w(e),H(r.$$.fragment,e),l=w(e),h=c(e,"H1",{class:!0});var we=f(h);g=c(we,"A",{id:!0,class:!0,href:!0});var xe=f(g);E=c(xe,"SPAN",{});var Lt=f(E);H(k.$$.fragment,Lt),Lt.forEach(o),xe.forEach(o),x=w(we),y=c(we,"SPAN",{});var Mt=f(y);P=S(Mt,"Quiz di fine capitolo"),Mt.forEach(o),we.forEach(o),_=w(e),p=c(e,"P",{});var Ot=f(p);d=S(Ot,"Mettiamo alla prova quello che avete imparato in questo capitolo!"),Ot.forEach(o),z=w(e),$=c(e,"H3",{class:!0});var et=f($);Q=c(et,"A",{id:!0,class:!0,href:!0});var Ft=f(Q);J=c(Ft,"SPAN",{});var Gt=f(J);H(U.$$.fragment,Gt),Gt.forEach(o),Ft.forEach(o),ft=w(et),ye=c(et,"SPAN",{});var Dt=f(ye);pt=S(Dt,"1. Quali modelli si possono caricare sull\u2019Hub?"),Dt.forEach(o),et.forEach(o),Me=w(e),H(ie.$$.fragment,e),Oe=w(e),O=c(e,"H3",{class:!0});var tt=f(O);K=c(tt,"A",{id:!0,class:!0,href:!0});var Vt=f(K);Ee=c(Vt,"SPAN",{});var Yt=f(Ee);H(re.$$.fragment,Yt),Yt.forEach(o),Vt.forEach(o),dt=w(tt),ze=c(tt,"SPAN",{});var Rt=f(ze);ht=S(Rt,"2. Come si gestisce un modello sull\u2019Hub?"),Rt.forEach(o),tt.forEach(o),Fe=w(e),H(ae.$$.fragment,e),Ge=w(e),F=c(e,"H3",{class:!0});var ot=f(F);Z=c(ot,"A",{id:!0,class:!0,href:!0});var Bt=f(Z);qe=c(Bt,"SPAN",{});var jt=f(qe);H(le.$$.fragment,jt),jt.forEach(o),Bt.forEach(o),mt=w(ot),Ce=c(ot,"SPAN",{});var Jt=f(Ce);_t=S(Jt,"3. Cosa si pu\xF2 fare attraverso l\u2019interfacca web di Hugging Face Hub?"),Jt.forEach(o),ot.forEach(o),De=w(e),H(se.$$.fragment,e),Ve=w(e),G=c(e,"H3",{class:!0});var it=f(G);W=c(it,"A",{id:!0,class:!0,href:!0});var Kt=f(W);Ae=c(Kt,"SPAN",{});var Zt=f(Ae);H(ne.$$.fragment,Zt),Zt.forEach(o),Kt.forEach(o),vt=w(it),Se=c(it,"SPAN",{});var Wt=f(Se);gt=S(Wt,"4. Cos\u2019\xE8 il cartellino del modello?"),Wt.forEach(o),it.forEach(o),Ye=w(e),H(ce.$$.fragment,e),Re=w(e),D=c(e,"H3",{class:!0});var rt=f(D);X=c(rt,"A",{id:!0,class:!0,href:!0});var Xt=f(X);Pe=c(Xt,"SPAN",{});var eo=f(Pe);H(ue.$$.fragment,eo),eo.forEach(o),Xt.forEach(o),$t=w(rt),fe=c(rt,"SPAN",{});var at=f(fe);bt=S(at,"5. QUali di questi oggetti della libreria \u{1F917} Transformers pu\xF2 essere direttamente condiviso sull\u2019Hub con "),Ne=c(at,"CODE",{});var to=f(Ne);wt=S(to,"push_to_hub()"),to.forEach(o),kt=S(at,"?"),at.forEach(o),rt.forEach(o),Be=w(e),M.l(e),ke=w(e),V=c(e,"H3",{class:!0});var lt=f(V);ee=c(lt,"A",{id:!0,class:!0,href:!0});var oo=f(ee);He=c(oo,"SPAN",{});var io=f(He);H(pe.$$.fragment,io),io.forEach(o),oo.forEach(o),xt=w(lt),de=c(lt,"SPAN",{});var st=f(de);yt=S(st,"6. Qual \xE8 il primo passo da fare quando si usano il metodo "),Ie=c(st,"CODE",{});var ro=f(Ie);Et=S(ro,"push_to_hub()"),ro.forEach(o),zt=S(st," o gli strumenti da riga di comando (CLI)?"),st.forEach(o),lt.forEach(o),je=w(e),H(he.$$.fragment,e),Je=w(e),Y=c(e,"H3",{class:!0});var nt=f(Y);te=c(nt,"A",{id:!0,class:!0,href:!0});var ao=f(te);Te=c(ao,"SPAN",{});var lo=f(Te);H(me.$$.fragment,lo),lo.forEach(o),ao.forEach(o),qt=w(nt),Qe=c(nt,"SPAN",{});var so=f(Qe);Ct=S(so,"7. Se state usando un modello e un tokenizer \u2014 come li caricate sull\u2019Hub?"),so.forEach(o),nt.forEach(o),Ke=w(e),H(_e.$$.fragment,e),Ze=w(e),R=c(e,"H3",{class:!0});var ct=f(R);oe=c(ct,"A",{id:!0,class:!0,href:!0});var no=f(oe);Ue=c(no,"SPAN",{});var co=f(Ue);H(ve.$$.fragment,co),co.forEach(o),no.forEach(o),At=w(ct),ge=c(ct,"SPAN",{});var ut=f(ge);St=S(ut,"8. Quali operazioni di git si possono fare con la classe "),Le=c(ut,"CODE",{});var uo=f(Le);Pt=S(uo,"Repository"),uo.forEach(o),Nt=S(ut,"?"),ut.forEach(o),ct.forEach(o),We=w(e),H($e.$$.fragment,e),this.h()},h(){u(t,"name","hf:doc:metadata"),u(t,"content",JSON.stringify(Wo)),u(g,"id","quiz-di-fine-capitolo"),u(g,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(g,"href","#quiz-di-fine-capitolo"),u(h,"class","relative group"),u(Q,"id","1.-quali-modelli-si-possono-caricare-sull\u2019hub?"),u(Q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Q,"href","#1.-quali-modelli-si-possono-caricare-sull\u2019hub?"),u($,"class","relative group"),u(K,"id","2.-come-si-gestisce-un-modello-sull\u2019hub?"),u(K,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(K,"href","#2.-come-si-gestisce-un-modello-sull\u2019hub?"),u(O,"class","relative group"),u(Z,"id","3.-cosa-si-pu\xF2-fare-attraverso-l\u2019interfacca-web-di-hugging-face-hub?"),u(Z,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(Z,"href","#3.-cosa-si-pu\xF2-fare-attraverso-l\u2019interfacca-web-di-hugging-face-hub?"),u(F,"class","relative group"),u(W,"id","4.-cos\u2019\xE8-il-cartellino-del-modello?"),u(W,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(W,"href","#4.-cos\u2019\xE8-il-cartellino-del-modello?"),u(G,"class","relative group"),u(X,"id","5.-quali-di-questi-oggetti-della-libreria-\u{1F917}-transformers-pu\xF2-essere-direttamente-condiviso-sull\u2019hub-con-<code>push_to_hub()</code>?"),u(X,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(X,"href","#5.-quali-di-questi-oggetti-della-libreria-\u{1F917}-transformers-pu\xF2-essere-direttamente-condiviso-sull\u2019hub-con-<code>push_to_hub()</code>?"),u(D,"class","relative group"),u(ee,"id","6.-qual-\xE8-il-primo-passo-da-fare-quando-si-usano-il-metodo-<code>push_to_hub()</code>-o-gli-strumenti-da-riga-di-comando-(cli)?"),u(ee,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(ee,"href","#6.-qual-\xE8-il-primo-passo-da-fare-quando-si-usano-il-metodo-<code>push_to_hub()</code>-o-gli-strumenti-da-riga-di-comando-(cli)?"),u(V,"class","relative group"),u(te,"id","7.-se-state-usando-un-modello-e-un-tokenizer-\u2014-come-li-caricate-sull\u2019hub?"),u(te,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(te,"href","#7.-se-state-usando-un-modello-e-un-tokenizer-\u2014-come-li-caricate-sull\u2019hub?"),u(Y,"class","relative group"),u(oe,"id","8.-quali-operazioni-di-git-si-possono-fare-con-la-classe-<code>repository</code>?"),u(oe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(oe,"href","#8.-quali-operazioni-di-git-si-possono-fare-con-la-classe-<code>repository</code>?"),u(R,"class","relative group")},m(e,m){a(document.head,t),v(e,i,m),I(r,e,m),v(e,l,m),v(e,h,m),a(h,g),a(g,E),I(k,E,null),a(h,x),a(h,y),a(y,P),v(e,_,m),v(e,p,m),a(p,d),v(e,z,m),v(e,$,m),a($,Q),a(Q,J),I(U,J,null),a($,ft),a($,ye),a(ye,pt),v(e,Me,m),I(ie,e,m),v(e,Oe,m),v(e,O,m),a(O,K),a(K,Ee),I(re,Ee,null),a(O,dt),a(O,ze),a(ze,ht),v(e,Fe,m),I(ae,e,m),v(e,Ge,m),v(e,F,m),a(F,Z),a(Z,qe),I(le,qe,null),a(F,mt),a(F,Ce),a(Ce,_t),v(e,De,m),I(se,e,m),v(e,Ve,m),v(e,G,m),a(G,W),a(W,Ae),I(ne,Ae,null),a(G,vt),a(G,Se),a(Se,gt),v(e,Ye,m),I(ce,e,m),v(e,Re,m),v(e,D,m),a(D,X),a(X,Pe),I(ue,Pe,null),a(D,$t),a(D,fe),a(fe,bt),a(fe,Ne),a(Ne,wt),a(fe,kt),v(e,Be,m),be[L].m(e,m),v(e,ke,m),v(e,V,m),a(V,ee),a(ee,He),I(pe,He,null),a(V,xt),a(V,de),a(de,yt),a(de,Ie),a(Ie,Et),a(de,zt),v(e,je,m),I(he,e,m),v(e,Je,m),v(e,Y,m),a(Y,te),a(te,Te),I(me,Te,null),a(Y,qt),a(Y,Qe),a(Qe,Ct),v(e,Ke,m),I(_e,e,m),v(e,Ze,m),v(e,R,m),a(R,oe),a(oe,Ue),I(ve,Ue,null),a(R,At),a(R,ge),a(ge,St),a(ge,Le),a(Le,Pt),a(ge,Nt),v(e,We,m),I($e,e,m),Xe=!0},p(e,[m]){const we={};m&1&&(we.fw=e[0]),r.$set(we);let xe=L;L=Ut(e),L!==xe&&(Fo(),q(be[xe],1,1,()=>{be[xe]=null}),Oo(),M=be[L],M||(M=be[L]=Qt[L](e),M.c()),C(M,1),M.m(ke.parentNode,ke))},i(e){Xe||(C(r.$$.fragment,e),C(k.$$.fragment,e),C(U.$$.fragment,e),C(ie.$$.fragment,e),C(re.$$.fragment,e),C(ae.$$.fragment,e),C(le.$$.fragment,e),C(se.$$.fragment,e),C(ne.$$.fragment,e),C(ce.$$.fragment,e),C(ue.$$.fragment,e),C(M),C(pe.$$.fragment,e),C(he.$$.fragment,e),C(me.$$.fragment,e),C(_e.$$.fragment,e),C(ve.$$.fragment,e),C($e.$$.fragment,e),Xe=!0)},o(e){q(r.$$.fragment,e),q(k.$$.fragment,e),q(U.$$.fragment,e),q(ie.$$.fragment,e),q(re.$$.fragment,e),q(ae.$$.fragment,e),q(le.$$.fragment,e),q(se.$$.fragment,e),q(ne.$$.fragment,e),q(ce.$$.fragment,e),q(ue.$$.fragment,e),q(M),q(pe.$$.fragment,e),q(he.$$.fragment,e),q(me.$$.fragment,e),q(_e.$$.fragment,e),q(ve.$$.fragment,e),q($e.$$.fragment,e),Xe=!1},d(e){o(t),e&&o(i),T(r,e),e&&o(l),e&&o(h),T(k),e&&o(_),e&&o(p),e&&o(z),e&&o($),T(U),e&&o(Me),T(ie,e),e&&o(Oe),e&&o(O),T(re),e&&o(Fe),T(ae,e),e&&o(Ge),e&&o(F),T(le),e&&o(De),T(se,e),e&&o(Ve),e&&o(G),T(ne),e&&o(Ye),T(ce,e),e&&o(Re),e&&o(D),T(ue),e&&o(Be),be[L].d(e),e&&o(ke),e&&o(V),T(pe),e&&o(je),T(he,e),e&&o(Je),e&&o(Y),T(me),e&&o(Ke),T(_e,e),e&&o(Ze),e&&o(R),T(ve),e&&o(We),T($e,e)}}}const Wo={local:"quiz-di-fine-capitolo",title:"Quiz di fine capitolo"};function Xo(s,t,i){let r="pt";return qo(()=>{const l=new URLSearchParams(window.location.search);i(0,r=l.get("fw")||"pt")}),[r]}class ri extends wo{constructor(t){super();ko(this,t,Xo,Zo,xo,{})}}export{ri as default,Wo as metadata};
