import{s as Ke,o as et,n as tt}from"../chunks/scheduler.d586627e.js";import{S as ot,i as lt,g as s,s as n,r as T,A as nt,h as r,f as o,c as a,j as qe,u as c,x as p,k as ze,y as at,a as l,v as m,d as f,t as d,w as u}from"../chunks/index.8589a59c.js";import{T as st}from"../chunks/Tip.84e2336e.js";import{C as K}from"../chunks/CodeBlock.47c46d2c.js";import{H as y}from"../chunks/Heading.a70e045b.js";function rt(te){let i,$=`A partir da versão 2.3.0 o script de conversão agora faz parte do transformers CLI (<strong>transformers-cli</strong>) disponível em qualquer instalação
transformers &gt;= 2.3.0.`,h,J,b="A documentação abaixo reflete o formato do comando <strong>transformers-cli convert</strong>.";return{c(){i=s("p"),i.innerHTML=$,h=n(),J=s("p"),J.innerHTML=b},l(_){i=r(_,"P",{"data-svelte-h":!0}),p(i)!=="svelte-opr9ez"&&(i.innerHTML=$),h=a(_),J=r(_,"P",{"data-svelte-h":!0}),p(J)!=="svelte-12vk8vx"&&(J.innerHTML=b)},m(_,U){l(_,i,U),l(_,h,U),l(_,J,U)},p:tt,d(_){_&&(o(i),o(h),o(J))}}}function pt(te){let i,$,h,J,b,_,U,Pe=`Uma interface de linha de comando é fornecida para converter os checkpoints originais Bert/GPT/GPT-2/Transformer-XL/XLNet/XLM em modelos
que podem ser carregados usando os métodos <code>from_pretrained</code> da biblioteca.`,oe,M,le,w,ne,v,Xe=`Você pode converter qualquer checkpoint do BERT em TensorFlow (em particular <a href="https://github.com/google-research/bert#pre-trained-models" rel="nofollow">os modelos pré-treinados lançados pelo Google</a>) em um arquivo PyTorch usando um
<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> script.`,ae,V,Ne=`Esta Interface de Linha de Comando (CLI) recebe como entrada um checkpoint do TensorFlow (três arquivos começando com <code>bert_model.ckpt</code>) e o
arquivo de configuração (<code>bert_config.json</code>), e então cria um modelo PyTorch para esta configuração, carrega os pesos
do checkpoint do TensorFlow no modelo PyTorch e salva o modelo resultante em um arquivo PyTorch que pode
ser importado usando <code>from_pretrained()</code> (veja o exemplo em <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,C,ke=`Você só precisa executar este script de conversão <strong>uma vez</strong> para obter um modelo PyTorch. Você pode então desconsiderar o checkpoint em
TensorFlow (os três arquivos começando com <code>bert_model.ckpt</code>), mas certifique-se de manter o arquivo de configuração (\\
<code>bert_config.json</code>) e o arquivo de vocabulário (<code>vocab.txt</code>), pois eles também são necessários para o modelo PyTorch.`,re,R,Le="Para executar este script de conversão específico, você precisará ter o TensorFlow e o PyTorch instalados (<code>pip install tensorflow</code>). O resto do repositório requer apenas o PyTorch.",pe,I,Qe="Aqui está um exemplo do processo de conversão para um modelo <code>BERT-Base Uncased</code> pré-treinado:",ie,F,Te,B,Se='Você pode baixar os modelos pré-treinados do Google para a conversão <a href="https://github.com/google-research/bert#pre-trained-models" rel="nofollow">aqui</a>.',ce,E,me,g,Ze=`Converta os checkpoints do modelo ALBERT em TensorFlow para PyTorch usando o
<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> script.`,fe,P,He=`A Interface de Linha de Comando (CLI) recebe como entrada um checkpoint do TensorFlow (três arquivos começando com <code>model.ckpt-best</code>) e o
arquivo de configuração (<code>albert_config.json</code>), então cria e salva um modelo PyTorch. Para executar esta conversão, você
precisa ter o TensorFlow e o PyTorch instalados.`,de,X,Ae="Aqui está um exemplo do processo de conversão para o modelo <code>ALBERT Base</code> pré-treinado:",ue,N,_e,k,xe='Você pode baixar os modelos pré-treinados do Google para a conversão <a href="https://github.com/google-research/albert#pre-trained-models" rel="nofollow">aqui</a>.',Je,L,Ue,Q,je=`Aqui está um exemplo do processo de conversão para um modelo OpenAI GPT pré-treinado, supondo que seu checkpoint NumPy
foi salvo com o mesmo formato do modelo pré-treinado OpenAI (veja <a href="https://github.com/openai/finetune-transformer-lm" rel="nofollow">aqui</a>\\
)`,he,S,be,Z,Me,H,Ge='Aqui está um exemplo do processo de conversão para um modelo OpenAI GPT-2 pré-treinado (consulte <a href="https://github.com/openai/gpt-2" rel="nofollow">aqui</a>)',ye,A,$e,x,we,j,Oe="Aqui está um exemplo do processo de conversão para um modelo XLNet pré-treinado:",ve,G,Ve,O,Ce,W,We="Aqui está um exemplo do processo de conversão para um modelo XLM pré-treinado:",Re,D,Ie,Y,Fe,q,De="Aqui está um exemplo do processo de conversão para um modelo T5 pré-treinado:",Be,z,Ee,ee,ge;return b=new y({props:{title:"Convertendo checkpoints do TensorFlow para Pytorch",local:"convertendo-checkpoints-do-tensorflow-para-pytorch",headingTag:"h1"}}),M=new st({props:{$$slots:{default:[rt]},$$scope:{ctx:te}}}),w=new y({props:{title:"BERT",local:"bert",headingTag:"h2"}}),F=new K({props:{code:"ZXhwb3J0JTIwQkVSVF9CQVNFX0RJUiUzRCUyRnBhdGglMkZ0byUyRmJlcnQlMkZ1bmNhc2VkX0wtMTJfSC03NjhfQS0xMiUwQSUwQXRyYW5zZm9ybWVycy1jbGklMjBjb252ZXJ0JTIwLS1tb2RlbF90eXBlJTIwYmVydCUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNEJFUlRfQkFTRV9ESVIlMkZiZXJ0X21vZGVsLmNrcHQlMjAlNUMlMEElMjAlMjAtLWNvbmZpZyUyMCUyNEJFUlRfQkFTRV9ESVIlMkZiZXJ0X2NvbmZpZy5qc29uJTIwJTVDJTBBJTIwJTIwLS1weXRvcmNoX2R1bXBfb3V0cHV0JTIwJTI0QkVSVF9CQVNFX0RJUiUyRnB5dG9yY2hfbW9kZWwuYmlu",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}}),E=new y({props:{title:"ALBERT",local:"albert",headingTag:"h2"}}),N=new K({props:{code:"ZXhwb3J0JTIwQUxCRVJUX0JBU0VfRElSJTNEJTJGcGF0aCUyRnRvJTJGYWxiZXJ0JTJGYWxiZXJ0X2Jhc2UlMEElMEF0cmFuc2Zvcm1lcnMtY2xpJTIwY29udmVydCUyMC0tbW9kZWxfdHlwZSUyMGFsYmVydCUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNEFMQkVSVF9CQVNFX0RJUiUyRm1vZGVsLmNrcHQtYmVzdCUyMCU1QyUwQSUyMCUyMC0tY29uZmlnJTIwJTI0QUxCRVJUX0JBU0VfRElSJTJGYWxiZXJ0X2NvbmZpZy5qc29uJTIwJTVDJTBBJTIwJTIwLS1weXRvcmNoX2R1bXBfb3V0cHV0JTIwJTI0QUxCRVJUX0JBU0VfRElSJTJGcHl0b3JjaF9tb2RlbC5iaW4=",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 y({props:{title:"OpenAI GPT",local:"openai-gpt",headingTag:"h2"}}),S=new K({props:{code:"ZXhwb3J0JTIwT1BFTkFJX0dQVF9DSEVDS1BPSU5UX0ZPTERFUl9QQVRIJTNEJTJGcGF0aCUyRnRvJTJGb3BlbmFpJTJGcHJldHJhaW5lZCUyRm51bXB5JTJGd2VpZ2h0cyUwQSUwQXRyYW5zZm9ybWVycy1jbGklMjBjb252ZXJ0JTIwLS1tb2RlbF90eXBlJTIwZ3B0JTIwJTVDJTBBJTIwJTIwLS10Zl9jaGVja3BvaW50JTIwJTI0T1BFTkFJX0dQVF9DSEVDS1BPSU5UX0ZPTERFUl9QQVRIJTIwJTVDJTBBJTIwJTIwLS1weXRvcmNoX2R1bXBfb3V0cHV0JTIwJTI0UFlUT1JDSF9EVU1QX09VVFBVVCUyMCU1QyUwQSUyMCUyMCU1Qi0tY29uZmlnJTIwT1BFTkFJX0dQVF9DT05GSUclNUQlMjAlNUMlMEElMjAlMjAlNUItLWZpbmV0dW5pbmdfdGFza19uYW1lJTIwT1BFTkFJX0dQVF9GSU5FVFVORURfVEFTSyU1RCUyMCU1Qw==",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}}),Z=new y({props:{title:"OpenAI GPT-2",local:"openai-gpt-2",headingTag:"h2"}}),A=new K({props:{code:"ZXhwb3J0JTIwT1BFTkFJX0dQVDJfQ0hFQ0tQT0lOVF9QQVRIJTNEJTJGcGF0aCUyRnRvJTJGZ3B0MiUyRnByZXRyYWluZWQlMkZ3ZWlnaHRzJTBBJTBBdHJhbnNmb3JtZXJzLWNsaSUyMGNvbnZlcnQlMjAtLW1vZGVsX3R5cGUlMjBncHQyJTIwJTVDJTBBJTIwJTIwLS10Zl9jaGVja3BvaW50JTIwJTI0T1BFTkFJX0dQVDJfQ0hFQ0tQT0lOVF9QQVRIJTIwJTVDJTBBJTIwJTIwLS1weXRvcmNoX2R1bXBfb3V0cHV0JTIwJTI0UFlUT1JDSF9EVU1QX09VVFBVVCUyMCU1QyUwQSUyMCUyMCU1Qi0tY29uZmlnJTIwT1BFTkFJX0dQVDJfQ09ORklHJTVEJTIwJTVDJTBBJTIwJTIwJTVCLS1maW5ldHVuaW5nX3Rhc2tfbmFtZSUyME9QRU5BSV9HUFQyX0ZJTkVUVU5FRF9UQVNLJTVE",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]`,wrap:!1}}),x=new y({props:{title:"XLNet",local:"xlnet",headingTag:"h2"}}),G=new K({props:{code:"ZXhwb3J0JTIwVFJBTlNGT19YTF9DSEVDS1BPSU5UX1BBVEglM0QlMkZwYXRoJTJGdG8lMkZ4bG5ldCUyRmNoZWNrcG9pbnQlMEFleHBvcnQlMjBUUkFOU0ZPX1hMX0NPTkZJR19QQVRIJTNEJTJGcGF0aCUyRnRvJTJGeGxuZXQlMkZjb25maWclMEElMEF0cmFuc2Zvcm1lcnMtY2xpJTIwY29udmVydCUyMC0tbW9kZWxfdHlwZSUyMHhsbmV0JTIwJTVDJTBBJTIwJTIwLS10Zl9jaGVja3BvaW50JTIwJTI0VFJBTlNGT19YTF9DSEVDS1BPSU5UX1BBVEglMjAlNUMlMEElMjAlMjAtLWNvbmZpZyUyMCUyNFRSQU5TRk9fWExfQ09ORklHX1BBVEglMjAlNUMlMEElMjAlMjAtLXB5dG9yY2hfZHVtcF9vdXRwdXQlMjAlMjRQWVRPUkNIX0RVTVBfT1VUUFVUJTIwJTVDJTBBJTIwJTIwJTVCLS1maW5ldHVuaW5nX3Rhc2tfbmFtZSUyMFhMTkVUX0ZJTkVUVU5FRF9UQVNLJTVEJTIwJTVD",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 y({props:{title:"XLM",local:"xlm",headingTag:"h2"}}),D=new K({props:{code:"ZXhwb3J0JTIwWExNX0NIRUNLUE9JTlRfUEFUSCUzRCUyRnBhdGglMkZ0byUyRnhsbSUyRmNoZWNrcG9pbnQlMEElMEF0cmFuc2Zvcm1lcnMtY2xpJTIwY29udmVydCUyMC0tbW9kZWxfdHlwZSUyMHhsbSUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNFhMTV9DSEVDS1BPSU5UX1BBVEglMjAlNUMlMEElMjAlMjAtLXB5dG9yY2hfZHVtcF9vdXRwdXQlMjAlMjRQWVRPUkNIX0RVTVBfT1VUUFVUJTBBJTIwJTVCLS1jb25maWclMjBYTUxfQ09ORklHJTVEJTIwJTVDJTBBJTIwJTVCLS1maW5ldHVuaW5nX3Rhc2tfbmFtZSUyMFhNTF9GSU5FVFVORURfVEFTSyU1RA==",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 y({props:{title:"T5",local:"t5",headingTag:"h2"}}),z=new K({props:{code:"ZXhwb3J0JTIwVDUlM0QlMkZwYXRoJTJGdG8lMkZ0NSUyRnVuY2FzZWRfTC0xMl9ILTc2OF9BLTEyJTBBJTBBdHJhbnNmb3JtZXJzLWNsaSUyMGNvbnZlcnQlMjAtLW1vZGVsX3R5cGUlMjB0NSUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNFQ1JTJGdDVfbW9kZWwuY2twdCUyMCU1QyUwQSUyMCUyMC0tY29uZmlnJTIwJTI0VDUlMkZ0NV9jb25maWcuanNvbiUyMCU1QyUwQSUyMCUyMC0tcHl0b3JjaF9kdW1wX291dHB1dCUyMCUyNFQ1JTJGcHl0b3JjaF9tb2RlbC5iaW4=",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}}),{c(){i=s("meta"),$=n(),h=s("p"),J=n(),T(b.$$.fragment),_=n(),U=s("p"),U.innerHTML=Pe,oe=n(),T(M.$$.fragment),le=n(),T(w.$$.fragment),ne=n(),v=s("p"),v.innerHTML=Xe,ae=n(),V=s("p"),V.innerHTML=Ne,se=n(),C=s("p"),C.innerHTML=ke,re=n(),R=s("p"),R.innerHTML=Le,pe=n(),I=s("p"),I.innerHTML=Qe,ie=n(),T(F.$$.fragment),Te=n(),B=s("p"),B.innerHTML=Se,ce=n(),T(E.$$.fragment),me=n(),g=s("p"),g.innerHTML=Ze,fe=n(),P=s("p"),P.innerHTML=He,de=n(),X=s("p"),X.innerHTML=Ae,ue=n(),T(N.$$.fragment),_e=n(),k=s("p"),k.innerHTML=xe,Je=n(),T(L.$$.fragment),Ue=n(),Q=s("p"),Q.innerHTML=je,he=n(),T(S.$$.fragment),be=n(),T(Z.$$.fragment),Me=n(),H=s("p"),H.innerHTML=Ge,ye=n(),T(A.$$.fragment),$e=n(),T(x.$$.fragment),we=n(),j=s("p"),j.textContent=Oe,ve=n(),T(G.$$.fragment),Ve=n(),T(O.$$.fragment),Ce=n(),W=s("p"),W.textContent=We,Re=n(),T(D.$$.fragment),Ie=n(),T(Y.$$.fragment),Fe=n(),q=s("p"),q.textContent=De,Be=n(),T(z.$$.fragment),Ee=n(),ee=s("p"),this.h()},l(e){const t=nt("svelte-u9bgzb",document.head);i=r(t,"META",{name:!0,content:!0}),t.forEach(o),$=a(e),h=r(e,"P",{}),qe(h).forEach(o),J=a(e),c(b.$$.fragment,e),_=a(e),U=r(e,"P",{"data-svelte-h":!0}),p(U)!=="svelte-p2yt92"&&(U.innerHTML=Pe),oe=a(e),c(M.$$.fragment,e),le=a(e),c(w.$$.fragment,e),ne=a(e),v=r(e,"P",{"data-svelte-h":!0}),p(v)!=="svelte-r87t7w"&&(v.innerHTML=Xe),ae=a(e),V=r(e,"P",{"data-svelte-h":!0}),p(V)!=="svelte-cbmmh7"&&(V.innerHTML=Ne),se=a(e),C=r(e,"P",{"data-svelte-h":!0}),p(C)!=="svelte-b84z4n"&&(C.innerHTML=ke),re=a(e),R=r(e,"P",{"data-svelte-h":!0}),p(R)!=="svelte-kemlzt"&&(R.innerHTML=Le),pe=a(e),I=r(e,"P",{"data-svelte-h":!0}),p(I)!=="svelte-10rkvg8"&&(I.innerHTML=Qe),ie=a(e),c(F.$$.fragment,e),Te=a(e),B=r(e,"P",{"data-svelte-h":!0}),p(B)!=="svelte-12fpvhp"&&(B.innerHTML=Se),ce=a(e),c(E.$$.fragment,e),me=a(e),g=r(e,"P",{"data-svelte-h":!0}),p(g)!=="svelte-19k3jdm"&&(g.innerHTML=Ze),fe=a(e),P=r(e,"P",{"data-svelte-h":!0}),p(P)!=="svelte-zkcyaa"&&(P.innerHTML=He),de=a(e),X=r(e,"P",{"data-svelte-h":!0}),p(X)!=="svelte-73nhvy"&&(X.innerHTML=Ae),ue=a(e),c(N.$$.fragment,e),_e=a(e),k=r(e,"P",{"data-svelte-h":!0}),p(k)!=="svelte-1jgcpzg"&&(k.innerHTML=xe),Je=a(e),c(L.$$.fragment,e),Ue=a(e),Q=r(e,"P",{"data-svelte-h":!0}),p(Q)!=="svelte-15p0tsr"&&(Q.innerHTML=je),he=a(e),c(S.$$.fragment,e),be=a(e),c(Z.$$.fragment,e),Me=a(e),H=r(e,"P",{"data-svelte-h":!0}),p(H)!=="svelte-51129x"&&(H.innerHTML=Ge),ye=a(e),c(A.$$.fragment,e),$e=a(e),c(x.$$.fragment,e),we=a(e),j=r(e,"P",{"data-svelte-h":!0}),p(j)!=="svelte-14ewucc"&&(j.textContent=Oe),ve=a(e),c(G.$$.fragment,e),Ve=a(e),c(O.$$.fragment,e),Ce=a(e),W=r(e,"P",{"data-svelte-h":!0}),p(W)!=="svelte-1nhafvs"&&(W.textContent=We),Re=a(e),c(D.$$.fragment,e),Ie=a(e),c(Y.$$.fragment,e),Fe=a(e),q=r(e,"P",{"data-svelte-h":!0}),p(q)!=="svelte-5kcfwq"&&(q.textContent=De),Be=a(e),c(z.$$.fragment,e),Ee=a(e),ee=r(e,"P",{}),qe(ee).forEach(o),this.h()},h(){ze(i,"name","hf:doc:metadata"),ze(i,"content",it)},m(e,t){at(document.head,i),l(e,$,t),l(e,h,t),l(e,J,t),m(b,e,t),l(e,_,t),l(e,U,t),l(e,oe,t),m(M,e,t),l(e,le,t),m(w,e,t),l(e,ne,t),l(e,v,t),l(e,ae,t),l(e,V,t),l(e,se,t),l(e,C,t),l(e,re,t),l(e,R,t),l(e,pe,t),l(e,I,t),l(e,ie,t),m(F,e,t),l(e,Te,t),l(e,B,t),l(e,ce,t),m(E,e,t),l(e,me,t),l(e,g,t),l(e,fe,t),l(e,P,t),l(e,de,t),l(e,X,t),l(e,ue,t),m(N,e,t),l(e,_e,t),l(e,k,t),l(e,Je,t),m(L,e,t),l(e,Ue,t),l(e,Q,t),l(e,he,t),m(S,e,t),l(e,be,t),m(Z,e,t),l(e,Me,t),l(e,H,t),l(e,ye,t),m(A,e,t),l(e,$e,t),m(x,e,t),l(e,we,t),l(e,j,t),l(e,ve,t),m(G,e,t),l(e,Ve,t),m(O,e,t),l(e,Ce,t),l(e,W,t),l(e,Re,t),m(D,e,t),l(e,Ie,t),m(Y,e,t),l(e,Fe,t),l(e,q,t),l(e,Be,t),m(z,e,t),l(e,Ee,t),l(e,ee,t),ge=!0},p(e,[t]){const Ye={};t&2&&(Ye.$$scope={dirty:t,ctx:e}),M.$set(Ye)},i(e){ge||(f(b.$$.fragment,e),f(M.$$.fragment,e),f(w.$$.fragment,e),f(F.$$.fragment,e),f(E.$$.fragment,e),f(N.$$.fragment,e),f(L.$$.fragment,e),f(S.$$.fragment,e),f(Z.$$.fragment,e),f(A.$$.fragment,e),f(x.$$.fragment,e),f(G.$$.fragment,e),f(O.$$.fragment,e),f(D.$$.fragment,e),f(Y.$$.fragment,e),f(z.$$.fragment,e),ge=!0)},o(e){d(b.$$.fragment,e),d(M.$$.fragment,e),d(w.$$.fragment,e),d(F.$$.fragment,e),d(E.$$.fragment,e),d(N.$$.fragment,e),d(L.$$.fragment,e),d(S.$$.fragment,e),d(Z.$$.fragment,e),d(A.$$.fragment,e),d(x.$$.fragment,e),d(G.$$.fragment,e),d(O.$$.fragment,e),d(D.$$.fragment,e),d(Y.$$.fragment,e),d(z.$$.fragment,e),ge=!1},d(e){e&&(o($),o(h),o(J),o(_),o(U),o(oe),o(le),o(ne),o(v),o(ae),o(V),o(se),o(C),o(re),o(R),o(pe),o(I),o(ie),o(Te),o(B),o(ce),o(me),o(g),o(fe),o(P),o(de),o(X),o(ue),o(_e),o(k),o(Je),o(Ue),o(Q),o(he),o(be),o(Me),o(H),o(ye),o($e),o(we),o(j),o(ve),o(Ve),o(Ce),o(W),o(Re),o(Ie),o(Fe),o(q),o(Be),o(Ee),o(ee)),o(i),u(b,e),u(M,e),u(w,e),u(F,e),u(E,e),u(N,e),u(L,e),u(S,e),u(Z,e),u(A,e),u(x,e),u(G,e),u(O,e),u(D,e),u(Y,e),u(z,e)}}}const it='{"title":"Convertendo checkpoints do TensorFlow para Pytorch","local":"convertendo-checkpoints-do-tensorflow-para-pytorch","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 Tt(te){return et(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _t extends ot{constructor(i){super(),lt(this,i,Tt,pt,Ke,{})}}export{_t as component};
