<?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 mukesh shukla on Medium]]></title>
        <description><![CDATA[Stories by mukesh shukla on Medium]]></description>
        <link>https://medium.com/@mukeshshukla.pics?source=rss-1a8c909bf598------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6VUrKJn4ullT7P4T8eX92g.png</url>
            <title>Stories by mukesh shukla on Medium</title>
            <link>https://medium.com/@mukeshshukla.pics?source=rss-1a8c909bf598------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:10:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mukeshshukla.pics/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[Zero-Cost LLM Dev Stack: Your No-Cost LLM Development Environment]]></title>
            <link>https://medium.com/@mukeshshukla.pics/zero-cost-llm-dev-stack-your-no-cost-llm-development-environment-4a7fc30b2751?source=rss-1a8c909bf598------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a7fc30b2751</guid>
            <dc:creator><![CDATA[mukesh shukla]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 09:18:51 GMT</pubDate>
            <atom:updated>2025-09-03T09:18:51.654Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview</h3><p>As enterprises race to integrate AI into their workflows, the demand for flexible, cost-effective, and scalable LLM development environments has never been higher. However, the high cost of cloud compute, proprietary APIs, and infrastructure often becomes a barrier — especially for startups, R&amp;D teams, and innovation labs.</p><p><strong>Enter the Zero-Cost LLM Dev Stack</strong> — a practical, open-source-first approach that enables organizations to prototype, test, and deploy LLM-powered solutions without incurring infrastructure costs.</p><h3>Agent Development Phases:</h3><p>The development of intelligent agents — particularly those powered by large language models (LLMs) — follows a structured lifecycle that ensures robustness, adaptability, and alignment with real-world tasks. The Agent Development Phases can be broadly divided into six key stages, each playing a vital role in delivering functional and efficient autonomous or semi-autonomous agents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YkkRzGEI6KTALO3JdMlrNQ.png" /></figure><p><strong>Token-Based Cost Challenges in Cloud LLM Agent Development</strong></p><p><strong><em>High Token Usage During Development</em></strong></p><p>• Frequent prompt iterations and testing lead to multiple API calls.</p><p>• Each call consumes tokens — both in the prompt and the model’s response</p><p><strong><em>Multi-Turn Interactions Inflate Costs</em></strong></p><p>• Agents often require multi-step reasoning, memory, and tool use.</p><p>• This increases the number of tokens per session significantly.</p><p><strong><em>Complex Architectures = More Tokens</em></strong></p><p>• Frameworks like Lang-Chain, Auto-Gen, and Re-Act generate internal sub-queries.</p><p>• Tool calling, memory integration, and planning logic all add to token load.</p><p><strong><em>Iterative Testing and Debugging</em></strong></p><p>• Developers test various prompt formats, system instructions, and workflows.</p><p>• Each test run incurs token costs, especially when simulating real-world tasks.</p><p><strong><em>Scaling Experiments Multiplies Costs</em></strong></p><p>• Running parallel agents, A/B testing, or simulations increases token usage exponentially.</p><p>• Teams may unknowingly burn through budgets during experimentation.</p><p><strong><em>Trade-off Between Model Size and Cost</em></strong></p><p>• Larger models (e.g., GPT-4) offer better performance but at higher per-token rates.</p><p>• Smaller models are cheaper but may lack the required capabilities.</p><p><strong><em>Cost Becomes a Bottleneck</em></strong></p><p>• Without careful planning, token costs can limit iteration speed and innovation.</p><p>• Budget constraints may force teams to compromise on quality or scope.</p><p><strong>To reduce these costs</strong>, developers can use <strong>locally deployed LLMs</strong> with tools like <strong>Ollama</strong>, which allow running models such as LLaMA, Mistral, or Gemma on local machines — eliminating per-token API charges and enabling more affordable, scalable experimentation.</p><h3>Why Ollama?</h3><p>Ollama simplifies running LLMs locally with minimal setup. It supports models like LLaMA 2, Mistral, and Gemma, and is ideal for:</p><p>· On-premise deployments for data-sensitive environments.</p><p>· Rapid prototyping without cloud dependencies.</p><p>· Integration with LangChain for building intelligent apps.</p><p>· With Ollama, enterprises can run quantized models on local machines or edge devices, enabling privacy-first AI without sacrificing performance.</p><h3>How to setup Ollama as Docker container:</h3><p><strong>Minimum System specifications:</strong></p><p>· <strong>Storage: </strong>40 GB</p><p>· <strong>OS</strong>: Linux</p><p>· <strong>CPU Cores</strong>: 8</p><p>· <strong>RAM</strong>: 16 GB</p><p><strong>Containerize the model:</strong></p><p>In this example we will create a docker container in which we will be setting up a Flask web server that leverages the llama2–7b model responses. The server will be configured to accept POST requests at an endpoint. Upon receiving a request, the server will ensure that the necessary requirements are loaded and ready for use. It will then proceed to generate a sequence of text based on the provided via request. The generated text will be sent back as the server’s response. The server will be listening on all network interfaces, ready to process incoming requests and generate creative text.</p><p>Create Dockerfile which can be used to setup docker container for Ollama with llama2–7b model.</p><p>Now create the python file app/main.py and add the following code to server the request and responses.</p><p>Code:</p><p>Build the docker image using</p><p>Run the docker image</p><p>Test the using curl request to check if the llama is serving the request or not</p><h3>Conclusion</h3><p><strong>Building Smarter, Cheaper, and Freer</strong></p><p>The journey to building intelligent agents doesn’t have to come with a hefty price tag. With the Zero-Cost LLM Dev Stack, enterprises, startups, and individual developers alike can unlock the power of large language models without being burdened by cloud costs or vendor lock-in. By leveraging open-source tools, community-driven frameworks, and local deployment solutions like Ollama, teams can experiment, iterate, and innovate at scale — while maintaining full control over their data and infrastructure.</p><p>While challenges like hardware limitations, model optimization, and skill gaps remain, the benefits of a zero-cost approach are undeniable: faster prototyping, reduced operational expenses, and a more agile path to AI adoption. Whether you’re building a customer support bot, a knowledge assistant, or a code-generating co-pilot, the tools are now more accessible than ever.</p><p>In a world where AI is rapidly becoming a competitive differentiator, the ability to build and deploy LLM-powered agents without financial friction is a game-changer. The future of AI development is not just powerful — it’s open, local, and free.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a7fc30b2751" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cost-efficient AI innovation: Snowflake SPCS + The Fosfor Decision Cloud (FDC)]]></title>
            <link>https://medium.com/snowflake/cost-efficient-ai-innovation-snowflake-spcs-the-fosfor-decision-cloud-fdc-ae93d62443b7?source=rss-1a8c909bf598------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae93d62443b7</guid>
            <category><![CDATA[snowpark-container]]></category>
            <category><![CDATA[model-monitoring]]></category>
            <category><![CDATA[model-evaluation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[mukesh shukla]]></dc:creator>
            <pubDate>Thu, 10 Oct 2024 15:56:38 GMT</pubDate>
            <atom:updated>2024-10-18T12:41:21.585Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In collaboration with </em><a href="https://medium.com/@pallavisharma2609"><em>Pallavi Sharma</em></a><em> &amp; Ravikumar Haligode</em></p><h3>Introduction</h3><p>Artificial intelligence (AI) innovation and adoption has emerged today as one of the most significant competitive advantages for most industries globally.</p><p>However, several organizations need motivation to adopt AI products/AI-driven services into their existing infrastructure. One key reason for this reluctance is the existence of disjunct tools performing different aspects of AI projects. As a result, many inefficiencies exist in the process, leading to higher costs, lower RoI, and long lead times for taking the product to market.</p><p>AI impacts all business operations, including sales, customer experience, operational excellence, the top line, and the bottom line. Businesses that implement AI innovation and adoption efficiently have a definitive edge over their competitors.</p><p>In this blog, we discuss the challenges faced by businesses in AI innovation and adoption, potential solutions, and how Snowflake SPCS and the <a href="https://www.fosfor.com/?utm_source=snowflake+blog&amp;utm_medium=spcs+blog&amp;utm_campaign=guest+blog&amp;utm_term=">Fosfor Decision Cloud</a> together can help accelerate this securely at the enterprise scale.</p><h3>Challenges in AI innovation and adoption</h3><p>Each phase in the AI/ML project lifecycle is time-consuming, especially if different tools perform different operations, adding to the overall time to launch AI innovations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*glA0HaJS-2HK8xY8eHE3dw.png" /><figcaption>Image 1: Lifecycle of AI/ML projects</figcaption></figure><p>While the potential benefits of accelerating AI innovation are significant, several challenges can hinder this progress, some of which are listed below:</p><p>Data-related bottlenecks:</p><p>1. Data availability: Developing effective AI models requires vast amounts of high-quality data. Limited data access or lack of diverse datasets can stifle innovation.</p><p>2. Data preparation: Raw data often needs extensive cleaning and preparation before it can be used for AI training. This process can be time-consuming and resource-intensive.</p><p>3. Data security and privacy: Data privacy and security become paramount when handling large datasets. Balancing innovation with data protection regulations can be a challenge.</p><p>Talent shortage:</p><p>1. Specialized skills: Building and deploying AI solutions requires a unique skill set encompassing data science, machine learning expertise, and software engineering knowledge.</p><p>2. Domain expertise: Developing impactful AI solutions requires a deep understanding of the specific business domain. Bridging the gap between data scientists and domain experts can take time and effort.</p><p>Infrastructure and cost:</p><p>1. Computational power: Training complex AI models can require significant computational resources, leading to high infrastructure costs. Balancing costs with processing power can be a challenge for businesses.</p><p>2. Scalability and maintenance: Deploying AI models at scale requires a robust and scalable infrastructure. Maintaining and monitoring this infrastructure can be a complex and ongoing challenge.</p><p>By addressing these concerns, businesses and researchers can unlock AI’s full potential and drive progress responsibly and ethically.</p><h3>Solution to accelerate AI innovation and adoption</h3><p>The solution to accelerating AI innovation and adoption is to have a platform that cost-efficiently overcomes data, talent, and infrastructure bottlenecks. This is where Snowflake SPCS and the Fosfor Decision Cloud come into the picture. Snowflake SPCS and the Fosfor Decision Cloud provide several out-of-the-box capabilities for accelerating AI innovation and adoption.</p><p>These platforms empower businesses to:</p><p>1. Focus on innovation: Spend less time wrestling with complex infrastructure and data challenges and more time developing groundbreaking AI solutions.</p><p>2. Democratize AI expertise: Even teams without a deep pool of data scientists can leverage these platforms to build and deploy powerful AI models.</p><p>3. Unlock faster time-to-value: Get your AI solutions to market quicker, allowing you to capitalize on fleeting opportunities and gain a competitive advantage.</p><h3>The Snowflake SPCS</h3><p>The Snowflake Snowpark Container Services (SPCS) is a game-changer for data platform users looking to extend Snowpark’s capabilities. It allows you to deploy containerized applications directly within Snowflake’s secure and governed environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8PZnD3J4tAGycQg-LusXRA.png" /><figcaption>Image 2. The functional view of Snowflake SPCS</figcaption></figure><p>With SPCS, users can leverage the following:</p><p>· Any language and runtime: No longer limited by Snowpark’s initial language support (Python, Java, Scala), SPCS lets you utilize your preferred language and framework for maximum flexibility.</p><p>· Custom data processing logic: Develop and deploy complex data pipelines written in your favorite language, eliminating the need to manage separate infrastructure.</p><p>· Full-stack applications: Build data-driven web applications that seamlessly integrate with Snowflake’s powerful compute resources and robust data governance.</p><p>It empowers developers to:</p><p>· Simplify complex workflows: Consolidate data processing, logic execution, and application development within a single platform.</p><p>· Reduce operational overhead: Focus on building applications, not managing infrastructure. Snowflake handles the complexities of container management for you.</p><p>· Unlock new possibilities: Explore innovative use cases previously limited by language barriers or external dependencies.</p><h3>Introduction to the FDC</h3><p>The FDC, or the Fosfor Decision Cloud, is a comprehensive platform designed to bridge the gap between raw data and intelligent business outcomes. It acts as a connected fabric, unifying the modern data ecosystem (infrastructure, data, and application clouds) to unlock the full potential of Artificial Intelligence (AI) and Machine Learning (ML).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4h7TN2LwHJYtILF1f-_VPA.png" /><figcaption>Image 3. Snowflake SPCS and the Fosfor Decision Cloud to accelerate AI innovation and adoption.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uqvmo6z7pZ28UhznRTQYdg.png" /><figcaption>Image 4. The Fosfor Decision Cloud + Snowflake vision.</figcaption></figure><p>The Fosfor Decision Cloud acts as a user-experience layer where the user can configure/build the solution and components. The FDC has capabilities to build solutions for data preparation, feature engineering, model training, and model monitoring.</p><p>The Snowpark SPCS will act as an execution engine where the execution of data preparation, feature engineering, model training, and model deployment happens.</p><p>Deployed models can be monitored inside the Fosfor Decision Cloud for feature, performance, and other drifts. The FDC is also being designed (product roadmap) to handle monitoring of LLMs, prompt injection, toxicity, etc.</p><h3>Model building workflow using SPCS and the FDC</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mVzBU9eNW3OhFk0-Go8yHg.png" /></figure><h3>Model hosting and monitoring using SPCS and the FDC</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*erIcKq_vwJp6-OukaMhYxQ.png" /></figure><h3>Model training execution flow</h3><p>The user can configure the solution in the FDC by providing details of Snowflake compute, Snowflake warehouse, and Snowflake stage.</p><p>When the user executes/schedules these jobs in FDC, they will be run on the same SPCS environment provided while configuring the solution. The user can control these jobs from the FDC if they want to make any changes, stop the job from being executed, etc.</p><p>By running the jobs on the Snowflake environment, the data remains within Snowflake and all the execution happens in the Snowflake account using Snowflake resources, thereby ensuring enterprise-grade security, scalability, and reliability.</p><p>Users can adopt both classic ML and Generative LLM methods. SPCS offers both CPU-based containerization and GPU-based containerization, meaning users need not worry about infrastructure provisioning, setting up the driver, etc., as everything will be taken care of by SPCS. After the experimentation is completed, the best model can be registered in the Snowflake Registry and deployed in SPCS for production serving from the FDC.</p><p>Once the model is deployed in SPCS, it can be exposed to client applications as a Snowflake UDF or as a Rest API, depending on the type of deployment chosen.</p><h3>Model monitoring flow</h3><p>Once the model is deployed in production, it can be monitored on the Fosfor Decision Cloud. The FDC has a rich set of features for model monitoring, including monitoring for feature, performance, label, and prediction drifts. Whenever a deviation in any metric exceeds the defined threshold, the FDC generates alerts, and the model owners are notified.</p><p>In the case of LLMs, the Fosfor Decision Cloud has several monitoring metrics in the product’s development roadmap. Metrics such as prompt injection, jailbreak, toxicity check, and sentiment analytics can be monitored, and appropriate alerts can be generated.</p><p>Once the model is deployed in Snowflake SPCS, it can be consumed in the FDC as a User Defined Function (UDF).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v3zIpRnR1auKPaILOfKoHw.png" /></figure><p>Here are some other useful resources apart from this flow diagram to get you started on the journey:</p><p>1. Step-by-step process flow for <a href="https://docs.snowflake.com/en/developer-guide/snowpark-container-services/tutorials/tutorial-1">deploying a service on Snowflake SPCS</a>.</p><p>2. Step-by-step process flow for <a href="https://docs.snowflake.com/en/developer-guide/snowpark-container-services/tutorials/tutorial-2">deploying a batch job on Snowflake SPCS.</a></p><p>3. <a href="https://docs.snowflake.com/en/developer-guide/snowpark-container-services/working-with-compute-pool">Available compute pools in Snowflake</a> for deploying services.</p><h3>Benefits</h3><p>· Faster time-to-market: Both platforms offer several out-of-the-box features, reducing the time-to-market for AI solutions.</p><p>· Governance and security: Since all the data resides in Snowflake, and the entire model training happens in Snowflake, the data is protected by Snowflake’s enterprise-level security and governance.</p><p>· Cost efficiency: Since the model training happens on Snowflake compute, there is no unnecessary data movement between platforms, significantly reducing the computing power required.</p><p>· Highly scalable: Solutions can scale up and down depending on the load.</p><p>· No infra maintenance overhead: Snowflake will take care of GPU/CPU provisioning and management, with no additional overhead of infra maintenance.</p><p>· Hassle-free model development: Users need not worry about creating the Docker image, pre-defined package installations, service creation for SPCS, or the nuances of deploying the service in SPCS.</p><h3>Conclusion</h3><p>Snowflake SPCS and the Fosfor Decision Cloud perfectly complement each other and simplify the raw data-to-business outcome journey by simplifying and automating several steps in the lifecycle, including data preparation, feature engineering, pipeline building, model training, deployment, and model monitoring.</p><p>Snowflake SPCS ensures that the model is trained inside the secure Snowflake environment. It also ensures that the models can be deployed in the Snowflake environment and that clients can invoke them as User-Defined Functions or Rest APIs.</p><p>The Fosfor Decision Cloud ensures that the model deployed on SPCS is monitored regularly for drifts such as feature, performance, label, and prediction drifts. The model owner is notified in case of any deviation in any of the performance metrics.</p><p>Snowflake SPCS and the <a href="https://www.fosfor.com/?utm_source=snowflake+blog&amp;utm_medium=spcs+blog&amp;utm_campaign=guest+blog&amp;utm_term=">Fosfor Decision Cloud</a> together, thus help accelerate AI innovation and adoption cost-efficiently by leveraging the capabilities of both platforms.</p><h3>Authors</h3><p><strong>Mukesh Shukla &amp; Ravikumar Haligode</strong></p><p>Technical Architects — Fosfor</p><p>Mukesh Shukla and Ravikumar Haligode are seasoned Technical Architects at Fosfor, with a combined experience of over 32 years in IT and product development. Their expertise encompasses the entire product lifecycle, including ideation, technical architecture, and delivery. Mukesh brings a strong background in innovation, business strategy, and seamless execution, while Ravikumar specializes in leveraging data-driven approaches for cost reduction, revenue growth, and enhancing customer experiences. Their work spans multiple AI/ML projects, including model development, hyperparameter tuning, and retraining for optimal performance.</p><p><strong>Pallavi Sharma</strong></p><p>Senior Data Cloud Architect — Snowflake</p><p>Pallavi is a Senior Data Cloud Architect- GSI Partners at Snowflake and has over 14 years of expertise in the ever-evolving landscape of data domain. She is a certified Architect specializing in Snowflake. From her journey as a Snowflake customer to becoming a prominent influencer, Pallavi has accumulated a wealth of experience.Her proficiency extends across various facets of Data Engineering on the Snowflake platform, including migrating DW platforms, optimizing cloud costs, and leading Data engineering teams. Currently, she collaborates closely with service partners and solutions providers, aiding them in crafting technical strategies, developing demos, and architecting solutions.Passionate about Snowflake and its latest innovations, Pallavi remains at the forefront of leveraging its capabilities to drive transformative outcomes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae93d62443b7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/cost-efficient-ai-innovation-snowflake-spcs-the-fosfor-decision-cloud-fdc-ae93d62443b7">Cost-efficient AI innovation: Snowflake SPCS + The Fosfor Decision Cloud (FDC)</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>