import{S as Wl,i as ql,s as Yl,e as o,k as f,w as u,t as n,M as zl,c as l,d as t,m as h,a,x as m,h as s,b as i,G as r,g as c,y as T,q as _,o as v,B as y,v as Kl}from"../chunks/vendor-hf-doc-builder.js";import{T as ea}from"../chunks/Tip-hf-doc-builder.js";import{I as L}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C as ue}from"../chunks/CodeBlock-hf-doc-builder.js";function ta(wt){let d,O,J,R,I,P,V,N,A,H,E;return{c(){d=o("p"),O=n("Desde 2.3.0, el script para convertir es parte de la CLI de transformers ("),J=o("strong"),R=n("transformers-cli"),I=n(") disponible en cualquier instalaci\xF3n de transformers >= 2.3.0."),P=f(),V=o("p"),N=n("La siguiente documentaci\xF3n refleja el formato para el comando "),A=o("strong"),H=n("transformers-cli convert"),E=n(".")},l(w){d=l(w,"P",{});var b=a(d);O=s(b,"Desde 2.3.0, el script para convertir es parte de la CLI de transformers ("),J=l(b,"STRONG",{});var Qe=a(J);R=s(Qe,"transformers-cli"),Qe.forEach(t),I=s(b,") disponible en cualquier instalaci\xF3n de transformers >= 2.3.0."),b.forEach(t),P=h(w),V=l(w,"P",{});var D=a(V);N=s(D,"La siguiente documentaci\xF3n refleja el formato para el comando "),A=l(D,"STRONG",{});var x=a(A);H=s(x,"transformers-cli convert"),x.forEach(t),E=s(D,"."),D.forEach(t)},m(w,b){c(w,d,b),r(d,O),r(d,J),r(J,R),r(d,I),c(w,P,b),c(w,V,b),r(V,N),r(V,A),r(A,H),r(V,E)},d(w){w&&t(d),w&&t(P),w&&t(V)}}}function ra(wt){let d,O,J,R,I,P,V,N,A,H,E,w,b,Qe,D,x,Ur,Jr,xe,wr,br,bt,W,$t,B,q,We,me,$r,qe,Rr,Rt,M,Pr,Te,Vr,Cr,_e,Mr,Fr,Pt,U,kr,Ye,Ir,Nr,ze,Ar,Br,Ke,Sr,Xr,Ge,jr,gr,ve,Qr,Gr,Vt,$,Zr,et,Lr,Or,tt,Hr,Dr,rt,xr,Wr,ot,qr,Yr,Ct,Y,zr,lt,Kr,eo,Mt,z,to,at,ro,oo,Ft,ye,kt,K,lo,Ee,ao,no,It,S,ee,nt,Ue,so,st,po,Nt,te,co,Je,io,fo,At,F,ho,pt,uo,mo,ct,To,_o,Bt,re,vo,it,yo,Eo,St,we,Xt,oe,Uo,be,Jo,wo,jt,X,le,ft,$e,bo,ht,$o,gt,ae,Ro,Re,Po,Vo,Qt,Pe,Gt,j,ne,dt,Ve,Co,ut,Mo,Zt,se,Fo,Ce,ko,Io,Lt,Me,Ot,g,pe,mt,Fe,No,Tt,Ao,Ht,ce,Bo,ke,So,Xo,Dt,Ie,xt,Q,ie,_t,Ne,jo,vt,go,Wt,Ze,Qo,qt,Ae,Yt,G,fe,yt,Be,Go,Et,Zo,zt,Le,Lo,Kt,Se,er,Z,he,Ut,Xe,Oo,Jt,Ho,tr,Oe,Do,rr,je,or;return P=new L({}),W=new ea({props:{$$slots:{default:[ta]},$$scope:{ctx:wt}}}),me=new L({}),ye=new ue({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`}}),Ue=new L({}),we=new ue({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`}}),$e=new L({}),Pe=new ue({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] \\`}}),Ve=new L({}),Me=new ue({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]`}}),Fe=new L({}),Ie=new ue({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]`}}),Ne=new L({}),Ae=new ue({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] \\`}}),Be=new L({}),Se=new ue({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]`}}),Xe=new L({}),je=new ue({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`}}),{c(){d=o("meta"),O=f(),J=o("h1"),R=o("a"),I=o("span"),u(P.$$.fragment),V=f(),N=o("span"),A=n("Convertir checkpoints de Tensorflow"),H=f(),E=o("p"),w=n("Te proporcionamos una interfaz de l\xEDnea de comando ("),b=o("code"),Qe=n("CLI"),D=n(", por sus siglas en ingl\xE9s) para convertir puntos de control ("),x=o("em"),Ur=n("checkpoints"),Jr=n(") originales de Bert/GPT/GPT-2/Transformer-XL/XLNet/XLM en modelos que se puedan cargar utilizando los m\xE9todos "),xe=o("code"),wr=n("from_pretrained"),br=n(" de la biblioteca."),bt=f(),u(W.$$.fragment),$t=f(),B=o("h2"),q=o("a"),We=o("span"),u(me.$$.fragment),$r=f(),qe=o("span"),Rr=n("BERT"),Rt=f(),M=o("p"),Pr=n("Puedes convertir cualquier checkpoint de TensorFlow para BERT (en particular, "),Te=o("a"),Vr=n("los modelos pre-entrenados y publicados por Google"),Cr=n(") en un archivo de PyTorch mediante el script "),_e=o("a"),Mr=n("convert_bert_original_tf_checkpoint_to_pytorch.py"),Fr=n("."),Pt=f(),U=o("p"),kr=n("Esta CLI toma como entrada un checkpoint de TensorFlow (tres archivos que comienzan con "),Ye=o("code"),Ir=n("bert_model.ckpt"),Nr=n(") y el archivo de configuraci\xF3n asociado ("),ze=o("code"),Ar=n("bert_config.json"),Br=n("), y crea un modelo PyTorch para esta configuraci\xF3n, carga los pesos del checkpoint de TensorFlow en el modelo de PyTorch y guarda el modelo resultante en un archivo est\xE1ndar de PyTorch que se puede importar usando "),Ke=o("code"),Sr=n("from_pretrained()"),Xr=n(" (ve el ejemplo en "),Ge=o("a"),jr=n("Tour r\xE1pido"),gr=n(", "),ve=o("a"),Qr=n("run_glue.py"),Gr=n(")."),Vt=f(),$=o("p"),Zr=n("Solo necesitas ejecutar este script "),et=o("strong"),Lr=n("una vez"),Or=n(" para convertir un modelo a PyTorch. Despu\xE9s, puedes ignorar el checkpoint de TensorFlow (los tres archivos que comienzan con "),tt=o("code"),Hr=n("bert_model.ckpt"),Dr=n("), pero aseg\xFArate de conservar el archivo de configuraci\xF3n ("),rt=o("code"),xr=n("bert_config.json"),Wr=n(") y el archivo de vocabulario ("),ot=o("code"),qr=n("vocab.txt"),Yr=n(") ya que estos tambi\xE9n son necesarios para el modelo en PyTorch."),Ct=f(),Y=o("p"),zr=n("Para ejecutar este script deber\xE1s tener instalado TensorFlow y PyTorch ("),lt=o("code"),Kr=n("pip install tensorflow"),eo=n("). El resto del repositorio solo requiere PyTorch."),Mt=f(),z=o("p"),to=n("Aqu\xED hay un ejemplo del proceso para convertir un modelo "),at=o("code"),ro=n("BERT-Base Uncased"),oo=n(" pre-entrenado:"),Ft=f(),u(ye.$$.fragment),kt=f(),K=o("p"),lo=n("Puedes descargar los modelos pre-entrenados de Google para la conversi\xF3n "),Ee=o("a"),ao=n("aqu\xED"),no=n("."),It=f(),S=o("h2"),ee=o("a"),nt=o("span"),u(Ue.$$.fragment),so=f(),st=o("span"),po=n("ALBERT"),Nt=f(),te=o("p"),co=n("Convierte los checkpoints del modelo ALBERT de TensorFlow a PyTorch usando el script "),Je=o("a"),io=n("convert_albert_original_tf_checkpoint_to_pytorch.py"),fo=n("."),At=f(),F=o("p"),ho=n("La CLI toma como entrada un checkpoint de TensorFlow (tres archivos que comienzan con "),pt=o("code"),uo=n("model.ckpt-best"),mo=n(") y el archivo de configuraci\xF3n adjunto ("),ct=o("code"),To=n("albert_config.json"),_o=n("), luego crea y guarda un modelo de PyTorch. Para ejecutar esta conversi\xF3n deber\xE1s tener instalados TensorFlow y PyTorch."),Bt=f(),re=o("p"),vo=n("Aqu\xED hay un ejemplo del proceso para convertir un modelo "),it=o("code"),yo=n("ALBERT Base"),Eo=n(" pre-entrenado:"),St=f(),u(we.$$.fragment),Xt=f(),oe=o("p"),Uo=n("Puedes descargar los modelos pre-entrenados de Google para la conversi\xF3n "),be=o("a"),Jo=n("aqu\xED"),wo=n("."),jt=f(),X=o("h2"),le=o("a"),ft=o("span"),u($e.$$.fragment),bo=f(),ht=o("span"),$o=n("OpenAI GPT"),gt=f(),ae=o("p"),Ro=n("Este es un ejemplo del proceso para convertir un modelo OpenAI GPT pre-entrenado, asumiendo que tu checkpoint de NumPy se guarda con el mismo formato que el modelo pre-entrenado de OpenAI (m\xE1s informaci\xF3n "),Re=o("a"),Po=n("aqu\xED"),Vo=n("):"),Qt=f(),u(Pe.$$.fragment),Gt=f(),j=o("h2"),ne=o("a"),dt=o("span"),u(Ve.$$.fragment),Co=f(),ut=o("span"),Mo=n("OpenAI GPT-2"),Zt=f(),se=o("p"),Fo=n("Aqu\xED hay un ejemplo del proceso para convertir un modelo OpenAI GPT-2 pre-entrenado (m\xE1s informaci\xF3n "),Ce=o("a"),ko=n("aqu\xED"),Io=n("):"),Lt=f(),u(Me.$$.fragment),Ot=f(),g=o("h2"),pe=o("a"),mt=o("span"),u(Fe.$$.fragment),No=f(),Tt=o("span"),Ao=n("Transformer-XL"),Ht=f(),ce=o("p"),Bo=n("Aqu\xED hay un ejemplo del proceso para convertir un modelo Transformer-XL pre-entrenado (m\xE1s informaci\xF3n "),ke=o("a"),So=n("aqu\xED"),Xo=n("):"),Dt=f(),u(Ie.$$.fragment),xt=f(),Q=o("h2"),ie=o("a"),_t=o("span"),u(Ne.$$.fragment),jo=f(),vt=o("span"),go=n("XLNet"),Wt=f(),Ze=o("p"),Qo=n("Aqu\xED hay un ejemplo del proceso para convertir un modelo XLNet pre-entrenado:"),qt=f(),u(Ae.$$.fragment),Yt=f(),G=o("h2"),fe=o("a"),yt=o("span"),u(Be.$$.fragment),Go=f(),Et=o("span"),Zo=n("XLM"),zt=f(),Le=o("p"),Lo=n("Aqu\xED hay un ejemplo del proceso para convertir un modelo XLM pre-entrenado:"),Kt=f(),u(Se.$$.fragment),er=f(),Z=o("h2"),he=o("a"),Ut=o("span"),u(Xe.$$.fragment),Oo=f(),Jt=o("span"),Ho=n("T5"),tr=f(),Oe=o("p"),Do=n("Aqu\xED hay un ejemplo del proceso para convertir un modelo T5 pre-entrenado:"),rr=f(),u(je.$$.fragment),this.h()},l(e){const p=zl('[data-svelte="svelte-1phssyn"]',document.head);d=l(p,"META",{name:!0,content:!0}),p.forEach(t),O=h(e),J=l(e,"H1",{class:!0});var ge=a(J);R=l(ge,"A",{id:!0,class:!0,href:!0});var xo=a(R);I=l(xo,"SPAN",{});var Wo=a(I);m(P.$$.fragment,Wo),Wo.forEach(t),xo.forEach(t),V=h(ge),N=l(ge,"SPAN",{});var qo=a(N);A=s(qo,"Convertir checkpoints de Tensorflow"),qo.forEach(t),ge.forEach(t),H=h(e),E=l(e,"P",{});var de=a(E);w=s(de,"Te proporcionamos una interfaz de l\xEDnea de comando ("),b=l(de,"CODE",{});var Yo=a(b);Qe=s(Yo,"CLI"),Yo.forEach(t),D=s(de,", por sus siglas en ingl\xE9s) para convertir puntos de control ("),x=l(de,"EM",{});var zo=a(x);Ur=s(zo,"checkpoints"),zo.forEach(t),Jr=s(de,") originales de Bert/GPT/GPT-2/Transformer-XL/XLNet/XLM en modelos que se puedan cargar utilizando los m\xE9todos "),xe=l(de,"CODE",{});var Ko=a(xe);wr=s(Ko,"from_pretrained"),Ko.forEach(t),br=s(de," de la biblioteca."),de.forEach(t),bt=h(e),m(W.$$.fragment,e),$t=h(e),B=l(e,"H2",{class:!0});var lr=a(B);q=l(lr,"A",{id:!0,class:!0,href:!0});var el=a(q);We=l(el,"SPAN",{});var tl=a(We);m(me.$$.fragment,tl),tl.forEach(t),el.forEach(t),$r=h(lr),qe=l(lr,"SPAN",{});var rl=a(qe);Rr=s(rl,"BERT"),rl.forEach(t),lr.forEach(t),Rt=h(e),M=l(e,"P",{});var He=a(M);Pr=s(He,"Puedes convertir cualquier checkpoint de TensorFlow para BERT (en particular, "),Te=l(He,"A",{href:!0,rel:!0});var ol=a(Te);Vr=s(ol,"los modelos pre-entrenados y publicados por Google"),ol.forEach(t),Cr=s(He,") en un archivo de PyTorch mediante el script "),_e=l(He,"A",{href:!0,rel:!0});var ll=a(_e);Mr=s(ll,"convert_bert_original_tf_checkpoint_to_pytorch.py"),ll.forEach(t),Fr=s(He,"."),He.forEach(t),Pt=h(e),U=l(e,"P",{});var C=a(U);kr=s(C,"Esta CLI toma como entrada un checkpoint de TensorFlow (tres archivos que comienzan con "),Ye=l(C,"CODE",{});var al=a(Ye);Ir=s(al,"bert_model.ckpt"),al.forEach(t),Nr=s(C,") y el archivo de configuraci\xF3n asociado ("),ze=l(C,"CODE",{});var nl=a(ze);Ar=s(nl,"bert_config.json"),nl.forEach(t),Br=s(C,"), y crea un modelo PyTorch para esta configuraci\xF3n, carga los pesos del checkpoint de TensorFlow en el modelo de PyTorch y guarda el modelo resultante en un archivo est\xE1ndar de PyTorch que se puede importar usando "),Ke=l(C,"CODE",{});var sl=a(Ke);Sr=s(sl,"from_pretrained()"),sl.forEach(t),Xr=s(C," (ve el ejemplo en "),Ge=l(C,"A",{href:!0});var pl=a(Ge);jr=s(pl,"Tour r\xE1pido"),pl.forEach(t),gr=s(C,", "),ve=l(C,"A",{href:!0,rel:!0});var cl=a(ve);Qr=s(cl,"run_glue.py"),cl.forEach(t),Gr=s(C,")."),C.forEach(t),Vt=h(e),$=l(e,"P",{});var k=a($);Zr=s(k,"Solo necesitas ejecutar este script "),et=l(k,"STRONG",{});var il=a(et);Lr=s(il,"una vez"),il.forEach(t),Or=s(k," para convertir un modelo a PyTorch. Despu\xE9s, puedes ignorar el checkpoint de TensorFlow (los tres archivos que comienzan con "),tt=l(k,"CODE",{});var fl=a(tt);Hr=s(fl,"bert_model.ckpt"),fl.forEach(t),Dr=s(k,"), pero aseg\xFArate de conservar el archivo de configuraci\xF3n ("),rt=l(k,"CODE",{});var hl=a(rt);xr=s(hl,"bert_config.json"),hl.forEach(t),Wr=s(k,") y el archivo de vocabulario ("),ot=l(k,"CODE",{});var dl=a(ot);qr=s(dl,"vocab.txt"),dl.forEach(t),Yr=s(k,") ya que estos tambi\xE9n son necesarios para el modelo en PyTorch."),k.forEach(t),Ct=h(e),Y=l(e,"P",{});var ar=a(Y);zr=s(ar,"Para ejecutar este script deber\xE1s tener instalado TensorFlow y PyTorch ("),lt=l(ar,"CODE",{});var ul=a(lt);Kr=s(ul,"pip install tensorflow"),ul.forEach(t),eo=s(ar,"). El resto del repositorio solo requiere PyTorch."),ar.forEach(t),Mt=h(e),z=l(e,"P",{});var nr=a(z);to=s(nr,"Aqu\xED hay un ejemplo del proceso para convertir un modelo "),at=l(nr,"CODE",{});var ml=a(at);ro=s(ml,"BERT-Base Uncased"),ml.forEach(t),oo=s(nr," pre-entrenado:"),nr.forEach(t),Ft=h(e),m(ye.$$.fragment,e),kt=h(e),K=l(e,"P",{});var sr=a(K);lo=s(sr,"Puedes descargar los modelos pre-entrenados de Google para la conversi\xF3n "),Ee=l(sr,"A",{href:!0,rel:!0});var Tl=a(Ee);ao=s(Tl,"aqu\xED"),Tl.forEach(t),no=s(sr,"."),sr.forEach(t),It=h(e),S=l(e,"H2",{class:!0});var pr=a(S);ee=l(pr,"A",{id:!0,class:!0,href:!0});var _l=a(ee);nt=l(_l,"SPAN",{});var vl=a(nt);m(Ue.$$.fragment,vl),vl.forEach(t),_l.forEach(t),so=h(pr),st=l(pr,"SPAN",{});var yl=a(st);po=s(yl,"ALBERT"),yl.forEach(t),pr.forEach(t),Nt=h(e),te=l(e,"P",{});var cr=a(te);co=s(cr,"Convierte los checkpoints del modelo ALBERT de TensorFlow a PyTorch usando el script "),Je=l(cr,"A",{href:!0,rel:!0});var El=a(Je);io=s(El,"convert_albert_original_tf_checkpoint_to_pytorch.py"),El.forEach(t),fo=s(cr,"."),cr.forEach(t),At=h(e),F=l(e,"P",{});var De=a(F);ho=s(De,"La CLI toma como entrada un checkpoint de TensorFlow (tres archivos que comienzan con "),pt=l(De,"CODE",{});var Ul=a(pt);uo=s(Ul,"model.ckpt-best"),Ul.forEach(t),mo=s(De,") y el archivo de configuraci\xF3n adjunto ("),ct=l(De,"CODE",{});var Jl=a(ct);To=s(Jl,"albert_config.json"),Jl.forEach(t),_o=s(De,"), luego crea y guarda un modelo de PyTorch. Para ejecutar esta conversi\xF3n deber\xE1s tener instalados TensorFlow y PyTorch."),De.forEach(t),Bt=h(e),re=l(e,"P",{});var ir=a(re);vo=s(ir,"Aqu\xED hay un ejemplo del proceso para convertir un modelo "),it=l(ir,"CODE",{});var wl=a(it);yo=s(wl,"ALBERT Base"),wl.forEach(t),Eo=s(ir," pre-entrenado:"),ir.forEach(t),St=h(e),m(we.$$.fragment,e),Xt=h(e),oe=l(e,"P",{});var fr=a(oe);Uo=s(fr,"Puedes descargar los modelos pre-entrenados de Google para la conversi\xF3n "),be=l(fr,"A",{href:!0,rel:!0});var bl=a(be);Jo=s(bl,"aqu\xED"),bl.forEach(t),wo=s(fr,"."),fr.forEach(t),jt=h(e),X=l(e,"H2",{class:!0});var hr=a(X);le=l(hr,"A",{id:!0,class:!0,href:!0});var $l=a(le);ft=l($l,"SPAN",{});var Rl=a(ft);m($e.$$.fragment,Rl),Rl.forEach(t),$l.forEach(t),bo=h(hr),ht=l(hr,"SPAN",{});var Pl=a(ht);$o=s(Pl,"OpenAI GPT"),Pl.forEach(t),hr.forEach(t),gt=h(e),ae=l(e,"P",{});var dr=a(ae);Ro=s(dr,"Este es un ejemplo del proceso para convertir un modelo OpenAI GPT pre-entrenado, asumiendo que tu checkpoint de NumPy se guarda con el mismo formato que el modelo pre-entrenado de OpenAI (m\xE1s informaci\xF3n "),Re=l(dr,"A",{href:!0,rel:!0});var Vl=a(Re);Po=s(Vl,"aqu\xED"),Vl.forEach(t),Vo=s(dr,"):"),dr.forEach(t),Qt=h(e),m(Pe.$$.fragment,e),Gt=h(e),j=l(e,"H2",{class:!0});var ur=a(j);ne=l(ur,"A",{id:!0,class:!0,href:!0});var Cl=a(ne);dt=l(Cl,"SPAN",{});var Ml=a(dt);m(Ve.$$.fragment,Ml),Ml.forEach(t),Cl.forEach(t),Co=h(ur),ut=l(ur,"SPAN",{});var Fl=a(ut);Mo=s(Fl,"OpenAI GPT-2"),Fl.forEach(t),ur.forEach(t),Zt=h(e),se=l(e,"P",{});var mr=a(se);Fo=s(mr,"Aqu\xED hay un ejemplo del proceso para convertir un modelo OpenAI GPT-2 pre-entrenado (m\xE1s informaci\xF3n "),Ce=l(mr,"A",{href:!0,rel:!0});var kl=a(Ce);ko=s(kl,"aqu\xED"),kl.forEach(t),Io=s(mr,"):"),mr.forEach(t),Lt=h(e),m(Me.$$.fragment,e),Ot=h(e),g=l(e,"H2",{class:!0});var Tr=a(g);pe=l(Tr,"A",{id:!0,class:!0,href:!0});var Il=a(pe);mt=l(Il,"SPAN",{});var Nl=a(mt);m(Fe.$$.fragment,Nl),Nl.forEach(t),Il.forEach(t),No=h(Tr),Tt=l(Tr,"SPAN",{});var Al=a(Tt);Ao=s(Al,"Transformer-XL"),Al.forEach(t),Tr.forEach(t),Ht=h(e),ce=l(e,"P",{});var _r=a(ce);Bo=s(_r,"Aqu\xED hay un ejemplo del proceso para convertir un modelo Transformer-XL pre-entrenado (m\xE1s informaci\xF3n "),ke=l(_r,"A",{href:!0,rel:!0});var Bl=a(ke);So=s(Bl,"aqu\xED"),Bl.forEach(t),Xo=s(_r,"):"),_r.forEach(t),Dt=h(e),m(Ie.$$.fragment,e),xt=h(e),Q=l(e,"H2",{class:!0});var vr=a(Q);ie=l(vr,"A",{id:!0,class:!0,href:!0});var Sl=a(ie);_t=l(Sl,"SPAN",{});var Xl=a(_t);m(Ne.$$.fragment,Xl),Xl.forEach(t),Sl.forEach(t),jo=h(vr),vt=l(vr,"SPAN",{});var jl=a(vt);go=s(jl,"XLNet"),jl.forEach(t),vr.forEach(t),Wt=h(e),Ze=l(e,"P",{});var gl=a(Ze);Qo=s(gl,"Aqu\xED hay un ejemplo del proceso para convertir un modelo XLNet pre-entrenado:"),gl.forEach(t),qt=h(e),m(Ae.$$.fragment,e),Yt=h(e),G=l(e,"H2",{class:!0});var yr=a(G);fe=l(yr,"A",{id:!0,class:!0,href:!0});var Ql=a(fe);yt=l(Ql,"SPAN",{});var Gl=a(yt);m(Be.$$.fragment,Gl),Gl.forEach(t),Ql.forEach(t),Go=h(yr),Et=l(yr,"SPAN",{});var Zl=a(Et);Zo=s(Zl,"XLM"),Zl.forEach(t),yr.forEach(t),zt=h(e),Le=l(e,"P",{});var Ll=a(Le);Lo=s(Ll,"Aqu\xED hay un ejemplo del proceso para convertir un modelo XLM pre-entrenado:"),Ll.forEach(t),Kt=h(e),m(Se.$$.fragment,e),er=h(e),Z=l(e,"H2",{class:!0});var Er=a(Z);he=l(Er,"A",{id:!0,class:!0,href:!0});var Ol=a(he);Ut=l(Ol,"SPAN",{});var Hl=a(Ut);m(Xe.$$.fragment,Hl),Hl.forEach(t),Ol.forEach(t),Oo=h(Er),Jt=l(Er,"SPAN",{});var Dl=a(Jt);Ho=s(Dl,"T5"),Dl.forEach(t),Er.forEach(t),tr=h(e),Oe=l(e,"P",{});var xl=a(Oe);Do=s(xl,"Aqu\xED hay un ejemplo del proceso para convertir un modelo T5 pre-entrenado:"),xl.forEach(t),rr=h(e),m(je.$$.fragment,e),this.h()},h(){i(d,"name","hf:doc:metadata"),i(d,"content",JSON.stringify(oa)),i(R,"id","convertir-checkpoints-de-tensorflow"),i(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"),i(R,"href","#convertir-checkpoints-de-tensorflow"),i(J,"class","relative group"),i(q,"id","bert"),i(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"),i(q,"href","#bert"),i(B,"class","relative group"),i(Te,"href","https://github.com/google-research/bert#pre-trained-models"),i(Te,"rel","nofollow"),i(_e,"href","https://github.com/huggingface/transformers/tree/main/src/transformers/models/bert/convert_bert_original_tf_checkpoint_to_pytorch.py"),i(_e,"rel","nofollow"),i(Ge,"href","quicktour"),i(ve,"href","https://github.com/huggingface/transformers/tree/main/examples/pytorch/text-classification/run_glue.py"),i(ve,"rel","nofollow"),i(Ee,"href","https://github.com/google-research/bert#pre-trained-models"),i(Ee,"rel","nofollow"),i(ee,"id","albert"),i(ee,"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"),i(ee,"href","#albert"),i(S,"class","relative group"),i(Je,"href","https://github.com/huggingface/transformers/tree/main/src/transformers/models/albert/convert_albert_original_tf_checkpoint_to_pytorch.py"),i(Je,"rel","nofollow"),i(be,"href","https://github.com/google-research/albert#pre-trained-models"),i(be,"rel","nofollow"),i(le,"id","openai-gpt"),i(le,"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"),i(le,"href","#openai-gpt"),i(X,"class","relative group"),i(Re,"href","https://github.com/openai/finetune-transformer-lm"),i(Re,"rel","nofollow"),i(ne,"id","openai-gpt2"),i(ne,"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"),i(ne,"href","#openai-gpt2"),i(j,"class","relative group"),i(Ce,"href","https://github.com/openai/gpt-2"),i(Ce,"rel","nofollow"),i(pe,"id","transformerxl"),i(pe,"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"),i(pe,"href","#transformerxl"),i(g,"class","relative group"),i(ke,"href","https://github.com/kimiyoung/transformer-xl/tree/master/tf#obtain-and-evaluate-pretrained-sota-models"),i(ke,"rel","nofollow"),i(ie,"id","xlnet"),i(ie,"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"),i(ie,"href","#xlnet"),i(Q,"class","relative group"),i(fe,"id","xlm"),i(fe,"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"),i(fe,"href","#xlm"),i(G,"class","relative group"),i(he,"id","t5"),i(he,"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"),i(he,"href","#t5"),i(Z,"class","relative group")},m(e,p){r(document.head,d),c(e,O,p),c(e,J,p),r(J,R),r(R,I),T(P,I,null),r(J,V),r(J,N),r(N,A),c(e,H,p),c(e,E,p),r(E,w),r(E,b),r(b,Qe),r(E,D),r(E,x),r(x,Ur),r(E,Jr),r(E,xe),r(xe,wr),r(E,br),c(e,bt,p),T(W,e,p),c(e,$t,p),c(e,B,p),r(B,q),r(q,We),T(me,We,null),r(B,$r),r(B,qe),r(qe,Rr),c(e,Rt,p),c(e,M,p),r(M,Pr),r(M,Te),r(Te,Vr),r(M,Cr),r(M,_e),r(_e,Mr),r(M,Fr),c(e,Pt,p),c(e,U,p),r(U,kr),r(U,Ye),r(Ye,Ir),r(U,Nr),r(U,ze),r(ze,Ar),r(U,Br),r(U,Ke),r(Ke,Sr),r(U,Xr),r(U,Ge),r(Ge,jr),r(U,gr),r(U,ve),r(ve,Qr),r(U,Gr),c(e,Vt,p),c(e,$,p),r($,Zr),r($,et),r(et,Lr),r($,Or),r($,tt),r(tt,Hr),r($,Dr),r($,rt),r(rt,xr),r($,Wr),r($,ot),r(ot,qr),r($,Yr),c(e,Ct,p),c(e,Y,p),r(Y,zr),r(Y,lt),r(lt,Kr),r(Y,eo),c(e,Mt,p),c(e,z,p),r(z,to),r(z,at),r(at,ro),r(z,oo),c(e,Ft,p),T(ye,e,p),c(e,kt,p),c(e,K,p),r(K,lo),r(K,Ee),r(Ee,ao),r(K,no),c(e,It,p),c(e,S,p),r(S,ee),r(ee,nt),T(Ue,nt,null),r(S,so),r(S,st),r(st,po),c(e,Nt,p),c(e,te,p),r(te,co),r(te,Je),r(Je,io),r(te,fo),c(e,At,p),c(e,F,p),r(F,ho),r(F,pt),r(pt,uo),r(F,mo),r(F,ct),r(ct,To),r(F,_o),c(e,Bt,p),c(e,re,p),r(re,vo),r(re,it),r(it,yo),r(re,Eo),c(e,St,p),T(we,e,p),c(e,Xt,p),c(e,oe,p),r(oe,Uo),r(oe,be),r(be,Jo),r(oe,wo),c(e,jt,p),c(e,X,p),r(X,le),r(le,ft),T($e,ft,null),r(X,bo),r(X,ht),r(ht,$o),c(e,gt,p),c(e,ae,p),r(ae,Ro),r(ae,Re),r(Re,Po),r(ae,Vo),c(e,Qt,p),T(Pe,e,p),c(e,Gt,p),c(e,j,p),r(j,ne),r(ne,dt),T(Ve,dt,null),r(j,Co),r(j,ut),r(ut,Mo),c(e,Zt,p),c(e,se,p),r(se,Fo),r(se,Ce),r(Ce,ko),r(se,Io),c(e,Lt,p),T(Me,e,p),c(e,Ot,p),c(e,g,p),r(g,pe),r(pe,mt),T(Fe,mt,null),r(g,No),r(g,Tt),r(Tt,Ao),c(e,Ht,p),c(e,ce,p),r(ce,Bo),r(ce,ke),r(ke,So),r(ce,Xo),c(e,Dt,p),T(Ie,e,p),c(e,xt,p),c(e,Q,p),r(Q,ie),r(ie,_t),T(Ne,_t,null),r(Q,jo),r(Q,vt),r(vt,go),c(e,Wt,p),c(e,Ze,p),r(Ze,Qo),c(e,qt,p),T(Ae,e,p),c(e,Yt,p),c(e,G,p),r(G,fe),r(fe,yt),T(Be,yt,null),r(G,Go),r(G,Et),r(Et,Zo),c(e,zt,p),c(e,Le,p),r(Le,Lo),c(e,Kt,p),T(Se,e,p),c(e,er,p),c(e,Z,p),r(Z,he),r(he,Ut),T(Xe,Ut,null),r(Z,Oo),r(Z,Jt),r(Jt,Ho),c(e,tr,p),c(e,Oe,p),r(Oe,Do),c(e,rr,p),T(je,e,p),or=!0},p(e,[p]){const ge={};p&2&&(ge.$$scope={dirty:p,ctx:e}),W.$set(ge)},i(e){or||(_(P.$$.fragment,e),_(W.$$.fragment,e),_(me.$$.fragment,e),_(ye.$$.fragment,e),_(Ue.$$.fragment,e),_(we.$$.fragment,e),_($e.$$.fragment,e),_(Pe.$$.fragment,e),_(Ve.$$.fragment,e),_(Me.$$.fragment,e),_(Fe.$$.fragment,e),_(Ie.$$.fragment,e),_(Ne.$$.fragment,e),_(Ae.$$.fragment,e),_(Be.$$.fragment,e),_(Se.$$.fragment,e),_(Xe.$$.fragment,e),_(je.$$.fragment,e),or=!0)},o(e){v(P.$$.fragment,e),v(W.$$.fragment,e),v(me.$$.fragment,e),v(ye.$$.fragment,e),v(Ue.$$.fragment,e),v(we.$$.fragment,e),v($e.$$.fragment,e),v(Pe.$$.fragment,e),v(Ve.$$.fragment,e),v(Me.$$.fragment,e),v(Fe.$$.fragment,e),v(Ie.$$.fragment,e),v(Ne.$$.fragment,e),v(Ae.$$.fragment,e),v(Be.$$.fragment,e),v(Se.$$.fragment,e),v(Xe.$$.fragment,e),v(je.$$.fragment,e),or=!1},d(e){t(d),e&&t(O),e&&t(J),y(P),e&&t(H),e&&t(E),e&&t(bt),y(W,e),e&&t($t),e&&t(B),y(me),e&&t(Rt),e&&t(M),e&&t(Pt),e&&t(U),e&&t(Vt),e&&t($),e&&t(Ct),e&&t(Y),e&&t(Mt),e&&t(z),e&&t(Ft),y(ye,e),e&&t(kt),e&&t(K),e&&t(It),e&&t(S),y(Ue),e&&t(Nt),e&&t(te),e&&t(At),e&&t(F),e&&t(Bt),e&&t(re),e&&t(St),y(we,e),e&&t(Xt),e&&t(oe),e&&t(jt),e&&t(X),y($e),e&&t(gt),e&&t(ae),e&&t(Qt),y(Pe,e),e&&t(Gt),e&&t(j),y(Ve),e&&t(Zt),e&&t(se),e&&t(Lt),y(Me,e),e&&t(Ot),e&&t(g),y(Fe),e&&t(Ht),e&&t(ce),e&&t(Dt),y(Ie,e),e&&t(xt),e&&t(Q),y(Ne),e&&t(Wt),e&&t(Ze),e&&t(qt),y(Ae,e),e&&t(Yt),e&&t(G),y(Be),e&&t(zt),e&&t(Le),e&&t(Kt),y(Se,e),e&&t(er),e&&t(Z),y(Xe),e&&t(tr),e&&t(Oe),e&&t(rr),y(je,e)}}}const oa={local:"convertir-checkpoints-de-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:"Convertir checkpoints de Tensorflow"};function la(wt){return Kl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ca extends Wl{constructor(d){super();ql(this,d,la,ra,Yl,{})}}export{ca as default,oa as metadata};
