import{s as tt,o as lt,n as nt}from"../chunks/scheduler.36a0863c.js";import{S as it,i as ot,g as a,s as i,r as c,A as at,h as s,f as l,c as o,j as Ke,u as m,x as r,k as et,y as st,a as n,v as T,d as f,t as d,w as U}from"../chunks/index.9c13489a.js";import{T as rt}from"../chunks/Tip.3b06990e.js";import{C as ee}from"../chunks/CodeBlock.05d8ec32.js";import{H as J,E as pt}from"../chunks/EditOnGithub.e88f2b7b.js";function ct(le){let p,$=`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.`,b,u,y="La seguente documentazione riflette il formato dei comandi di <strong>transformers-cli convert</strong>.";return{c(){p=a("p"),p.innerHTML=$,b=i(),u=a("p"),u.innerHTML=y},l(_){p=s(_,"P",{"data-svelte-h":!0}),r(p)!=="svelte-pno2uk"&&(p.innerHTML=$),b=o(_),u=s(_,"P",{"data-svelte-h":!0}),r(u)!=="svelte-10735wn"&&(u.innerHTML=y)},m(_,h){n(_,p,h),n(_,b,h),n(_,u,h)},p:nt,d(_){_&&(l(p),l(b),l(u))}}}function mt(le){let p,$,b,u,y,_,h,Xe=`È 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.`,ne,M,ie,w,oe,C,ke=`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>.`,ae,v,Le=`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> ).`,se,R,Se=`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.`,re,V,Ze=`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.`,pe,g,Qe="Questo è un esempio del processo di conversione per un modello <code>BERT-Base Uncased</code> pre-allenato:",ce,E,me,I,He='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>.',Te,P,fe,F,je=`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>.`,de,B,Ge=`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.`,Ue,N,Ae="Ecco un esempio del procedimento di conversione di un modello <code>ALBERT Base</code> pre-allenato:",_e,X,ue,k,xe='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>.',he,L,be,S,Oe=`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>):`,ye,Z,Me,Q,Je,H,We='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>):',$e,j,we,G,Ce,A,De="Ecco un esempio del processo di conversione di un modello XLNet pre-allenato:",ve,x,Re,O,Ve,W,Ye="Ecco un esempio del processo di conversione di un modello XLM pre-allenato:",ge,D,Ee,Y,Ie,z,ze="Ecco un esempio del processo di conversione di un modello T5 pre-allenato:",Pe,q,Fe,K,Be,te,Ne;return y=new J({props:{title:"Convertire checkpoint di Tensorflow",local:"convertire-checkpoint-di-tensorflow",headingTag:"h1"}}),M=new rt({props:{$$slots:{default:[ct]},$$scope:{ctx:le}}}),w=new J({props:{title:"BERT",local:"bert",headingTag:"h2"}}),E=new ee({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`,wrap:!1}}),P=new J({props:{title:"ALBERT",local:"albert",headingTag:"h2"}}),X=new ee({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`,wrap:!1}}),L=new J({props:{title:"OpenAI GPT",local:"openai-gpt",headingTag:"h2"}}),Z=new ee({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] \\`,wrap:!1}}),Q=new J({props:{title:"OpenAI GPT-2",local:"openai-gpt-2",headingTag:"h2"}}),j=new ee({props:{code:"ZXhwb3J0JTIwT1BFTkFJX0dQVDJfQ0hFQ0tQT0lOVF9QQVRIJTNEJTJGcGF0aCUyRnRvJTJGb3BlbmFpLWNvbW11bml0eSUyRmdwdDIlMkZwcmV0cmFpbmVkJTJGd2VpZ2h0cyUwQXRyYW5zZm9ybWVycy1jbGklMjBjb252ZXJ0JTIwLS1tb2RlbF90eXBlJTIwZ3B0MiUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNE9QRU5BSV9HUFQyX0NIRUNLUE9JTlRfUEFUSCUyMCU1QyUwQSUyMCUyMC0tcHl0b3JjaF9kdW1wX291dHB1dCUyMCUyNFBZVE9SQ0hfRFVNUF9PVVRQVVQlMjAlNUMlMEElMjAlMjAlNUItLWNvbmZpZyUyME9QRU5BSV9HUFQyX0NPTkZJRyU1RCUyMCU1QyUwQSUyMCUyMCU1Qi0tZmluZXR1bmluZ190YXNrX25hbWUlMjBPUEVOQUlfR1BUMl9GSU5FVFVORURfVEFTSyU1RA==",highlighted:`<span class="hljs-built_in">export</span> OPENAI_GPT2_CHECKPOINT_PATH=/path/to/openai-community/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]`,wrap:!1}}),G=new J({props:{title:"XLNet",local:"xlnet",headingTag:"h2"}}),x=new ee({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] \\`,wrap:!1}}),O=new J({props:{title:"XLM",local:"xlm",headingTag:"h2"}}),D=new ee({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]`,wrap:!1}}),Y=new J({props:{title:"T5",local:"t5",headingTag:"h2"}}),q=new ee({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`,wrap:!1}}),K=new pt({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/it/converting_tensorflow_models.md"}}),{c(){p=a("meta"),$=i(),b=a("p"),u=i(),c(y.$$.fragment),_=i(),h=a("p"),h.innerHTML=Xe,ne=i(),c(M.$$.fragment),ie=i(),c(w.$$.fragment),oe=i(),C=a("p"),C.innerHTML=ke,ae=i(),v=a("p"),v.innerHTML=Le,se=i(),R=a("p"),R.innerHTML=Se,re=i(),V=a("p"),V.innerHTML=Ze,pe=i(),g=a("p"),g.innerHTML=Qe,ce=i(),c(E.$$.fragment),me=i(),I=a("p"),I.innerHTML=He,Te=i(),c(P.$$.fragment),fe=i(),F=a("p"),F.innerHTML=je,de=i(),B=a("p"),B.innerHTML=Ge,Ue=i(),N=a("p"),N.innerHTML=Ae,_e=i(),c(X.$$.fragment),ue=i(),k=a("p"),k.innerHTML=xe,he=i(),c(L.$$.fragment),be=i(),S=a("p"),S.innerHTML=Oe,ye=i(),c(Z.$$.fragment),Me=i(),c(Q.$$.fragment),Je=i(),H=a("p"),H.innerHTML=We,$e=i(),c(j.$$.fragment),we=i(),c(G.$$.fragment),Ce=i(),A=a("p"),A.textContent=De,ve=i(),c(x.$$.fragment),Re=i(),c(O.$$.fragment),Ve=i(),W=a("p"),W.textContent=Ye,ge=i(),c(D.$$.fragment),Ee=i(),c(Y.$$.fragment),Ie=i(),z=a("p"),z.textContent=ze,Pe=i(),c(q.$$.fragment),Fe=i(),c(K.$$.fragment),Be=i(),te=a("p"),this.h()},l(e){const t=at("svelte-u9bgzb",document.head);p=s(t,"META",{name:!0,content:!0}),t.forEach(l),$=o(e),b=s(e,"P",{}),Ke(b).forEach(l),u=o(e),m(y.$$.fragment,e),_=o(e),h=s(e,"P",{"data-svelte-h":!0}),r(h)!=="svelte-1h7vx38"&&(h.innerHTML=Xe),ne=o(e),m(M.$$.fragment,e),ie=o(e),m(w.$$.fragment,e),oe=o(e),C=s(e,"P",{"data-svelte-h":!0}),r(C)!=="svelte-12ewxsd"&&(C.innerHTML=ke),ae=o(e),v=s(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-1tk7qod"&&(v.innerHTML=Le),se=o(e),R=s(e,"P",{"data-svelte-h":!0}),r(R)!=="svelte-ltah7v"&&(R.innerHTML=Se),re=o(e),V=s(e,"P",{"data-svelte-h":!0}),r(V)!=="svelte-1gwoxz3"&&(V.innerHTML=Ze),pe=o(e),g=s(e,"P",{"data-svelte-h":!0}),r(g)!=="svelte-13c4iak"&&(g.innerHTML=Qe),ce=o(e),m(E.$$.fragment,e),me=o(e),I=s(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-17ev3v6"&&(I.innerHTML=He),Te=o(e),m(P.$$.fragment,e),fe=o(e),F=s(e,"P",{"data-svelte-h":!0}),r(F)!=="svelte-bo3lt9"&&(F.innerHTML=je),de=o(e),B=s(e,"P",{"data-svelte-h":!0}),r(B)!=="svelte-xfj20k"&&(B.innerHTML=Ge),Ue=o(e),N=s(e,"P",{"data-svelte-h":!0}),r(N)!=="svelte-hzzhlx"&&(N.innerHTML=Ae),_e=o(e),m(X.$$.fragment,e),ue=o(e),k=s(e,"P",{"data-svelte-h":!0}),r(k)!=="svelte-p8zabj"&&(k.innerHTML=xe),he=o(e),m(L.$$.fragment,e),be=o(e),S=s(e,"P",{"data-svelte-h":!0}),r(S)!=="svelte-xb9em5"&&(S.innerHTML=Oe),ye=o(e),m(Z.$$.fragment,e),Me=o(e),m(Q.$$.fragment,e),Je=o(e),H=s(e,"P",{"data-svelte-h":!0}),r(H)!=="svelte-ql4a6"&&(H.innerHTML=We),$e=o(e),m(j.$$.fragment,e),we=o(e),m(G.$$.fragment,e),Ce=o(e),A=s(e,"P",{"data-svelte-h":!0}),r(A)!=="svelte-1pi6g15"&&(A.textContent=De),ve=o(e),m(x.$$.fragment,e),Re=o(e),m(O.$$.fragment,e),Ve=o(e),W=s(e,"P",{"data-svelte-h":!0}),r(W)!=="svelte-nv1q1"&&(W.textContent=Ye),ge=o(e),m(D.$$.fragment,e),Ee=o(e),m(Y.$$.fragment,e),Ie=o(e),z=s(e,"P",{"data-svelte-h":!0}),r(z)!=="svelte-1xcr0cf"&&(z.textContent=ze),Pe=o(e),m(q.$$.fragment,e),Fe=o(e),m(K.$$.fragment,e),Be=o(e),te=s(e,"P",{}),Ke(te).forEach(l),this.h()},h(){et(p,"name","hf:doc:metadata"),et(p,"content",Tt)},m(e,t){st(document.head,p),n(e,$,t),n(e,b,t),n(e,u,t),T(y,e,t),n(e,_,t),n(e,h,t),n(e,ne,t),T(M,e,t),n(e,ie,t),T(w,e,t),n(e,oe,t),n(e,C,t),n(e,ae,t),n(e,v,t),n(e,se,t),n(e,R,t),n(e,re,t),n(e,V,t),n(e,pe,t),n(e,g,t),n(e,ce,t),T(E,e,t),n(e,me,t),n(e,I,t),n(e,Te,t),T(P,e,t),n(e,fe,t),n(e,F,t),n(e,de,t),n(e,B,t),n(e,Ue,t),n(e,N,t),n(e,_e,t),T(X,e,t),n(e,ue,t),n(e,k,t),n(e,he,t),T(L,e,t),n(e,be,t),n(e,S,t),n(e,ye,t),T(Z,e,t),n(e,Me,t),T(Q,e,t),n(e,Je,t),n(e,H,t),n(e,$e,t),T(j,e,t),n(e,we,t),T(G,e,t),n(e,Ce,t),n(e,A,t),n(e,ve,t),T(x,e,t),n(e,Re,t),T(O,e,t),n(e,Ve,t),n(e,W,t),n(e,ge,t),T(D,e,t),n(e,Ee,t),T(Y,e,t),n(e,Ie,t),n(e,z,t),n(e,Pe,t),T(q,e,t),n(e,Fe,t),T(K,e,t),n(e,Be,t),n(e,te,t),Ne=!0},p(e,[t]){const qe={};t&2&&(qe.$$scope={dirty:t,ctx:e}),M.$set(qe)},i(e){Ne||(f(y.$$.fragment,e),f(M.$$.fragment,e),f(w.$$.fragment,e),f(E.$$.fragment,e),f(P.$$.fragment,e),f(X.$$.fragment,e),f(L.$$.fragment,e),f(Z.$$.fragment,e),f(Q.$$.fragment,e),f(j.$$.fragment,e),f(G.$$.fragment,e),f(x.$$.fragment,e),f(O.$$.fragment,e),f(D.$$.fragment,e),f(Y.$$.fragment,e),f(q.$$.fragment,e),f(K.$$.fragment,e),Ne=!0)},o(e){d(y.$$.fragment,e),d(M.$$.fragment,e),d(w.$$.fragment,e),d(E.$$.fragment,e),d(P.$$.fragment,e),d(X.$$.fragment,e),d(L.$$.fragment,e),d(Z.$$.fragment,e),d(Q.$$.fragment,e),d(j.$$.fragment,e),d(G.$$.fragment,e),d(x.$$.fragment,e),d(O.$$.fragment,e),d(D.$$.fragment,e),d(Y.$$.fragment,e),d(q.$$.fragment,e),d(K.$$.fragment,e),Ne=!1},d(e){e&&(l($),l(b),l(u),l(_),l(h),l(ne),l(ie),l(oe),l(C),l(ae),l(v),l(se),l(R),l(re),l(V),l(pe),l(g),l(ce),l(me),l(I),l(Te),l(fe),l(F),l(de),l(B),l(Ue),l(N),l(_e),l(ue),l(k),l(he),l(be),l(S),l(ye),l(Me),l(Je),l(H),l($e),l(we),l(Ce),l(A),l(ve),l(Re),l(Ve),l(W),l(ge),l(Ee),l(Ie),l(z),l(Pe),l(Fe),l(Be),l(te)),l(p),U(y,e),U(M,e),U(w,e),U(E,e),U(P,e),U(X,e),U(L,e),U(Z,e),U(Q,e),U(j,e),U(G,e),U(x,e),U(O,e),U(D,e),U(Y,e),U(q,e),U(K,e)}}}const Tt='{"title":"Convertire checkpoint di Tensorflow","local":"convertire-checkpoint-di-tensorflow","sections":[{"title":"BERT","local":"bert","sections":[],"depth":2},{"title":"ALBERT","local":"albert","sections":[],"depth":2},{"title":"OpenAI GPT","local":"openai-gpt","sections":[],"depth":2},{"title":"OpenAI GPT-2","local":"openai-gpt-2","sections":[],"depth":2},{"title":"XLNet","local":"xlnet","sections":[],"depth":2},{"title":"XLM","local":"xlm","sections":[],"depth":2},{"title":"T5","local":"t5","sections":[],"depth":2}],"depth":1}';function ft(le){return lt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class bt extends it{constructor(p){super(),ot(this,p,ft,mt,tt,{})}}export{bt as component};
