<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Michael Romagne on Medium]]></title>
        <description><![CDATA[Stories by Michael Romagne on Medium]]></description>
        <link>https://medium.com/@michael.romagne?source=rss-798483627cb5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mgUuFPu4ZzzXHUQKWh_uJw.jpeg</url>
            <title>Stories by Michael Romagne on Medium</title>
            <link>https://medium.com/@michael.romagne?source=rss-798483627cb5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:46:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@michael.romagne/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MLOps Done Right: GitGuardian’s Battle-Tested Open-Source Stack]]></title>
            <link>https://medium.com/@michael.romagne/mlops-done-right-gitguardians-battle-tested-open-source-stack-d388ee710c75?source=rss-798483627cb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d388ee710c75</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Michael Romagne]]></dc:creator>
            <pubDate>Wed, 27 Nov 2024 17:04:40 GMT</pubDate>
            <atom:updated>2024-12-04T09:49:52.694Z</atom:updated>
            <content:encoded><![CDATA[<h4>Our stack to go from experimenting to production won’t have any more secrets for you.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*54zahsrNdyMroyPlqdbA2A.png" /></figure><p><strong>Today’s Machine Learning Engineers are no longer confined to experimental notebooks — they are architects of production-ready AI systems that drive business impact.</strong></p><p>As hands-on developers, they need a tech stack that enables rapid experimentation and smooth deployment to production while maintaining their independence and workflow efficiency.</p><p>At GitGuardian, we leverage state-of-the-art NLP techniques to solve critical cybersecurity challenges. Our primary focus has been on <a href="https://blog.gitguardian.com/ai-false-positive-remover-v2/">reducing false positives in our Secrets Detection Engine</a> and using contextual analysis to identify services associated with leaked secrets. To support these tasks from experimentation to launch, we’ve put together a complete <strong>MLOps stack powered by open-source technologies.</strong></p><p>In this article, we’ll review the key pieces of our tech stack and demonstrate how they help us run repeatable experiments, work together smoothly, and manage our resources effectively. Let’s go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nczuqvdTtILs8x1d4PbegQ.png" /></figure><h3>Building a Robust ML Experimentation Pipeline</h3><p>The GitGuardian ML team’s core mission is to fine-tune Transformer models to achieve the highest precision while maintaining fast inference speeds. This type of model requires substantial computing resources for effective training.</p><p>From the start, the team had identified three major pain points that were significantly impacting our development velocity and team collaboration:</p><ul><li>Our datasets, models, and experiments were difficult to track, share, and reproduce because we didn’t have version control in place.</li><li>We lacked a flexible way to visualize metrics and explore our data, making it challenging to gain actionable insights during the experimentation process.</li><li>ML Engineers spent excessive time manually configuring and setting up EC2 instances in AWS for prototype training, which led to workflow inefficiencies and reduced productivity.</li></ul><p>To address these challenges, we needed a robust MLOps infrastructure that would streamline our workflow. After carefully evaluating various tools and approaches, we decided to build our stack around three core open-source technologies that would address these specific challenges.</p><h4>Version Control for ML Assets with DVC</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/110/0*Pv4lT1Zst3tGL8Uo.png" /></figure><p>The first solution we implemented is<strong> DVC (Data Version Control)</strong>, which has become essential to our experimentation pipelines. DVC lets us version datasets, model artifacts, and parameters right alongside our code, making our workflows more efficient and team collaboration smoother. As Iterative puts it simply: “DVC is Git for Data.”</p><p>A <a href="https://dvc.org/doc/start/experiments/experiment-pipelines?ref=blog.gitguardian.com#get-started-experimenting-using-pipelines">DVC pipeline</a> lives in a dvc.yaml file:</p><pre>stages:<br>  prepare:<br>    cmd: python prepare.py<br>    deps: <br>      - prepare.py<br>      - data/raw/<br>    outs:<br>      - train.csv<br>      - test.csv<br>  train:<br>    cmd: python train.py<br>    deps:<br>      - train.py<br>      - train.csv<br>    outs:<br>      - model.joblib<br>  evaluate:<br>    cmd: python evaluate.py<br>    deps:<br>      - evaluate.py<br>      - model.joblib<br>      - test.csv<br>    metrics:<br>      - accuracy.json</pre><p>Here’s what this typical training pipeline might look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h8oIRkzwe6yIFpF8UM9U9Q.png" /></figure><p>DVC has a lot to offer to streamline ML workflows:</p><ul><li><strong>Reproducibility</strong>: Ever had that moment when you can’t recreate the exact conditions that led to your best model? DVC solves this headache by tracking everything — your data, code, parameters, and dependencies — across all pipeline stages. It’s like having a time machine for your experiments — you can jump back to any previous version of your model or results with just a few commands.</li><li><strong>Pipeline modularity</strong>: With DVC, each pipeline stage is a distinct piece that you can easily swap out or modify when you need to tweak something, without rebuilding the whole thing.</li><li><strong>Data Versioning</strong>: DVC handles the heavy lifting by storing just lightweight .dvc pointer files in Git to track only small files and references while efficiently managing your actual data files elsewhere. It’s like having a smart storage system that knows exactly where everything is without bloating your repository.</li><li><strong>Caching</strong>: DVC’s caching is smart enough to know what’s already been computed and only runs what’s necessary — saving you precious time and computing resources.</li><li><strong>Collaboration</strong>: DVC makes collaboration actually work in ML projects. Your team can share results and parameters through Git while DVC handles the big files behind the scenes.</li></ul><p>These features make DVC an indispensable tool for MLOps teams to iterate fast while maintaining reproducibility with large datasets and complex pipelines.</p><p>Now that artifacts are versioned for each experiment, how can we efficiently manage them?</p><h4>Model Registry with GTO</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/110/0*2du3O1FRt9AHl9n9.png" /></figure><p>In addition to DVC, Iterative maintains GTO (Git Tag Ops), a tool that lets you tag your best models and artifacts. GTO creates a simple mapping between ( artifact_name, version) and ( file_path, commit_hash), making model versions easily accessible to MLEs. Instead of dealing with complex file paths or commit hashes, you can reference models using a simple name and tag, like my_awesome_model@v0.0.1, or assign stages like my_awesome_model#prod.</p><p>GTO is a great basis for creating an artifact registry within your Git repository, with the Model Registry being a particularly valuable implementation. As Iterative explains:</p><blockquote><em>“</em>Such a registry serves as a centralized place to store and operationalize your artifacts along with their metadata, manage artifact’s life-cycle, versions &amp; releases, and easily automate tests and deployments using GitOps<em>.”</em></blockquote><p>We’ll explore how to leverage these versions in our release pipeline later in this article.</p><p>The combination of DVC and GTO enables us to reference specific commits in our Git history and easily retrieve key artifacts like models, datasets, and parameters. This capability is crucial for team collaboration and efficiency.</p><h4>Awesome Web Apps with Streamlit</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/110/0*PLUYIe4mWXIvviIV.png" /></figure><p>While DVC excels at versioning, it wasn’t designed to provide interactive exploration of pipeline outputs like metrics or model behavior. Iterative has in fact developed <a href="https://dvc.org/doc/studio?ref=blog.gitguardian.com">DVC Studio</a> for this, but this is not an open-source library.</p><p>We thus searched for a lightweight and flexible tool to build web applications for comparing experiments and sharing results with teammates and the broader company. <a href="https://github.com/streamlit/streamlit?ref=blog.gitguardian.com">Streamlit</a> has imposed itself as the standard for building simple web apps with custom visualizations, thanks to its intuitive library and strong community that develops various plugins to enhance the tool.</p><p>Here is an example of a simple UI that helps both our ML teams debug their models and enables other teams to experiment with the ML team’s work:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UvGWk9er3mrsVnUayxgmqg.png" /></figure><p>Thanks to DVC, retrieving previous versions of our model and getting prediction scores (in this case, the False Positive Score) on custom inputs ( the .env file content) became straightforward. Streamlit is the ideal tool to tinker with models and display such predictions.</p><blockquote>You can find more details about this combination in this article written by Théodo Data&amp;AI: <a href="https://data-ai.theodo.com/blog-technique/dvc-streamlit-webui-ml?ref=blog.gitguardian.com">How to Build Customizable Web UI for ML with Streamlit and DVC</a>. And this is only the tip of the iceberg! Take time to explore the <a href="https://streamlit.io/gallery?ref=blog.gitguardian.com">Streamlit gallery</a> to spot visualizations that you could integrate into your applications.</blockquote><h4>Easy Cloud Instances Config with SkyPilot</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/110/0*uPG35HBaxprRiLak.png" /></figure><p>With versioning and data visualization under control, the transition to managing cloud resources was the next logical step. To automate the creation and configuration of AWS EC2 instances, we chose <a href="https://skypilot.readthedocs.io/en/latest/docs/index.html?ref=blog.gitguardian.com">SkyPilot</a>. The install is really easy, and once your Cloud Provider credentials are set, all you need is to create a skypilot.yaml manifest like the one below:</p><pre>resources:<br>  cloud: aws<br>  # A GPU instance with 1 Tesla V100<br>  instance_type: p3.2xlarge<br>  region: # region <br>  # use_spot: true<br>  image_id: # we use Deep Learning AMI GPU PyTorch 2.0.0 (Ubuntu 20.04) in eu-west-1<br><br>workdir: ./<br><br>envs:<br>  ENV_VAR: value<br><br>file_mounts:<br>  ~/.netrc: ~/.netrc<br><br># Install PDM and python dependencies<br>setup: |<br>  echo &quot;Running setup.&quot;<br>  export PYTHONPATH=&quot;/home/ubuntu/sky_workdir:$PYTHONPATH&quot;<br>  export PATH=&quot;/home/ubuntu/.local/bin:$PATH&quot;<br>  echo &#39;export PYTHONPATH=&quot;/home/ubuntu/sky_workdir:$PYTHONPATH&quot;&#39; &gt;&gt; ~/.zshrc<br>  echo &#39;export PATH=&quot;/home/ubuntu/.local/bin:$PATH&quot;&#39; &gt;&gt; ~/.zshrc<br>  pip install --user pdm &amp;&amp; pdm install -L pdm.gpu.lock<br><br># Run DVC pipeline and push the results to remote storage.<br>run: |<br>  source ~/.zshrc<br>  pdm run dvc exp run -s --pull scripts/training/dvc.yaml -n $EXPTAG<br>  pdm run dvc exp push origin $EXPTAG</pre><p>You then have full control over your cloud instances and cluster at your fingertips:</p><ul><li>Create instances and run scripts: sky launch -c mycluster skypilot.yaml</li><li>See status of instances: sky status</li><li>Kill a cluster: sky down mycluster</li><li>Automatically schedule an autostop of the cluster 10 minutes after the end of the task, and launch the cluster in detached mode: sky launch -d -c mycluster2 cluster.yaml -i 10 --down</li><li>SSH into a cluster: ssh mycluster</li></ul><blockquote>For more information on how to effectively use these tools together, please have a look at Alex Kim’s blog post: <a href="https://alex000kim.com/tech/2023-08-10-ml-experiments-in-cloud-skypilot-dvc/?ref=blog.gitguardian.com">ML experiments in the cloud with SkyPilot and DVC</a>.</blockquote><p>This stack makes experiments both scalable and reproducible. Metrics are presented through neat visualizations, while intuitive tagging makes artifacts accessible to everyone. All essential building blocks are in place to develop high-quality Machine Learning models. <strong>The final step is to package and deploy these models.</strong></p><h3>Package and Serve NLP models</h3><h4>Build an Inference Service in a blink with BentoML</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/110/0*Pe7YP5uDWcKkQ0vQ.png" /></figure><p>For our first integrations in GitGuardian’s products, we developed services that could serve our top-performing models under heavy load while maintaining state-of-the-art performance. The packaging process needed to be straightforward so that any team member could easily build and deploy their own service.</p><p>BentoML proved to be an excellent solution for several key reasons:</p><ul><li>It’s <a href="https://bentoml.com/blog/breaking-up-with-flask-amp-fastapi-why-ml-model-serving-requires-a-specialized-framework?ref=blog.gitguardian.com">built upon Starlette</a>, an ASGI framework designed for building asynchronous Python web services</li><li>It offers <a href="https://docs.bentoml.com/en/latest/reference/frameworks/index.html?ref=blog.gitguardian.com">multiple integrations</a> for serving modern NLP models, including ONNX Runtime and vLLM</li><li>Its <a href="https://docs.bentoml.com/en/latest/build-with-bentoml/services.html?ref=blog.gitguardian.com">Services / Runners</a> function as task queues, allowing you to manage traffic through max concurrency settings, timeouts, and micro batching</li><li>It’s flexible enough to build complex inference workflows while exposing models through REST or gRPC endpoints</li></ul><p>In BentoML, the definition of a Service can be as simple as that:</p><pre>import bentoml<br>from transformers import pipeline<br><br>@bentoml.service(<br>    resources={&quot;cpu&quot;: &quot;2&quot;},<br>    traffic={&quot;timeout&quot;: 10},<br>)<br>class Summarization:<br>    def __init__(self) -&gt; None:<br>        self.pipeline = pipeline(&#39;summarization&#39;)<br><br>    @bentoml.api<br>    def summarize(self, text: str) -&gt; str:<br>        result = self.pipeline(text)<br>        return result[0][&#39;summary_text&#39;]</pre><p>BentoML allows the packaging of models with all necessary dependencies into ‘bentos’, that are essentially folders that can later be used to build a Docker image. By making use of DVC and GTO to track these bentos, the deployment of ML inference services can be automated through CI/CD. Here is a DVC pipeline example to build a bento:</p><pre># Artifacts section for GTO<br>artifacts:<br>  my_awesome_model:<br>    path: data/models/my_awesome_model<br>    desc: My awesome model.<br>    type: model<br>    labels:<br>      - demo<br><br>stages: <br>  # Push prod model artifact to the BentoML model store<br>  store_models:<br>    cmd:<br> BENTOML_ENV=development BENTOML_DO_NOT_TRACK=true BENTOML_HOME=$(pwd)/data/bentoml \<br>      python -m demo.save_to_bento \<br>      --model-artifact-name my_awesome_model \<br>      --model-artifact-stage prod<br>    deps:<br>      - demo/save_to_bento.py<br>      # Add other important files to track<br>    outs:<br>      - data/bentoml/models/<br><br>  # Build the bento folder<br>  build_bento:<br>    cmd:<br>      BENTOML_DO_NOT_TRACK=true BENTOML_HOME=$(pwd)/data/bentoml \<br>    bentoml build --bentofile demo_model/bentofile.yaml --version demo-version<br>    deps:<br>      - demo/bentofile.yaml # Config file for the service<br>      # Add other important files to track<br>    outs:<br>      - data/bentoml/bentos/my_awesome_model/demo-version</pre><p>BentoML helps teams create complete inference services with just a few lines of Python code, while managing all service settings through a single YAML file. With simple commands, you can package your service into a Docker image that’s ready for high-performance deployment on any cloud platform. The main concepts behind the tool are detailed in <a href="https://bentoml.com/blog/from-models-to-market-the-missing-link?ref=blog.gitguardian.com">this blog post</a> that we highly recommend as an introduction.</p><h3>Optimizing Production for Real-Time and Batch Secrets Classification</h3><p>Our production deployment architecture is designed around three key requirements:</p><ul><li>We need <strong>real-time ML classification</strong> as soon as a secret leak is detected</li><li>We have a <strong>large historical database</strong> of secret leaks that requires periodic analysis. For example, when deploying a new model, we need to recompute classifications for all historical incidents.</li><li>Input data contains <strong>sensitive information</strong> and must remain within our production Kubernetes cluster’s security boundary</li></ul><p>We use ONNX Runtime to power our Transformer model’s inference engine. By leveraging optimizations like <a href="https://onnxruntime.ai/docs/performance/model-optimizations/?ref=blog.gitguardian.com"><strong>graph optimization</strong> and <strong>quantization</strong></a>, we achieved excellent real-time performance with low latency, even on modest CPU instances.</p><p>For our compute-heavy back-population jobs, where we periodically reprocess our extensive history of secret leaks, we needed more flexible scaling options. To manage these demand spikes efficiently, we implemented Kubernetes’ <strong>Horizontal Pod Autoscaler (HPA)</strong>. This automatically adjusts our deployment size based on incoming request volume, ensuring we maintain optimal performance during peak periods without wasting resources during quiet times.</p><p>As the final step, we implemented comprehensive monitoring and logging. Tools like Prometheus and Grafana provide real-time insights into model performance and system health, allowing us to catch potential issues early. Monitoring metrics such as latency, request rates, and error rates gives us a clear view of our service’s responsiveness and reliability. For more sophisticated visualizations, particularly for business monitoring, we created dedicated Streamlit web applications.</p><blockquote>For our use case, serving models on CPU is the preferred solution. Roblox made the same decision to serve 1+ billion daily requests and shared their performance optimization process in <a href="https://medium.com/@quocnle/how-we-scaled-bert-to-serve-1-billion-daily-requests-on-cpus-d99be090db26?ref=blog.gitguardian.com">this great article</a>. However, on GPU, the stack can be slightly different. You may prefer to use an inference server like TensorFlow Serving, NVIDIA Triton Inference Server, or TensorRT LLM in addition to a backend such as ONNX Runtime or vLLM.</blockquote><h3>Conclusion</h3><p>That’s a wrap for the overview of the GitGuardian MLOps stack! As you’ve seen, we designed it to be modular and to achieve an ideal tradeoff between usability and performance.</p><p>While we did not tackle some aspects of our setup, such as our complete service testing suite and job orchestration, we hope this article provides a practical guide and inspiration for ML engineers building or refactoring their own MLOps stack to meet the demands of modern Machine Learning.</p><p><em>Originally published at </em><a href="https://blog.gitguardian.com/open-source-mlops-stack/"><em>https://blog.gitguardian.com</em></a><em> on November 27, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d388ee710c75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning for Fraud Detection]]></title>
            <link>https://medium.com/@michael.romagne/combat-fraudsters-at-ubisoft-0c1837946801?source=rss-798483627cb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c1837946801</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[fraud-detection]]></category>
            <category><![CDATA[fraud]]></category>
            <dc:creator><![CDATA[Michael Romagne]]></dc:creator>
            <pubDate>Wed, 13 Mar 2024 22:38:33 GMT</pubDate>
            <atom:updated>2024-11-01T11:28:43.925Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vGnSs6vkltDGi6aPXQjNHA.png" /></figure><p>E-commerce is a wild world where merchants want to grow their business by selling their products online, but have to deal with malicious actors who seek buying them for “free” and reselling these products to real customers with a big discount. This is a win-win transaction for them, but a big loss for the merchant. In fact, most Payment Service Providers state that <strong>it is the responsibility of the e-commerce merchant to detect and block Fraud</strong>, and they may be charged if they do not do so. That’s where Machine Learning comes into play.</p><h3>The Risk of Fraud</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tLuPjWjYPZNqHwYkR3uQ2Q.png" /><figcaption>A classical fraud chargeback flow</figcaption></figure><p>First of all, it is worth diving in the definition of a Fraud. Let’s assume a transaction made by a shopper on a website. The merchant receives funds, the goods are delivered to the customer and life goes on. For most transactions, that’s it. However in rare cases, several weeks or months later, a random cardholder may be surprised by an unknown charge on his bank account that he never intentionaly did and dispute it to his bank. In that case, the bank will initiate a <strong>chargeback</strong>, that will be sent to the merchant through the card network. If the merchant can not show that the chargeback is an abuse from the cardholder, he has to return the funds to the cardholder, with <strong>additional chargeback fees</strong> charged by the <strong>Payment Service Provider</strong> (a few dozens euros by transaction). On top of that, if an e-merchant is victim of too many frauds, the banks will accept less payments for this company, as illustrated by Microsoft in the figure below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XcKNpPFjGWR1D0hIm19p4A.png" /></figure><p>To make things even worse, when the e-merchant is aware of a fraud, he may not be able to withdraw the product from the fraudster (shopper) account. This is particularly true in the case of physical products, but also for some virtual products.</p><p>You can imagine how this money can then be used, from isolated fraudsters trying to make easy money to organized groups willing to finance criminal organisations. This is an ethical issue that businesses are willing to tackle. But the most important problem for these companies is the <strong>exponential growth of the number of frauds</strong> when a breach is open. That is what fraudsters are looking for : easy money with easy breaches. And as in every security domain, the best defense for companies is too <strong>create as much friction as possible</strong> on the fraudster path, to deter the malicious actor from attacking their business and make them attack other more vulnerable merchants.</p><h3>How Machine Learning can help</h3><p>The friction concept is interesting for Machine Learning Engineers. It means that <strong>we do not have to develop a perfect model catching every single fraud</strong>. Be sure that if an attacker is motivated enough, he will manage to pass through your model or infrastructure. <br>For business stakeholders, this is sometimes hard to accept, as fraud raises strong feelings. Nobody wants to be victim of fraud. However, it is key to look at the cost of frauds and put the fear emotions in perspective. Indeed, it may turn out that in some segments of your e-commerce business, fraud chargebacks are not that expensive, depending on your Payment Service Provider agreement. In this case, you should be much more laxist : <strong>if you try to block more frauds, you will necesarily block more legit customers.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*GepnTKYg-pGtK_dJ20b8vg.png" /></figure><p>In these situations, you want to perform a <strong>cost analysis</strong> to evaluate your model impact and have an estimate of the Return On Investment of the project. You associate gains and loss to each decision of your model : how much money do you save when you block a fraudster ? How much do you lose when you block a legit customer ? You may also be replacing an already existing fraud detection tool, usually a rule engine that has been in your company for years. You can start by computing metrics like the fraud rate and the block rate of this system. Then, you may notice that it is composed of complex handwritten hard rules, accumulated after years of fraud management by payment and fraud experts. The rules are not versioned and the knowledge is only held by a few experts, making hard to interpret and maintain. This is a good use case for ML success. <br> <br>There are still some challenges to overcome:</p><ul><li>The e-commerce transactions must be analyzed in real-time, with a very low latency (you have to compute the multiple features and run inference).</li><li>Adversarial context : Fraudsters will continuously adapt to beat your model.</li><li>As described in the chargeback flow, the fraud labels come from banks with a big delay (from several weeks to a few months), so dataset labels are corrupted.</li><li>If a transaction is blocked in real time, you will never get any label, because the payment is not completed.</li><li>Ideally, there are very few frauds among all your transactions, leading to highly skewed datasets.</li></ul><p>So the Machine Learning problem we are trying to solve has slightly evolved. We want to <strong>replace a rule-engine by a machine learning model</strong>, by taking advantage of a lot of transactional data, with the objective of <strong>controlling the chargeback rate and accept as many legit customers as possible.</strong></p><h3>How can you tackle this problem?</h3><h3>A Feature Store</h3><p>Merchants can take advantage of their transactional data, thanks to Machine Learning. For Fraud Detection, <strong>Feature Engineering is key</strong>. Thus, ML teams must spend time with Fraud experts to determine the characteristics of each fraud attack that the merchant has undergone in its history. Here are some risk factors that can be translated in features:</p><ul><li>The customer already frauded in the past.</li><li>A high number of transactions in a short amount of time.</li><li>A high amount spent with an account created very recently.</li><li>Surprising geographical information, not aligned with the customer history.</li></ul><p>These features have to be computed in real-time, and require several table joins that take time. Thus, in order to match the low latency criteria, you must have an efficient way of getting these values. That’s what a <strong>Feature Store</strong> can bring. By computing parts of the features prior to the transaction (in daily batches for features that allow it), you can retrieve feature values much more rapidly.</p><p>Futhermore, The Feature Store is a <strong>more reliable</strong> way of computing features for this kind of application: the definitions are centralized, they are tested and the values are monitored. It ensures an alignment between offline (training) and online (real-time inference) feature values. Below is a simple schema describing a type of Feature Store. If you want more detail, you can have a look at this <a href="https://www.youtube.com/watch?v=EmZIYcHGX9U">great talk</a> by Jeanine Harb, Data Engineer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fgp4Qws8Zd3n3QQqc7l1Xg.png" /></figure><h3>XGBoost for the win</h3><p>In Fraud Detection, datasets are highly imbalanced and delays in the identification of fraudulent transactions make datasets corrupted. For these reasons, <strong>semi-supervised learning and weakly supervised learning</strong> can be explored, with <a href="https://arxiv.org/abs/1911.08623">Deviation Networks</a> for Anomaly Detection for instance. In these paradigms, it is assumed that all legit transactions in your dataset, for which you did not receive any fraud flag yet, are actually unlabeled data. Indeed, they have a chance to be a fraud someday if someone complains to his bank. The only sure labels are frauds because you had a chargeback from banks. Deviation networks push anomalies far from the normal data distribution, attracting similar data points. In this algorithm, it is thus assumed that frauds are anomalies, meaning that some feature values differ from legit transactions. Unfortunately apart from easy patterns, most frauds do not vary a lot from normal data due to the adversarial behavior of fraudsters. You have to continuously work on Feature Engineering to counter attack. Nevertheless, this exploration is valuable in order to analyze past data and dig in “legit” transactions looking similar to known frauds, allowing you to clean your dataset labels.</p><p>On tabular data, <strong>the secret sauce remains having strong features correlated with fraud patterns and train Gradient Boosted Trees</strong>. Add undersampling to rebalance your dataset before optimising a XGBoost model, and do not take the last few weeks of transactions in your training set as the data is too corrupted. <strong>Feature Engineering</strong> and <strong>collaboration with fraud experts</strong> is always the most effective strategy to refine your models, ensuring alignment with business objectives by catching fraud efficiently and accepting most of legit users.</p><p>Moreover, there are awesome explainability tools such as <a href="https://github.com/oegedijk/explainerdashboard"><strong>explainerdashboards</strong></a>. This is very convenient to debug a tree-based model, fully understand it and explain the model’s decisions when there is a customer inquiry. On top of that, you can lastly define <strong>unit tests on key segments of your dataset</strong> to protect you against performance regression when a new model is deployed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8xFJ5M8oIwQgRO6qRyqqsQ.jpeg" /></figure><p>Explainability is key for Fraud Detection, so you may even prefer to <strong>tune a rule engine</strong>, leveraging the pattern mining algorithm <strong>FP-growth</strong> for instance. This algorithm gets the associations of categorical features that happen the most with fraud. You can then send these rules to the fraud experts who can validate them before going in production. With a clean and tested rule registry and regularly updated rulesets, this approach is great. It is used by Uber in their product <a href="https://www.uber.com/en-FR/blog/project-radar-intelligent-early-fraud-detection/"><strong>Uber RADAR</strong></a>. <br>To be complete on this Rule Engine vs Machine Learning subject, I would also like to share <a href="https://www.youtube.com/watch?v=uk9ugHHrZps"><strong>Jeremy Jordan’s talk</strong></a>, one of the best I have seen as he sums up all the aspects of applying ML in Security, showcasing that the Rule Engine should be the basis of these systems.</p><h3>Model evaluation and Business KPIs</h3><p>When a transaction is blocked, the payment flow ends, thus you will get no label for it. It means that you only have the labels for transactions that your model accepted, which will be fraud or legit. In statistical terms, these are <strong>True Negatives</strong> (Legit transactions that were accepted by the model) and <strong>False Negatives</strong> (Frauds that were accepted by the model). To compute classification metrics, you also need some positive instances, things that were blocked by the model. <br>A solution to overcome this challenge is the <strong>Control Group</strong> : For a subsample of all the transactions in a day, you bypass the model decision and just log the Model score so that the payments of this subset are completed and you can analyze your model’s decisions. Of course, you have to be careful on how you select the customers / transactions you select for the Control Group in order to forbid fraudsters from taking advantage of it. This allows you to rigorously assess the impact of your fraud detection system and refine your strategies. <br>The concept of Control Group is extensively presented by Stripe in <a href="https://www.youtube.com/watch?v=rHSpab1Wi9k&amp;t=1604s">a PyData talk</a>.</p><p>In the end, the success of Fraud Detection projects is reflected in key metrics such as a <strong>gain in net sales</strong> due to less legit transactions being blocked, and the valuable time saved for fraud experts. You also decentralize knowledge so that the in-house tool can be owned by more people.</p><h3>A Live product to support</h3><p>Now that your Fraud Detection model is deployed (and the platform is built), the Fraud Detection product is live and the team has to maintain it. First, It means <strong>Monitoring it</strong> using tools like <strong>Grafana</strong> for real-time monitoring and <strong>Tableau</strong> or <strong>Streamlit</strong> for dashboards. Alerts need to be set properly and thresholds fine tuned so that you can react as soon as possible when there is an incident (fraud attack, platform down…)</p><p>Then, it means having the good set of tools to <strong>retrain and deploy Machine Learning models</strong> when there is an emerging fraud pattern. For this, you need :</p><ul><li>A tool to launch remote jobs on powerful Machines. You can use Skypilot or Okteto (Kubernetes only), and DVC to run reproducible pipelines with data versioning.</li><li>An Experiment tracking tool : ClearML is great for this and much more. Mlflow is also a good option.</li><li>A robust CI to deploy your models : Model performance unit tests to avoid regressions and Gitlab CI for the release jobs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V58CpKMb3D-U6fl_X6GhAw.png" /></figure><h3>Last words</h3><p>This is just another story of Machine Learning models in production showing that <strong>Modeling is only the tip of the iceberg</strong> in production use cases. It also reminds us that Decision Trees still rock in business and it is a must have skill to master classical ML algorithms. <br>On top of modeling, there is so much to discover in <strong>MLOps, DevOps, Data Engineering, Software Engineering, making the Machine Learning Engineer role a wonderful place for curious and creative people</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c1837946801" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A gentle journey to LLMOps : Zilliz Advent Of Code]]></title>
            <link>https://medium.com/@michael.romagne/a-gentle-journey-to-llmops-zilliz-advent-of-code-293fe166926a?source=rss-798483627cb5------2</link>
            <guid isPermaLink="false">https://medium.com/p/293fe166926a</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Michael Romagne]]></dc:creator>
            <pubDate>Wed, 03 Jan 2024 00:50:48 GMT</pubDate>
            <atom:updated>2024-01-03T20:22:30.444Z</atom:updated>
            <content:encoded><![CDATA[<h3>A gentle journey to LLMOps : Zilliz Advent Of Code</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKvvMEGVjZvXyX2K9pdirg.png" /></figure><p>December is the month of great presents and chocolate, but also the month of the <strong>Advent of Code</strong>. The Advent of code is a good occasion to enhance your coding skills or start learning a new programming language on a playful theme. The difficulty increases with each day throughout the month, and only a few contestants make it to the end.</p><p>While the classical Advent of Code is great, I wanted to adapt this 24-day challenge to enhance my skills in the <strong>MLOps / LLMOps</strong> field. It turns out that I stumbled upon Zilliz’s creation on December 3rd, at a time when my hope was at its lowest for this challenge. The goal of <strong>Zilliz’s Advent Of Code</strong> was to encourage developers to get more involved in the open source community by testing one project per day… And they had already made the selection ! The task was to do <strong>at least</strong> the “getting started” of each project and, for additional points, contribute to the project. Great, I had no excuse not to do it, <strong>let’s discover new lands !</strong></p><p>I will spare you all the details on the competition and will go straight to the point : <strong>The best tools that I discovered this month</strong>. Then, I would like to raise some questions to explore in the future : <strong>would I replace some of the industry-standard tools by emerging ones ?</strong> That’s the interest of this Advent Of Code : to spark curiosity, encourage critical questioning, and drive deeper engagement with projects through practical use or contribution.</p><h3>A Glimpse into the Best of Open Source LLMOps</h3><p>This section highlights some of the most notable tools in LLMOps, at least among the ones I have explored so far. Almost all of them are open source and the ones that are not (Mendable, Prodigy, Nvidia TensorRT) serve as references for other open source tools.</p><p>It’s challenging to categorize each tool as some of them go much beyond their primary focus, such as ClearML. My goal is to <strong>draw parallels between well-established industry standards and rising stars in the field</strong>, inspiring you to explore innovative alternatives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMLgHw1Xa969ZEHbjUKKcw.png" /></figure><h3>Special mentions</h3><p>Within the LLMOps tool map above, some libraries show innovative functionalities that are exceptional enough to detail in this section.</p><p><strong>1. Is Pachyderm better than DVC ?<br></strong><a href="https://github.com/pachyderm/pachyderm">https://github.com/pachyderm/pachyderm</a></p><p>I have been using DVC for quite some time now, so I was eager to discover Pachyderm and what is different between these two tools. In the end, <strong>Pachyderm is a more complex solution than DVC</strong>. Huge advantages of Pachyderm compared to DVC are <strong>autoscaling</strong>, <strong>data parallelization</strong> and <strong>orchestration</strong> without a doubt. The UI is also a big plus.</p><p>But complexity also means <strong>setup issues.</strong> I had problems installing it on minikube, and I saw several posts stating that it’s pretty complicated to maintain, but worth it given the additional features it provides.</p><p>So in the end, <strong>I think as a data science team grows in size and workload complexity increases, Pachyderm is the way to go</strong>. DVC, on the other hand, is much lighter and very dedicated to versioning data but not much more. <strong>DVC is more streamlined and suitable for simpler or medium-scale projects</strong>, even extending into some production scenarios. The choice between them should be based on the specific requirements and scale of the data project : <strong>do you need autoscaling, scheduling, parallelized processing ?</strong></p><p><strong>2. BentoML : The go-to library to deploy machine learning models<br></strong><a href="https://github.com/bentoml/BentoML">https://github.com/bentoml/BentoML</a></p><p>If you want to <strong>standardize your model deployments and go to production in a blink</strong>, BentoML is here for you. Their concepts are clear, you define a service, your runners, and your API is up and running with good performances. It supports adaptive batching, multithreading out of the box with integrations with Triton or VLLM. I already use it on a day to day basis and it saves you a lot of time and allow small teams to deploy their services without the need of more developers.</p><p>Now with the OpenLLM library, you can pick trending LLMs on hugging face and deploy them as you would do with any kind of models. The VLLM integration is here to enhance inference performances. However the biggest drawback for me now is the lack of support of fine-tuned model deployments. I think that ONNX serving is still not supported by VLLM and is not a clear point on the roadmap, which would be highly beneficial.</p><p>This library will be very quick to test but will <strong>save you so much time, especially for small-size teams</strong>.</p><p><strong>3. Phoenix : Umap visualization off-the-shelf<br></strong><a href="https://github.com/Arize-ai/phoenix">https://github.com/Arize-ai/phoenix</a></p><p>I was amazed by the embedding analysis feature of Phoenix. Based on Umap, it helps you identify clusters and dig into them, to interpret drift or compare different model versions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RYt7lU95DzHoTSzQcwQzSA.png" /></figure><p>It’s also possible to debug your RAG with traces, which help you to understand the internals of your application (search and retrieval in vector stores, embedding generation, external tools…):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JrMtdWW7Q-3ZNEA7K4TjEQ.png" /></figure><p>It’s possible to go further by visualizing your vector store. You just have to upload a corpus of your knowledge base along with your LLM application’s inferences to help you troubleshoot hard to find bugs with retrieval. Bugs could be gaps in your documentation, queries that gave bad responses or failures to retrieve relevant context. <strong>It’s a perfect tool for anyone leveraging RAG.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JGcUvaGWYtdOBN4-5llS2A.png" /></figure><p>It helps so much to understand what is going on with such complex models !</p><p><strong>4. Ollama &amp; Quivr : Build your personal assistant in total privacy <br></strong><a href="https://github.com/StanGirard/quivr">https://github.com/StanGirard/quivr</a></p><p>The experience with these two tools was so smooth, it was so impressive. Have a 7B llama-2 model running on your laptop in 5 minutes, sign up in Quivr and <strong>query your own data in 5 minutes, keeping your data in your local environment.</strong> Like all productivity tool, if you take time to set it well, it can bring you a lot. Create a few brains and be convinced !</p><p><strong>5. ClearML : The most advanced Experiment tracking tool, and much more<br></strong><a href="https://github.com/allegroai/clearml">https://github.com/allegroai/clearml</a></p><p>Every data scientist heard about Mlflow. It was probably the first standard for experiment tracking and model management, and was used in many formations. This tool definitely has a lot of advantages especially its simplicity, but I would <strong>recommend ClearML every day over Mlflow.</strong></p><p>ClearML automates and streamlines ML workflows, offering experiment tracking with a great UI, MLOps orchestration, data management, and optimized model serving. It integrates easily into existing scripts, supports scalable and reproducible workflows, and features a cloud-ready model serving solution, optimized for GPU and backed by Nvidia-Triton. <strong>Like Mlflow, but on steroids.</strong></p><p><strong>6. Use DVC with Streamlit for quick and robust experimentation<br></strong><a href="https://www.sicara.fr/blog-technique/dvc-streamlit-webui-ml">https://www.sicara.fr/blog-technique/dvc-streamlit-webui-ml</a></p><p>To have a solid experiment setup very quickly and if you do not want to bother with ClearML setup, please have a look at the great article from Sicara above. <strong>DVC pipelines to run reproducible experiments with tracking, with Streamlit for visualization.</strong></p><h3>An example of efficient Open Source MLOps task</h3><p>After seeing this tool map, you may be curious about the integration of these tools to construct a robust Open Source MLOps stack. This illustration showcases a potential setup for a Data Scientist / Machine Learning Engineer, utilizing an optimal combination of these tools in their working environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iqtdEv1qIR7DT001l4GOtg.png" /></figure><p>In Data Science projects, the workflow typically divides in two parts : Experimentation and Model deployment. These phases operate in tandem, alternating and informing each other continuously, rather than following a linear, step-by-step progression.</p><ol><li><strong>Experimentation</strong></li></ol><ul><li>Provision instances on AWS (or any other cloud provider) using Skypilot</li><li>Model training pipeline using DVC</li><li>And visualize results with Streamlit</li></ul><ol><li><strong>Model deployment</strong></li></ol><ul><li>Optimize your Deep Learning Models (if applicable) with ONNX Runtime in a DVC Pipeline (data versioning)</li><li>Package your model, again in another DVC pipeline stage with BentoML</li><li>Containerize your application within a Gitlab CI using DVC and BentoML</li><li>Release your BentoML docker image using Helm and Argo CD on a AWS EKS (or any other environment)</li><li>Monitor your deployment with Grafana and Streamlit</li></ul><p>In an upcoming article, I will go into more detail about this Open Source Stack, with a focus on technical aspects. For more information on all the libraries in the MLOps tool map mentioned above, please refer to the Appendix section.</p><h3>Conclusion</h3><p>As we conclude this journey in the landscape of LLMOps, I hope that this article broadened your technical horizons and made you want to contribute in the open-source community, just like the Advent of Code event did for me. This exploration sparked my curiosity to further investigate how emerging technologies may replace or complement established industry standards. <br><strong>A huge thanks to Zilliz for organizing this event !</strong></p><p>For those who have tools or practices that are standard in production but weren’t covered here, I am always open to suggestions and learning more. Please feel free to share your thoughts or recommend tools that you think are essential. You can find a compilation of my explorations in my GitHub repo at <a href="https://github.com/michaelromagne/advent-of-code-submissions-2023">https://github.com/michaelromagne/advent-of-code-submissions-2023</a>.</p><h3>Appendix : Details on libraries</h3><h3>Performance testing</h3><p>LLM raise more <strong>evaluation questions</strong> than any other kind of model in the past, especially regarding performance rankings and fairness. Performance testing can mean a lot of things : you can check if the model is not too biased, or if the predictions are accurate on some data samples and relabel these if not, you can also visualize the latent space to understand it better, or simply test your deployed service with increasing load.</p><h4>Fairness</h4><ul><li><strong>Giskard AI :</strong> This library automatically detects vulnerabilities in your ML models. They developed <strong>numerous test suites</strong> for all kind of models, from classical ones on tabular data to cutting-edge LLMs. With these tests, you can tackle issues from <strong>robustness to ethical biases</strong>, and let the end user send feedbacks.<br><a href="https://github.com/Giskard-AI/giskard">https://github.com/Giskard-AI/giskard</a></li><li><strong>Trulens :</strong> Less popular than Giskard, Trulens is still worth the try if you are working with <strong>LLMs</strong>, as it’s specialized in this area.<br><a href="https://github.com/truera/trulens">https://github.com/truera/trulens</a></li></ul><h4>Load testing</h4><ul><li><strong>Grafana k6 :</strong> Open-source load testing tool that specializes in simulating high-load scenarios and performance benchmarking, using <strong>JavaScript</strong> for scripting and offering native support for various protocols.<br><a href="https://github.com/grafana/k6">https://github.com/grafana/k6</a></li><li><strong>Locust :</strong> Also an open-source load testing tool, renowned for its user behavior simulation capabilities and scripting flexibility in <strong>Python</strong>, though it may demand more extensive customization for complex load testing scenarios compared to k6.<br><a href="https://github.com/locustio/locust">https://github.com/locustio/locust</a></li></ul><h4>Labeling tool</h4><ul><li><strong>Prodigy :</strong> Prodigy is a data annotation tool designed for efficient and flexible annotation workflows, emphasizing active learning and custom scriptability, making it suitable for rapidly creating high-quality labeled datasets for machine learning models. However, <strong>it’s not open source.<br></strong><a href="https://prodi.gy/">https://prodi.gy/</a></li><li><strong>Label Studio :</strong> Label Studio is an open-source data labeling platform with a user-friendly interface, designed for scalable and collaborative annotation tasks across various data types like text and images.<br><a href="https://github.com/HumanSignal/label-studio">https://github.com/HumanSignal/label-studio</a></li></ul><h4>Explainability</h4><ul><li><strong>Arize AI — Phoenix :</strong> Phoenix by Arize AI is a comprehensive machine learning monitoring and observability platform that offers advanced features such as <strong>embedding visualization</strong>, empowering users to effectively track, interpret, and optimize the performance of their production LLM in real-time.<br><a href="https://github.com/Arize-ai/phoenix">https://github.com/Arize-ai/phoenix</a></li></ul><h3>Build LLM Applications</h3><h4>RAG</h4><ul><li><strong>Quivr :</strong> This open source library brings the power of generative AI on a local machine in less than 10 minutes. Based on RAG, the user can create multiple “Brains”, or personal productivy assistant, to query his own data. Multiple integrations are available, and you can couple it with Ollama to have a fully private personal assistant.<br><a href="https://github.com/StanGirard/quivr">https://github.com/StanGirard/quivr</a></li><li><strong>Mendable :</strong> A platform designed to enhance customer and employee support by deploying RAG pipelines that will retrieve technical knowledge to answer questions, thereby reducing the need for direct team involvement. This efficient solution streamlines information access and improves overall response times, <strong>but is not open source</strong>. <br><a href="https://www.mendable.ai/">https://www.mendable.ai/</a></li></ul><h4>Create LLM Chains</h4><ul><li><strong>Haystack by Deepset :</strong> Haystack is a LLM orchestration framework to quickly build custom LLM applications. You can connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data, that are stored in DocumentStores. Haystack proposes already 31 integrations as of December 2023 with for instance HuggingFace, Notion extractor, Milvus, FAISS, Chroma DB…<br><a href="https://github.com/deepset-ai/haystack">https://github.com/deepset-ai/haystack</a></li><li><strong>Langchain :</strong> Langchain is designed to cut down on the heavy lifting when integrating AI into your projects. It handles a lot of the common tasks with AI models, like managing conversation memory and connecting various AI tasks seamlessly. Plus, it offers a range of ready-to-use prompts, which is a huge time-saver. In a few minutes, you are able to build powerful RAG pipelines or conversational bots, which is awesome.<br><a href="https://github.com/langchain-ai/langchain">https://github.com/langchain-ai/langchain</a></li><li><strong>Llama Index :</strong> Llama Index is an open-source platform combining Retrieval-Augmented Generation (RAG) with Large Language Models (LLMs) for advanced data indexing, enabling real-time analytics and trend forecasting in diverse market sectors by leveraging deep learning for nuanced, context-aware insights and data-driven decision-making.<br><a href="https://github.com/run-llama/llama_index">https://github.com/run-llama/llama_index</a></li></ul><h4>Ollama : Run Llama locally</h4><ul><li><strong>Ollama</strong> is an open-source software framework that enables users to <strong>run Llama 2 and other large language models locally</strong> on various platforms such as macOS, Windows, Linux, and Docker. It offers a comprehensive model library of open-source models, allowing users to easily customize and manage these models. This library is <strong>so good</strong> !<br><a href="https://github.com/jmorganca/ollama">https://github.com/jmorganca/ollama</a></li></ul><h4>Vector Databases</h4><p>The vector database ecosystem is very active. Here are 4 open-source vector DBs I tested so far. They are built to power embedding similarity search and AI applications, particularly RAG. These projects have different ages, <strong>Milvus being one of the oldest and more robust</strong> vector databases. It’s resilient, battle-tested by thousands of companies relying on it, and its architecture is distributed and fine-tuned for high throughput.</p><ul><li><strong>ChromaDB :</strong> <a href="https://github.com/chroma-core/chroma">https://github.com/chroma-core/chroma</a></li><li><strong>Milvus :</strong> <a href="https://github.com/milvus-io/milvus">https://github.com/milvus-io/milvus</a></li><li><strong>Supabase :</strong> <a href="https://github.com/supabase/supabase">https://github.com/supabase/supabase</a></li><li><strong>Meta FAISS :</strong> <a href="https://github.com/facebookresearch/faiss">https://github.com/facebookresearch/faiss</a></li></ul><h3>Orchestrators</h3><p>An orchestrator is an essential component in any MLOps stack as it is responsible for running your machine learning pipelines. To do so, the orchestrator provides an environment which is set up to execute the steps of your pipeline. It also makes sure that the steps of your pipeline only get executed once all their inputs (which are outputs of previous steps of your pipeline) are available. A good ML orchestrator should provid DAGs (Directed Acyclic Graphs) describing workflows, scheduling to run workflows on time and monitoring of these workflows executions.</p><p>The game of orchestrators is highly competitive, and my reference for now is still <strong>Apache Airflow</strong>. It stands out for its robust scheduling and execution of complex data processing workflows. Airflow’s use of Python for pipeline construction offers unparalleled flexibility and simplicity, making it particularly appealing in scenarios requiring dynamic generation of workflows based on changing data or external events. Moreover, its active community and frequent updates ensure it remains a top choice for scalable and maintainable data engineering solutions.</p><ul><li><strong>Flyte :</strong> <a href="https://github.com/flyteorg/flyte">https://github.com/flyteorg/flyte</a></li><li><strong>Dagster :</strong> <a href="https://github.com/dagster-io/dagster">https://github.com/dagster-io/dagster</a></li><li><strong>Apache Airflow :</strong> <a href="https://github.com/apache/airflow">https://github.com/apache/airflow</a></li><li><strong>Kestra :</strong> <a href="https://github.com/kestra-io/kestra">https://github.com/kestra-io/kestra</a></li><li><strong>Prefect :</strong> <a href="https://github.com/PrefectHQ/prefect">https://github.com/PrefectHQ/prefect</a></li></ul><h3>Model deployment</h3><h4>Model optimization</h4><ul><li><strong>ONNX Runtime :</strong> ONNX Runtime is a production-grade AI engine that optimizes training and inferencing for latency, throughput, and memory across CPU, GPU, and NPU with different techniques including quantization. It supports cross-platform deployment, including cloud, edge, and mobile.<br><a href="https://github.com/microsoft/onnxruntime">https://github.com/microsoft/onnxruntime</a></li><li><strong>Nvidia TensorRT :</strong> In short, very similar to ONNX Runtime but specialized in fast inference on NVIDIA GPUs exclusively. It beats ONNX Runtime performances on these machines.<br><a href="https://github.com/NVIDIA/TensorRT">https://github.com/NVIDIA/TensorRT</a></li></ul><h4>Inference servers</h4><ul><li><strong>Nvidia Triton Inference Server :</strong> Facilitate the deployment of machine learning models for real-time inference, with Triton offering support for multiple frameworks, diverse GPUs, and optimized performance. <a href="https://github.com/triton-inference-server/server">https://github.com/triton-inference-server/server</a></li><li><strong>TensorFlow Serving :</strong> Same, specialized in seamless integration with TensorFlow models <br><a href="https://github.com/tensorflow/serving">https://github.com/tensorflow/serving</a></li></ul><h4>Model Serving</h4><ul><li><strong>BentoML &amp; OpenLLM :</strong> BentoML is a framework for building reliable, scalable, and cost-efficient AI applications. It comes with everything you need for model serving, application packaging, and production deployment. BentoML team also developed OpenLLM, an open-source platform designed to facilitate the deployment and operation of large language models (LLMs).<br><a href="https://github.com/bentoml/BentoML">https://github.com/bentoml/BentoML</a><br><a href="https://github.com/bentoml/OpenLLM">https://github.com/bentoml/OpenLLM</a></li></ul><h3>Others</h3><h4>Data versioning</h4><ul><li><strong>DVC :</strong> This open source library integrates with Git for ML experiments management, allowing versioning of data and models in cloud storage. It enables fast pipeline iterations, local experiment tracking, and supports data comparison and sharing. DVC works with multiple remote storage platforms, maintaining a seamless user experience <a href="https://github.com/iterative/dvc">https://github.com/iterative/dvc</a></li><li><strong>Pachyderm :</strong> Pachyderm is a robust data engineering tool operating within a Kubernetes cluster and designed for automating complex pipelines and handling sophisticated data transformations across various data types.<br><a href="https://github.com/pachyderm/pachyderm">https://github.com/pachyderm/pachyderm</a></li></ul><h4>Infrastructure provisioning</h4><ul><li><strong>Skypilot :</strong> SkyPilot is a framework for running LLMs, AI, and batch jobs on any cloud, offering maximum cost savings, highest GPU availability, and managed execution. It abstracts all the cloud infra burden for Data Scientists, MLE, … <strong>Brings a lot of productivity</strong> ! <br><a href="https://github.com/skypilot-org/skypilot">https://github.com/skypilot-org/skypilot</a></li><li><strong>Okteto :</strong> Okteto enhances Kubernetes application development by enabling code writing locally with instant updates to Kubernetes applications. It replaces traditional deployments with a development container, maintaining original configurations and offering features like bidirectional file synchronization, automatic port forwarding, and an interactive terminal, thereby accelerating the development workflow. <strong>A tool that should be tested by any Kubernetes user.</strong> <br><a href="https://github.com/okteto/okteto">https://github.com/okteto/okteto</a></li></ul><h4>Data Visualization</h4><ul><li><strong>Streamlit :</strong> Streamlit lets you turn scripts into shareable web apps in minutes using Python. <strong>A must for any data scientist</strong>. <br><a href="https://github.com/streamlit/streamlit">https://github.com/streamlit/streamlit</a></li></ul><h4>Experiment tracking</h4><ul><li><strong>ClearML :</strong> ClearML automates and streamlines ML workflows, offering experiment tracking, MLOps orchestration, data management, and optimized model serving. It integrates easily into existing scripts, supports scalable and reproducible workflows, and features a cloud-ready model serving solution, optimized for GPU and backed by Nvidia-Triton. <strong>Like Mlflow, but on steroids.</strong> <br><a href="https://github.com/allegroai/clearml">https://github.com/allegroai/clearml</a></li><li><strong>Mlflow :</strong> Maybe the first standard for experiment tracking and model management. This tool definitely has a lot of advantages especially its simplicity, but I would <strong>highly recommend ClearML</strong> because it’s much more advanced. <br><a href="https://github.com/mlflow/mlflow">https://github.com/mlflow/mlflow</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=293fe166926a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>