<?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 Sudarshan Pant on Medium]]></title>
        <description><![CDATA[Stories by Sudarshan Pant on Medium]]></description>
        <link>https://medium.com/@sudarshan-pant?source=rss-43a7c38f56a6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OZtCACXhnbrLDlRbDdDjGw.jpeg</url>
            <title>Stories by Sudarshan Pant on Medium</title>
            <link>https://medium.com/@sudarshan-pant?source=rss-43a7c38f56a6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:20:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sudarshan-pant/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 with Apache Airflow - Part 1: Running Airflow Locally with Docker]]></title>
            <link>https://sudarshan-pant.medium.com/mlops-with-apache-airflow-part-1-running-airflow-locally-with-docker-c9890adfac32?source=rss-43a7c38f56a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9890adfac32</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[airflow]]></category>
            <dc:creator><![CDATA[Sudarshan Pant]]></dc:creator>
            <pubDate>Fri, 26 Dec 2025 16:12:55 GMT</pubDate>
            <atom:updated>2025-12-26T16:12:55.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AJvjEjS1rwMIaDOU9wqG1A.png" /></figure><p>Modern MLOps systems are not built around a single tool. They are composed of multiple services such as experiment tracking, orchestration, model management, and deployment, all working together. In this series, MLOps with Apache Airflow, we’ll focus on one core pillar of that ecosystem: <em>workflow orchestration</em>.</p><p>This first part is about how Apache Airflow runs locally using Docker, and to establish a clean setup that we’ll build on in later parts. In this part, we will:</p><ul><li>Understand why Docker is used to run Airflow</li><li>Set up the recommended Airflow directory structure</li><li>Run Apache Airflow locally using Docker Compose</li><li>Access the Airflow Web UI</li></ul><p>This article assumes basic familiarity with Docker, but no prior experience with Airflow.</p><p><strong>Why Run Airflow in Docker?</strong></p><p>Apache Airflow is more than a single tool. It is a complete system built from several interconnected services:</p><ul><li>A web server for the interface</li><li>A scheduler to orchestrate workflows</li><li>A metadata database, (eg. PostgreSQL)</li><li>A message broker, (eg. Redis)</li></ul><p>Installing and configuring all these components directly on your local machine is often challenging. You might encounter dependency conflicts or complex setup steps that differ between operating systems.</p><p>Docker simplifies this entire process. It packages each service into a separate, clean container. This approach offers three key benefits for learning and development:</p><ul><li>It encapsulates all dependencies, so everything Airflow needs is included and isolated.</li><li>It makes your setup reproducible on any machine that can run Docker.</li><li>It closely matches how Airflow is run in real production environments.</li></ul><p>For these reasons, using Docker is the most practical and recommended path for getting started with Airflow. It allows you to focus on writing workflows, not on managing software installation.</p><p><strong>Step 1: Create the Project Structure</strong></p><p>Start by creating a project directory and moving into it:</p><pre>mkdir airflow-mlops<br>cd airflow-mlops</pre><p>Now create the directories that Airflow expects:</p><pre>mkdir -p ./dags ./logs ./plugins ./config</pre><p>Airflow will automatically detect and use these directories for:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*Sb-Otfmq0lvISo1grzYV4g.png" /></figure><p><strong>Step 2: Set the Airflow User ID</strong></p><p>Airflow’s Docker images require a user ID to avoid permission issues on Linux. Create a .env file with the following content:</p><pre>echo -e &quot;AIRFLOW_UID=$(id -u)&quot; &gt; .env</pre><p>This ensures files created by Airflow containers have correct ownership on your host machine.</p><p><strong>Step 3: Install Docker &amp; Docker Compose</strong></p><p>You’ll need Docker and Docker Compose (v2). If you don’t already have them installed <a href="https://docs.docker.com/get-started/get-docker/">get Docker</a>, and install.</p><p><strong>Step 4: Airflow Docker Compose File</strong></p><p>Good news: the Airflow team maintains an official docker-compose.yaml file that sets up the entire system for you. This single file defines the webserver, scheduler, database, and broker, all pre-configured to work together.</p><p>Instead of building this from scratch, we can download the ready-made version directly from the official documentation.</p><p>Visit the Airflow documentation page “<a href="https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html">Running Airflow in Docker”</a>.</p><p>Look for the link to download the <a href="https://airflow.apache.org/docs/apache-airflow/3.1.5/docker-compose.yaml">docker-compose.yaml</a> file for the latest stable release (v3.15 in this link).</p><p>Once downloaded, move this file into your main project folder.</p><p><strong>Step 5: First-Time Setup (The One-Time Command)</strong></p><p>Before we can start Airflow, we need to do a one-time initialization. This single command will:</p><ul><li>Prepare the main metadata database.</li><li>Create some default connections and variables.</li><li>Set up the initial admin user.</li></ul><p>To do this, simply run the following command in your project directory:</p><pre>docker compose up airflow-init</pre><p><strong>Step 6: Start Airflow</strong></p><p>Now start all Airflow services:</p><pre>docker compose up</pre><p>Docker will start:</p><ul><li>Airflow webserver</li><li>Airflow scheduler</li><li>PostgreSQL</li><li>Redis</li></ul><p><strong>Step 7: Access the Airflow Web UI</strong></p><p>Once everything is running, open your browser and go to http://localhost:8080</p><p>You should see the Airflow login page.</p><p>Use the default credentials defined in the Docker Compose file <strong><em>airflow / airflow.</em></strong></p><p>After logging in, you’ll see the Airflow dashboard with example DAGs already loaded.</p><p><strong>What’s Next?</strong></p><p>You now have a fully functional Airflow environment running locally. This setup is clean, containerized, and mirrors what you’d see in production. With the Airflow UI accessible in your browser, you’re ready to move from setup to actually creating workflows.</p><p>In the next part of this tutorial, we’ll dive into the core of Airflow: writing and running workflows. We’ll explore DAGs in detail, build a simple pipeline from scratch, and learn how to monitor tasks and troubleshoot failures using the logs. This practical foundation is exactly what you’ll need later, when we connect Airflow to machine learning pipelines and tools like MLflow for end-to-end orchestration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9890adfac32" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleash Your Own AI: A Super Simple Guide to Local LLMs with Ollama + DeepSeek!]]></title>
            <link>https://sudarshan-pant.medium.com/unleash-your-own-ai-a-super-simple-guide-to-local-llms-with-ollama-deepseek-705b17bb430b?source=rss-43a7c38f56a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/705b17bb430b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Sudarshan Pant]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 22:03:52 GMT</pubDate>
            <atom:updated>2025-06-13T22:03:52.009Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there, ever wished you could tinker with powerful AI models right on your own machine, without relying on the cloud or busting your budget?Well, you can set up your very own local Large Language Model (LLM) API using two awesome tools: Ollama and DeepSeek.</p><p>Think of it as having your own personal AI playground — super cool, right? This guide is designed to be friendly, fun, and get you up and running in no time. Let’s dive in!</p><p><strong>Why Local LLMs?</strong></p><p>Before we jump into the nitty-gritty, you might be wondering, “Why bother with local LLMs?” Here are a few sweet reasons:</p><ul><li><strong>Privacy:</strong> Your data stays on your machine. Period.</li><li><strong>Cost-Effective:</strong> No more paying for API calls!</li><li><strong>Offline Access:</strong> Work on your AI projects even without internet.</li><li><strong>Customization:</strong> Full control to tweak and experiment.</li></ul><p>Alright, enough chitchat. Let’s get our hands dirty!</p><h3>Step 1: Get Ollama on Board (It’s a Breeze!)</h3><p>First things first, we need to install Ollama. If you’re on Ubuntu (which this guide assumes, but Ollama supports other OSes too!), it’s literally a one-liner. Open up your terminal and type this magical spell:</p><blockquote>curl -fsSL <a href="https://ollama.com/install.sh">https://ollama.com/install.sh</a> | sh</blockquote><p>This command downloads and runs the Ollama installer. Pretty neat, huh?</p><p>Ollama service should start automatically.</p><blockquote>systemctl status ollama</blockquote><p>should show the status running.</p><p>Once it’s done, let’s quickly check if Ollama is chilling comfortably on your system.</p><blockquote>ollama — version</blockquote><p>You should see something like ollama version is 0.9.0 or whichever version you have. This means Ollama is ready to rock.</p><h3>Step 2: Meet DeepSeek — Your New AI Brain!</h3><p>Now that Ollama is installed, it’s time to introduce it to DeepSeek. DeepSeek is a fantastic open-source LLM that comes in different flavors. We’ll use Ollama to “pull” (download) and then “run” it.</p><p>To download and immediately start interacting with the general DeepSeek model, use:</p><blockquote>ollama run deepseek-r1:7b</blockquote><p>or any version you prefer.</p><p><strong>A quick note on </strong><strong>pull vs. </strong><strong>run:</strong></p><ul><li>pull just downloads the model.</li><li>run downloads it (if you haven&#39;t already) and then starts an interactive session with it. Super handy!</li></ul><p>DeepSeek also has specialized versions, which are super useful for specific tasks:</p><ul><li><strong>For all you coding wizards out there:</strong></li></ul><blockquote>ollama pull deepseek-coder</blockquote><p><strong>For general chit-chat, writing, and language tasks:</strong></p><blockquote>ollama pull deepseek-llm</blockquote><p>Feel free to pull the ones that best suit your needs! Once you run a model, you&#39;ll be able to type prompts directly into your terminal and get responses from DeepSeek. Give it a try! Ask it &quot;Tell me a fun fact about one-horned rhinos.&quot;</p><p><strong>Want to Dive Deeper?<br></strong>This is just the beginning of your local LLM journey! If you’re curious to learn more, here are some great resources:</p><p>Ollama Docs<em>: </em><a href="https://ollama.com/library"><em>https://ollama.com/library</em></a><em> — Explore other models and advanced features!<br></em>DeepSeek on Hugging Face<em>: </em><a href="https://huggingface.co/deepseek-ai"><em>https://huggingface.co/deepseek-ai</em></a><em> — Learn more about the DeepSeek models themselves.</em></p><p>That’s a Wrap!<br>Congratulations! You’ve successfully set up a local LLM with Ollama and DeepSeek.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=705b17bb430b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>