import{s as st,o as rt,n as pt}from"../chunks/scheduler.d586627e.js";import{S as it,i as Tt,g as s,s as n,r as i,A as mt,h as r,f as l,c as a,j as nt,u as T,x as p,k as at,y as ct,a as o,v as m,d as c,t as f,w as d}from"../chunks/index.8589a59c.js";import{T as ft}from"../chunks/Tip.84e2336e.js";import{C as $}from"../chunks/CodeBlock.47c46d2c.js";import{H as b}from"../chunks/Heading.a70e045b.js";function dt(ne){let U,w=`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,y="A documentação abaixo reflete o formato do comando <strong>transformers-cli convert</strong>.";return{c(){U=s("p"),U.innerHTML=w,h=n(),J=s("p"),J.innerHTML=y},l(_){U=r(_,"P",{"data-svelte-h":!0}),p(U)!=="svelte-opr9ez"&&(U.innerHTML=w),h=a(_),J=r(_,"P",{"data-svelte-h":!0}),p(J)!=="svelte-12vk8vx"&&(J.innerHTML=y)},m(_,u){o(_,U,u),o(_,h,u),o(_,J,u)},p:pt,d(_){_&&(l(U),l(h),l(J))}}}function Ut(ne){let U,w,h,J,y,_,u,Se=`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.`,ae,M,se,V,re,C,He=`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.`,pe,v,Ze=`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> ).`,ie,R,xe=`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.`,Te,F,Ae="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.",me,I,je="Aqui está um exemplo do processo de conversão para um modelo <code>BERT-Base Uncased</code> pré-treinado:",ce,E,fe,B,Ge='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>.',de,g,Ue,N,Oe=`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.`,_e,P,We=`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.`,Je,X,De="Aqui está um exemplo do processo de conversão para o modelo <code>ALBERT Base</code> pré-treinado:",ue,k,he,L,Ye='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>.',ye,Q,be,S,qe=`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>\\
)`,Me,H,$e,Z,we,x,ze='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>)',Ve,A,Ce,j,ve,G,Ke='Aqui está um exemplo do processo de conversão para um modelo Transformer-XL pré-treinado (consulte <a href="https://github.com/kimiyoung/transformer-xl/tree/master/tf#obtain-and-evaluate-pretrained-modelos-sota" rel="nofollow">aqui</a>)',Re,O,Fe,W,Ie,D,et="Aqui está um exemplo do processo de conversão para um modelo XLNet pré-treinado:",Ee,Y,Be,q,ge,z,tt="Aqui está um exemplo do processo de conversão para um modelo XLM pré-treinado:",Ne,K,Pe,ee,Xe,te,lt="Aqui está um exemplo do processo de conversão para um modelo T5 pré-treinado:",ke,le,Le,oe,Qe;return y=new b({props:{title:"Convertendo checkpoints do TensorFlow para Pytorch",local:"convertendo-checkpoints-do-tensorflow-para-pytorch",headingTag:"h1"}}),M=new ft({props:{$$slots:{default:[dt]},$$scope:{ctx:ne}}}),V=new b({props:{title:"BERT",local:"bert",headingTag:"h2"}}),E=new $({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}}),g=new b({props:{title:"ALBERT",local:"albert",headingTag:"h2"}}),k=new $({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}}),Q=new b({props:{title:"OpenAI GPT",local:"openai-gpt",headingTag:"h2"}}),H=new $({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 b({props:{title:"OpenAI GPT-2",local:"openai-gpt-2",headingTag:"h2"}}),A=new $({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}}),j=new b({props:{title:"Transformer-XL",local:"transformer-xl",headingTag:"h2"}}),O=new $({props:{code:"ZXhwb3J0JTIwVFJBTlNGT19YTF9DSEVDS1BPSU5UX0ZPTERFUl9QQVRIJTNEJTJGcGF0aCUyRnRvJTJGdHJhbnNmbyUyRnhsJTJGY2hlY2twb2ludCUwQSUwQXRyYW5zZm9ybWVycy1jbGklMjBjb252ZXJ0JTIwLS1tb2RlbF90eXBlJTIwdHJhbnNmb194bCUyMCU1QyUwQSUyMCUyMC0tdGZfY2hlY2twb2ludCUyMCUyNFRSQU5TRk9fWExfQ0hFQ0tQT0lOVF9GT0xERVJfUEFUSCUyMCU1QyUwQSUyMCUyMC0tcHl0b3JjaF9kdW1wX291dHB1dCUyMCUyNFBZVE9SQ0hfRFVNUF9PVVRQVVQlMjAlNUMlMEElMjAlMjAlNUItLWNvbmZpZyUyMFRSQU5TRk9fWExfQ09ORklHJTVEJTIwJTVDJTBBJTIwJTIwJTVCLS1maW5ldHVuaW5nX3Rhc2tfbmFtZSUyMFRSQU5TRk9fWExfRklORVRVTkVEX1RBU0slNUQ=",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]`,wrap:!1}}),W=new b({props:{title:"XLNet",local:"xlnet",headingTag:"h2"}}),Y=new $({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}}),q=new b({props:{title:"XLM",local:"xlm",headingTag:"h2"}}),K=new $({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}}),ee=new b({props:{title:"T5",local:"t5",headingTag:"h2"}}),le=new $({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(){U=s("meta"),w=n(),h=s("p"),J=n(),i(y.$$.fragment),_=n(),u=s("p"),u.innerHTML=Se,ae=n(),i(M.$$.fragment),se=n(),i(V.$$.fragment),re=n(),C=s("p"),C.innerHTML=He,pe=n(),v=s("p"),v.innerHTML=Ze,ie=n(),R=s("p"),R.innerHTML=xe,Te=n(),F=s("p"),F.innerHTML=Ae,me=n(),I=s("p"),I.innerHTML=je,ce=n(),i(E.$$.fragment),fe=n(),B=s("p"),B.innerHTML=Ge,de=n(),i(g.$$.fragment),Ue=n(),N=s("p"),N.innerHTML=Oe,_e=n(),P=s("p"),P.innerHTML=We,Je=n(),X=s("p"),X.innerHTML=De,ue=n(),i(k.$$.fragment),he=n(),L=s("p"),L.innerHTML=Ye,ye=n(),i(Q.$$.fragment),be=n(),S=s("p"),S.innerHTML=qe,Me=n(),i(H.$$.fragment),$e=n(),i(Z.$$.fragment),we=n(),x=s("p"),x.innerHTML=ze,Ve=n(),i(A.$$.fragment),Ce=n(),i(j.$$.fragment),ve=n(),G=s("p"),G.innerHTML=Ke,Re=n(),i(O.$$.fragment),Fe=n(),i(W.$$.fragment),Ie=n(),D=s("p"),D.textContent=et,Ee=n(),i(Y.$$.fragment),Be=n(),i(q.$$.fragment),ge=n(),z=s("p"),z.textContent=tt,Ne=n(),i(K.$$.fragment),Pe=n(),i(ee.$$.fragment),Xe=n(),te=s("p"),te.textContent=lt,ke=n(),i(le.$$.fragment),Le=n(),oe=s("p"),this.h()},l(e){const t=mt("svelte-u9bgzb",document.head);U=r(t,"META",{name:!0,content:!0}),t.forEach(l),w=a(e),h=r(e,"P",{}),nt(h).forEach(l),J=a(e),T(y.$$.fragment,e),_=a(e),u=r(e,"P",{"data-svelte-h":!0}),p(u)!=="svelte-p2yt92"&&(u.innerHTML=Se),ae=a(e),T(M.$$.fragment,e),se=a(e),T(V.$$.fragment,e),re=a(e),C=r(e,"P",{"data-svelte-h":!0}),p(C)!=="svelte-r87t7w"&&(C.innerHTML=He),pe=a(e),v=r(e,"P",{"data-svelte-h":!0}),p(v)!=="svelte-cbmmh7"&&(v.innerHTML=Ze),ie=a(e),R=r(e,"P",{"data-svelte-h":!0}),p(R)!=="svelte-b84z4n"&&(R.innerHTML=xe),Te=a(e),F=r(e,"P",{"data-svelte-h":!0}),p(F)!=="svelte-kemlzt"&&(F.innerHTML=Ae),me=a(e),I=r(e,"P",{"data-svelte-h":!0}),p(I)!=="svelte-10rkvg8"&&(I.innerHTML=je),ce=a(e),T(E.$$.fragment,e),fe=a(e),B=r(e,"P",{"data-svelte-h":!0}),p(B)!=="svelte-12fpvhp"&&(B.innerHTML=Ge),de=a(e),T(g.$$.fragment,e),Ue=a(e),N=r(e,"P",{"data-svelte-h":!0}),p(N)!=="svelte-19k3jdm"&&(N.innerHTML=Oe),_e=a(e),P=r(e,"P",{"data-svelte-h":!0}),p(P)!=="svelte-zkcyaa"&&(P.innerHTML=We),Je=a(e),X=r(e,"P",{"data-svelte-h":!0}),p(X)!=="svelte-73nhvy"&&(X.innerHTML=De),ue=a(e),T(k.$$.fragment,e),he=a(e),L=r(e,"P",{"data-svelte-h":!0}),p(L)!=="svelte-1jgcpzg"&&(L.innerHTML=Ye),ye=a(e),T(Q.$$.fragment,e),be=a(e),S=r(e,"P",{"data-svelte-h":!0}),p(S)!=="svelte-15p0tsr"&&(S.innerHTML=qe),Me=a(e),T(H.$$.fragment,e),$e=a(e),T(Z.$$.fragment,e),we=a(e),x=r(e,"P",{"data-svelte-h":!0}),p(x)!=="svelte-51129x"&&(x.innerHTML=ze),Ve=a(e),T(A.$$.fragment,e),Ce=a(e),T(j.$$.fragment,e),ve=a(e),G=r(e,"P",{"data-svelte-h":!0}),p(G)!=="svelte-4osoax"&&(G.innerHTML=Ke),Re=a(e),T(O.$$.fragment,e),Fe=a(e),T(W.$$.fragment,e),Ie=a(e),D=r(e,"P",{"data-svelte-h":!0}),p(D)!=="svelte-14ewucc"&&(D.textContent=et),Ee=a(e),T(Y.$$.fragment,e),Be=a(e),T(q.$$.fragment,e),ge=a(e),z=r(e,"P",{"data-svelte-h":!0}),p(z)!=="svelte-1nhafvs"&&(z.textContent=tt),Ne=a(e),T(K.$$.fragment,e),Pe=a(e),T(ee.$$.fragment,e),Xe=a(e),te=r(e,"P",{"data-svelte-h":!0}),p(te)!=="svelte-5kcfwq"&&(te.textContent=lt),ke=a(e),T(le.$$.fragment,e),Le=a(e),oe=r(e,"P",{}),nt(oe).forEach(l),this.h()},h(){at(U,"name","hf:doc:metadata"),at(U,"content",_t)},m(e,t){ct(document.head,U),o(e,w,t),o(e,h,t),o(e,J,t),m(y,e,t),o(e,_,t),o(e,u,t),o(e,ae,t),m(M,e,t),o(e,se,t),m(V,e,t),o(e,re,t),o(e,C,t),o(e,pe,t),o(e,v,t),o(e,ie,t),o(e,R,t),o(e,Te,t),o(e,F,t),o(e,me,t),o(e,I,t),o(e,ce,t),m(E,e,t),o(e,fe,t),o(e,B,t),o(e,de,t),m(g,e,t),o(e,Ue,t),o(e,N,t),o(e,_e,t),o(e,P,t),o(e,Je,t),o(e,X,t),o(e,ue,t),m(k,e,t),o(e,he,t),o(e,L,t),o(e,ye,t),m(Q,e,t),o(e,be,t),o(e,S,t),o(e,Me,t),m(H,e,t),o(e,$e,t),m(Z,e,t),o(e,we,t),o(e,x,t),o(e,Ve,t),m(A,e,t),o(e,Ce,t),m(j,e,t),o(e,ve,t),o(e,G,t),o(e,Re,t),m(O,e,t),o(e,Fe,t),m(W,e,t),o(e,Ie,t),o(e,D,t),o(e,Ee,t),m(Y,e,t),o(e,Be,t),m(q,e,t),o(e,ge,t),o(e,z,t),o(e,Ne,t),m(K,e,t),o(e,Pe,t),m(ee,e,t),o(e,Xe,t),o(e,te,t),o(e,ke,t),m(le,e,t),o(e,Le,t),o(e,oe,t),Qe=!0},p(e,[t]){const ot={};t&2&&(ot.$$scope={dirty:t,ctx:e}),M.$set(ot)},i(e){Qe||(c(y.$$.fragment,e),c(M.$$.fragment,e),c(V.$$.fragment,e),c(E.$$.fragment,e),c(g.$$.fragment,e),c(k.$$.fragment,e),c(Q.$$.fragment,e),c(H.$$.fragment,e),c(Z.$$.fragment,e),c(A.$$.fragment,e),c(j.$$.fragment,e),c(O.$$.fragment,e),c(W.$$.fragment,e),c(Y.$$.fragment,e),c(q.$$.fragment,e),c(K.$$.fragment,e),c(ee.$$.fragment,e),c(le.$$.fragment,e),Qe=!0)},o(e){f(y.$$.fragment,e),f(M.$$.fragment,e),f(V.$$.fragment,e),f(E.$$.fragment,e),f(g.$$.fragment,e),f(k.$$.fragment,e),f(Q.$$.fragment,e),f(H.$$.fragment,e),f(Z.$$.fragment,e),f(A.$$.fragment,e),f(j.$$.fragment,e),f(O.$$.fragment,e),f(W.$$.fragment,e),f(Y.$$.fragment,e),f(q.$$.fragment,e),f(K.$$.fragment,e),f(ee.$$.fragment,e),f(le.$$.fragment,e),Qe=!1},d(e){e&&(l(w),l(h),l(J),l(_),l(u),l(ae),l(se),l(re),l(C),l(pe),l(v),l(ie),l(R),l(Te),l(F),l(me),l(I),l(ce),l(fe),l(B),l(de),l(Ue),l(N),l(_e),l(P),l(Je),l(X),l(ue),l(he),l(L),l(ye),l(be),l(S),l(Me),l($e),l(we),l(x),l(Ve),l(Ce),l(ve),l(G),l(Re),l(Fe),l(Ie),l(D),l(Ee),l(Be),l(ge),l(z),l(Ne),l(Pe),l(Xe),l(te),l(ke),l(Le),l(oe)),l(U),d(y,e),d(M,e),d(V,e),d(E,e),d(g,e),d(k,e),d(Q,e),d(H,e),d(Z,e),d(A,e),d(j,e),d(O,e),d(W,e),d(Y,e),d(q,e),d(K,e),d(ee,e),d(le,e)}}}const _t='{"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":"Transformer-XL","local":"transformer-xl","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 Jt(ne){return rt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class $t extends it{constructor(U){super(),Tt(this,U,Jt,Ut,st,{})}}export{$t as component};
