<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Data Engineering with Enrique Catalá</title>
    <atom:link href="https://enriquecatala.com/feed.xml" rel="self" type="application/rss+xml"/>
    <link>https://enriquecatala.com/</link>
    <description>Blog de Enrique Catalá, Principal Data Architect. Plataformas de datos, streaming, Data Mesh y arquitecturas de agentes de IA.</description>
    <pubDate>Sun, 01 Nov 2026 22:25:12 +0000</pubDate>
    
      <item>
        <title>Speaking at Databricks Data + AI Summit 2024</title>
        <link>https://enriquecatala.com/2024/06/04/Im_Speaker_at_databricks_dais24.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2024/06/04/Im_Speaker_at_databricks_dais24.html</guid>
        <description>&lt;p&gt;I am beyond thrilled to announce that &lt;strong&gt;I’ve been selected as a speaker&lt;/strong&gt; at the prestigious &lt;a href=&quot;https://www.databricks.com/dataaisummit/session/unity-catalog-migration-europes-top-supermarket-chain&quot;&gt;&lt;strong&gt;Data + AI Summit 2024&lt;/strong&gt;&lt;/a&gt; in San Francisco, taking place from June 10-13 2024. It’s an incredible honor to be chosen alongside Karthik Subbarao for this landmark event. Representing Schwarz Group and SCRM - Lidl International Hub on this international stage is truly a proud moment.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.databricks.com/dataaisummit/session/unity-catalog-migration-europes-top-supermarket-chain&quot;&gt;&lt;img src=&quot;/img/posts/dais24/dais24.png&quot; alt=&quot;dais24&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Session Highlight: “Unity Catalog Migration in Europe’s Top Supermarket Chain”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In our session, we will dive deep into the topic “Unity Catalog Migration in Europe’s Top Supermarket Chain.” This presentation will highlight how we migrated to UC at Lidl Plus without service disruption&lt;/p&gt;

&lt;p&gt;We’ll cover:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Seamless Transition&lt;/strong&gt;: How we managed to ensure zero downtime during the migration of our extensive infrastructure.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Technical Insights&lt;/strong&gt;: Detailed exploration of the technical challenges and solutions we implemented.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Team Effort&lt;/strong&gt;: Celebrating the relentless spirit and innovative mindset of our team at SCRM.&lt;/li&gt;
&lt;/ul&gt;

&lt;!--end_excerpt--&gt;

&lt;h3 id=&quot;behind-the-scenes-the-team&quot;&gt;Behind the Scenes: The Team&lt;/h3&gt;

&lt;p&gt;This achievement wouldn’t have been possible without the outstanding support and hard work of my colleagues at SCRM. A special shout-out to:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Jaume Civit&lt;/li&gt;
  &lt;li&gt;Eduardo Segarra&lt;/li&gt;
  &lt;li&gt;Ruben Mejias Calderon&lt;/li&gt;
  &lt;li&gt;Helena Giménez Millán&lt;/li&gt;
  &lt;li&gt;Hugo Lopes&lt;/li&gt;
  &lt;li&gt;Miguel López&lt;/li&gt;
  &lt;li&gt;Jordi Casanovas Muñoz&lt;/li&gt;
  &lt;li&gt;Marta Domínguez&lt;/li&gt;
  &lt;li&gt;Leandro Szikora&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;…and many others who have contributed to this success. Your dedication is truly commendable.&lt;/p&gt;

&lt;h3 id=&quot;join-the-conversation&quot;&gt;Join the Conversation&lt;/h3&gt;

&lt;p&gt;I invite you all to join the conversation about the evolving landscape of data management and AI. What challenges do you foresee? How do you envision the future of data architecture? Let’s start a discussion in the comments below.&lt;/p&gt;

&lt;h3 id=&quot;learn-more&quot;&gt;Learn More&lt;/h3&gt;

&lt;p&gt;For more details on our session, visit: &lt;a href=&quot;https://www.databricks.com/dataaisummit/session/unity-catalog-migration-europes-top-supermarket-chain&quot;&gt;Unity Catalog Migration in Europe’s Top Supermarket Chain&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Tue, 04 Jun 2024 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>Empowering the Next Wave of Tech Talent: Celebrating 14 Years as a Microsoft Certified Trainer</title>
        <link>https://enriquecatala.com/2024/03/07/MCT-14-years-in-a-row.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2024/03/07/MCT-14-years-in-a-row.html</guid>
        <description>&lt;p&gt;🎉 Thrilled to share that I’ve officially renewed my status as a Microsoft Certified Trainer for the 14th consecutive year! 🚀&lt;/p&gt;

&lt;div style=&quot;text-align: center&quot;&gt;
&lt;a href=&quot;https://enriquecatala.com/portfolio/Badges.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;/img/badgesearned/MCT-2024.png&quot; alt=&quot;MCT 2024&quot; width=&quot;20%&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;

&lt;!--end_excerpt--&gt;

&lt;p&gt;I’m deeply grateful for the support from the tech community. Looking forward to another year of empowering professionals with the skills they need to excel in the digital era.
Here’s to #LifelongLearning and the never-ending pursuit of excellence! 🌟
#MCT #MicrosoftCertifiedTrainer #ProfessionalDevelopment #TechCommunity&lt;/p&gt;
</description>
        <pubDate>Thu, 07 Mar 2024 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>Speaking at StackIT´s CloudX summit</title>
        <link>https://enriquecatala.com/2023/06/22/CloudXSummit.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2023/06/22/CloudXSummit.html</guid>
        <description>&lt;p&gt;I have the pleasure and honor of being a speaker at the &lt;a href=&quot;https://www.stackit.de/en/cloudxsummit/&quot;&gt;CloudX Summit&lt;/a&gt; event, which will be held from June 26 to 28, 2023. I will have the pleasure of presenting a speech alongside the CEO of SCRM and the Chief Architect.&lt;/p&gt;

&lt;p&gt;In the session titled “How to build and run one of Europe’s biggest Loyalty Programs,” we will see… just that :). As for my part, I will show how we do streaming data ingestion at scale.&lt;/p&gt;

&lt;div style=&quot;text-align: center&quot;&gt;
&lt;a href=&quot;https://www.stackit.de/en/cloudxsummit/&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;/img/posts/stackit/cloudxsummit.png&quot; alt=&quot;Cloud X Summit&quot; width=&quot;70%&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;

&lt;!--end_excerpt--&gt;

&lt;p&gt;&lt;a href=&quot;https://www.stackit.de/en/cloudxsummit/&quot;&gt;¿Te vienes?&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Thu, 22 Jun 2023 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>Global Power Platform Boocamp 2023 Alicante</title>
        <link>https://enriquecatala.com/2023/02/09/Global-Power-Platform-2023-Alicante.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2023/02/09/Global-Power-Platform-2023-Alicante.html</guid>
        <description>&lt;p&gt;I have the pleasure and honor of being a speaker at the &lt;a href=&quot;https://www.eventbrite.es/e/entradas-global-power-platform-bootcamp-2023-488547878857&quot;&gt;Global Power Platform Bootcamp 2023
&lt;/a&gt; event where I will talk about how to handle Big Data in a large company like the one where I am currently working as a Data Architect.&lt;/p&gt;

&lt;div style=&quot;text-align: center&quot;&gt;
&lt;a href=&quot;https://www.eventbrite.es/e/entradas-global-power-platform-bootcamp-2023-488547878857&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;/img/posts/global_power_platform_2023/Agenda%20Power%20Platform%20Bootcamp%202023.png&quot; alt=&quot;Global Power Platform Bootcamp 2023&quot; width=&quot;70%&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;em&gt;Imagine if you could create a data ingestion architecture that allows you to exploit it in real-time or in batch at will, prepared for AI teams (ultra-clean and versioned data), that scales without limits, and where you don’t have to worry about cleaning the data because it’s literally impossible to ingest garbage. Does it seem impossible to you? Come over, and I’ll share some secrets with you :)&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;!--end_excerpt--&gt;

&lt;p&gt;&lt;a href=&quot;https://www.eventbrite.es/e/entradas-global-power-platform-bootcamp-2023-488547878857&quot;&gt;¿Te vienes?&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Thu, 09 Feb 2023 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>10 performance powerbi tips</title>
        <link>https://enriquecatala.com/2023/01/13/powerbi-10-tips-rendimiento.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2023/01/13/powerbi-10-tips-rendimiento.html</guid>
        <description>&lt;p&gt;Tengo el placer y honor de ser ponente en el evento  para impartir una sesión donde daré 10 tips de rendimiento en PowerBI.&lt;/p&gt;

&lt;p&gt;I have the pleasure and honor of being a speaker at the &lt;a href=&quot;https://www.eventbrite.com/e/registro-powerbiespanol-virtual-conf-2023-fin-tour-power-bi-days-477181431507&quot;&gt;PowerBI Days Tour&lt;/a&gt; event to conduct a session where I will give 10 performance tips in PowerBI&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.eventbrite.com/e/registro-powerbiespanol-virtual-conf-2023-fin-tour-power-bi-days-477181431507&quot;&gt;&lt;img src=&quot;/img/posts/powerbi-10-tips/Catala_Banuls_PowerBI_DirectQuery_10_tips_de_rendimiento_412381.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the abstract:
&lt;em&gt;In this session, we will see 10 performance tips that you can’t miss when working with PowerBI in DirectQuery mode against SQL Server.&lt;/em&gt;&lt;/p&gt;

&lt;!--end_excerpt--&gt;

&lt;p&gt;&lt;a href=&quot;https://www.eventbrite.com/e/registro-powerbiespanol-virtual-conf-2023-fin-tour-power-bi-days-477181431507&quot;&gt;¿Te vienes?&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Fri, 13 Jan 2023 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>Ingestando datos con cabeza</title>
        <link>https://enriquecatala.com/2022/12/19/ingestando-datos-con-cabeza.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2022/12/19/ingestando-datos-con-cabeza.html</guid>
        <description>&lt;p&gt;“A few days ago, I had the pleasure and honor of being a speaker at the &lt;a href=&quot;https://netcoreconf.com/&quot;&gt;NetCoreConf Madrid&lt;/a&gt; event.”&lt;/p&gt;

&lt;p&gt;Here is the video of my session, I hope you like it:&lt;/p&gt;

&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/f3GID7QNY4I?start=26&quot; title=&quot;YouTube video player&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;!--end_excerpt--&gt;

&lt;p&gt;This is the abstract of the session:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Imagine if you could create a data ingestion architecture that allows you to exploit it in real-time or in batch at will, prepared for AI teams (ultra-clean and versioned data), that scales without limits, and where you don’t have to worry about cleaning the data because it’s literally impossible to ingest garbage. Does it seem impossible to you? Come over, and I’ll share some secrets with you :)&lt;/em&gt;&lt;/p&gt;
</description>
        <pubDate>Mon, 19 Dec 2022 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>fastapi-ai-template</title>
        <link>https://enriquecatala.com/2022/10/24/fastapi-ai-template.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2022/10/24/fastapi-ai-template.html</guid>
        <description>&lt;p&gt;FastAPI is a great choice in order to deploy RESTApi with python. Its fast, easy and powerful, and something to check if you work deploying AI models for real-time inferencing in kubernetes.&lt;/p&gt;

&lt;!--end_excerpt--&gt;

&lt;p&gt;&lt;a href=&quot;https://medium.com/@enriquecatala/fastapi-ai-template-c46a8c5ed3fc&quot;&gt;Read more…&lt;/a&gt;&lt;/p&gt;

</description>
        <pubDate>Mon, 24 Oct 2022 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>Despliega tu red neuronal con FastAPI en kubernetes</title>
        <link>https://enriquecatala.com/2022/10/04/despliega-red-neuronal-fastapi-kubernetes.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2022/10/04/despliega-red-neuronal-fastapi-kubernetes.html</guid>
        <description>&lt;p&gt;Hace unos dias tuve el placer y honor de ser ponente en el evento &lt;a href=&quot;https://2022.es.pycon.org/&quot;&gt;PyCon2022&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Aqui te dejo el vídeo de mi sesión, espero que te guste:&lt;/p&gt;

&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/kTjBsHFGTBU?start=1&quot; title=&quot;YouTube video player&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;!--end_excerpt--&gt;

&lt;p&gt;Y este es el abstract de la sesión:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;FastAPI es una excelente elección a la hora de desplegar RESTApi. En esta sesión vamos a ver cómo podemos generar soluciones de despliegue de redes neuronales con FastAPI production ready. Veremos cómo hacer nuestra solución, poder depurarla usando docker y visual studio code y cómo desplegarlas con helm en nuestros clusteres kubernetes. Si te gusta el mix AI, python y kubernetes, esta es tu sesión.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/speaker-kcdspain/sentiment%20inference%20huggingface.png&quot; alt=&quot;sentiment inference huggingface&quot; /&gt;&lt;/p&gt;
</description>
        <pubDate>Tue, 04 Oct 2022 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>Mesa redonda: Inteligencia Artificial. Su expansión en los negocios y en la educación</title>
        <link>https://enriquecatala.com/2022/10/02/mesa-redonda-ia-negocios-educacion.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2022/10/02/mesa-redonda-ia-negocios-educacion.html</guid>
        <description>&lt;p&gt;Aqui te dejo la grabación de la interesante mesa redonda sobre Inteligencia Artificial y su impacto en negocios y educación.&lt;/p&gt;

&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/JIhX_fC0WWY?start=1372&quot; title=&quot;YouTube video player&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;!--end_excerpt--&gt;

&lt;p&gt;Espero que te guste&lt;/p&gt;
</description>
        <pubDate>Sun, 02 Oct 2022 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset</title>
        <link>https://enriquecatala.com/2022/05/25/HADOOP_HOME-unset.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2022/05/25/HADOOP_HOME-unset.html</guid>
        <description>&lt;p&gt;If you want to run a spark job in windows that make use of the spark SQL pool, you need to set the HADOOP_HOME and hadoop.home.dir environment variables manually and there is a very quick and easy solution to do this.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://medium.com/@enriquecatala/java-io-filenotfoundexception-hadoop-home-and-hadoop-home-dir-are-unset-4004d5e05f67&quot;&gt;Continua leyendo al artículo original&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Wed, 25 May 2022 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>Git credential store in WSL</title>
        <link>https://enriquecatala.com/2022/05/25/Git-credential-store-in-wsl.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2022/05/25/Git-credential-store-in-wsl.html</guid>
        <description>&lt;p&gt;For me, Windows11 is the best shell of Linux. I´m using it in my home and work and for that reason I´m using WSL2 to run my Linux and dev station (python, scala,…), so there is a trick to avoid the problem of the Git credential store in WSL2. The trick is to configure the credential helper of the git inside WSL2 as the windows11 credential helper.&lt;/p&gt;

&lt;!--end_excerpt--&gt;

&lt;p&gt;To do this, just run the following command in the terminal or your WSL2 shell:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git config &lt;span class=&quot;nt&quot;&gt;--global&lt;/span&gt; credential.helper &lt;span class=&quot;s2&quot;&gt;&quot;/mnt/c/Program&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\\&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; Files/Git/mingw64/libexec/git-core/git-credential-manager-core.exe&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now, you will be storing the same credentials of windows and linux&lt;/p&gt;

</description>
        <pubDate>Wed, 25 May 2022 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>AzureML from Docker Image</title>
        <link>https://enriquecatala.com/2022/01/11/azureml-from-docker-image.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2022/01/11/azureml-from-docker-image.html</guid>
        <description>&lt;p&gt;When you work with Azure Machine Learning, you are not required to work with Azure Machine Learning portal. Since Azure Machine Learning libraries supports to work connected with your workspace through the official library, you can benefit from containers to create an entire dev container to develop and deploy your code into Azure Machine Learning Service.&lt;/p&gt;

&lt;!--end_excerpt--&gt;

&lt;p&gt;&lt;a href=&quot;https://medium.com/@enriquecatala/work-locally-with-azure-machine-learning-from-docker-image-2c2e6884a3e8&quot;&gt;Read more…&lt;/a&gt;&lt;/p&gt;

</description>
        <pubDate>Tue, 11 Jan 2022 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>Speaker Codemotion 2021</title>
        <link>https://enriquecatala.com/2021/12/21/codemotion-speaker-deeplearning-state-of-the-art.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2021/12/21/codemotion-speaker-deeplearning-state-of-the-art.html</guid>
        <description>&lt;p&gt;I had the pleasure and honor to be speaker in the past &lt;a href=&quot;https://www.codemotion.com/&quot;&gt;codemotion world conference&lt;/a&gt; talking about #DeepLearning and #Azure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tittle:&lt;/strong&gt; Applied Deep Learning state-of-the-art&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Subject:&lt;/strong&gt; In this session we will see how to do transfer learning over a state-of-the-art pre-trained model like RoBERTa to achieve our own goal in Named Entity Recognition with our own DataSet. We will take and label new data to finally feed the network trying to achieve transfer learning. Then we will make use of the new fine tuned weights and use FastAPI to deploy our new fine tuned model to kubernetes to make inference.&lt;/p&gt;

&lt;p&gt;Here is the video of my talk:&lt;/p&gt;

&lt;!--end_excerpt--&gt;

&lt;p&gt;&lt;a href=&quot;https://talks.codemotion.com/applied-deep-learning-state-of-the-art&quot;&gt;&lt;img src=&quot;/img/posts/codemotion-2021-speaker/codemotion2021speaker.png&quot; alt=&quot;CodemotionSpeaker&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

</description>
        <pubDate>Tue, 21 Dec 2021 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>IOB train_test_split</title>
        <link>https://enriquecatala.com/2021/09/15/IOB_train_test_split.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2021/09/15/IOB_train_test_split.html</guid>
        <description>&lt;p&gt;When you work with text data, you often want to split it into training and test sets. This is something very usual in machine learning and also in deep learning´s natural language processing. The problem is that you have to split the data in a way that is consistent with the training and test sets, but at the same time you want to keep your data consistent.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/IOB_train_test_split/train_test.png&quot; alt=&quot;iob_train_test_split&quot; /&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;NOTE: img &lt;a href=&quot;https://datascience.stackexchange.com/questions/61467/clarification-on-train-test-and-val-and-how-to-use-implement-it&quot;&gt;source&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;!--end_excerpt--&gt;

&lt;p&gt;When working with Named Entity Recognition (NER) you tipically work with IOB format. This is a very common format of tagging words in text data. But this comes with a problem…the data is stored in a very rudimentary and old way…the &lt;a href=&quot;https://en.wikipedia.org/wiki/Inside%E2%80%93outside%E2%80%93beginning_(tagging)&quot;&gt;IOB format&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;IOB – Inside-Outside-Beginning&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;B-tag -&amp;gt; token is beginning of a chunk&lt;/li&gt;
  &lt;li&gt;I-tag -&amp;gt;   token is inside a chunk.&lt;/li&gt;
  &lt;li&gt;O-tag -&amp;gt; token belongs to no chunk.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So you basically have a single line per word and each sample (phrase in our case) will be delimited by an empty &lt;em&gt;“\n”&lt;/em&gt;.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-txt&quot;&gt;Last B-DATE
year I-DATE
, O
8.3 B-QUANTITY
million I-QUANTITY
passengers O
flew O
the O
airline O
, O
down O
4 B-PERCENT
percent I-PERCENT
from O
2007 B-DATE
. O

Everyone O
knows O
about O
ADT, B-ORG
longtime O
home O
security O
system O
provider O
in O
the B-GPE
U.S. I-GPE

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Here you will find a simple example of how to split a dataset into training and test sets:&lt;/p&gt;

&lt;script src=&quot;https://gist.github.com/enriquecatala/b7123540d8fae9930ed11ac982038d0c.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;
</description>
        <pubDate>Wed, 15 Sep 2021 22:00:00 +0000</pubDate>
      </item>
    
      <item>
        <title>RuntimeError: Already borrowed</title>
        <link>https://enriquecatala.com/2021/09/15/RuntimeError-already-borrowed.html</link>
        <guid isPermaLink="true">https://enriquecatala.com/2021/09/15/RuntimeError-already-borrowed.html</guid>
        <description>&lt;p&gt;There was a nasty bug in &lt;a href=&quot;https://huggingface.co/&quot;&gt;huggingface’s&lt;/a&gt; &lt;a href=&quot;https://github.com/huggingface/tokenizers&quot;&gt;tokenizers&lt;/a&gt; that caused a random runtime error depending on how you deal with the tokenizer when processing your neural network in a &lt;strong&gt;multi-threading&lt;/strong&gt; environment. Since I´m using kubernetes I was able to fix it by allowing the pod to be scheduled again, so I didn´t paid too much attention to it because it was related to the library itself and it was not my code the one that caused the bug.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;NOTE: Details &lt;a href=&quot;https://github.com/huggingface/tokenizers/issues/537&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But then, while checking my &lt;a href=&quot;https://docs.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview&quot;&gt;AppInsights&lt;/a&gt; I found something very bad :). I found that the bug that I thought was occurring “&lt;em&gt;sometimes&lt;/em&gt;” was happening &lt;strong&gt;all the time&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;This is the error rate of my backend with the &lt;a href=&quot;https://pypi.org/project/transformers/&quot;&gt;transformers&lt;/a&gt; version 4.6.0:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/runtimeerror-already-borrowed/buggy.png&quot; alt=&quot;x&quot; /&gt;&lt;/p&gt;

&lt;!--end_excerpt--&gt;

&lt;p&gt;After digging a little bit I did a couple of things to improve the performance (none of them required change in my backend code):&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Take myself in control of creating the whole image from scratch:
    &lt;ul&gt;
      &lt;li&gt;Change the base image from &lt;em&gt;pytorch/pytorch:1.9.0-cuda11.1-cudnn8-runtime&lt;/em&gt; to &lt;em&gt;ubuntu:20.04&lt;/em&gt;
        &lt;ul&gt;
          &lt;li&gt;“Official image” is 7.5Gb&lt;/li&gt;
          &lt;li&gt;“Mine” is 2.7Gb (the one with cpu-only support)&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Manually compile pytorch 1.9.0 with/without cuda support depending on my container requirements&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Ensure fastapi[all]&amp;gt;=0.68.0&lt;/li&gt;
  &lt;li&gt;Ensure transformers==4.10.2
    &lt;ul&gt;
      &lt;li&gt;This was the one who fixed the bug&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And this is now, with the &lt;a href=&quot;https://pypi.org/project/transformers/&quot;&gt;transformers&lt;/a&gt; version 4.10.2:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/posts/runtimeerror-already-borrowed/solved.png&quot; alt=&quot;x&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Near &lt;strong&gt;~3x faster and 15x less error rate&lt;/strong&gt; :)&lt;/p&gt;

&lt;p&gt;Nice!&lt;/p&gt;
</description>
        <pubDate>Wed, 15 Sep 2021 22:00:00 +0000</pubDate>
      </item>
    
  </channel>
</rss>
