import{s as Nl,o as Pl,n as Fl}from"../chunks/scheduler.36a0863c.js";import{S as xl,i as Sl,g as o,s as a,u as T,A as Bl,h as i,f as t,c as r,j as c,v as d,y as h,k as s,o as p,a as n,w as m,d as u,t as v,x as _}from"../chunks/index.d0f7a4c4.js";import{T as Xl}from"../chunks/Tip.4c7d7eb1.js";import{I}from"../chunks/IconCopyLink.bc5fad79.js";import{C as Q}from"../chunks/CodeBlock.69433f87.js";function Al(He){let U,H=`A partire dalla versione 2.3.0 lo script di conversione è parte di transformers CLI (<strong>transformers-cli</strong>), disponibile in ogni installazione
di transformers &gt;=2.3.0.`,y,J,w="La seguente documentazione riflette il formato dei comandi di <strong>transformers-cli convert</strong>.";return{c(){U=o("p"),U.innerHTML=H,y=a(),J=o("p"),J.innerHTML=w},l(f){U=i(f,"P",{"data-svelte-h":!0}),h(U)!=="svelte-pno2uk"&&(U.innerHTML=H),y=r(f),J=i(f,"P",{"data-svelte-h":!0}),h(J)!=="svelte-10735wn"&&(J.innerHTML=w)},m(f,b){n(f,U,b),n(f,y,b),n(f,J,b)},p:Fl,d(f){f&&(t(U),t(y),t(J))}}}function Ll(He){let U,H,y,J,w,f,b,Z,Pt,Me,Ht="Convertire checkpoint di Tensorflow",Ze,j,Zt=`È disponibile un’interfaccia a linea di comando per convertire gli originali checkpoint di Bert/GPT/GPT-2/Transformer-XL/XLNet/XLM
in modelli che possono essere caricati utilizzando i metodi <code>from_pretrained</code> della libreria.`,je,N,Ge,C,P,Pe,G,Ft,$e,jt="BERT",Oe,O,Gt=`Puoi convertire qualunque checkpoint Tensorflow di BERT (in particolare
<a href="https://github.com/google-research/bert#pre-trained-models" rel="nofollow">i modeli pre-allenati rilasciati da Google</a>)
in un file di salvataggio Pytorch utilizzando lo script
<a href="https://github.com/huggingface/transformers/tree/main/src/transformers/models/bert/convert_bert_original_tf_checkpoint_to_pytorch.py" rel="nofollow">convert_bert_original_tf_checkpoint_to_pytorch.py</a>.`,We,W,Ot=`Questo CLI prende come input un checkpoint di Tensorflow (tre files che iniziano con <code>bert_model.ckpt</code>) ed il relativo
file di configurazione (<code>bert_config.json</code>), crea un modello Pytorch per questa configurazione, carica i pesi dal
checkpoint di Tensorflow nel modello di Pytorch e salva il modello che ne risulta in un file di salvataggio standard di Pytorch che
può essere importato utilizzando <code>from_pretrained()</code> (vedi l’esempio nel
<a href="quicktour">quicktour</a> , <a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/text-classification/run_glue.py" rel="nofollow">run_glue.py</a> ).`,De,D,Wt=`Devi soltanto lanciare questo script di conversione <strong>una volta</strong> per ottenere un modello Pytorch. Dopodichè, potrai tralasciare
il checkpoint di Tensorflow (i tre files che iniziano con <code>bert_model.ckpt</code>), ma assicurati di tenere il file di configurazione
(<code>bert_config.json</code>) ed il file di vocabolario (<code>vocab.txt</code>) in quanto queste componenti sono necessarie anche per il modello di Pytorch.`,Ye,Y,Dt=`Per lanciare questo specifico script di conversione avrai bisogno di un’installazione di Tensorflow e di Pytorch
(<code>pip install tensorflow</code>). Il resto della repository richiede soltanto Pytorch.`,ze,z,Yt="Questo è un esempio del processo di conversione per un modello <code>BERT-Base Uncased</code> pre-allenato:",qe,q,Ke,K,zt='Puoi scaricare i modelli pre-allenati di Google per la conversione <a href="https://github.com/google-research/bert#pre-trained-models" rel="nofollow">qua</a>.',et,M,F,Fe,ee,xt,Ee,qt="ALBERT",tt,te,Kt=`Per il modello ALBERT, converti checkpoint di Tensoflow in Pytorch utilizzando lo script
<a href="https://github.com/huggingface/transformers/tree/main/src/transformers/models/albert/convert_albert_original_tf_checkpoint_to_pytorch.py" rel="nofollow">convert_albert_original_tf_checkpoint_to_pytorch.py</a>.`,lt,le,el=`Il CLI prende come input un checkpoint di Tensorflow (tre files che iniziano con <code>model.ckpt-best</code>) e i relativi file di
configurazione (<code>albert_config.json</code>), dopodichè crea e salva un modello Pytorch. Per lanciare questa conversione
avrai bisogno di un’installazione di Tensorflow e di Pytorch.`,nt,ne,tl="Ecco un esempio del procedimento di conversione di un modello <code>ALBERT Base</code> pre-allenato:",ot,oe,it,ie,ll='Puoi scaricare i modelli pre-allenati di Google per la conversione <a href="https://github.com/google-research/albert#pre-trained-models" rel="nofollow">qui</a>.',at,$,x,xe,ae,St,Re,nl="OpenAI GPT",rt,re,ol=`Ecco un esempio del processo di conversione di un modello OpenAI GPT pre-allenato, assumendo che il tuo checkpoint di NumPy
sia salvato nello stesso formato dei modelli pre-allenati OpenAI (vedi <a href="https://github.com/openai/finetune-transformer-lm" rel="nofollow">qui</a>):`,st,se,pt,E,S,Se,pe,Bt,Ve,il="OpenAI GPT-2",ct,ce,al='Ecco un esempio del processo di conversione di un modello OpenAI GPT-2 pre-allenato (vedi <a href="https://github.com/openai/gpt-2" rel="nofollow">qui</a>):',ht,he,ft,R,B,Be,fe,Xt,ge,rl="Transformer-XL",Tt,Te,sl=`Ecco un esempio del processo di conversione di un modello Transformer-XL pre-allenato
(vedi <a href="https://github.com/kimiyoung/transformer-xl/tree/master/tf#obtain-and-evaluate-pretrained-sota-models" rel="nofollow">qui</a>):`,dt,de,mt,V,X,Xe,me,At,ke,pl="XLNet",ut,ue,cl="Ecco un esempio del processo di conversione di un modello XLNet pre-allenato:",vt,ve,_t,g,A,Ae,_e,Lt,Ie,hl="XLM",Ut,Ue,fl="Ecco un esempio del processo di conversione di un modello XLM pre-allenato:",Jt,Je,wt,k,L,Le,we,Qt,Ne,Tl="T5",yt,ye,dl="Ecco un esempio del processo di conversione di un modello T5 pre-allenato:",bt,be,Ct,Qe,Mt;return Z=new I({}),N=new Xl({props:{$$slots:{default:[Al]},$$scope:{ctx:He}}}),G=new I({}),q=new Q({props:{code:"ZXhwb3J0JTIwQkVSVF9CQVNFX0RJUiUzRCUyRnBhdGglMkZ0byUyRmJlcnQlMkZ1bmNhc2VkX0wtMTJfSC03NjhfQS0xMiUwQXRyYW5zZm9ybWVycy1jbGklMjBjb252ZXJ0JTIwLS1tb2RlbF90eXBlJTIwYmVydCUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNEJFUlRfQkFTRV9ESVIlMkZiZXJ0X21vZGVsLmNrcHQlMjAlNUMlMEElMjAlMjAtLWNvbmZpZyUyMCUyNEJFUlRfQkFTRV9ESVIlMkZiZXJ0X2NvbmZpZy5qc29uJTIwJTVDJTBBJTIwJTIwLS1weXRvcmNoX2R1bXBfb3V0cHV0JTIwJTI0QkVSVF9CQVNFX0RJUiUyRnB5dG9yY2hfbW9kZWwuYmlu",highlighted:`<span class="hljs-built_in">export</span> BERT_BASE_DIR=/path/to/bert/uncased_L-12_H-768_A-12
transformers-cli convert --model_type bert \\
  --tf_checkpoint <span class="hljs-variable">$BERT_BASE_DIR</span>/bert_model.ckpt \\
  --config <span class="hljs-variable">$BERT_BASE_DIR</span>/bert_config.json \\
  --pytorch_dump_output <span class="hljs-variable">$BERT_BASE_DIR</span>/pytorch_model.bin`}}),ee=new I({}),oe=new Q({props:{code:"ZXhwb3J0JTIwQUxCRVJUX0JBU0VfRElSJTNEJTJGcGF0aCUyRnRvJTJGYWxiZXJ0JTJGYWxiZXJ0X2Jhc2UlMEF0cmFuc2Zvcm1lcnMtY2xpJTIwY29udmVydCUyMC0tbW9kZWxfdHlwZSUyMGFsYmVydCUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNEFMQkVSVF9CQVNFX0RJUiUyRm1vZGVsLmNrcHQtYmVzdCUyMCU1QyUwQSUyMCUyMC0tY29uZmlnJTIwJTI0QUxCRVJUX0JBU0VfRElSJTJGYWxiZXJ0X2NvbmZpZy5qc29uJTIwJTVDJTBBJTIwJTIwLS1weXRvcmNoX2R1bXBfb3V0cHV0JTIwJTI0QUxCRVJUX0JBU0VfRElSJTJGcHl0b3JjaF9tb2RlbC5iaW4=",highlighted:`<span class="hljs-built_in">export</span> ALBERT_BASE_DIR=/path/to/albert/albert_base
transformers-cli convert --model_type albert \\
  --tf_checkpoint <span class="hljs-variable">$ALBERT_BASE_DIR</span>/model.ckpt-best \\
  --config <span class="hljs-variable">$ALBERT_BASE_DIR</span>/albert_config.json \\
  --pytorch_dump_output <span class="hljs-variable">$ALBERT_BASE_DIR</span>/pytorch_model.bin`}}),ae=new I({}),se=new Q({props:{code:"ZXhwb3J0JTIwT1BFTkFJX0dQVF9DSEVDS1BPSU5UX0ZPTERFUl9QQVRIJTNEJTJGcGF0aCUyRnRvJTJGb3BlbmFpJTJGcHJldHJhaW5lZCUyRm51bXB5JTJGd2VpZ2h0cyUwQXRyYW5zZm9ybWVycy1jbGklMjBjb252ZXJ0JTIwLS1tb2RlbF90eXBlJTIwZ3B0JTIwJTVDJTBBJTIwJTIwLS10Zl9jaGVja3BvaW50JTIwJTI0T1BFTkFJX0dQVF9DSEVDS1BPSU5UX0ZPTERFUl9QQVRIJTIwJTVDJTBBJTIwJTIwLS1weXRvcmNoX2R1bXBfb3V0cHV0JTIwJTI0UFlUT1JDSF9EVU1QX09VVFBVVCUyMCU1QyUwQSUyMCUyMCU1Qi0tY29uZmlnJTIwT1BFTkFJX0dQVF9DT05GSUclNUQlMjAlNUMlMEElMjAlMjAlNUItLWZpbmV0dW5pbmdfdGFza19uYW1lJTIwT1BFTkFJX0dQVF9GSU5FVFVORURfVEFTSyU1RCUyMCU1Qw==",highlighted:`<span class="hljs-built_in">export</span> OPENAI_GPT_CHECKPOINT_FOLDER_PATH=/path/to/openai/pretrained/numpy/weights
transformers-cli convert --model_type gpt \\
  --tf_checkpoint <span class="hljs-variable">$OPENAI_GPT_CHECKPOINT_FOLDER_PATH</span> \\
  --pytorch_dump_output <span class="hljs-variable">$PYTORCH_DUMP_OUTPUT</span> \\
  [--config OPENAI_GPT_CONFIG] \\
  [--finetuning_task_name OPENAI_GPT_FINETUNED_TASK] \\`}}),pe=new I({}),he=new Q({props:{code:"ZXhwb3J0JTIwT1BFTkFJX0dQVDJfQ0hFQ0tQT0lOVF9QQVRIJTNEJTJGcGF0aCUyRnRvJTJGZ3B0MiUyRnByZXRyYWluZWQlMkZ3ZWlnaHRzJTBBdHJhbnNmb3JtZXJzLWNsaSUyMGNvbnZlcnQlMjAtLW1vZGVsX3R5cGUlMjBncHQyJTIwJTVDJTBBJTIwJTIwLS10Zl9jaGVja3BvaW50JTIwJTI0T1BFTkFJX0dQVDJfQ0hFQ0tQT0lOVF9QQVRIJTIwJTVDJTBBJTIwJTIwLS1weXRvcmNoX2R1bXBfb3V0cHV0JTIwJTI0UFlUT1JDSF9EVU1QX09VVFBVVCUyMCU1QyUwQSUyMCUyMCU1Qi0tY29uZmlnJTIwT1BFTkFJX0dQVDJfQ09ORklHJTVEJTIwJTVDJTBBJTIwJTIwJTVCLS1maW5ldHVuaW5nX3Rhc2tfbmFtZSUyME9QRU5BSV9HUFQyX0ZJTkVUVU5FRF9UQVNLJTVE",highlighted:`<span class="hljs-built_in">export</span> OPENAI_GPT2_CHECKPOINT_PATH=/path/to/gpt2/pretrained/weights
transformers-cli convert --model_type gpt2 \\
  --tf_checkpoint <span class="hljs-variable">$OPENAI_GPT2_CHECKPOINT_PATH</span> \\
  --pytorch_dump_output <span class="hljs-variable">$PYTORCH_DUMP_OUTPUT</span> \\
  [--config OPENAI_GPT2_CONFIG] \\
  [--finetuning_task_name OPENAI_GPT2_FINETUNED_TASK]`}}),fe=new I({}),de=new Q({props:{code:"ZXhwb3J0JTIwVFJBTlNGT19YTF9DSEVDS1BPSU5UX0ZPTERFUl9QQVRIJTNEJTJGcGF0aCUyRnRvJTJGdHJhbnNmbyUyRnhsJTJGY2hlY2twb2ludCUwQXRyYW5zZm9ybWVycy1jbGklMjBjb252ZXJ0JTIwLS1tb2RlbF90eXBlJTIwdHJhbnNmb194bCUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNFRSQU5TRk9fWExfQ0hFQ0tQT0lOVF9GT0xERVJfUEFUSCUyMCU1QyUwQSUyMCUyMC0tcHl0b3JjaF9kdW1wX291dHB1dCUyMCUyNFBZVE9SQ0hfRFVNUF9PVVRQVVQlMjAlNUMlMEElMjAlMjAlNUItLWNvbmZpZyUyMFRSQU5TRk9fWExfQ09ORklHJTVEJTIwJTVDJTBBJTIwJTIwJTVCLS1maW5ldHVuaW5nX3Rhc2tfbmFtZSUyMFRSQU5TRk9fWExfRklORVRVTkVEX1RBU0slNUQ=",highlighted:`<span class="hljs-built_in">export</span> TRANSFO_XL_CHECKPOINT_FOLDER_PATH=/path/to/transfo/xl/checkpoint
transformers-cli convert --model_type transfo_xl \\
  --tf_checkpoint <span class="hljs-variable">$TRANSFO_XL_CHECKPOINT_FOLDER_PATH</span> \\
  --pytorch_dump_output <span class="hljs-variable">$PYTORCH_DUMP_OUTPUT</span> \\
  [--config TRANSFO_XL_CONFIG] \\
  [--finetuning_task_name TRANSFO_XL_FINETUNED_TASK]`}}),me=new I({}),ve=new Q({props:{code:"ZXhwb3J0JTIwVFJBTlNGT19YTF9DSEVDS1BPSU5UX1BBVEglM0QlMkZwYXRoJTJGdG8lMkZ4bG5ldCUyRmNoZWNrcG9pbnQlMEFleHBvcnQlMjBUUkFOU0ZPX1hMX0NPTkZJR19QQVRIJTNEJTJGcGF0aCUyRnRvJTJGeGxuZXQlMkZjb25maWclMEF0cmFuc2Zvcm1lcnMtY2xpJTIwY29udmVydCUyMC0tbW9kZWxfdHlwZSUyMHhsbmV0JTIwJTVDJTBBJTIwJTIwLS10Zl9jaGVja3BvaW50JTIwJTI0VFJBTlNGT19YTF9DSEVDS1BPSU5UX1BBVEglMjAlNUMlMEElMjAlMjAtLWNvbmZpZyUyMCUyNFRSQU5TRk9fWExfQ09ORklHX1BBVEglMjAlNUMlMEElMjAlMjAtLXB5dG9yY2hfZHVtcF9vdXRwdXQlMjAlMjRQWVRPUkNIX0RVTVBfT1VUUFVUJTIwJTVDJTBBJTIwJTIwJTVCLS1maW5ldHVuaW5nX3Rhc2tfbmFtZSUyMFhMTkVUX0ZJTkVUVU5FRF9UQVNLJTVEJTIwJTVD",highlighted:`<span class="hljs-built_in">export</span> TRANSFO_XL_CHECKPOINT_PATH=/path/to/xlnet/checkpoint
<span class="hljs-built_in">export</span> TRANSFO_XL_CONFIG_PATH=/path/to/xlnet/config
transformers-cli convert --model_type xlnet \\
  --tf_checkpoint <span class="hljs-variable">$TRANSFO_XL_CHECKPOINT_PATH</span> \\
  --config <span class="hljs-variable">$TRANSFO_XL_CONFIG_PATH</span> \\
  --pytorch_dump_output <span class="hljs-variable">$PYTORCH_DUMP_OUTPUT</span> \\
  [--finetuning_task_name XLNET_FINETUNED_TASK] \\`}}),_e=new I({}),Je=new Q({props:{code:"ZXhwb3J0JTIwWExNX0NIRUNLUE9JTlRfUEFUSCUzRCUyRnBhdGglMkZ0byUyRnhsbSUyRmNoZWNrcG9pbnQlMEF0cmFuc2Zvcm1lcnMtY2xpJTIwY29udmVydCUyMC0tbW9kZWxfdHlwZSUyMHhsbSUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNFhMTV9DSEVDS1BPSU5UX1BBVEglMjAlNUMlMEElMjAlMjAtLXB5dG9yY2hfZHVtcF9vdXRwdXQlMjAlMjRQWVRPUkNIX0RVTVBfT1VUUFVUJTBBJTIwJTVCLS1jb25maWclMjBYTUxfQ09ORklHJTVEJTIwJTVDJTBBJTIwJTVCLS1maW5ldHVuaW5nX3Rhc2tfbmFtZSUyMFhNTF9GSU5FVFVORURfVEFTSyU1RA==",highlighted:`<span class="hljs-built_in">export</span> XLM_CHECKPOINT_PATH=/path/to/xlm/checkpoint
transformers-cli convert --model_type xlm \\
  --tf_checkpoint <span class="hljs-variable">$XLM_CHECKPOINT_PATH</span> \\
  --pytorch_dump_output <span class="hljs-variable">$PYTORCH_DUMP_OUTPUT</span>
 [--config XML_CONFIG] \\
 [--finetuning_task_name XML_FINETUNED_TASK]`}}),we=new I({}),be=new Q({props:{code:"ZXhwb3J0JTIwVDUlM0QlMkZwYXRoJTJGdG8lMkZ0NSUyRnVuY2FzZWRfTC0xMl9ILTc2OF9BLTEyJTBBdHJhbnNmb3JtZXJzLWNsaSUyMGNvbnZlcnQlMjAtLW1vZGVsX3R5cGUlMjB0NSUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNFQ1JTJGdDVfbW9kZWwuY2twdCUyMCU1QyUwQSUyMCUyMC0tY29uZmlnJTIwJTI0VDUlMkZ0NV9jb25maWcuanNvbiUyMCU1QyUwQSUyMCUyMC0tcHl0b3JjaF9kdW1wX291dHB1dCUyMCUyNFQ1JTJGcHl0b3JjaF9tb2RlbC5iaW4=",highlighted:`<span class="hljs-built_in">export</span> T5=/path/to/t5/uncased_L-12_H-768_A-12
transformers-cli convert --model_type t5 \\
  --tf_checkpoint <span class="hljs-variable">$T5</span>/t5_model.ckpt \\
  --config <span class="hljs-variable">$T5</span>/t5_config.json \\
  --pytorch_dump_output <span class="hljs-variable">$T5</span>/pytorch_model.bin`}}),{c(){U=o("meta"),H=a(),y=o("p"),J=a(),w=o("h1"),f=o("a"),b=o("span"),T(Z.$$.fragment),Pt=a(),Me=o("span"),Me.textContent=Ht,Ze=a(),j=o("p"),j.innerHTML=Zt,je=a(),T(N.$$.fragment),Ge=a(),C=o("h2"),P=o("a"),Pe=o("span"),T(G.$$.fragment),Ft=a(),$e=o("span"),$e.textContent=jt,Oe=a(),O=o("p"),O.innerHTML=Gt,We=a(),W=o("p"),W.innerHTML=Ot,De=a(),D=o("p"),D.innerHTML=Wt,Ye=a(),Y=o("p"),Y.innerHTML=Dt,ze=a(),z=o("p"),z.innerHTML=Yt,qe=a(),T(q.$$.fragment),Ke=a(),K=o("p"),K.innerHTML=zt,et=a(),M=o("h2"),F=o("a"),Fe=o("span"),T(ee.$$.fragment),xt=a(),Ee=o("span"),Ee.textContent=qt,tt=a(),te=o("p"),te.innerHTML=Kt,lt=a(),le=o("p"),le.innerHTML=el,nt=a(),ne=o("p"),ne.innerHTML=tl,ot=a(),T(oe.$$.fragment),it=a(),ie=o("p"),ie.innerHTML=ll,at=a(),$=o("h2"),x=o("a"),xe=o("span"),T(ae.$$.fragment),St=a(),Re=o("span"),Re.textContent=nl,rt=a(),re=o("p"),re.innerHTML=ol,st=a(),T(se.$$.fragment),pt=a(),E=o("h2"),S=o("a"),Se=o("span"),T(pe.$$.fragment),Bt=a(),Ve=o("span"),Ve.textContent=il,ct=a(),ce=o("p"),ce.innerHTML=al,ht=a(),T(he.$$.fragment),ft=a(),R=o("h2"),B=o("a"),Be=o("span"),T(fe.$$.fragment),Xt=a(),ge=o("span"),ge.textContent=rl,Tt=a(),Te=o("p"),Te.innerHTML=sl,dt=a(),T(de.$$.fragment),mt=a(),V=o("h2"),X=o("a"),Xe=o("span"),T(me.$$.fragment),At=a(),ke=o("span"),ke.textContent=pl,ut=a(),ue=o("p"),ue.textContent=cl,vt=a(),T(ve.$$.fragment),_t=a(),g=o("h2"),A=o("a"),Ae=o("span"),T(_e.$$.fragment),Lt=a(),Ie=o("span"),Ie.textContent=hl,Ut=a(),Ue=o("p"),Ue.textContent=fl,Jt=a(),T(Je.$$.fragment),wt=a(),k=o("h2"),L=o("a"),Le=o("span"),T(we.$$.fragment),Qt=a(),Ne=o("span"),Ne.textContent=Tl,yt=a(),ye=o("p"),ye.textContent=dl,bt=a(),T(be.$$.fragment),Ct=a(),Qe=o("p"),this.h()},l(e){const l=Bl("svelte-1phssyn",document.head);U=i(l,"META",{name:!0,content:!0}),l.forEach(t),H=r(e),y=i(e,"P",{}),c(y).forEach(t),J=r(e),w=i(e,"H1",{class:!0});var Ce=c(w);f=i(Ce,"A",{id:!0,class:!0,href:!0});var ml=c(f);b=i(ml,"SPAN",{});var ul=c(b);d(Z.$$.fragment,ul),ul.forEach(t),ml.forEach(t),Pt=r(Ce),Me=i(Ce,"SPAN",{"data-svelte-h":!0}),h(Me)!=="svelte-14rh5ic"&&(Me.textContent=Ht),Ce.forEach(t),Ze=r(e),j=i(e,"P",{"data-svelte-h":!0}),h(j)!=="svelte-1h7vx38"&&(j.innerHTML=Zt),je=r(e),d(N.$$.fragment,e),Ge=r(e),C=i(e,"H2",{class:!0});var $t=c(C);P=i($t,"A",{id:!0,class:!0,href:!0});var vl=c(P);Pe=i(vl,"SPAN",{});var _l=c(Pe);d(G.$$.fragment,_l),_l.forEach(t),vl.forEach(t),Ft=r($t),$e=i($t,"SPAN",{"data-svelte-h":!0}),h($e)!=="svelte-d1aweg"&&($e.textContent=jt),$t.forEach(t),Oe=r(e),O=i(e,"P",{"data-svelte-h":!0}),h(O)!=="svelte-12ewxsd"&&(O.innerHTML=Gt),We=r(e),W=i(e,"P",{"data-svelte-h":!0}),h(W)!=="svelte-1tk7qod"&&(W.innerHTML=Ot),De=r(e),D=i(e,"P",{"data-svelte-h":!0}),h(D)!=="svelte-ltah7v"&&(D.innerHTML=Wt),Ye=r(e),Y=i(e,"P",{"data-svelte-h":!0}),h(Y)!=="svelte-1gwoxz3"&&(Y.innerHTML=Dt),ze=r(e),z=i(e,"P",{"data-svelte-h":!0}),h(z)!=="svelte-13c4iak"&&(z.innerHTML=Yt),qe=r(e),d(q.$$.fragment,e),Ke=r(e),K=i(e,"P",{"data-svelte-h":!0}),h(K)!=="svelte-17ev3v6"&&(K.innerHTML=zt),et=r(e),M=i(e,"H2",{class:!0});var Et=c(M);F=i(Et,"A",{id:!0,class:!0,href:!0});var Ul=c(F);Fe=i(Ul,"SPAN",{});var Jl=c(Fe);d(ee.$$.fragment,Jl),Jl.forEach(t),Ul.forEach(t),xt=r(Et),Ee=i(Et,"SPAN",{"data-svelte-h":!0}),h(Ee)!=="svelte-dnm4h3"&&(Ee.textContent=qt),Et.forEach(t),tt=r(e),te=i(e,"P",{"data-svelte-h":!0}),h(te)!=="svelte-bo3lt9"&&(te.innerHTML=Kt),lt=r(e),le=i(e,"P",{"data-svelte-h":!0}),h(le)!=="svelte-xfj20k"&&(le.innerHTML=el),nt=r(e),ne=i(e,"P",{"data-svelte-h":!0}),h(ne)!=="svelte-hzzhlx"&&(ne.innerHTML=tl),ot=r(e),d(oe.$$.fragment,e),it=r(e),ie=i(e,"P",{"data-svelte-h":!0}),h(ie)!=="svelte-p8zabj"&&(ie.innerHTML=ll),at=r(e),$=i(e,"H2",{class:!0});var Rt=c($);x=i(Rt,"A",{id:!0,class:!0,href:!0});var wl=c(x);xe=i(wl,"SPAN",{});var yl=c(xe);d(ae.$$.fragment,yl),yl.forEach(t),wl.forEach(t),St=r(Rt),Re=i(Rt,"SPAN",{"data-svelte-h":!0}),h(Re)!=="svelte-ihxqc"&&(Re.textContent=nl),Rt.forEach(t),rt=r(e),re=i(e,"P",{"data-svelte-h":!0}),h(re)!=="svelte-xb9em5"&&(re.innerHTML=ol),st=r(e),d(se.$$.fragment,e),pt=r(e),E=i(e,"H2",{class:!0});var Vt=c(E);S=i(Vt,"A",{id:!0,class:!0,href:!0});var bl=c(S);Se=i(bl,"SPAN",{});var Cl=c(Se);d(pe.$$.fragment,Cl),Cl.forEach(t),bl.forEach(t),Bt=r(Vt),Ve=i(Vt,"SPAN",{"data-svelte-h":!0}),h(Ve)!=="svelte-mi6htx"&&(Ve.textContent=il),Vt.forEach(t),ct=r(e),ce=i(e,"P",{"data-svelte-h":!0}),h(ce)!=="svelte-ql4a6"&&(ce.innerHTML=al),ht=r(e),d(he.$$.fragment,e),ft=r(e),R=i(e,"H2",{class:!0});var gt=c(R);B=i(gt,"A",{id:!0,class:!0,href:!0});var Ml=c(B);Be=i(Ml,"SPAN",{});var $l=c(Be);d(fe.$$.fragment,$l),$l.forEach(t),Ml.forEach(t),Xt=r(gt),ge=i(gt,"SPAN",{"data-svelte-h":!0}),h(ge)!=="svelte-1pbkpbv"&&(ge.textContent=rl),gt.forEach(t),Tt=r(e),Te=i(e,"P",{"data-svelte-h":!0}),h(Te)!=="svelte-1bs9aub"&&(Te.innerHTML=sl),dt=r(e),d(de.$$.fragment,e),mt=r(e),V=i(e,"H2",{class:!0});var kt=c(V);X=i(kt,"A",{id:!0,class:!0,href:!0});var El=c(X);Xe=i(El,"SPAN",{});var Rl=c(Xe);d(me.$$.fragment,Rl),Rl.forEach(t),El.forEach(t),At=r(kt),ke=i(kt,"SPAN",{"data-svelte-h":!0}),h(ke)!=="svelte-1k6bowc"&&(ke.textContent=pl),kt.forEach(t),ut=r(e),ue=i(e,"P",{"data-svelte-h":!0}),h(ue)!=="svelte-1pi6g15"&&(ue.textContent=cl),vt=r(e),d(ve.$$.fragment,e),_t=r(e),g=i(e,"H2",{class:!0});var It=c(g);A=i(It,"A",{id:!0,class:!0,href:!0});var Vl=c(A);Ae=i(Vl,"SPAN",{});var gl=c(Ae);d(_e.$$.fragment,gl),gl.forEach(t),Vl.forEach(t),Lt=r(It),Ie=i(It,"SPAN",{"data-svelte-h":!0}),h(Ie)!=="svelte-zmv7xk"&&(Ie.textContent=hl),It.forEach(t),Ut=r(e),Ue=i(e,"P",{"data-svelte-h":!0}),h(Ue)!=="svelte-nv1q1"&&(Ue.textContent=fl),Jt=r(e),d(Je.$$.fragment,e),wt=r(e),k=i(e,"H2",{class:!0});var Nt=c(k);L=i(Nt,"A",{id:!0,class:!0,href:!0});var kl=c(L);Le=i(kl,"SPAN",{});var Il=c(Le);d(we.$$.fragment,Il),Il.forEach(t),kl.forEach(t),Qt=r(Nt),Ne=i(Nt,"SPAN",{"data-svelte-h":!0}),h(Ne)!=="svelte-1cet0"&&(Ne.textContent=Tl),Nt.forEach(t),yt=r(e),ye=i(e,"P",{"data-svelte-h":!0}),h(ye)!=="svelte-1xcr0cf"&&(ye.textContent=dl),bt=r(e),d(be.$$.fragment,e),Ct=r(e),Qe=i(e,"P",{}),c(Qe).forEach(t),this.h()},h(){s(U,"name","hf:doc:metadata"),s(U,"content",JSON.stringify(Ql)),s(f,"id","convertire-checkpoint-di-tensorflow"),s(f,"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"),s(f,"href","#convertire-checkpoint-di-tensorflow"),s(w,"class","relative group"),s(P,"id","bert"),s(P,"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"),s(P,"href","#bert"),s(C,"class","relative group"),s(F,"id","albert"),s(F,"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"),s(F,"href","#albert"),s(M,"class","relative group"),s(x,"id","openai-gpt"),s(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"),s(x,"href","#openai-gpt"),s($,"class","relative group"),s(S,"id","openai-gpt2"),s(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"),s(S,"href","#openai-gpt2"),s(E,"class","relative group"),s(B,"id","transformerxl"),s(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"),s(B,"href","#transformerxl"),s(R,"class","relative group"),s(X,"id","xlnet"),s(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"),s(X,"href","#xlnet"),s(V,"class","relative group"),s(A,"id","xlm"),s(A,"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"),s(A,"href","#xlm"),s(g,"class","relative group"),s(L,"id","t5"),s(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"),s(L,"href","#t5"),s(k,"class","relative group")},m(e,l){p(document.head,U),n(e,H,l),n(e,y,l),n(e,J,l),n(e,w,l),p(w,f),p(f,b),m(Z,b,null),p(w,Pt),p(w,Me),n(e,Ze,l),n(e,j,l),n(e,je,l),m(N,e,l),n(e,Ge,l),n(e,C,l),p(C,P),p(P,Pe),m(G,Pe,null),p(C,Ft),p(C,$e),n(e,Oe,l),n(e,O,l),n(e,We,l),n(e,W,l),n(e,De,l),n(e,D,l),n(e,Ye,l),n(e,Y,l),n(e,ze,l),n(e,z,l),n(e,qe,l),m(q,e,l),n(e,Ke,l),n(e,K,l),n(e,et,l),n(e,M,l),p(M,F),p(F,Fe),m(ee,Fe,null),p(M,xt),p(M,Ee),n(e,tt,l),n(e,te,l),n(e,lt,l),n(e,le,l),n(e,nt,l),n(e,ne,l),n(e,ot,l),m(oe,e,l),n(e,it,l),n(e,ie,l),n(e,at,l),n(e,$,l),p($,x),p(x,xe),m(ae,xe,null),p($,St),p($,Re),n(e,rt,l),n(e,re,l),n(e,st,l),m(se,e,l),n(e,pt,l),n(e,E,l),p(E,S),p(S,Se),m(pe,Se,null),p(E,Bt),p(E,Ve),n(e,ct,l),n(e,ce,l),n(e,ht,l),m(he,e,l),n(e,ft,l),n(e,R,l),p(R,B),p(B,Be),m(fe,Be,null),p(R,Xt),p(R,ge),n(e,Tt,l),n(e,Te,l),n(e,dt,l),m(de,e,l),n(e,mt,l),n(e,V,l),p(V,X),p(X,Xe),m(me,Xe,null),p(V,At),p(V,ke),n(e,ut,l),n(e,ue,l),n(e,vt,l),m(ve,e,l),n(e,_t,l),n(e,g,l),p(g,A),p(A,Ae),m(_e,Ae,null),p(g,Lt),p(g,Ie),n(e,Ut,l),n(e,Ue,l),n(e,Jt,l),m(Je,e,l),n(e,wt,l),n(e,k,l),p(k,L),p(L,Le),m(we,Le,null),p(k,Qt),p(k,Ne),n(e,yt,l),n(e,ye,l),n(e,bt,l),m(be,e,l),n(e,Ct,l),n(e,Qe,l),Mt=!0},p(e,[l]){const Ce={};l&2&&(Ce.$$scope={dirty:l,ctx:e}),N.$set(Ce)},i(e){Mt||(u(Z.$$.fragment,e),u(N.$$.fragment,e),u(G.$$.fragment,e),u(q.$$.fragment,e),u(ee.$$.fragment,e),u(oe.$$.fragment,e),u(ae.$$.fragment,e),u(se.$$.fragment,e),u(pe.$$.fragment,e),u(he.$$.fragment,e),u(fe.$$.fragment,e),u(de.$$.fragment,e),u(me.$$.fragment,e),u(ve.$$.fragment,e),u(_e.$$.fragment,e),u(Je.$$.fragment,e),u(we.$$.fragment,e),u(be.$$.fragment,e),Mt=!0)},o(e){v(Z.$$.fragment,e),v(N.$$.fragment,e),v(G.$$.fragment,e),v(q.$$.fragment,e),v(ee.$$.fragment,e),v(oe.$$.fragment,e),v(ae.$$.fragment,e),v(se.$$.fragment,e),v(pe.$$.fragment,e),v(he.$$.fragment,e),v(fe.$$.fragment,e),v(de.$$.fragment,e),v(me.$$.fragment,e),v(ve.$$.fragment,e),v(_e.$$.fragment,e),v(Je.$$.fragment,e),v(we.$$.fragment,e),v(be.$$.fragment,e),Mt=!1},d(e){e&&(t(H),t(y),t(J),t(w),t(Ze),t(j),t(je),t(Ge),t(C),t(Oe),t(O),t(We),t(W),t(De),t(D),t(Ye),t(Y),t(ze),t(z),t(qe),t(Ke),t(K),t(et),t(M),t(tt),t(te),t(lt),t(le),t(nt),t(ne),t(ot),t(it),t(ie),t(at),t($),t(rt),t(re),t(st),t(pt),t(E),t(ct),t(ce),t(ht),t(ft),t(R),t(Tt),t(Te),t(dt),t(mt),t(V),t(ut),t(ue),t(vt),t(_t),t(g),t(Ut),t(Ue),t(Jt),t(wt),t(k),t(yt),t(ye),t(bt),t(Ct),t(Qe)),t(U),_(Z),_(N,e),_(G),_(q,e),_(ee),_(oe,e),_(ae),_(se,e),_(pe),_(he,e),_(fe),_(de,e),_(me),_(ve,e),_(_e),_(Je,e),_(we),_(be,e)}}}const Ql={local:"convertire-checkpoint-di-tensorflow",sections:[{local:"bert",title:"BERT"},{local:"albert",title:"ALBERT"},{local:"openai-gpt",title:"OpenAI GPT"},{local:"openai-gpt2",title:"OpenAI GPT-2"},{local:"transformerxl",title:"Transformer-XL"},{local:"xlnet",title:"XLNet"},{local:"xlm",title:"XLM"},{local:"t5",title:"T5"}],title:"Convertire checkpoint di Tensorflow"};function Hl(He){return Pl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Dl extends xl{constructor(U){super(),Sl(this,U,Hl,Ll,Nl,{})}}export{Dl as component};
