import{s as Ka,o as ei,n as zl}from"../chunks/scheduler.36a0863c.js";import{S as ti,i as li,g as i,s,u as w,A as ai,h as r,f as t,c as o,j as _,v as y,y as m,k as M,o as d,a,w as J,d as g,t as v,x as T}from"../chunks/index.d0f7a4c4.js";import{I as C}from"../chunks/IconCopyLink.bc5fad79.js";import{C as j}from"../chunks/CodeBlock.4236768d.js";import{F as Oa,M as xl}from"../chunks/Markdown.2bf44d4a.js";function ii(b){let n,h='Lo script di esempio scarica e pre-processa un dataset dalla libreria 🤗 <a href="https://huggingface.co/docs/datasets/" rel="nofollow">Datasets</a>. Successivamente, lo script esegue il fine-tuning su un dataset usando il <a href="https://huggingface.co/docs/transformers/main_classes/trainer" rel="nofollow">Trainer</a> su un’architettura che supporta la summarization. Il seguente esempio mostra come eseguire il fine-tuning di <a href="https://huggingface.co/t5-small" rel="nofollow">T5-small</a> sul dataset <a href="https://huggingface.co/datasets/cnn_dailymail" rel="nofollow">CNN/DailyMail</a>. Il modello T5 richiede un parametro addizionale <code>source_prefix</code> a causa del modo in cui è stato addestrato. Questo prefisso permette a T5 di sapere che si tratta di un task di summarization.',p,c,f;return c=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfbmFtZSUyMGNubl9kYWlseW1haWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfY29uZmlnJTIwJTIyMy4wLjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNvdXJjZV9wcmVmaXglMjAlMjJzdW1tYXJpemUlM0ElMjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZ0c3Qtc3VtbWFyaXphdGlvbiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV9ldmFsX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdmVyd3JpdGVfb3V0cHV0X2RpciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcHJlZGljdF93aXRoX2dlbmVyYXRl",highlighted:`python examples/pytorch/summarization/run_summarization.py \\
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --predict_with_generate`,wrap:!1}}),{c(){n=i("p"),n.innerHTML=h,p=s(),w(c.$$.fragment)},l(u){n=r(u,"P",{"data-svelte-h":!0}),m(n)!=="svelte-1xzw9qe"&&(n.innerHTML=h),p=o(u),y(c.$$.fragment,u)},m(u,U){a(u,n,U),a(u,p,U),J(c,u,U),f=!0},p:zl,i(u){f||(g(c.$$.fragment,u),f=!0)},o(u){v(c.$$.fragment,u),f=!1},d(u){u&&(t(n),t(p)),T(c,u)}}}function ri(b){let n,h;return n=new xl({props:{$$slots:{default:[ii]},$$scope:{ctx:b}}}),{c(){w(n.$$.fragment)},l(p){y(n.$$.fragment,p)},m(p,c){J(n,p,c),h=!0},p(p,c){const f={};c&2&&(f.$$scope={dirty:c,ctx:p}),n.$set(f)},i(p){h||(g(n.$$.fragment,p),h=!0)},o(p){v(n.$$.fragment,p),h=!1},d(p){T(n,p)}}}function ni(b){let n,h='Lo script di esempio scarica e pre-processa un dataset dalla libreria 🤗 <a href="https://huggingface.co/docs/datasets/" rel="nofollow">Datasets</a>. Successivamente, lo script esegue il fine-tuning su un dataset usando Keras su un’architettura che supporta la summarization. Il seguente esempio mostra come eseguire il fine-tuning di <a href="https://huggingface.co/t5-small" rel="nofollow">T5-small</a> sul dataset <a href="https://huggingface.co/datasets/cnn_dailymail" rel="nofollow">CNN/DailyMail</a>. Il modello T5 richiede un parametro addizionale <code>source_prefix</code> a causa del modo in cui è stato addestrato. Questo prefisso permette a T5 di sapere che si tratta di un task di summarization.',p,c,f;return c=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZ0ZW5zb3JmbG93JTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9uYW1lJTIwY25uX2RhaWx5bWFpbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9jb25maWclMjAlMjIzLjAuMCUyMiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3V0cHV0X2RpciUyMCUyRnRtcCUyRnRzdC1zdW1tYXJpemF0aW9uJTIwJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlMjA4JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX2V2YWxfYmF0Y2hfc2l6ZSUyMDE2JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1udW1fdHJhaW5fZXBvY2hzJTIwMyUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWw=",highlighted:`python examples/tensorflow/summarization/run_summarization.py  \\
    --model_name_or_path t5-small \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --output_dir /tmp/tst-summarization  \\
    --per_device_train_batch_size 8 \\
    --per_device_eval_batch_size 16 \\
    --num_train_epochs 3 \\
    --do_train \\
    --do_eval`,wrap:!1}}),{c(){n=i("p"),n.innerHTML=h,p=s(),w(c.$$.fragment)},l(u){n=r(u,"P",{"data-svelte-h":!0}),m(n)!=="svelte-29bmoe"&&(n.innerHTML=h),p=o(u),y(c.$$.fragment,u)},m(u,U){a(u,n,U),a(u,p,U),J(c,u,U),f=!0},p:zl,i(u){f||(g(c.$$.fragment,u),f=!0)},o(u){v(c.$$.fragment,u),f=!1},d(u){u&&(t(n),t(p)),T(c,u)}}}function si(b){let n,h;return n=new xl({props:{$$slots:{default:[ni]},$$scope:{ctx:b}}}),{c(){w(n.$$.fragment)},l(p){y(n.$$.fragment,p)},m(p,c){J(n,p,c),h=!0},p(p,c){const f={};c&2&&(f.$$scope={dirty:c,ctx:p}),n.$set(f)},i(p){h||(g(n.$$.fragment,p),h=!0)},o(p){v(n.$$.fragment,p),h=!1},d(p){T(n,p)}}}function oi(b){let n,h='Le Tensor Processing Units (TPU) sono state progettate per migliorare le prestazioni. PyTorch supporta le TPU con il compilatore per deep learning <a href="https://www.tensorflow.org/xla" rel="nofollow">XLA</a> (guarda <a href="https://github.com/pytorch/xla/blob/master/README.md" rel="nofollow">questo link</a> per maggiori dettagli). Per usare una TPU, avvia lo script <code>xla_spawn.py</code> e usa l’argomento <code>num_cores</code> per impostare il numero di core TPU che intendi usare.',p,c,f;return c=new j({props:{code:"cHl0aG9uJTIweGxhX3NwYXduLnB5JTIwLS1udW1fY29yZXMlMjA4JTIwJTVDJTBBJTIwJTIwJTIwJTIwc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfbmFtZSUyMGNubl9kYWlseW1haWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfY29uZmlnJTIwJTIyMy4wLjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNvdXJjZV9wcmVmaXglMjAlMjJzdW1tYXJpemUlM0ElMjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZ0c3Qtc3VtbWFyaXphdGlvbiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV9ldmFsX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdmVyd3JpdGVfb3V0cHV0X2RpciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcHJlZGljdF93aXRoX2dlbmVyYXRl",highlighted:`python xla_spawn.py --num_cores 8 \\
    summarization/run_summarization.py \\
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --predict_with_generate`,wrap:!1}}),{c(){n=i("p"),n.innerHTML=h,p=s(),w(c.$$.fragment)},l(u){n=r(u,"P",{"data-svelte-h":!0}),m(n)!=="svelte-1ndgg9f"&&(n.innerHTML=h),p=o(u),y(c.$$.fragment,u)},m(u,U){a(u,n,U),a(u,p,U),J(c,u,U),f=!0},p:zl,i(u){f||(g(c.$$.fragment,u),f=!0)},o(u){v(c.$$.fragment,u),f=!1},d(u){u&&(t(n),t(p)),T(c,u)}}}function pi(b){let n,h;return n=new xl({props:{$$slots:{default:[oi]},$$scope:{ctx:b}}}),{c(){w(n.$$.fragment)},l(p){y(n.$$.fragment,p)},m(p,c){J(n,p,c),h=!0},p(p,c){const f={};c&2&&(f.$$scope={dirty:c,ctx:p}),n.$set(f)},i(p){h||(g(n.$$.fragment,p),h=!0)},o(p){v(n.$$.fragment,p),h=!1},d(p){T(n,p)}}}function ui(b){let n,h='Le Tensor Processing Units (TPU) sono state progettate per migliorare le prestazioni. Gli script TensorFlow utilizzano una <a href="https://www.tensorflow.org/guide/distributed_training#tpustrategy" rel="nofollow"><code>TPUStrategy</code></a> per eseguire l’addestramento su TPU. Per usare una TPU, passa il nome della risorsa TPU all’argomento <code>tpu</code>.',p,c,f;return c=new j({props:{code:"cHl0aG9uJTIwcnVuX3N1bW1hcml6YXRpb24ucHklMjAlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXRwdSUyMG5hbWVfb2ZfdHB1X3Jlc291cmNlJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9uYW1lJTIwY25uX2RhaWx5bWFpbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9jb25maWclMjAlMjIzLjAuMCUyMiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3V0cHV0X2RpciUyMCUyRnRtcCUyRnRzdC1zdW1tYXJpemF0aW9uJTIwJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlMjA4JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX2V2YWxfYmF0Y2hfc2l6ZSUyMDE2JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1udW1fdHJhaW5fZXBvY2hzJTIwMyUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWw=",highlighted:`python run_summarization.py  \\
    --tpu name_of_tpu_resource \\
    --model_name_or_path t5-small \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --output_dir /tmp/tst-summarization  \\
    --per_device_train_batch_size 8 \\
    --per_device_eval_batch_size 16 \\
    --num_train_epochs 3 \\
    --do_train \\
    --do_eval`,wrap:!1}}),{c(){n=i("p"),n.innerHTML=h,p=s(),w(c.$$.fragment)},l(u){n=r(u,"P",{"data-svelte-h":!0}),m(n)!=="svelte-11qd6ng"&&(n.innerHTML=h),p=o(u),y(c.$$.fragment,u)},m(u,U){a(u,n,U),a(u,p,U),J(c,u,U),f=!0},p:zl,i(u){f||(g(c.$$.fragment,u),f=!0)},o(u){v(c.$$.fragment,u),f=!1},d(u){u&&(t(n),t(p)),T(c,u)}}}function ci(b){let n,h;return n=new xl({props:{$$slots:{default:[ui]},$$scope:{ctx:b}}}),{c(){w(n.$$.fragment)},l(p){y(n.$$.fragment,p)},m(p,c){J(n,p,c),h=!0},p(p,c){const f={};c&2&&(f.$$scope={dirty:c,ctx:p}),n.$set(f)},i(p){h||(g(n.$$.fragment,p),h=!0)},o(p){v(n.$$.fragment,p),h=!1},d(p){T(n,p)}}}function mi(b){let n,h,p,c,f,u,U,P,Zl,De,Sl="Addestramento con script",Jt,q,Hl='Insieme ai <a href="./noteboks/README">notebooks</a> 🤗 Transformers, ci sono anche esempi di script che dimostrano come addestrare un modello per un task con <a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch" rel="nofollow">PyTorch</a>, <a href="https://github.com/huggingface/transformers/tree/main/examples/tensorflow" rel="nofollow">TensorFlow</a>, o <a href="https://github.com/huggingface/transformers/tree/main/examples/flax" rel="nofollow">JAX/Flax</a>.',gt,D,Ql='Troverai anche script che abbiamo usato nei nostri <a href="https://github.com/huggingface/transformers/tree/main/examples/research_projects" rel="nofollow">progetti di ricerca</a> e <a href="https://github.com/huggingface/transformers/tree/main/examples/legacy" rel="nofollow">precedenti esempi</a> a cui contribuisce per lo più la comunità. Questi script non sono attivamente mantenuti e richiedono una specifica versione di 🤗 Transformers che sarà molto probabilmente incompatibile con l’ultima versione della libreria.',vt,O,Pl="Non è dato per scontato che gli script di esempio funzionino senza apportare modifiche per ogni problema, bensì potrebbe essere necessario adattare lo script al tuo caso specifico. Per aiutarti in ciò, la maggioranza degli script espone le modalità di pre-processamento dei dati, consentendoti di modificare lo script come preferisci.",Tt,K,ql='Per qualsiasi feature che vorresti implementare in uno script d’esempio, per favore discutine nel <a href="https://discuss.huggingface.co/" rel="nofollow">forum</a> o in un’<a href="https://github.com/huggingface/transformers/issues" rel="nofollow">issue</a> prima di inviare una Pull Request. Mentre accogliamo con piacere la correzione di bug, è più improbabile che faremo la stessa con una PR che aggiunge funzionalità sacrificando la leggibilità.',_t,ee,Dl='Questa guida ti mostrerà come eseguire uno script di esempio relativo al task di summarization in <a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/summarization" rel="nofollow">PyTorch</a> e <a href="https://github.com/huggingface/transformers/tree/main/examples/tensorflow/summarization" rel="nofollow">TensorFlow</a>. Tutti gli esempi funzioneranno con entrambi i framework a meno che non sia specificato altrimenti.',Ut,$,L,ot,te,Nl,Oe,Ol="Installazione",jt,le,Kl="Per eseguire con successo l’ultima versione degli script di esempio, devi <strong>installare 🤗 Transformers dalla fonte</strong> in un nuovo ambiente virtuale:",bt,ae,Ct,ie,ea="Per le precedenti versioni degli script di esempio, clicca sul pulsante di seguito:",$t,re,ta='<summary>Esempi per versioni precedenti di 🤗 Transformers</summary> <ul><li><a href="https://github.com/huggingface/transformers/tree/v4.5.1/examples">v4.5.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v4.4.2/examples">v4.4.2</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v4.3.3/examples">v4.3.3</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v4.2.2/examples">v4.2.2</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v4.1.1/examples">v4.1.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v4.0.1/examples">v4.0.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.5.1/examples">v3.5.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.4.0/examples">v3.4.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.3.1/examples">v3.3.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.2.0/examples">v3.2.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.1.0/examples">v3.1.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v3.0.2/examples">v3.0.2</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.11.0/examples">v2.11.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.10.0/examples">v2.10.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.9.1/examples">v2.9.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.8.0/examples">v2.8.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.7.0/examples">v2.7.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.6.0/examples">v2.6.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.5.1/examples">v2.5.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.4.0/examples">v2.4.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.3.0/examples">v2.3.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.2.0/examples">v2.2.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.1.0/examples">v2.1.1</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v2.0.0/examples">v2.0.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v1.2.0/examples">v1.2.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v1.1.0/examples">v1.1.0</a></li> <li><a href="https://github.com/huggingface/transformers/tree/v1.0.0/examples">v1.0.0</a></li></ul>',At,ne,la="Successivamente, cambia la tua attuale copia di 🤗 Transformers specificandone la versione, ad esempio v3.5.1:",Xt,se,It,oe,aa="Dopo aver configurato correttamente la versione della libreria, naviga nella cartella degli esempi di tua scelta e installa i requisiti:",Wt,pe,zt,A,R,pt,ue,Ll,Ke,ia="Esegui uno script",xt,G,Zt,X,V,ut,ce,Rl,et,ra="Addestramento distribuito e precisione mista",Nt,me,na='Il <a href="https://huggingface.co/docs/transformers/main_classes/trainer" rel="nofollow">Trainer</a> supporta l’addestramento distribuito e la precisione mista, che significa che puoi anche usarla in uno script. Per abilitare entrambe le funzionalità:',Lt,de,sa="<li>Aggiunto l’argomento <code>fp16</code> per abilitare la precisione mista.</li> <li>Imposta un numero di GPU da usare con l’argomento <code>nproc_per_node</code>.</li>",Rt,Me,Gt,fe,oa='Gli script TensorFlow utilizzano una <a href="https://www.tensorflow.org/guide/distributed_training#mirroredstrategy" rel="nofollow"><code>MirroredStrategy</code></a> per il training distribuito e non devi aggiungere alcun argomento addizionale allo script di training. Lo script TensorFlow userà multiple GPU in modo predefinito se quest’ultime sono disponibili:',Vt,I,B,ct,he,Gl,tt,pa="Esegui uno script su TPU",Bt,F,Ft,W,E,mt,we,Vl,lt,ua="Esegui uno script con 🤗 Accelerate",Et,ye,ca='🤗 <a href="https://huggingface.co/docs/accelerate" rel="nofollow">Accelerate</a> è una libreria compatibile solo con PyTorch che offre un metodo unificato per addestrare modelli su diverse tipologie di configurazioni (CPU, multiple GPU, TPU) mantenendo una completa visibilità rispetto al ciclo di training di PyTorch. Assicurati di aver effettuato l’installazione di 🤗 Accelerate, nel caso non lo avessi fatto:',Yt,Y,at,ma="Nota: dato che Accelerate è in rapido sviluppo, è necessario installare la versione proveniente da git per eseguire gli script:",Bl,Je,kt,ge,da="Invece che usare lo script <code>run_summarization.py</code>, devi usare lo script <code>run_summarization_no_trainer.py</code>. Gli script supportati in 🤗 Accelerate avranno un file chiamato <code>task_no_trainer.py</code> nella rispettiva cartella. Per iniziare, esegui il seguente comando per creare e salvare un file di configurazione:",St,ve,Ht,Te,Ma="Testa la tua configurazione per assicurarti della sua correttezza:",Qt,_e,Pt,Ue,fa="Ora sei pronto per avviare l’addestramento:",qt,je,Dt,z,k,dt,be,Fl,it,ha="Uso di un dataset personalizzato",Ot,Ce,wa="Lo script di summarization supporta dataset personalizzati purché siano file CSV o JSON Line. Quando usi il tuo dataset, devi specificare diversi argomenti aggiuntivi:",Kt,$e,ya="<li><code>train_file</code> e <code>validation_file</code> specificano dove si trovano i file di addestramento e validazione.</li> <li><code>text_column</code> è il file di input da riassumere.</li> <li><code>summary_column</code> è il file di destinazione per l’output.</li>",el,Ae,Ja="Uno script di summarization usando un dataset personalizzato sarebbe simile a questo:",tl,Xe,ll,x,S,Mt,Ie,El,rt,ga="Testare uno script",al,We,va="È spesso una buona idea avviare il tuo script su un numero inferiore di esempi tratti dal dataset, per assicurarti che tutto funzioni come previsto prima di eseguire lo script sull’intero dataset, che potrebbe necessitare di ore. Usa i seguenti argomenti per limitare il dataset ad un massimo numero di esempi:",il,ze,Ta="<li><code>max_train_samples</code></li> <li><code>max_eval_samples</code></li> <li><code>max_predict_samples</code></li>",rl,xe,nl,Ze,_a="Non tutti gli esempi di script supportano l’argomento <code>max_predict_samples</code>. Se non sei sicuro circa il supporto di questo argomento da parte del tuo script, aggiungi l’argomento <code>-h</code> per controllare:",sl,Ne,ol,Z,H,ft,Le,Yl,nt,Ua="Riavviare addestramento da un checkpoint",pl,Re,ja="Un’altra utile opzione è riavviare un addestramento da un checkpoint precedente. Questo garantirà che tu possa riprendere da dove hai interrotto senza ricominciare se l’addestramento viene interrotto. Ci sono due metodi per riavviare l’addestramento da un checkpoint:",ul,Ge,ba="Il primo metodo usa l’argomento <code>output_dir previous_output_dir</code> per riavviare l’addestramento dall’ultima versione del checkpoint contenuto in <code>output_dir</code>. In questo caso, dovresti rimuovere <code>overwrite_output_dir</code>:",cl,Ve,ml,Be,Ca="Il secondo metodo usa l’argomento <code>resume_from_checkpoint path_to_specific_checkpoint</code> per riavviare un addestramento da una specifica cartella di checkpoint.",dl,Fe,Ml,N,Q,ht,Ee,kl,st,$a="Condividi il tuo modello",fl,Ye,Aa='Tutti gli script possono caricare il tuo modello finale al <a href="https://huggingface.co/models" rel="nofollow">Model Hub</a>. Prima di iniziare, assicurati di aver effettuato l’accesso su Hugging Face:',hl,ke,wl,Se,Xa="Poi, aggiungi l’argomento <code>push_to_hub</code> allo script. Questo argomento consentirà di creare un repository con il tuo username Hugging Face e la cartella specificata in <code>output_dir</code>.",yl,He,Ia="Per dare uno specifico nome al repository, usa l’argomento <code>push_to_hub_model_id</code>. Il repository verrà automaticamente elencata sotto al tuo namespace.",Jl,Qe,Wa="Il seguente esempio mostra come caricare un modello specificando il nome del repository:",gl,Pe,vl,wt,Tl;return P=new C({}),te=new C({}),ae=new j({props:{code:"Z2l0JTIwY2xvbmUlMjBodHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZodWdnaW5nZmFjZSUyRnRyYW5zZm9ybWVycyUwQWNkJTIwdHJhbnNmb3JtZXJzJTBBcGlwJTIwaW5zdGFsbCUyMC4=",highlighted:`git <span class="hljs-built_in">clone</span> https://github.com/huggingface/transformers
<span class="hljs-built_in">cd</span> transformers
pip install .`,wrap:!1}}),se=new j({props:{code:"Z2l0JTIwY2hlY2tvdXQlMjB0YWdzJTJGdjMuNS4x",highlighted:"git checkout tags/v3.5.1",wrap:!1}}),pe=new j({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1yJTIwcmVxdWlyZW1lbnRzLnR4dA==",highlighted:"pip install -r requirements.txt",wrap:!1}}),ue=new C({}),G=new Oa({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[si],pytorch:[ri]},$$scope:{ctx:b}}}),ce=new C({}),Me=new j({props:{code:"cHl0aG9uJTIwLW0lMjB0b3JjaC5kaXN0cmlidXRlZC5sYXVuY2glMjAlNUMlMEElMjAlMjAlMjAlMjAtLW5wcm9jX3Blcl9ub2RlJTIwOCUyMHB5dG9yY2glMkZzdW1tYXJpemF0aW9uJTJGcnVuX3N1bW1hcml6YXRpb24ucHklMjAlNUMlMEElMjAlMjAlMjAlMjAtLWZwMTYlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW1vZGVsX25hbWVfb3JfcGF0aCUyMHQ1LXNtYWxsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kb190cmFpbiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fZXZhbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9uYW1lJTIwY25uX2RhaWx5bWFpbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZGF0YXNldF9jb25maWclMjAlMjIzLjAuMCUyMiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tc291cmNlX3ByZWZpeCUyMCUyMnN1bW1hcml6ZSUzQSUyMCUyMiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3V0cHV0X2RpciUyMCUyRnRtcCUyRnRzdC1zdW1tYXJpemF0aW9uJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX2V2YWxfYmF0Y2hfc2l6ZSUzRDQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW92ZXJ3cml0ZV9vdXRwdXRfZGlyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wcmVkaWN0X3dpdGhfZ2VuZXJhdGU=",highlighted:`python -m torch.distributed.launch \\
    --nproc_per_node 8 pytorch/summarization/run_summarization.py \\
    --fp16 \\
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --predict_with_generate`,wrap:!1}}),he=new C({}),F=new Oa({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[ci],pytorch:[pi]},$$scope:{ctx:b}}}),we=new C({}),Je=new j({props:{code:"cGlwJTIwaW5zdGFsbCUyMGdpdCUyQmh0dHBzJTNBJTJGJTJGZ2l0aHViLmNvbSUyRmh1Z2dpbmdmYWNlJTJGYWNjZWxlcmF0ZQ==",highlighted:"pip install git+https://github.com/huggingface/accelerate",wrap:!1}}),ve=new j({props:{code:"YWNjZWxlcmF0ZSUyMGNvbmZpZw==",highlighted:"accelerate config",wrap:!1}}),_e=new j({props:{code:"YWNjZWxlcmF0ZSUyMHRlc3Q=",highlighted:'accelerate <span class="hljs-built_in">test</span>',wrap:!1}}),je=new j({props:{code:"YWNjZWxlcmF0ZSUyMGxhdW5jaCUyMHJ1bl9zdW1tYXJpemF0aW9uX25vX3RyYWluZXIucHklMjAlNUMlMEElMjAlMjAlMjAlMjAtLW1vZGVsX25hbWVfb3JfcGF0aCUyMHQ1LXNtYWxsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kYXRhc2V0X25hbWUlMjBjbm5fZGFpbHltYWlsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kYXRhc2V0X2NvbmZpZyUyMCUyMjMuMC4wJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1zb3VyY2VfcHJlZml4JTIwJTIyc3VtbWFyaXplJTNBJTIwJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdXRwdXRfZGlyJTIwfiUyRnRtcCUyRnRzdC1zdW1tYXJpemF0aW9u",highlighted:`accelerate launch run_summarization_no_trainer.py \\
    --model_name_or_path t5-small \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir ~/tmp/tst-summarization`,wrap:!1}}),be=new C({}),Xe=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXRyYWluX2ZpbGUlMjBwYXRoX3RvX2Nzdl9vcl9qc29ubGluZXNfZmlsZSUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tdmFsaWRhdGlvbl9maWxlJTIwcGF0aF90b19jc3Zfb3JfanNvbmxpbmVzX2ZpbGUlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXRleHRfY29sdW1uJTIwdGV4dF9jb2x1bW5fbmFtZSUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tc3VtbWFyeV9jb2x1bW4lMjBzdW1tYXJ5X2NvbHVtbl9uYW1lJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1zb3VyY2VfcHJlZml4JTIwJTIyc3VtbWFyaXplJTNBJTIwJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdXRwdXRfZGlyJTIwJTJGdG1wJTJGdHN0LXN1bW1hcml6YXRpb24lMjAlNUMlMEElMjAlMjAlMjAlMjAtLW92ZXJ3cml0ZV9vdXRwdXRfZGlyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wZXJfZGV2aWNlX2V2YWxfYmF0Y2hfc2l6ZSUzRDQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXByZWRpY3Rfd2l0aF9nZW5lcmF0ZQ==",highlighted:`python examples/pytorch/summarization/run_summarization.py \\
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --train_file path_to_csv_or_jsonlines_file \\
    --validation_file path_to_csv_or_jsonlines_file \\
    --text_column text_column_name \\
    --summary_column summary_column_name \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --overwrite_output_dir \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --predict_with_generate`,wrap:!1}}),Ie=new C({}),xe=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tbWF4X3RyYWluX3NhbXBsZXMlMjA1MCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tbWF4X2V2YWxfc2FtcGxlcyUyMDUwJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1tYXhfcHJlZGljdF9zYW1wbGVzJTIwNTAlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX3RyYWluJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kb19ldmFsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kYXRhc2V0X25hbWUlMjBjbm5fZGFpbHltYWlsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1kYXRhc2V0X2NvbmZpZyUyMCUyMjMuMC4wJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1zb3VyY2VfcHJlZml4JTIwJTIyc3VtbWFyaXplJTNBJTIwJTIyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdXRwdXRfZGlyJTIwJTJGdG1wJTJGdHN0LXN1bW1hcml6YXRpb24lMjAlNUMlMEElMjAlMjAlMjAlMjAtLXBlcl9kZXZpY2VfdHJhaW5fYmF0Y2hfc2l6ZSUzRDQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXBlcl9kZXZpY2VfZXZhbF9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3ZlcndyaXRlX291dHB1dF9kaXIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXByZWRpY3Rfd2l0aF9nZW5lcmF0ZQ==",highlighted:`python examples/pytorch/summarization/run_summarization.py \\
    --model_name_or_path t5-small \\
    --max_train_samples 50 \\
    --max_eval_samples 50 \\
    --max_predict_samples 50 \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --predict_with_generate`,wrap:!1}}),Ne=new j({props:{code:"ZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTIwLWg=",highlighted:"examples/pytorch/summarization/run_summarization.py -h",wrap:!1}}),Le=new C({}),Ve=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfbmFtZSUyMGNubl9kYWlseW1haWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfY29uZmlnJTIwJTIyMy4wLjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNvdXJjZV9wcmVmaXglMjAlMjJzdW1tYXJpemUlM0ElMjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZ0c3Qtc3VtbWFyaXphdGlvbiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV9ldmFsX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdXRwdXRfZGlyJTIwcHJldmlvdXNfb3V0cHV0X2RpciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcHJlZGljdF93aXRoX2dlbmVyYXRl",highlighted:`python examples/pytorch/summarization/run_summarization.py
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --output_dir previous_output_dir \\
    --predict_with_generate`,wrap:!1}}),Fe=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfbmFtZSUyMGNubl9kYWlseW1haWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfY29uZmlnJTIwJTIyMy4wLjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNvdXJjZV9wcmVmaXglMjAlMjJzdW1tYXJpemUlM0ElMjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZ0c3Qtc3VtbWFyaXphdGlvbiUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcGVyX2RldmljZV9ldmFsX2JhdGNoX3NpemUlM0Q0JTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdmVyd3JpdGVfb3V0cHV0X2RpciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcmVzdW1lX2Zyb21fY2hlY2twb2ludCUyMHBhdGhfdG9fc3BlY2lmaWNfY2hlY2twb2ludCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcHJlZGljdF93aXRoX2dlbmVyYXRl",highlighted:`python examples/pytorch/summarization/run_summarization.py
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --resume_from_checkpoint path_to_specific_checkpoint \\
    --predict_with_generate`,wrap:!1}}),Ee=new C({}),ke=new j({props:{code:"aHVnZ2luZ2ZhY2UtY2xpJTIwbG9naW4=",highlighted:"huggingface-cli login",wrap:!1}}),Pe=new j({props:{code:"cHl0aG9uJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGc3VtbWFyaXphdGlvbiUyRnJ1bl9zdW1tYXJpemF0aW9uLnB5JTBBJTIwJTIwJTIwJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjB0NS1zbWFsbCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfbmFtZSUyMGNubl9kYWlseW1haWwlMjAlNUMlMEElMjAlMjAlMjAlMjAtLWRhdGFzZXRfY29uZmlnJTIwJTIyMy4wLjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXNvdXJjZV9wcmVmaXglMjAlMjJzdW1tYXJpemUlM0ElMjAlMjIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXB1c2hfdG9faHViJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1wdXNoX3RvX2h1Yl9tb2RlbF9pZCUyMGZpbmV0dW5lZC10NS1jbm5fZGFpbHltYWlsJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS1vdXRwdXRfZGlyJTIwJTJGdG1wJTJGdHN0LXN1bW1hcml6YXRpb24lMjAlNUMlMEElMjAlMjAlMjAlMjAtLXBlcl9kZXZpY2VfdHJhaW5fYmF0Y2hfc2l6ZSUzRDQlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXBlcl9kZXZpY2VfZXZhbF9iYXRjaF9zaXplJTNENCUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tb3ZlcndyaXRlX291dHB1dF9kaXIlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXByZWRpY3Rfd2l0aF9nZW5lcmF0ZQ==",highlighted:`python examples/pytorch/summarization/run_summarization.py
    --model_name_or_path t5-small \\
    --do_train \\
    --do_eval \\
    --dataset_name cnn_dailymail \\
    --dataset_config <span class="hljs-string">&quot;3.0.0&quot;</span> \\
    --source_prefix <span class="hljs-string">&quot;summarize: &quot;</span> \\
    --push_to_hub \\
    --push_to_hub_model_id finetuned-t5-cnn_dailymail \\
    --output_dir /tmp/tst-summarization \\
    --per_device_train_batch_size=4 \\
    --per_device_eval_batch_size=4 \\
    --overwrite_output_dir \\
    --predict_with_generate`,wrap:!1}}),{c(){n=i("meta"),h=s(),p=i("p"),c=s(),f=i("h1"),u=i("a"),U=i("span"),w(P.$$.fragment),Zl=s(),De=i("span"),De.textContent=Sl,Jt=s(),q=i("p"),q.innerHTML=Hl,gt=s(),D=i("p"),D.innerHTML=Ql,vt=s(),O=i("p"),O.textContent=Pl,Tt=s(),K=i("p"),K.innerHTML=ql,_t=s(),ee=i("p"),ee.innerHTML=Dl,Ut=s(),$=i("h2"),L=i("a"),ot=i("span"),w(te.$$.fragment),Nl=s(),Oe=i("span"),Oe.textContent=Ol,jt=s(),le=i("p"),le.innerHTML=Kl,bt=s(),w(ae.$$.fragment),Ct=s(),ie=i("p"),ie.textContent=ea,$t=s(),re=i("details"),re.innerHTML=ta,At=s(),ne=i("p"),ne.textContent=la,Xt=s(),w(se.$$.fragment),It=s(),oe=i("p"),oe.textContent=aa,Wt=s(),w(pe.$$.fragment),zt=s(),A=i("h2"),R=i("a"),pt=i("span"),w(ue.$$.fragment),Ll=s(),Ke=i("span"),Ke.textContent=ia,xt=s(),w(G.$$.fragment),Zt=s(),X=i("h2"),V=i("a"),ut=i("span"),w(ce.$$.fragment),Rl=s(),et=i("span"),et.textContent=ra,Nt=s(),me=i("p"),me.innerHTML=na,Lt=s(),de=i("ul"),de.innerHTML=sa,Rt=s(),w(Me.$$.fragment),Gt=s(),fe=i("p"),fe.innerHTML=oa,Vt=s(),I=i("h2"),B=i("a"),ct=i("span"),w(he.$$.fragment),Gl=s(),tt=i("span"),tt.textContent=pa,Bt=s(),w(F.$$.fragment),Ft=s(),W=i("h2"),E=i("a"),mt=i("span"),w(we.$$.fragment),Vl=s(),lt=i("span"),lt.textContent=ua,Et=s(),ye=i("p"),ye.innerHTML=ca,Yt=s(),Y=i("blockquote"),at=i("p"),at.textContent=ma,Bl=s(),w(Je.$$.fragment),kt=s(),ge=i("p"),ge.innerHTML=da,St=s(),w(ve.$$.fragment),Ht=s(),Te=i("p"),Te.textContent=Ma,Qt=s(),w(_e.$$.fragment),Pt=s(),Ue=i("p"),Ue.textContent=fa,qt=s(),w(je.$$.fragment),Dt=s(),z=i("h2"),k=i("a"),dt=i("span"),w(be.$$.fragment),Fl=s(),it=i("span"),it.textContent=ha,Ot=s(),Ce=i("p"),Ce.textContent=wa,Kt=s(),$e=i("ul"),$e.innerHTML=ya,el=s(),Ae=i("p"),Ae.textContent=Ja,tl=s(),w(Xe.$$.fragment),ll=s(),x=i("h2"),S=i("a"),Mt=i("span"),w(Ie.$$.fragment),El=s(),rt=i("span"),rt.textContent=ga,al=s(),We=i("p"),We.textContent=va,il=s(),ze=i("ul"),ze.innerHTML=Ta,rl=s(),w(xe.$$.fragment),nl=s(),Ze=i("p"),Ze.innerHTML=_a,sl=s(),w(Ne.$$.fragment),ol=s(),Z=i("h2"),H=i("a"),ft=i("span"),w(Le.$$.fragment),Yl=s(),nt=i("span"),nt.textContent=Ua,pl=s(),Re=i("p"),Re.textContent=ja,ul=s(),Ge=i("p"),Ge.innerHTML=ba,cl=s(),w(Ve.$$.fragment),ml=s(),Be=i("p"),Be.innerHTML=Ca,dl=s(),w(Fe.$$.fragment),Ml=s(),N=i("h2"),Q=i("a"),ht=i("span"),w(Ee.$$.fragment),kl=s(),st=i("span"),st.textContent=$a,fl=s(),Ye=i("p"),Ye.innerHTML=Aa,hl=s(),w(ke.$$.fragment),wl=s(),Se=i("p"),Se.innerHTML=Xa,yl=s(),He=i("p"),He.innerHTML=Ia,Jl=s(),Qe=i("p"),Qe.textContent=Wa,gl=s(),w(Pe.$$.fragment),vl=s(),wt=i("p"),this.h()},l(e){const l=ai("svelte-1phssyn",document.head);n=r(l,"META",{name:!0,content:!0}),l.forEach(t),h=o(e),p=r(e,"P",{}),_(p).forEach(t),c=o(e),f=r(e,"H1",{class:!0});var qe=_(f);u=r(qe,"A",{id:!0,class:!0,href:!0});var yt=_(u);U=r(yt,"SPAN",{});var za=_(U);y(P.$$.fragment,za),za.forEach(t),yt.forEach(t),Zl=o(qe),De=r(qe,"SPAN",{"data-svelte-h":!0}),m(De)!=="svelte-15ycj21"&&(De.textContent=Sl),qe.forEach(t),Jt=o(e),q=r(e,"P",{"data-svelte-h":!0}),m(q)!=="svelte-dlbwfe"&&(q.innerHTML=Hl),gt=o(e),D=r(e,"P",{"data-svelte-h":!0}),m(D)!=="svelte-p3vgrn"&&(D.innerHTML=Ql),vt=o(e),O=r(e,"P",{"data-svelte-h":!0}),m(O)!=="svelte-3iprul"&&(O.textContent=Pl),Tt=o(e),K=r(e,"P",{"data-svelte-h":!0}),m(K)!=="svelte-skpcg4"&&(K.innerHTML=ql),_t=o(e),ee=r(e,"P",{"data-svelte-h":!0}),m(ee)!=="svelte-1dty626"&&(ee.innerHTML=Dl),Ut=o(e),$=r(e,"H2",{class:!0});var _l=_($);L=r(_l,"A",{id:!0,class:!0,href:!0});var xa=_(L);ot=r(xa,"SPAN",{});var Za=_(ot);y(te.$$.fragment,Za),Za.forEach(t),xa.forEach(t),Nl=o(_l),Oe=r(_l,"SPAN",{"data-svelte-h":!0}),m(Oe)!=="svelte-lqsoum"&&(Oe.textContent=Ol),_l.forEach(t),jt=o(e),le=r(e,"P",{"data-svelte-h":!0}),m(le)!=="svelte-1miqfm2"&&(le.innerHTML=Kl),bt=o(e),y(ae.$$.fragment,e),Ct=o(e),ie=r(e,"P",{"data-svelte-h":!0}),m(ie)!=="svelte-b2rskv"&&(ie.textContent=ea),$t=o(e),re=r(e,"DETAILS",{"data-svelte-h":!0}),m(re)!=="svelte-ytnfkk"&&(re.innerHTML=ta),At=o(e),ne=r(e,"P",{"data-svelte-h":!0}),m(ne)!=="svelte-cm69sz"&&(ne.textContent=la),Xt=o(e),y(se.$$.fragment,e),It=o(e),oe=r(e,"P",{"data-svelte-h":!0}),m(oe)!=="svelte-2jautu"&&(oe.textContent=aa),Wt=o(e),y(pe.$$.fragment,e),zt=o(e),A=r(e,"H2",{class:!0});var Ul=_(A);R=r(Ul,"A",{id:!0,class:!0,href:!0});var Na=_(R);pt=r(Na,"SPAN",{});var La=_(pt);y(ue.$$.fragment,La),La.forEach(t),Na.forEach(t),Ll=o(Ul),Ke=r(Ul,"SPAN",{"data-svelte-h":!0}),m(Ke)!=="svelte-6nvvpa"&&(Ke.textContent=ia),Ul.forEach(t),xt=o(e),y(G.$$.fragment,e),Zt=o(e),X=r(e,"H2",{class:!0});var jl=_(X);V=r(jl,"A",{id:!0,class:!0,href:!0});var Ra=_(V);ut=r(Ra,"SPAN",{});var Ga=_(ut);y(ce.$$.fragment,Ga),Ga.forEach(t),Ra.forEach(t),Rl=o(jl),et=r(jl,"SPAN",{"data-svelte-h":!0}),m(et)!=="svelte-1tokezg"&&(et.textContent=ra),jl.forEach(t),Nt=o(e),me=r(e,"P",{"data-svelte-h":!0}),m(me)!=="svelte-143nmbm"&&(me.innerHTML=na),Lt=o(e),de=r(e,"UL",{"data-svelte-h":!0}),m(de)!=="svelte-1ld4sku"&&(de.innerHTML=sa),Rt=o(e),y(Me.$$.fragment,e),Gt=o(e),fe=r(e,"P",{"data-svelte-h":!0}),m(fe)!=="svelte-3o4ent"&&(fe.innerHTML=oa),Vt=o(e),I=r(e,"H2",{class:!0});var bl=_(I);B=r(bl,"A",{id:!0,class:!0,href:!0});var Va=_(B);ct=r(Va,"SPAN",{});var Ba=_(ct);y(he.$$.fragment,Ba),Ba.forEach(t),Va.forEach(t),Gl=o(bl),tt=r(bl,"SPAN",{"data-svelte-h":!0}),m(tt)!=="svelte-x30avp"&&(tt.textContent=pa),bl.forEach(t),Bt=o(e),y(F.$$.fragment,e),Ft=o(e),W=r(e,"H2",{class:!0});var Cl=_(W);E=r(Cl,"A",{id:!0,class:!0,href:!0});var Fa=_(E);mt=r(Fa,"SPAN",{});var Ea=_(mt);y(we.$$.fragment,Ea),Ea.forEach(t),Fa.forEach(t),Vl=o(Cl),lt=r(Cl,"SPAN",{"data-svelte-h":!0}),m(lt)!=="svelte-cqsq3e"&&(lt.textContent=ua),Cl.forEach(t),Et=o(e),ye=r(e,"P",{"data-svelte-h":!0}),m(ye)!=="svelte-10zit0a"&&(ye.innerHTML=ca),Yt=o(e),Y=r(e,"BLOCKQUOTE",{});var $l=_(Y);at=r($l,"P",{"data-svelte-h":!0}),m(at)!=="svelte-1ehqze5"&&(at.textContent=ma),Bl=o($l),y(Je.$$.fragment,$l),$l.forEach(t),kt=o(e),ge=r(e,"P",{"data-svelte-h":!0}),m(ge)!=="svelte-1b94v6a"&&(ge.innerHTML=da),St=o(e),y(ve.$$.fragment,e),Ht=o(e),Te=r(e,"P",{"data-svelte-h":!0}),m(Te)!=="svelte-13dqlnm"&&(Te.textContent=Ma),Qt=o(e),y(_e.$$.fragment,e),Pt=o(e),Ue=r(e,"P",{"data-svelte-h":!0}),m(Ue)!=="svelte-azupwy"&&(Ue.textContent=fa),qt=o(e),y(je.$$.fragment,e),Dt=o(e),z=r(e,"H2",{class:!0});var Al=_(z);k=r(Al,"A",{id:!0,class:!0,href:!0});var Ya=_(k);dt=r(Ya,"SPAN",{});var ka=_(dt);y(be.$$.fragment,ka),ka.forEach(t),Ya.forEach(t),Fl=o(Al),it=r(Al,"SPAN",{"data-svelte-h":!0}),m(it)!=="svelte-15nzjgj"&&(it.textContent=ha),Al.forEach(t),Ot=o(e),Ce=r(e,"P",{"data-svelte-h":!0}),m(Ce)!=="svelte-3m0es0"&&(Ce.textContent=wa),Kt=o(e),$e=r(e,"UL",{"data-svelte-h":!0}),m($e)!=="svelte-1msqo4o"&&($e.innerHTML=ya),el=o(e),Ae=r(e,"P",{"data-svelte-h":!0}),m(Ae)!=="svelte-1cj93yk"&&(Ae.textContent=Ja),tl=o(e),y(Xe.$$.fragment,e),ll=o(e),x=r(e,"H2",{class:!0});var Xl=_(x);S=r(Xl,"A",{id:!0,class:!0,href:!0});var Sa=_(S);Mt=r(Sa,"SPAN",{});var Ha=_(Mt);y(Ie.$$.fragment,Ha),Ha.forEach(t),Sa.forEach(t),El=o(Xl),rt=r(Xl,"SPAN",{"data-svelte-h":!0}),m(rt)!=="svelte-xn6nri"&&(rt.textContent=ga),Xl.forEach(t),al=o(e),We=r(e,"P",{"data-svelte-h":!0}),m(We)!=="svelte-1sqi69s"&&(We.textContent=va),il=o(e),ze=r(e,"UL",{"data-svelte-h":!0}),m(ze)!=="svelte-14g5f8g"&&(ze.innerHTML=Ta),rl=o(e),y(xe.$$.fragment,e),nl=o(e),Ze=r(e,"P",{"data-svelte-h":!0}),m(Ze)!=="svelte-lpiiy4"&&(Ze.innerHTML=_a),sl=o(e),y(Ne.$$.fragment,e),ol=o(e),Z=r(e,"H2",{class:!0});var Il=_(Z);H=r(Il,"A",{id:!0,class:!0,href:!0});var Qa=_(H);ft=r(Qa,"SPAN",{});var Pa=_(ft);y(Le.$$.fragment,Pa),Pa.forEach(t),Qa.forEach(t),Yl=o(Il),nt=r(Il,"SPAN",{"data-svelte-h":!0}),m(nt)!=="svelte-y0p6cf"&&(nt.textContent=Ua),Il.forEach(t),pl=o(e),Re=r(e,"P",{"data-svelte-h":!0}),m(Re)!=="svelte-1ojfq0o"&&(Re.textContent=ja),ul=o(e),Ge=r(e,"P",{"data-svelte-h":!0}),m(Ge)!=="svelte-er6rqd"&&(Ge.innerHTML=ba),cl=o(e),y(Ve.$$.fragment,e),ml=o(e),Be=r(e,"P",{"data-svelte-h":!0}),m(Be)!=="svelte-vzkarm"&&(Be.innerHTML=Ca),dl=o(e),y(Fe.$$.fragment,e),Ml=o(e),N=r(e,"H2",{class:!0});var Wl=_(N);Q=r(Wl,"A",{id:!0,class:!0,href:!0});var qa=_(Q);ht=r(qa,"SPAN",{});var Da=_(ht);y(Ee.$$.fragment,Da),Da.forEach(t),qa.forEach(t),kl=o(Wl),st=r(Wl,"SPAN",{"data-svelte-h":!0}),m(st)!=="svelte-11qxudb"&&(st.textContent=$a),Wl.forEach(t),fl=o(e),Ye=r(e,"P",{"data-svelte-h":!0}),m(Ye)!=="svelte-5tj2pz"&&(Ye.innerHTML=Aa),hl=o(e),y(ke.$$.fragment,e),wl=o(e),Se=r(e,"P",{"data-svelte-h":!0}),m(Se)!=="svelte-gmt2gy"&&(Se.innerHTML=Xa),yl=o(e),He=r(e,"P",{"data-svelte-h":!0}),m(He)!=="svelte-3hq370"&&(He.innerHTML=Ia),Jl=o(e),Qe=r(e,"P",{"data-svelte-h":!0}),m(Qe)!=="svelte-1doeu81"&&(Qe.textContent=Wa),gl=o(e),y(Pe.$$.fragment,e),vl=o(e),wt=r(e,"P",{}),_(wt).forEach(t),this.h()},h(){M(n,"name","hf:doc:metadata"),M(n,"content",JSON.stringify(di)),M(u,"id","addestramento-con-script"),M(u,"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"),M(u,"href","#addestramento-con-script"),M(f,"class","relative group"),M(L,"id","installazione"),M(L,"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"),M(L,"href","#installazione"),M($,"class","relative group"),M(R,"id","esegui-uno-script"),M(R,"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"),M(R,"href","#esegui-uno-script"),M(A,"class","relative group"),M(V,"id","addestramento-distribuito-e-precisione-mista"),M(V,"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"),M(V,"href","#addestramento-distribuito-e-precisione-mista"),M(X,"class","relative group"),M(B,"id","esegui-uno-script-su-tpu"),M(B,"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"),M(B,"href","#esegui-uno-script-su-tpu"),M(I,"class","relative group"),M(E,"id","esegui-uno-script-con-accelerate"),M(E,"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"),M(E,"href","#esegui-uno-script-con-accelerate"),M(W,"class","relative group"),M(k,"id","uso-di-un-dataset-personalizzato"),M(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"),M(k,"href","#uso-di-un-dataset-personalizzato"),M(z,"class","relative group"),M(S,"id","testare-uno-script"),M(S,"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"),M(S,"href","#testare-uno-script"),M(x,"class","relative group"),M(H,"id","riavviare-addestramento-da-un-checkpoint"),M(H,"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"),M(H,"href","#riavviare-addestramento-da-un-checkpoint"),M(Z,"class","relative group"),M(Q,"id","condividi-il-tuo-modello"),M(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"),M(Q,"href","#condividi-il-tuo-modello"),M(N,"class","relative group")},m(e,l){d(document.head,n),a(e,h,l),a(e,p,l),a(e,c,l),a(e,f,l),d(f,u),d(u,U),J(P,U,null),d(f,Zl),d(f,De),a(e,Jt,l),a(e,q,l),a(e,gt,l),a(e,D,l),a(e,vt,l),a(e,O,l),a(e,Tt,l),a(e,K,l),a(e,_t,l),a(e,ee,l),a(e,Ut,l),a(e,$,l),d($,L),d(L,ot),J(te,ot,null),d($,Nl),d($,Oe),a(e,jt,l),a(e,le,l),a(e,bt,l),J(ae,e,l),a(e,Ct,l),a(e,ie,l),a(e,$t,l),a(e,re,l),a(e,At,l),a(e,ne,l),a(e,Xt,l),J(se,e,l),a(e,It,l),a(e,oe,l),a(e,Wt,l),J(pe,e,l),a(e,zt,l),a(e,A,l),d(A,R),d(R,pt),J(ue,pt,null),d(A,Ll),d(A,Ke),a(e,xt,l),J(G,e,l),a(e,Zt,l),a(e,X,l),d(X,V),d(V,ut),J(ce,ut,null),d(X,Rl),d(X,et),a(e,Nt,l),a(e,me,l),a(e,Lt,l),a(e,de,l),a(e,Rt,l),J(Me,e,l),a(e,Gt,l),a(e,fe,l),a(e,Vt,l),a(e,I,l),d(I,B),d(B,ct),J(he,ct,null),d(I,Gl),d(I,tt),a(e,Bt,l),J(F,e,l),a(e,Ft,l),a(e,W,l),d(W,E),d(E,mt),J(we,mt,null),d(W,Vl),d(W,lt),a(e,Et,l),a(e,ye,l),a(e,Yt,l),a(e,Y,l),d(Y,at),d(Y,Bl),J(Je,Y,null),a(e,kt,l),a(e,ge,l),a(e,St,l),J(ve,e,l),a(e,Ht,l),a(e,Te,l),a(e,Qt,l),J(_e,e,l),a(e,Pt,l),a(e,Ue,l),a(e,qt,l),J(je,e,l),a(e,Dt,l),a(e,z,l),d(z,k),d(k,dt),J(be,dt,null),d(z,Fl),d(z,it),a(e,Ot,l),a(e,Ce,l),a(e,Kt,l),a(e,$e,l),a(e,el,l),a(e,Ae,l),a(e,tl,l),J(Xe,e,l),a(e,ll,l),a(e,x,l),d(x,S),d(S,Mt),J(Ie,Mt,null),d(x,El),d(x,rt),a(e,al,l),a(e,We,l),a(e,il,l),a(e,ze,l),a(e,rl,l),J(xe,e,l),a(e,nl,l),a(e,Ze,l),a(e,sl,l),J(Ne,e,l),a(e,ol,l),a(e,Z,l),d(Z,H),d(H,ft),J(Le,ft,null),d(Z,Yl),d(Z,nt),a(e,pl,l),a(e,Re,l),a(e,ul,l),a(e,Ge,l),a(e,cl,l),J(Ve,e,l),a(e,ml,l),a(e,Be,l),a(e,dl,l),J(Fe,e,l),a(e,Ml,l),a(e,N,l),d(N,Q),d(Q,ht),J(Ee,ht,null),d(N,kl),d(N,st),a(e,fl,l),a(e,Ye,l),a(e,hl,l),J(ke,e,l),a(e,wl,l),a(e,Se,l),a(e,yl,l),a(e,He,l),a(e,Jl,l),a(e,Qe,l),a(e,gl,l),J(Pe,e,l),a(e,vl,l),a(e,wt,l),Tl=!0},p(e,[l]){const qe={};l&2&&(qe.$$scope={dirty:l,ctx:e}),G.$set(qe);const yt={};l&2&&(yt.$$scope={dirty:l,ctx:e}),F.$set(yt)},i(e){Tl||(g(P.$$.fragment,e),g(te.$$.fragment,e),g(ae.$$.fragment,e),g(se.$$.fragment,e),g(pe.$$.fragment,e),g(ue.$$.fragment,e),g(G.$$.fragment,e),g(ce.$$.fragment,e),g(Me.$$.fragment,e),g(he.$$.fragment,e),g(F.$$.fragment,e),g(we.$$.fragment,e),g(Je.$$.fragment,e),g(ve.$$.fragment,e),g(_e.$$.fragment,e),g(je.$$.fragment,e),g(be.$$.fragment,e),g(Xe.$$.fragment,e),g(Ie.$$.fragment,e),g(xe.$$.fragment,e),g(Ne.$$.fragment,e),g(Le.$$.fragment,e),g(Ve.$$.fragment,e),g(Fe.$$.fragment,e),g(Ee.$$.fragment,e),g(ke.$$.fragment,e),g(Pe.$$.fragment,e),Tl=!0)},o(e){v(P.$$.fragment,e),v(te.$$.fragment,e),v(ae.$$.fragment,e),v(se.$$.fragment,e),v(pe.$$.fragment,e),v(ue.$$.fragment,e),v(G.$$.fragment,e),v(ce.$$.fragment,e),v(Me.$$.fragment,e),v(he.$$.fragment,e),v(F.$$.fragment,e),v(we.$$.fragment,e),v(Je.$$.fragment,e),v(ve.$$.fragment,e),v(_e.$$.fragment,e),v(je.$$.fragment,e),v(be.$$.fragment,e),v(Xe.$$.fragment,e),v(Ie.$$.fragment,e),v(xe.$$.fragment,e),v(Ne.$$.fragment,e),v(Le.$$.fragment,e),v(Ve.$$.fragment,e),v(Fe.$$.fragment,e),v(Ee.$$.fragment,e),v(ke.$$.fragment,e),v(Pe.$$.fragment,e),Tl=!1},d(e){e&&(t(h),t(p),t(c),t(f),t(Jt),t(q),t(gt),t(D),t(vt),t(O),t(Tt),t(K),t(_t),t(ee),t(Ut),t($),t(jt),t(le),t(bt),t(Ct),t(ie),t($t),t(re),t(At),t(ne),t(Xt),t(It),t(oe),t(Wt),t(zt),t(A),t(xt),t(Zt),t(X),t(Nt),t(me),t(Lt),t(de),t(Rt),t(Gt),t(fe),t(Vt),t(I),t(Bt),t(Ft),t(W),t(Et),t(ye),t(Yt),t(Y),t(kt),t(ge),t(St),t(Ht),t(Te),t(Qt),t(Pt),t(Ue),t(qt),t(Dt),t(z),t(Ot),t(Ce),t(Kt),t($e),t(el),t(Ae),t(tl),t(ll),t(x),t(al),t(We),t(il),t(ze),t(rl),t(nl),t(Ze),t(sl),t(ol),t(Z),t(pl),t(Re),t(ul),t(Ge),t(cl),t(ml),t(Be),t(dl),t(Ml),t(N),t(fl),t(Ye),t(hl),t(wl),t(Se),t(yl),t(He),t(Jl),t(Qe),t(gl),t(vl),t(wt)),t(n),T(P),T(te),T(ae,e),T(se,e),T(pe,e),T(ue),T(G,e),T(ce),T(Me,e),T(he),T(F,e),T(we),T(Je),T(ve,e),T(_e,e),T(je,e),T(be),T(Xe,e),T(Ie),T(xe,e),T(Ne,e),T(Le),T(Ve,e),T(Fe,e),T(Ee),T(ke,e),T(Pe,e)}}}const di={local:"addestramento-con-script",sections:[{local:"installazione",title:"Installazione"},{local:"esegui-uno-script",title:"Esegui uno script"},{local:"addestramento-distribuito-e-precisione-mista",title:"Addestramento distribuito e precisione mista"},{local:"esegui-uno-script-su-tpu",title:"Esegui uno script su TPU"},{local:"esegui-uno-script-con-accelerate",title:"Esegui uno script con 🤗 Accelerate"},{local:"uso-di-un-dataset-personalizzato",title:"Uso di un dataset personalizzato"},{local:"testare-uno-script",title:"Testare uno script"},{local:"riavviare-addestramento-da-un-checkpoint",title:"Riavviare addestramento da un checkpoint"},{local:"condividi-il-tuo-modello",title:"Condividi il tuo modello"}],title:"Addestramento con script"};function Mi(b){return ei(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gi extends ti{constructor(n){super(),li(this,n,Mi,mi,Ka,{})}}export{gi as component};
