Buckets:
| import{s as $i,o as gi,n as hl}from"../chunks/scheduler.36a0863c.js";import{S as hi,i as bi,g as s,s as n,r as m,A as vi,h as o,f as l,c as a,j as M,u as f,x as r,k as ui,y as g,a as i,v as c,d,t as u,w as $}from"../chunks/index.9c13489a.js";import{T as gl}from"../chunks/Tip.3b06990e.js";import{C as b}from"../chunks/CodeBlock.05d8ec32.js";import{H as j,E as Ti}from"../chunks/EditOnGithub.e88f2b7b.js";function Mi(w){let p,v="Devi tenere la cartella <code>transformers</code> se vuoi continuare ad utilizzare la libreria.";return{c(){p=s("p"),p.innerHTML=v},l(h){p=o(h,"P",{"data-svelte-h":!0}),r(p)!=="svelte-1uf56if"&&(p.innerHTML=v)},m(h,T){i(h,p,T)},p:hl,d(h){h&&l(p)}}}function wi(w){let p,v="🤗 Transformers utilizzerà le variabili d’ambiente della shell <code>PYTORCH_TRANSFORMERS_CACHE</code> o <code>PYTORCH_PRETRAINED_BERT_CACHE</code> se si proviene da un’iterazione precedente di questa libreria e sono state impostate queste variabili d’ambiente, a meno che non si specifichi la variabile d’ambiente della shell <code>TRANSFORMERS_CACHE</code>.";return{c(){p=s("p"),p.innerHTML=v},l(h){p=o(h,"P",{"data-svelte-h":!0}),r(p)!=="svelte-1f49bj5"&&(p.innerHTML=v)},m(h,T){i(h,p,T)},p:hl,d(h){h&&l(p)}}}function yi(w){let p,v='Aggiungi <a href="https://huggingface.co/docs/datasets/" rel="nofollow">🤗 Datasets</a> al tuo flusso di lavoro offline di training impostando la variabile d’ambiente <code>HF_DATASETS_OFFLINE=1</code>.';return{c(){p=s("p"),p.innerHTML=v},l(h){p=o(h,"P",{"data-svelte-h":!0}),r(p)!=="svelte-ha8mx0"&&(p.innerHTML=v)},m(h,T){i(h,p,T)},p:hl,d(h){h&&l(p)}}}function _i(w){let p,v='Fai riferimento alla sezione <a href="https://huggingface.co/docs/hub/how-to-downstream" rel="nofollow">How to download files from the Hub</a> per avere maggiori dettagli su come scaricare modelli presenti sull Hub.';return{c(){p=s("p"),p.innerHTML=v},l(h){p=o(h,"P",{"data-svelte-h":!0}),r(p)!=="svelte-35lf98"&&(p.innerHTML=v)},m(h,T){i(h,p,T)},p:hl,d(h){h&&l(p)}}}function Ci(w){let p,v,h,T,U,it,W,Hl="Installa 🤗 Transformers per qualsiasi libreria di deep learning con cui stai lavorando, imposta la tua cache, e opzionalmente configura 🤗 Transformers per l’esecuzione offline.",nt,I,jl="🤗 Transformers è testato su Python 3.6+, PyTorch 1.1.0+, TensorFlow 2.0+, e Flax. Segui le istruzioni di installazione seguenti per la libreria di deep learning che stai utilizzando:",at,L,Ul='<li><a href="https://pytorch.org/get-started/locally/" rel="nofollow">PyTorch</a> istruzioni di installazione.</li> <li><a href="https://www.tensorflow.org/install/pip" rel="nofollow">TensorFlow 2.0</a> istruzioni di installazione.</li> <li><a href="https://flax.readthedocs.io/en/latest/" rel="nofollow">Flax</a> istruzioni di installazione.</li>',st,k,ot,G,Wl='Puoi installare 🤗 Transformers in un <a href="https://docs.python.org/3/library/venv.html" rel="nofollow">ambiente virtuale</a>. Se non sei familiare con gli ambienti virtuali in Python, dai un’occhiata a questa <a href="https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/" rel="nofollow">guida</a>. Un ambiente virtuale rende più semplice la gestione di progetti differenti, evitando problemi di compatibilità tra dipendenze.',rt,R,Il="Inizia creando un ambiente virtuale nella directory del tuo progetto:",pt,E,mt,P,Ll="Attiva l’ambiente virtuale:",ft,F,ct,V,kl="Ora puoi procedere con l’installazione di 🤗 Transformers eseguendo il comando seguente:",dt,X,ut,N,Gl="Per il solo supporto della CPU, puoi installare facilmente 🤗 Transformers e una libreria di deep learning in solo una riga. Ad esempio, installiamo 🤗 Transformers e PyTorch con:",$t,S,gt,Y,Rl="🤗 Transformers e TensorFlow 2.0:",ht,B,bt,q,El="🤗 Transformers e Flax:",vt,A,Tt,Q,Pl="Infine, verifica se 🤗 Transformers è stato installato in modo appropriato eseguendo il seguente comando. Questo scaricherà un modello pre-allenato:",Mt,O,wt,D,Fl="Dopodiché stampa l’etichetta e il punteggio:",yt,K,_t,ee,Ct,te,Vl="Installa 🤗 Transformers dalla fonte con il seguente comando:",xt,le,Jt,ie,Xl='Questo comando installa la versione <code>main</code> più attuale invece dell’ultima versione stabile. Questo è utile per stare al passo con gli ultimi sviluppi. Ad esempio, se un bug è stato sistemato da quando è uscita l’ultima versione ufficiale ma non è stata ancora rilasciata una nuova versione. Tuttavia, questo significa che questa versione <code>main</code> può non essere sempre stabile. Ci sforziamo per mantenere la versione <code>main</code> operativa, e la maggior parte dei problemi viene risolta in poche ore o in un giorno. Se riscontri un problema, per favore apri una <a href="https://github.com/huggingface/transformers/issues" rel="nofollow">Issue</a> così possiamo sistemarlo ancora più velocemente!',zt,ne,Nl="Controlla se 🤗 Transformers è stata installata in modo appropriato con il seguente comando:",Zt,ae,Ht,se,jt,oe,Sl="Hai bisogno di un’installazione modificabile se vuoi:",Ut,re,Yl="<li>Usare la versione <code>main</code> del codice dalla fonte.</li> <li>Contribuire a 🤗 Transformers e hai bisogno di testare i cambiamenti nel codice.</li>",Wt,pe,Bl="Clona il repository e installa 🤗 Transformers con i seguenti comandi:",It,me,Lt,fe,ql="Questi comandi collegheranno la cartella in cui è stato clonato il repository e i path delle librerie Python. Python guarderà ora all’interno della cartella clonata, oltre ai normali path delle librerie. Per esempio, se i tuoi pacchetti Python sono installati tipicamente in <code>~/anaconda3/envs/main/lib/python3.7/site-packages/</code>, Python cercherà anche nella cartella clonata: <code>~/transformers/</code>.",kt,J,Gt,ce,Al="Ora puoi facilmente aggiornare il tuo clone all’ultima versione di 🤗 Transformers con il seguente comando:",Rt,de,Et,ue,Ql="Il tuo ambiente Python troverà la versione <code>main</code> di 🤗 Transformers alla prossima esecuzione.",Pt,$e,Ft,ge,Ol="Installazione dal canale conda <code>conda-forge</code>:",Vt,he,Xt,be,Nt,ve,Dl="I modelli pre-allenati sono scaricati e memorizzati localmente nella cache in: <code>~/.cache/huggingface/transformers/</code>. Questa è la directory di default data dalla variabile d’ambiente della shell <code>TRANSFORMERS_CACHE</code>. Su Windows, la directory di default è data da <code>C:\\Users\\username\\.cache\\huggingface\\transformers</code>. Puoi cambiare le variabili d’ambiente della shell indicate in seguito, in ordine di priorità , per specificare una directory differente per la cache:",St,Te,Kl="<li>Variabile d’ambiente della shell (default): <code>TRANSFORMERS_CACHE</code>.</li> <li>Variabile d’ambiente della shell: <code>HF_HOME</code> + <code>transformers/</code>.</li> <li>Variabile d’ambiente della shell: <code>XDG_CACHE_HOME</code> + <code>/huggingface/transformers</code>.</li>",Yt,z,Bt,Me,qt,we,ei="🤗 Transformers può essere eseguita in un ambiente firewalled o offline utilizzando solo file locali. Imposta la variabile d’ambiente <code>HF_HUB_OFFLINE=1</code> per abilitare questo comportamento.",At,Z,Qt,ye,ti="Ad esempio, in genere si esegue un programma su una rete normale, protetta da firewall per le istanze esterne, con il seguente comando:",Ot,_e,Dt,Ce,li="Esegui lo stesso programma in un’istanza offline con:",Kt,xe,el,Je,ii="Lo script viene ora eseguito senza bloccarsi o attendere il timeout, perché sa di dover cercare solo file locali.",tl,ze,ll,Ze,ni="Un’altra opzione per utilizzare offline 🤗 Transformers è scaricare i file in anticipo, e poi puntare al loro path locale quando hai la necessità di utilizzarli offline. Ci sono tre modi per fare questo:",il,y,qe,ai='<p>Scarica un file tramite l’interfaccia utente sul <a href="https://huggingface.co/models" rel="nofollow">Model Hub</a> premendo sull’icona ↓.</p> <p><img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/download-icon.png" alt="download-icon"/></p>',bl,He,Ae,si="Utilizza il flusso <code>PreTrainedModel.from_pretrained()</code> e <code>PreTrainedModel.save_pretrained()</code>:",vl,_,je,Qe,oi="Scarica i tuoi file in anticipo con <code>PreTrainedModel.from_pretrained()</code>:",Tl,Ue,Ml,We,Oe,ri="Salva i tuoi file in una directory specificata con <code>PreTrainedModel.save_pretrained()</code>:",wl,Ie,yl,Le,De,pi="Ora quando sei offline, carica i tuoi file con <code>PreTrainedModel.from_pretrained()</code> dalla directory specificata:",_l,ke,Cl,Ge,Ke,mi='Scarica in maniera programmatica i file con la libreria <a href="https://github.com/huggingface/huggingface_hub/tree/main/src/huggingface_hub" rel="nofollow">huggingface_hub</a>:',xl,Re,Ee,et,fi="Installa la libreria <code>huggingface_hub</code> nel tuo ambiente virtuale:",Jl,Pe,zl,Fe,tt,ci='Utilizza la funzione <a href="https://huggingface.co/docs/hub/adding-a-library#download-files-from-the-hub" rel="nofollow"><code>hf_hub_download</code></a> per scaricare un file in un path specifico. Per esempio, il seguente comando scarica il file <code>config.json</code> dal modello <a href="https://huggingface.co/bigscience/T0_3B" rel="nofollow">T0</a> nel path che desideri:',Zl,Ve,nl,Xe,di="Una volta che il tuo file è scaricato e salvato in cache localmente, specifica il suo path locale per caricarlo e utilizzarlo:",al,Ne,sl,H,ol,Se,rl,lt,pl;return U=new j({props:{title:"Installazione",local:"installazione",headingTag:"h1"}}),k=new j({props:{title:"Installazione con pip",local:"installazione-con-pip",headingTag:"h2"}}),E=new b({props:{code:"cHl0aG9uJTIwLW0lMjB2ZW52JTIwLmVudg==",highlighted:'python -m venv .<span class="hljs-built_in">env</span>',wrap:!1}}),F=new b({props:{code:"c291cmNlJTIwLmVudiUyRmJpbiUyRmFjdGl2YXRl",highlighted:'<span class="hljs-built_in">source</span> .<span class="hljs-built_in">env</span>/bin/activate',wrap:!1}}),X=new b({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRyYW5zZm9ybWVycw==",highlighted:"pip install transformers",wrap:!1}}),S=new b({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRyYW5zZm9ybWVycyU1QnRvcmNoJTVE",highlighted:"pip install transformers[torch]",wrap:!1}}),B=new b({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRyYW5zZm9ybWVycyU1QnRmLWNwdSU1RA==",highlighted:"pip install transformers[tf-cpu]",wrap:!1}}),A=new b({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRyYW5zZm9ybWVycyU1QmZsYXglNUQ=",highlighted:"pip install transformers[flax]",wrap:!1}}),O=new b({props:{code:"cHl0aG9uJTIwLWMlMjAlMjJmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwcGlwZWxpbmUlM0IlMjBwcmludChwaXBlbGluZSgnc2VudGltZW50LWFuYWx5c2lzJykoJ3dlJTIwbG92ZSUyMHlvdScpKSUyMg==",highlighted:'python -c <span class="hljs-string">"from transformers import pipeline; print(pipeline('sentiment-analysis')('we love you'))"</span>',wrap:!1}}),K=new b({props:{code:"JTVCJTdCJ2xhYmVsJyUzQSUyMCdQT1NJVElWRSclMkMlMjAnc2NvcmUnJTNBJTIwMC45OTk4NzA0NzkxMDY5MDMxJTdEJTVE",highlighted:'[{<span class="hljs-string">'label'</span>: <span class="hljs-string">'POSITIVE'</span>, <span class="hljs-string">'score'</span>: 0.9998704791069031}]',wrap:!1}}),ee=new j({props:{title:"Installazione dalla fonte",local:"installazione-dalla-fonte",headingTag:"h2"}}),le=new b({props:{code:"cGlwJTIwaW5zdGFsbCUyMGdpdCUyQmh0dHBzJTNBJTJGJTJGZ2l0aHViLmNvbSUyRmh1Z2dpbmdmYWNlJTJGdHJhbnNmb3JtZXJz",highlighted:"pip install git+https://github.com/huggingface/transformers",wrap:!1}}),ae=new b({props:{code:"cHl0aG9uJTIwLWMlMjAlMjJmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwcGlwZWxpbmUlM0IlMjBwcmludChwaXBlbGluZSgnc2VudGltZW50LWFuYWx5c2lzJykoJ0klMjBsb3ZlJTIweW91JykpJTIy",highlighted:'python -c <span class="hljs-string">"from transformers import pipeline; print(pipeline('sentiment-analysis')('I love you'))"</span>',wrap:!1}}),se=new j({props:{title:"Installazione modificabile",local:"installazione-modificabile",headingTag:"h2"}}),me=new b({props:{code:"Z2l0JTIwY2xvbmUlMjBodHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZodWdnaW5nZmFjZSUyRnRyYW5zZm9ybWVycy5naXQlMEFjZCUyMHRyYW5zZm9ybWVycyUwQXBpcCUyMGluc3RhbGwlMjAtZSUyMC4=",highlighted:`git <span class="hljs-built_in">clone</span> https://github.com/huggingface/transformers.git | |
| <span class="hljs-built_in">cd</span> transformers | |
| pip install -e .`,wrap:!1}}),J=new gl({props:{warning:!0,$$slots:{default:[Mi]},$$scope:{ctx:w}}}),de=new b({props:{code:"Y2QlMjB+JTJGdHJhbnNmb3JtZXJzJTJGJTBBZ2l0JTIwcHVsbA==",highlighted:`<span class="hljs-built_in">cd</span> ~/transformers/ | |
| git pull`,wrap:!1}}),$e=new j({props:{title:"Installazione con conda",local:"installazione-con-conda",headingTag:"h2"}}),he=new b({props:{code:"Y29uZGElMjBpbnN0YWxsJTIwY29uZGEtZm9yZ2UlM0ElM0F0cmFuc2Zvcm1lcnM=",highlighted:"conda install conda-forge::transformers",wrap:!1}}),be=new j({props:{title:"Impostazione della cache",local:"impostazione-della-cache",headingTag:"h2"}}),z=new gl({props:{$$slots:{default:[wi]},$$scope:{ctx:w}}}),Me=new j({props:{title:"ModalitĂ Offline",local:"modalitĂ -offline",headingTag:"h2"}}),Z=new gl({props:{$$slots:{default:[yi]},$$scope:{ctx:w}}}),_e=new b({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGdHJhbnNsYXRpb24lMkZydW5fdHJhbnNsYXRpb24ucHklMjAtLW1vZGVsX25hbWVfb3JfcGF0aCUyMGdvb2dsZS10NSUyRnQ1LXNtYWxsJTIwLS1kYXRhc2V0X25hbWUlMjB3bXQxNiUyMC0tZGF0YXNldF9jb25maWclMjByby1lbiUyMC4uLg==",highlighted:"python examples/pytorch/translation/run_translation.py --model_name_or_path google-t5/t5-small --dataset_name wmt16 --dataset_config ro-en ...",wrap:!1}}),xe=new b({props:{code:"SEZfREFUQVNFVFNfT0ZGTElORSUzRDElMjBIRl9IVUJfT0ZGTElORSUzRDElMjAlNUMlMEFweXRob24lMjBleGFtcGxlcyUyRnB5dG9yY2glMkZ0cmFuc2xhdGlvbiUyRnJ1bl90cmFuc2xhdGlvbi5weSUyMC0tbW9kZWxfbmFtZV9vcl9wYXRoJTIwZ29vZ2xlLXQ1JTJGdDUtc21hbGwlMjAtLWRhdGFzZXRfbmFtZSUyMHdtdDE2JTIwLS1kYXRhc2V0X2NvbmZpZyUyMHJvLWVuJTIwLi4u",highlighted:`HF_DATASETS_OFFLINE=1 HF_HUB_OFFLINE=1 \\ | |
| python examples/pytorch/translation/run_translation.py --model_name_or_path google-t5/t5-small --dataset_name wmt16 --dataset_config ro-en ...`,wrap:!1}}),ze=new j({props:{title:"Ottenere modelli e tokenizer per l’uso offline",local:"ottenere-modelli-e-tokenizer-per-luso-offline",headingTag:"h3"}}),Ue=new b({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBBdXRvTW9kZWxGb3JTZXEyU2VxTE0lMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJiaWdzY2llbmNlJTJGVDBfM0IlMjIpJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JTZXEyU2VxTE0uZnJvbV9wcmV0cmFpbmVkKCUyMmJpZ3NjaWVuY2UlMkZUMF8zQiUyMik=",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, AutoModelForSeq2SeqLM | |
| <span class="hljs-meta">>>> </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">"bigscience/T0_3B"</span>) | |
| <span class="hljs-meta">>>> </span>model = AutoModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">"bigscience/T0_3B"</span>)`,wrap:!1}}),Ie=new b({props:{code:"dG9rZW5pemVyLnNhdmVfcHJldHJhaW5lZCglMjIuJTJGaWwlMkZ0dW8lMkZwYXRoJTJGYmlnc2NpZW5jZV90MCUyMiklMEFtb2RlbC5zYXZlX3ByZXRyYWluZWQoJTIyLiUyRmlsJTJGdHVvJTJGcGF0aCUyRmJpZ3NjaWVuY2VfdDAlMjIp",highlighted:`<span class="hljs-meta">>>> </span>tokenizer.save_pretrained(<span class="hljs-string">"./il/tuo/path/bigscience_t0"</span>) | |
| <span class="hljs-meta">>>> </span>model.save_pretrained(<span class="hljs-string">"./il/tuo/path/bigscience_t0"</span>)`,wrap:!1}}),ke=new b({props:{code:"dG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyLiUyRmlsJTJGdHVvJTJGcGF0aCUyRmJpZ3NjaWVuY2VfdDAlMjIpJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMi4lMkZpbCUyRnR1byUyRnBhdGglMkZiaWdzY2llbmNlX3QwJTIyKQ==",highlighted:`<span class="hljs-meta">>>> </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">"./il/tuo/path/bigscience_t0"</span>) | |
| <span class="hljs-meta">>>> </span>model = AutoModel.from_pretrained(<span class="hljs-string">"./il/tuo/path/bigscience_t0"</span>)`,wrap:!1}}),Pe=new b({props:{code:"cHl0aG9uJTIwLW0lMjBwaXAlMjBpbnN0YWxsJTIwaHVnZ2luZ2ZhY2VfaHVi",highlighted:"python -m pip install huggingface_hub",wrap:!1}}),Ve=new b({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQSUwQWhmX2h1Yl9kb3dubG9hZChyZXBvX2lkJTNEJTIyYmlnc2NpZW5jZSUyRlQwXzNCJTIyJTJDJTIwZmlsZW5hbWUlM0QlMjJjb25maWcuanNvbiUyMiUyQyUyMGNhY2hlX2RpciUzRCUyMi4lMkZpbCUyRnR1byUyRnBhdGglMkZiaWdzY2llbmNlX3QwJTIyKQ==",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_download | |
| <span class="hljs-meta">>>> </span>hf_hub_download(repo_id=<span class="hljs-string">"bigscience/T0_3B"</span>, filename=<span class="hljs-string">"config.json"</span>, cache_dir=<span class="hljs-string">"./il/tuo/path/bigscience_t0"</span>)`,wrap:!1}}),Ne=new b({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Db25maWclMEElMEFjb25maWclMjAlM0QlMjBBdXRvQ29uZmlnLmZyb21fcHJldHJhaW5lZCglMjIuJTJGaWwlMkZ0dW8lMkZwYXRoJTJGYmlnc2NpZW5jZV90MCUyRmNvbmZpZy5qc29uJTIyKQ==",highlighted:`<span class="hljs-meta">>>> </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoConfig | |
| <span class="hljs-meta">>>> </span>config = AutoConfig.from_pretrained(<span class="hljs-string">"./il/tuo/path/bigscience_t0/config.json"</span>)`,wrap:!1}}),H=new gl({props:{$$slots:{default:[_i]},$$scope:{ctx:w}}}),Se=new Ti({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/it/installation.md"}}),{c(){p=s("meta"),v=n(),h=s("p"),T=n(),m(U.$$.fragment),it=n(),W=s("p"),W.textContent=Hl,nt=n(),I=s("p"),I.textContent=jl,at=n(),L=s("ul"),L.innerHTML=Ul,st=n(),m(k.$$.fragment),ot=n(),G=s("p"),G.innerHTML=Wl,rt=n(),R=s("p"),R.textContent=Il,pt=n(),m(E.$$.fragment),mt=n(),P=s("p"),P.textContent=Ll,ft=n(),m(F.$$.fragment),ct=n(),V=s("p"),V.textContent=kl,dt=n(),m(X.$$.fragment),ut=n(),N=s("p"),N.textContent=Gl,$t=n(),m(S.$$.fragment),gt=n(),Y=s("p"),Y.textContent=Rl,ht=n(),m(B.$$.fragment),bt=n(),q=s("p"),q.textContent=El,vt=n(),m(A.$$.fragment),Tt=n(),Q=s("p"),Q.textContent=Pl,Mt=n(),m(O.$$.fragment),wt=n(),D=s("p"),D.textContent=Fl,yt=n(),m(K.$$.fragment),_t=n(),m(ee.$$.fragment),Ct=n(),te=s("p"),te.textContent=Vl,xt=n(),m(le.$$.fragment),Jt=n(),ie=s("p"),ie.innerHTML=Xl,zt=n(),ne=s("p"),ne.textContent=Nl,Zt=n(),m(ae.$$.fragment),Ht=n(),m(se.$$.fragment),jt=n(),oe=s("p"),oe.textContent=Sl,Ut=n(),re=s("ul"),re.innerHTML=Yl,Wt=n(),pe=s("p"),pe.textContent=Bl,It=n(),m(me.$$.fragment),Lt=n(),fe=s("p"),fe.innerHTML=ql,kt=n(),m(J.$$.fragment),Gt=n(),ce=s("p"),ce.textContent=Al,Rt=n(),m(de.$$.fragment),Et=n(),ue=s("p"),ue.innerHTML=Ql,Pt=n(),m($e.$$.fragment),Ft=n(),ge=s("p"),ge.innerHTML=Ol,Vt=n(),m(he.$$.fragment),Xt=n(),m(be.$$.fragment),Nt=n(),ve=s("p"),ve.innerHTML=Dl,St=n(),Te=s("ol"),Te.innerHTML=Kl,Yt=n(),m(z.$$.fragment),Bt=n(),m(Me.$$.fragment),qt=n(),we=s("p"),we.innerHTML=ei,At=n(),m(Z.$$.fragment),Qt=n(),ye=s("p"),ye.textContent=ti,Ot=n(),m(_e.$$.fragment),Dt=n(),Ce=s("p"),Ce.textContent=li,Kt=n(),m(xe.$$.fragment),el=n(),Je=s("p"),Je.textContent=ii,tl=n(),m(ze.$$.fragment),ll=n(),Ze=s("p"),Ze.textContent=ni,il=n(),y=s("ul"),qe=s("li"),qe.innerHTML=ai,bl=n(),He=s("li"),Ae=s("p"),Ae.innerHTML=si,vl=n(),_=s("ol"),je=s("li"),Qe=s("p"),Qe.innerHTML=oi,Tl=n(),m(Ue.$$.fragment),Ml=n(),We=s("li"),Oe=s("p"),Oe.innerHTML=ri,wl=n(),m(Ie.$$.fragment),yl=n(),Le=s("li"),De=s("p"),De.innerHTML=pi,_l=n(),m(ke.$$.fragment),Cl=n(),Ge=s("li"),Ke=s("p"),Ke.innerHTML=mi,xl=n(),Re=s("ol"),Ee=s("li"),et=s("p"),et.innerHTML=fi,Jl=n(),m(Pe.$$.fragment),zl=n(),Fe=s("li"),tt=s("p"),tt.innerHTML=ci,Zl=n(),m(Ve.$$.fragment),nl=n(),Xe=s("p"),Xe.textContent=di,al=n(),m(Ne.$$.fragment),sl=n(),m(H.$$.fragment),ol=n(),m(Se.$$.fragment),rl=n(),lt=s("p"),this.h()},l(e){const t=vi("svelte-u9bgzb",document.head);p=o(t,"META",{name:!0,content:!0}),t.forEach(l),v=a(e),h=o(e,"P",{}),M(h).forEach(l),T=a(e),f(U.$$.fragment,e),it=a(e),W=o(e,"P",{"data-svelte-h":!0}),r(W)!=="svelte-1n3s07r"&&(W.textContent=Hl),nt=a(e),I=o(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-1ef6gy"&&(I.textContent=jl),at=a(e),L=o(e,"UL",{"data-svelte-h":!0}),r(L)!=="svelte-mwzz0y"&&(L.innerHTML=Ul),st=a(e),f(k.$$.fragment,e),ot=a(e),G=o(e,"P",{"data-svelte-h":!0}),r(G)!=="svelte-1sp44db"&&(G.innerHTML=Wl),rt=a(e),R=o(e,"P",{"data-svelte-h":!0}),r(R)!=="svelte-1l8a24w"&&(R.textContent=Il),pt=a(e),f(E.$$.fragment,e),mt=a(e),P=o(e,"P",{"data-svelte-h":!0}),r(P)!=="svelte-1h3w2rp"&&(P.textContent=Ll),ft=a(e),f(F.$$.fragment,e),ct=a(e),V=o(e,"P",{"data-svelte-h":!0}),r(V)!=="svelte-sq36mp"&&(V.textContent=kl),dt=a(e),f(X.$$.fragment,e),ut=a(e),N=o(e,"P",{"data-svelte-h":!0}),r(N)!=="svelte-15zdog2"&&(N.textContent=Gl),$t=a(e),f(S.$$.fragment,e),gt=a(e),Y=o(e,"P",{"data-svelte-h":!0}),r(Y)!=="svelte-1xstfzz"&&(Y.textContent=Rl),ht=a(e),f(B.$$.fragment,e),bt=a(e),q=o(e,"P",{"data-svelte-h":!0}),r(q)!=="svelte-wg31sd"&&(q.textContent=El),vt=a(e),f(A.$$.fragment,e),Tt=a(e),Q=o(e,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-tf1t73"&&(Q.textContent=Pl),Mt=a(e),f(O.$$.fragment,e),wt=a(e),D=o(e,"P",{"data-svelte-h":!0}),r(D)!=="svelte-pyzbah"&&(D.textContent=Fl),yt=a(e),f(K.$$.fragment,e),_t=a(e),f(ee.$$.fragment,e),Ct=a(e),te=o(e,"P",{"data-svelte-h":!0}),r(te)!=="svelte-hjd4vl"&&(te.textContent=Vl),xt=a(e),f(le.$$.fragment,e),Jt=a(e),ie=o(e,"P",{"data-svelte-h":!0}),r(ie)!=="svelte-5qgybg"&&(ie.innerHTML=Xl),zt=a(e),ne=o(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-f7v7ys"&&(ne.textContent=Nl),Zt=a(e),f(ae.$$.fragment,e),Ht=a(e),f(se.$$.fragment,e),jt=a(e),oe=o(e,"P",{"data-svelte-h":!0}),r(oe)!=="svelte-1qzfduu"&&(oe.textContent=Sl),Ut=a(e),re=o(e,"UL",{"data-svelte-h":!0}),r(re)!=="svelte-1y8cbxq"&&(re.innerHTML=Yl),Wt=a(e),pe=o(e,"P",{"data-svelte-h":!0}),r(pe)!=="svelte-1rinco6"&&(pe.textContent=Bl),It=a(e),f(me.$$.fragment,e),Lt=a(e),fe=o(e,"P",{"data-svelte-h":!0}),r(fe)!=="svelte-2r054q"&&(fe.innerHTML=ql),kt=a(e),f(J.$$.fragment,e),Gt=a(e),ce=o(e,"P",{"data-svelte-h":!0}),r(ce)!=="svelte-1jfl7lx"&&(ce.textContent=Al),Rt=a(e),f(de.$$.fragment,e),Et=a(e),ue=o(e,"P",{"data-svelte-h":!0}),r(ue)!=="svelte-143713s"&&(ue.innerHTML=Ql),Pt=a(e),f($e.$$.fragment,e),Ft=a(e),ge=o(e,"P",{"data-svelte-h":!0}),r(ge)!=="svelte-1ig2o2x"&&(ge.innerHTML=Ol),Vt=a(e),f(he.$$.fragment,e),Xt=a(e),f(be.$$.fragment,e),Nt=a(e),ve=o(e,"P",{"data-svelte-h":!0}),r(ve)!=="svelte-bj8k2a"&&(ve.innerHTML=Dl),St=a(e),Te=o(e,"OL",{"data-svelte-h":!0}),r(Te)!=="svelte-ng10x5"&&(Te.innerHTML=Kl),Yt=a(e),f(z.$$.fragment,e),Bt=a(e),f(Me.$$.fragment,e),qt=a(e),we=o(e,"P",{"data-svelte-h":!0}),r(we)!=="svelte-hwlz87"&&(we.innerHTML=ei),At=a(e),f(Z.$$.fragment,e),Qt=a(e),ye=o(e,"P",{"data-svelte-h":!0}),r(ye)!=="svelte-1ij5ybt"&&(ye.textContent=ti),Ot=a(e),f(_e.$$.fragment,e),Dt=a(e),Ce=o(e,"P",{"data-svelte-h":!0}),r(Ce)!=="svelte-1fp2hva"&&(Ce.textContent=li),Kt=a(e),f(xe.$$.fragment,e),el=a(e),Je=o(e,"P",{"data-svelte-h":!0}),r(Je)!=="svelte-x6u5gu"&&(Je.textContent=ii),tl=a(e),f(ze.$$.fragment,e),ll=a(e),Ze=o(e,"P",{"data-svelte-h":!0}),r(Ze)!=="svelte-j1z1zt"&&(Ze.textContent=ni),il=a(e),y=o(e,"UL",{});var C=M(y);qe=o(C,"LI",{"data-svelte-h":!0}),r(qe)!=="svelte-1980sw"&&(qe.innerHTML=ai),bl=a(C),He=o(C,"LI",{});var Ye=M(He);Ae=o(Ye,"P",{"data-svelte-h":!0}),r(Ae)!=="svelte-1ec5lkl"&&(Ae.innerHTML=si),vl=a(Ye),_=o(Ye,"OL",{});var x=M(_);je=o(x,"LI",{});var Be=M(je);Qe=o(Be,"P",{"data-svelte-h":!0}),r(Qe)!=="svelte-1lj5fvm"&&(Qe.innerHTML=oi),Tl=a(Be),f(Ue.$$.fragment,Be),Be.forEach(l),Ml=a(x),We=o(x,"LI",{});var ml=M(We);Oe=o(ml,"P",{"data-svelte-h":!0}),r(Oe)!=="svelte-1o5mloo"&&(Oe.innerHTML=ri),wl=a(ml),f(Ie.$$.fragment,ml),ml.forEach(l),yl=a(x),Le=o(x,"LI",{});var fl=M(Le);De=o(fl,"P",{"data-svelte-h":!0}),r(De)!=="svelte-sp1k0w"&&(De.innerHTML=pi),_l=a(fl),f(ke.$$.fragment,fl),fl.forEach(l),x.forEach(l),Ye.forEach(l),Cl=a(C),Ge=o(C,"LI",{});var cl=M(Ge);Ke=o(cl,"P",{"data-svelte-h":!0}),r(Ke)!=="svelte-7xqrhc"&&(Ke.innerHTML=mi),xl=a(cl),Re=o(cl,"OL",{});var dl=M(Re);Ee=o(dl,"LI",{});var ul=M(Ee);et=o(ul,"P",{"data-svelte-h":!0}),r(et)!=="svelte-i7p8qg"&&(et.innerHTML=fi),Jl=a(ul),f(Pe.$$.fragment,ul),ul.forEach(l),zl=a(dl),Fe=o(dl,"LI",{});var $l=M(Fe);tt=o($l,"P",{"data-svelte-h":!0}),r(tt)!=="svelte-1xacfix"&&(tt.innerHTML=ci),Zl=a($l),f(Ve.$$.fragment,$l),$l.forEach(l),dl.forEach(l),cl.forEach(l),C.forEach(l),nl=a(e),Xe=o(e,"P",{"data-svelte-h":!0}),r(Xe)!=="svelte-4k2gq5"&&(Xe.textContent=di),al=a(e),f(Ne.$$.fragment,e),sl=a(e),f(H.$$.fragment,e),ol=a(e),f(Se.$$.fragment,e),rl=a(e),lt=o(e,"P",{}),M(lt).forEach(l),this.h()},h(){ui(p,"name","hf:doc:metadata"),ui(p,"content",xi)},m(e,t){g(document.head,p),i(e,v,t),i(e,h,t),i(e,T,t),c(U,e,t),i(e,it,t),i(e,W,t),i(e,nt,t),i(e,I,t),i(e,at,t),i(e,L,t),i(e,st,t),c(k,e,t),i(e,ot,t),i(e,G,t),i(e,rt,t),i(e,R,t),i(e,pt,t),c(E,e,t),i(e,mt,t),i(e,P,t),i(e,ft,t),c(F,e,t),i(e,ct,t),i(e,V,t),i(e,dt,t),c(X,e,t),i(e,ut,t),i(e,N,t),i(e,$t,t),c(S,e,t),i(e,gt,t),i(e,Y,t),i(e,ht,t),c(B,e,t),i(e,bt,t),i(e,q,t),i(e,vt,t),c(A,e,t),i(e,Tt,t),i(e,Q,t),i(e,Mt,t),c(O,e,t),i(e,wt,t),i(e,D,t),i(e,yt,t),c(K,e,t),i(e,_t,t),c(ee,e,t),i(e,Ct,t),i(e,te,t),i(e,xt,t),c(le,e,t),i(e,Jt,t),i(e,ie,t),i(e,zt,t),i(e,ne,t),i(e,Zt,t),c(ae,e,t),i(e,Ht,t),c(se,e,t),i(e,jt,t),i(e,oe,t),i(e,Ut,t),i(e,re,t),i(e,Wt,t),i(e,pe,t),i(e,It,t),c(me,e,t),i(e,Lt,t),i(e,fe,t),i(e,kt,t),c(J,e,t),i(e,Gt,t),i(e,ce,t),i(e,Rt,t),c(de,e,t),i(e,Et,t),i(e,ue,t),i(e,Pt,t),c($e,e,t),i(e,Ft,t),i(e,ge,t),i(e,Vt,t),c(he,e,t),i(e,Xt,t),c(be,e,t),i(e,Nt,t),i(e,ve,t),i(e,St,t),i(e,Te,t),i(e,Yt,t),c(z,e,t),i(e,Bt,t),c(Me,e,t),i(e,qt,t),i(e,we,t),i(e,At,t),c(Z,e,t),i(e,Qt,t),i(e,ye,t),i(e,Ot,t),c(_e,e,t),i(e,Dt,t),i(e,Ce,t),i(e,Kt,t),c(xe,e,t),i(e,el,t),i(e,Je,t),i(e,tl,t),c(ze,e,t),i(e,ll,t),i(e,Ze,t),i(e,il,t),i(e,y,t),g(y,qe),g(y,bl),g(y,He),g(He,Ae),g(He,vl),g(He,_),g(_,je),g(je,Qe),g(je,Tl),c(Ue,je,null),g(_,Ml),g(_,We),g(We,Oe),g(We,wl),c(Ie,We,null),g(_,yl),g(_,Le),g(Le,De),g(Le,_l),c(ke,Le,null),g(y,Cl),g(y,Ge),g(Ge,Ke),g(Ge,xl),g(Ge,Re),g(Re,Ee),g(Ee,et),g(Ee,Jl),c(Pe,Ee,null),g(Re,zl),g(Re,Fe),g(Fe,tt),g(Fe,Zl),c(Ve,Fe,null),i(e,nl,t),i(e,Xe,t),i(e,al,t),c(Ne,e,t),i(e,sl,t),c(H,e,t),i(e,ol,t),c(Se,e,t),i(e,rl,t),i(e,lt,t),pl=!0},p(e,[t]){const C={};t&2&&(C.$$scope={dirty:t,ctx:e}),J.$set(C);const Ye={};t&2&&(Ye.$$scope={dirty:t,ctx:e}),z.$set(Ye);const x={};t&2&&(x.$$scope={dirty:t,ctx:e}),Z.$set(x);const Be={};t&2&&(Be.$$scope={dirty:t,ctx:e}),H.$set(Be)},i(e){pl||(d(U.$$.fragment,e),d(k.$$.fragment,e),d(E.$$.fragment,e),d(F.$$.fragment,e),d(X.$$.fragment,e),d(S.$$.fragment,e),d(B.$$.fragment,e),d(A.$$.fragment,e),d(O.$$.fragment,e),d(K.$$.fragment,e),d(ee.$$.fragment,e),d(le.$$.fragment,e),d(ae.$$.fragment,e),d(se.$$.fragment,e),d(me.$$.fragment,e),d(J.$$.fragment,e),d(de.$$.fragment,e),d($e.$$.fragment,e),d(he.$$.fragment,e),d(be.$$.fragment,e),d(z.$$.fragment,e),d(Me.$$.fragment,e),d(Z.$$.fragment,e),d(_e.$$.fragment,e),d(xe.$$.fragment,e),d(ze.$$.fragment,e),d(Ue.$$.fragment,e),d(Ie.$$.fragment,e),d(ke.$$.fragment,e),d(Pe.$$.fragment,e),d(Ve.$$.fragment,e),d(Ne.$$.fragment,e),d(H.$$.fragment,e),d(Se.$$.fragment,e),pl=!0)},o(e){u(U.$$.fragment,e),u(k.$$.fragment,e),u(E.$$.fragment,e),u(F.$$.fragment,e),u(X.$$.fragment,e),u(S.$$.fragment,e),u(B.$$.fragment,e),u(A.$$.fragment,e),u(O.$$.fragment,e),u(K.$$.fragment,e),u(ee.$$.fragment,e),u(le.$$.fragment,e),u(ae.$$.fragment,e),u(se.$$.fragment,e),u(me.$$.fragment,e),u(J.$$.fragment,e),u(de.$$.fragment,e),u($e.$$.fragment,e),u(he.$$.fragment,e),u(be.$$.fragment,e),u(z.$$.fragment,e),u(Me.$$.fragment,e),u(Z.$$.fragment,e),u(_e.$$.fragment,e),u(xe.$$.fragment,e),u(ze.$$.fragment,e),u(Ue.$$.fragment,e),u(Ie.$$.fragment,e),u(ke.$$.fragment,e),u(Pe.$$.fragment,e),u(Ve.$$.fragment,e),u(Ne.$$.fragment,e),u(H.$$.fragment,e),u(Se.$$.fragment,e),pl=!1},d(e){e&&(l(v),l(h),l(T),l(it),l(W),l(nt),l(I),l(at),l(L),l(st),l(ot),l(G),l(rt),l(R),l(pt),l(mt),l(P),l(ft),l(ct),l(V),l(dt),l(ut),l(N),l($t),l(gt),l(Y),l(ht),l(bt),l(q),l(vt),l(Tt),l(Q),l(Mt),l(wt),l(D),l(yt),l(_t),l(Ct),l(te),l(xt),l(Jt),l(ie),l(zt),l(ne),l(Zt),l(Ht),l(jt),l(oe),l(Ut),l(re),l(Wt),l(pe),l(It),l(Lt),l(fe),l(kt),l(Gt),l(ce),l(Rt),l(Et),l(ue),l(Pt),l(Ft),l(ge),l(Vt),l(Xt),l(Nt),l(ve),l(St),l(Te),l(Yt),l(Bt),l(qt),l(we),l(At),l(Qt),l(ye),l(Ot),l(Dt),l(Ce),l(Kt),l(el),l(Je),l(tl),l(ll),l(Ze),l(il),l(y),l(nl),l(Xe),l(al),l(sl),l(ol),l(rl),l(lt)),l(p),$(U,e),$(k,e),$(E,e),$(F,e),$(X,e),$(S,e),$(B,e),$(A,e),$(O,e),$(K,e),$(ee,e),$(le,e),$(ae,e),$(se,e),$(me,e),$(J,e),$(de,e),$($e,e),$(he,e),$(be,e),$(z,e),$(Me,e),$(Z,e),$(_e,e),$(xe,e),$(ze,e),$(Ue),$(Ie),$(ke),$(Pe),$(Ve),$(Ne,e),$(H,e),$(Se,e)}}}const xi='{"title":"Installazione","local":"installazione","sections":[{"title":"Installazione con pip","local":"installazione-con-pip","sections":[],"depth":2},{"title":"Installazione dalla fonte","local":"installazione-dalla-fonte","sections":[],"depth":2},{"title":"Installazione modificabile","local":"installazione-modificabile","sections":[],"depth":2},{"title":"Installazione con conda","local":"installazione-con-conda","sections":[],"depth":2},{"title":"Impostazione della cache","local":"impostazione-della-cache","sections":[],"depth":2},{"title":"Modalità Offline","local":"modalità -offline","sections":[{"title":"Ottenere modelli e tokenizer per l’uso offline","local":"ottenere-modelli-e-tokenizer-per-luso-offline","sections":[],"depth":3}],"depth":2}],"depth":1}';function Ji(w){return gi(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Wi extends hi{constructor(p){super(),bi(this,p,Ji,Ci,$i,{})}}export{Wi as component}; | |
Xet Storage Details
- Size:
- 29.8 kB
- Xet hash:
- 1283da4e287c4d5ec23175b9aafd6f10e9482f37c08c1b4b8c37b2e006edd033
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.