<?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 Anupam Dewan on Medium]]></title>
        <description><![CDATA[Stories by Anupam Dewan on Medium]]></description>
        <link>https://medium.com/@anupamdewan07?source=rss-7f5570dd48c1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-a98zrfNRN0qHrIl.jpg</url>
            <title>Stories by Anupam Dewan on Medium</title>
            <link>https://medium.com/@anupamdewan07?source=rss-7f5570dd48c1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 09:44:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anupamdewan07/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[How to Configure Claude Code with Amazon Bedrock]]></title>
            <link>https://medium.com/@anupamdewan07/how-to-configure-claude-code-with-amazon-bedrock-50c52caa3e40?source=rss-7f5570dd48c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/50c52caa3e40</guid>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[bedrock]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Anupam Dewan]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 19:52:37 GMT</pubDate>
            <atom:updated>2026-02-25T19:52:37.198Z</atom:updated>
            <content:encoded><![CDATA[<p>Claude Code is a powerful CLI tool that brings Claude’s capabilities directly to your terminal. While it works with Anthropic’s API by default, you can easily configure it to use Amazon Bedrock instead. Here’s how.</p><p><strong>Why Use Bedrock with Claude Code?</strong></p><p>- You’re already in the AWS ecosystem<br>- You need AWS IAM-based access control<br>- You want consolidated billing through AWS<br>- You require AWS compliance and security features</p><p><strong>Prerequisites</strong></p><ul><li><strong>Visual Studio Code</strong> installed (<a href="https://code.visualstudio.com/">Download here</a>) <em>[If using VSCode plugin]</em></li><li><strong>AWS CLI</strong> installed and configured (<a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html">Installation guide</a>)</li><li>An <strong>AWS account</strong> with appropriate permissions (at minimum: bedrock:InvokeModel, bedrock:ListFoundationModels, bedrock:ListInferenceProfiles, and AWS Marketplace permissions: aws-marketplace:Subscribe, aws-marketplace:ViewSubscriptions)</li><li>Access to <strong>AWS Bedrock</strong> in your chosen region</li><li>The <strong>Claude Code extension</strong> installed in VS Code (<a href="https://marketplace.visualstudio.com/items?itemName=Anthropic.claude-code">Extension page</a>) <em>[If using VSCode plugin]</em></li></ul><h3>Step 0: Install Claude Code</h3><pre>npm install -g @anthropic-ai/claude-code</pre><h3>Step 1: Configure AWS Credentials</h3><p>Claude Code uses the standard AWS credential chain. Set up your credentials using any of these methods:</p><p><strong>Option 1: AWS CLI configuration</strong></p><pre>aws configure --profile YOUR_PROFILE_NAME</pre><p><strong>Option 2: Environment variables</strong></p><pre>export AWS_ACCESS_KEY_ID=&quot;your-access-key&quot;<br>export AWS_SECRET_ACCESS_KEY=&quot;your-secret-key&quot;<br>export AWS_REGION=&quot;us-east-1&quot;</pre><p><strong>Option 3: AWS credentials file (~/.aws/credentials)</strong></p><pre>[default]<br>aws_access_key_id = your-access-key<br>aws_secret_access_key = your-secret-key</pre><p>Option 4: <strong>Bedrock API keys</strong></p><pre>export AWS_BEARER_TOKEN_BEDROCK=your-bedrock-api-key</pre><h3>Step 2: Configure Claude Code Settings</h3><p><strong>Option 1:</strong><br>Open your Claude Code settings file:</p><pre>claude config</pre><p><strong>Option 2:</strong></p><p>Or manually edit ~/.claude/settings.json</p><p>Add the Bedrock configuration:</p><pre>&quot;env&quot;: {<br>&quot;CLAUDE_CODE_USE_BEDROCK&quot;: &quot;1&quot;,<br>&quot;AWS_REGION&quot;: &quot;us-east-1&quot;,<br>&quot;AWS_PROFILE&quot;: &lt;PROFILE NAME if using profile&gt;,<br>&quot;ANTHROPIC_MODEL&quot;: &quot;us.anthropic.claude-sonnet-4-5-20250929-v1:0&quot;,<br>“AWS_BEARER_TOKEN_BEDROCK”:“&lt;BEDROCK ACCESS TOKEN if using that&gt;”<br>}</pre><p><strong>Option 3:</strong><br>Or use environment variables in your ~/.zshrc or ~/.bashrc. You will need below enviornment variables.</p><pre>export AWS_BEARER_TOKEN_BEDROCK=&lt;BEDROCK ACCESS TOKEN if using that&gt;<br>export CLAUDE_CODE_USE_BEDROCK=1<br>export AWS_REGION=us-east-1<br>export ANTHROPIC_MODEL=us.anthropic.claude-sonnet-4-5-20250929-v1:0<br>export AWS_PROFILE=&lt;PROFILE NAME if using profile&gt;</pre><h3>Step 3: Choose Your Model</h3><p>Bedrock uses different model IDs than the Anthropic API. Here are the common ones:</p><p>- Claude Opus 4.6: us.anthropic.claude-opus-4–6:0<br>- Claude Sonnet 4.5: us.anthropic.claude-sonnet-4–5–20250929-v1:0<br>- Claude Sonnet 3.5 v2: us.anthropic.claude-3–5-sonnet-20241022-v2:0<br>- Claude Haiku 3.5: us.anthropic.claude-3–5-haiku-20241022-v1:0</p><p><strong>Get your inference profile ARN<br></strong>aws bedrock list-inference-profiles — region eu-west-2 — profile YOUR_AWS_PROFILE_NAME<br>Update the model field in your settings with your preferred model ID.</p><p><strong>Run the below basic inference call to validate if all permissions are sorted.</strong></p><p>Create a request.json file with this content:</p><pre>{<br>  &quot;anthropic_version&quot;: &quot;bedrock-2023-05-31&quot;,<br>  &quot;max_tokens&quot;: 100,<br>  &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Hello&quot;}]<br>}</pre><pre>aws bedrock-runtime invoke-model \<br>   --model-id YOUR_INFERENCE_PROFILE_ARN \<br>   --body file://request.json \<br>   --region eu-west-2 \<br>   --profile YOUR_AWS_PROFILE_NAME \<br>   --cli-binary-format raw-in-base64-out \<br>   output.txt</pre><h3>Step 4: Test Your Configuration</h3><p>Start Claude Code and verify it’s working:</p><p>claude</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4Wo155akolk2qsHzHXhMg.png" /></figure><p>You should see Claude Code start up. Try a simple command:</p><p>&gt; Hello, Claude!</p><p>If everything is configured correctly, Claude will respond using your Bedrock setup.</p><h4>Common Issues and Fixes</h4><p>Issue: “Access denied” or authentication errors<br>- Check your AWS credentials are valid: aws sts get-caller-identity<br>- Verify you’ve requested model access in Bedrock console</p><p>Issue: “Model not found”<br>- Double-check the model ID matches Bedrock’s format exactly<br>- Ensure the model is available in your selected region</p><p>Issue: “Region not supported”<br>- Claude models aren’t available in all regions<br>- Try us-east-1 or us-west-2 (most commonly supported)</p><p><strong>Switching Between Bedrock and Anthropic API</strong></p><p>You can easily switch providers by updating your settings:</p><blockquote>{<br>“provider”: “anthropic”,<br>“apiKey”: “your-anthropic-api-key”<br>}</blockquote><p><strong>Or use environment variables to override temporarily:</strong></p><blockquote>export ANTHROPIC_BEDROCK_REGION=”us-east-1&quot;<br>claude</blockquote><p>That’s It!</p><p>You’re now running Claude Code with Amazon Bedrock. The experience is identical to using the Anthropic API, but with all the benefits of AWS infrastructure and governance.</p><p>Happy coding! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50c52caa3e40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[14 Steps to Building your GenAI Applications the “correct way”]]></title>
            <link>https://medium.com/@anupamdewan07/14-steps-to-building-your-genai-applications-the-correct-way-e6ccfd462f5e?source=rss-7f5570dd48c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6ccfd462f5e</guid>
            <dc:creator><![CDATA[Anupam Dewan]]></dc:creator>
            <pubDate>Tue, 11 Mar 2025 05:37:32 GMT</pubDate>
            <atom:updated>2025-03-11T05:42:51.376Z</atom:updated>
            <content:encoded><![CDATA[<h3>Step1 : Always Start with Vibe Check</h3><p>Step 1 is always start with vibe check as this is a simpler and easy investment to get the ground running. For Example, if using Amazon Nova models take a sample of 10–15 records, fire them through the API and compare and contrast the results of Amazon Nova and other model providers.<br>This vibe check gives you a crucial evidence if the task is suitable for the model or is it too complex for the model. This vibe check should be taken with a <strong><em>grain of salt</em></strong> and if you see a promising results in at least 50% of the prompts, you should consider moving forward with the model.</p><h3>Step 2: Prompt Creation and Formatting to give models a fair shot</h3><p>Next step is formatting the existing prompts or curating prompt if you do not have a prompt to begin with. For <strong>curation</strong> of a new prompt you can make use of <a href="https://www.anthropic.com/news/prompt-generator">Prompt Generator </a>that gives you a v0 prompt to get going. As a best practice you should follow a TRICS approach towards building your prompt if you are starting from scratch. TRICS stands for-</p><ul><li><strong>Task</strong>: Identifies the specific activity or problem the model is expected to address.</li><li><strong>Role</strong>: Defines the position or capacity in which the model operates within the context of the prompt.(aka <em>persona)</em></li><li><strong>Instructions</strong>: Specifies the constraints and instructions that the model should abide by</li><li><strong>Context</strong> : Provide the input context (aka context dump) that the model can use to base its answers if you want the answer to be grounded.</li><li><strong>Schema Format</strong>: Clarifies the output format on how you want the model to respond, specify the schema.</li></ul><p>If, you are a migrator, and migrating form another model provider(such as Anthropic to Amazon Nova) it is good point to go through the <a href="https://docs.aws.amazon.com/nova/latest/userguide/prompting-text-understanding.html">model specific prompt best practice</a>s to make sure you are abiding by the right recommended tips. You can also make use of <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-optimize.html">Bedrock Prompt Optimization</a><a href="https://prompt.intech.amazon.dev/Generate_Prompt"> </a>if you are trying to migrate from Claude to Nova by reformatting the prompt based on providers best practices. Apart from just prompt migration, you might also have an additional need to migrate from Completions to Messages API, in cases you are migrating from Completions API construct like Claude2/2.1 or Amazon Titan models, <a href="https://docs.anthropic.com/en/api/migrating-from-text-completions-to-messages">this guide offers good insights into it.</a></p><h3>Step 3: Building Evaluation Dataset</h3><p>Having a golden evaluation dataset is essential to building a science rooted application. Invest time early on to build evaluation dataset so you have a source of trusted golden dataset that can help you easily switch out models and do more optimization rooted in metrics. Evaluation dataset consist of 2 key components: 1/<strong>The inputs</strong>- These are the inputs that are needed to invoke the models, these can be system prompt, user prompt, tools being invoked, RAG chunks etc. 2/<strong> The golden answers </strong>— These are the labeled or grounded answers for the problem that you are solving using LLM. If you already have a GenAI application running, it might be easier to sample a distribution from the traffic and human label the dataset to curate a evaluation dataset. You can make use of Human Labeling platforms like SageMaker Groundtruth to label the inputs to get the golden answers. In other cases where its a machine to machine iterations, you can gain the ground truth yourself based on the ideal downstream behavior. Lastly it is important to keep refreshing your evaluation dataset so that your dataset remains current to the traffic patterns based on any data drift in traffic.</p><h3>Step 4: Building Evaluation Metrics for the dataset</h3><p>Once, you have evaluation dataset, we have only solved half the battle, next half is building the right evaluation metrics. To do this, first identify how can you break the problem into small components which can be solved using <strong>deterministic metrics </strong>such as ROUGE, BERTScore, Regex Based metrics, ngrams, exact match, precision, recall, AUC, confusion metrics etc. You should also look around using evaluation metrics out of the box from frameworks like <a href="https://docs.ragas.io/en/stable/howtos/applications/custom_prompts.html">RAGAS</a>, <a href="https://github.com/confident-ai/deepeval">DeepEvals</a>, <a href="https://github.com/aws/fmeval">FMEvals</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/evaluation.html">BedrockEvals</a>.</p><p>Many times, as LLMs outputs are not always deterministic, deterministic metrics cannot be utilized every time, in those cases we explore utilizing LLM Judges or LLM Jury such as in cases like Hallucination identification, reasoning quality, text generation quality, image, video understanding and summarization quality detection. Building <strong>LLM Judge follows 5 step process</strong></p><ul><li><strong>Step 1: Build your Judging Rubric: </strong>Build the definition of “good” for your GenAI Application, is it that all instructions should be always followed, or are their subset of instructions that you care about, is it that the final length of response should be less than 100, is it that the final response should be natural and follow AWS Communication standard.It could be bulleted points that you care about.</li><li><strong>Step 2: Identify your Judge Model(s): </strong>Next Identify which Judge model(s) is right for your use case. It is recommended to not use the same Judge Model as your candidate model. For example using Haiku or Sonnet as a Judge to compare Haiku responses is not a good idea as they belong to the same class causing some bias leakage in your judge prompt. Another important tip is to randomize your order in judge prompt, aka, having Answer A and then B and then in another version having Prompt B followed by Prompt A for pairwise comparisons. It is also recommended to explore LLM as Jury concept where you can have multiple models evaluate together and a final voting helps you decide the final judgement, this can help remove some of the intended biases.</li><li><strong>Step 3: Build your Judge Prompt: </strong>Next, is to craft your Judge Prompt, start with a v0 prompt giving basic things for the judge to evaluate on. The general component of Judge prompt includes</li><li><strong>Persona Setting</strong> — Supply System prompt instructions so judge prompt has right persona setting( such as “expert judge”, critical reviewer“)</li><li><strong>Critical Instructions on what to Judge- </strong>Key instruction on what are instructions to be followed while judging.</li><li><strong>Rubric and Scoring method- </strong>Establishing a rubric that should be evaluated and Scoring method to have, you can start with binary classification( true or false with a reasoning) or take it to Likert scale(0–5) but have a clear definition of each grade.</li><li><strong>Student Answer or 2 Answer for pairwise comparison — </strong>Have student answer to compare or have 2 answers (Model A or B; Model A and GT)</li><li><strong>Output Format with Score and Justification — </strong>Specify the output format, score and justification for the score.</li><li><strong>Step 4: Calibrate the Judge:</strong> The most time consuming step is to Calibrate the judge. In this step you can build your judge prompt and iteratively calibrate the judge by human review followed by prompt changes and re-reviewing the results to improve the prompt.</li><li><strong>Step 5: Repeat 3–4 until human alignment bounds reached: </strong>This process is iterative and repetitive until the judge results are close to Human Review( with +/- 5% error rate) so the responses form Judge can be trusted on alone.</li></ul><p><em>Note: This process generally is long tuning process so you should get to a certain degree of level and augment that with a random sub sample HIL review.</em></p><h3>Step 5: Run Evals</h3><p>Next step, is to run evals meaning now that you have evaluation dateset and evaluation metrics, next step is to run inferences and run evaluations on the inference results. These gives you a baseline evals. It is recommended to compare the models of the same class with each other. For Example comparing Nova Micro with Claude Sonnet is not advised. As a rule of thumb use Nova Micro for LLAMA-7B class comparison, Nova Lite for Haiku3/3.5 class comparison, Nova Pro for Sonnet3/3.5 class comparison.</p><h3>Step 6: Failure Analysis</h3><p>Next Step, is to conduct a failure analysis on sample to get a feel and pattern analysis of what might be the cause of the gap( if gap exisit). This is the most under-rated step but has the highest value. Follow below 3 step process</p><ul><li><strong>Step 1:</strong> <strong>Look at the Failures</strong>: Start by looking at the input and generated output and eval results for failed cases and try to jot some of the notes on what was the issue, while filling each rows comment section think “What went wrong?”.</li><li><strong>Step 2: Comment the findings: </strong>Once you have done a decent sample size evaluation. Look at the comments and derive key classes of failures.</li><li><strong>Step 3: Classify comments in classes</strong>: This class level distributions tell you what are the key problems and you can surgically try to fix them through prompt optimizations.</li></ul><h3>Step 7: Prompt Optimize</h3><p>Next step is to optimize prompts based on Failure Analysis achieved and to surgically fix what might solve the classes that are causing the gaps. This also gives you a prioritized list on what to prioritize that will achieve the maximum gains. You can also make use of frameworks like DSPY and TextGrad if the meet your needs. These frameworks are still actively growing.</p><h3>Step 8: Repeat 5–7</h3><p>Next, repeat 5–7 steps by running evals, analyzing gaps and failures and re-optimizing the prompts until you start seeing diminishing returns from any further prompt optimizations.</p><h3>Step 9: When Prompting leads to Diminishing returns be creative and pivot</h3><p>Once prompting efforts are leading to diminishing returns and your business threshold is far from achieving, you can explore some creative pivots as described below:</p><ul><li><strong>Task Decomposition and Prompt Chaining : </strong>Break the task, into smaller components, this is one of the key reasons you might be seeing gaps in performance that the taks as a whole is too complex for LLM to solve in single go, break the task into smaller components. Once you have broken into smaller components, then chain these prompts together. You can add programmatic checks (see “gate” in the diagram below) on any intermediate steps to ensure that the process is still on track.</li><li><strong>Routing Workflows: </strong>Routing classifies an input and directs it to a specialized followup task. This workflow allows for separation of concerns, and building more specialized prompts. Without this workflow, optimizing for one kind of input can hurt performance on other inputs.</li><li><strong>Augmentation(Agents, RAG):</strong> Sometimes, it is better to off-load LLMs by augmentations with tools like retrieval, tools. Our current models can actively use these capabilities — generating their own search queries, selecting appropriate tools, and determining what information to retain.</li><li><strong>Dynamic Few Shots: </strong>Another key pattern is dynamic few shots where you can design a vectorDB with indexed examples for various input queries and at runtime based on input query you can build a retriever to retrieve similar examples dynamically to construct your prompt.</li></ul><h3>Step 10: If creative pivots do not solve, leverage tools like Customization to push boundaries</h3><p>Once you have exhausted your options from creative pivots, you can move to Customization. If using Amazon Nova models these comes with 2 types customization out of the box from Bedrock. One is <a href="https://docs.aws.amazon.com/nova/latest/userguide/customize-fine-tune-hyperparameters.html">Continuous Fine tuning(CFT) and other is Distillation.</a></p><p><strong>When to Distill or Fine Tune?</strong><br>We recommend that you use <strong>distillation</strong> when</p><ul><li>You do not have labeled data and the larger models in the family (aka, Teacher models) are highly capable on the target task.</li><li>Larger models are better than smaller model on the target task but you need the latency and cost profile of smaller model with the accuracy of larger models.</li></ul><p>We recommend that you use <strong>custom fine-tuning </strong>when</p><ul><li>You do not see good performance, even on a larger model, and there is a intelligence gap in the model.</li><li>Your use case is in a very narrow domain and not general enough for the model to know about it.</li></ul><p>For understanding how to prep your data to kick off a fine tuning job take a look at <a href="https://docs.aws.amazon.com/nova/latest/userguide/customize-fine-tune-prepare.html">this</a></p><h3>Step 11: Threshold met, optimize for latency and throughput</h3><p>Next, assuming you finally managed to meet your threshold requirements, you might also want to measure latency and throughput requirements. This is recommended to be done in prod tagged AWS Account so you see the full quota available to you for the model. If your RPM requirements are greater than what comes out of the box for models you can request a increase in quota up to certain limit, but if your request is much higher than what is allocated, Its recommended to consider purchasing Provisioned throughput so you can guarantee the RPM you are looking for at higher cost. You can check your <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html">service quota here</a> and purchase <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">provisoned throughput here</a>.</p><h3>Step 12: Move from Offline Evals to Online Evals; Keep Observability and Feedback Collection in your UX</h3><p>Next step, is now that you are confident in your prompt and latency and throughput estimate, now is the real test to move in the messy world of online evaluation where the model sees not curated inputs but as real as it will get. This process is to start with A/B testing and starting to direct traffic gradually and with continuous monitoring. It is best practice to set observability tools like Langfuse or langsmith to record the events happening so you can diagnostics and collect feedback as it comes. If your application is user facing, it is also important to make sure you are keeping feedback collection and tracking at the core of your UX, this includes having widgets to provide direct feedback such as thumbs up, thumbs down, comment section, UI tracking of chat interaction times etc so you can use those metrics for quality checks on response quality and engaging metrics based on your application.</p><h3>Step 13: Close the feedback loop by Feedback Failure Analysis and Iteration</h3><p>Next Step, collecting these metrics will not be super valuable until you build on-the-fly background evaluation checks inspired from Step 4 where you can run built eval metrics in background on a daily traffic sample. This gives you a better tracking and confidence on your application. Along with this, it is recommended to deep dive into the low eval scores rows to figure out the problem/gap areas where eval metrics gave low score you will find one of the two things — Either your prompt needs improvements or its false negative from your judge prompts. Once you know the issue, you can choose to optimize accordingly</p><h3>Step 14: Dial up towards full Productionization</h3><p>Finally, you can now gradually scale from A/B Testing to production by fixing issues if they come in the testing period. It is generally recommended to give at least 3–5 weeks for testing period to get signals and fix accordingly. This period also depends on the reach ability and blast radius of the application and impact of the application.</p><p>If you would like to share, how you build your GenAI applications or have other ideas to streamline this process further, I would love to hear, reach me at <a href="/service/mailto:anupam.dewan07@gmail.com">anupam.dewan07@gmail.com</a>, or DM me on Twitter @anupam-dewan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6ccfd462f5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 picks on Why ML is meant for being in the cloud?]]></title>
            <link>https://medium.com/@anupamdewan07/top-5-picks-on-why-ml-is-meant-for-being-in-the-cloud-858bd72e62d8?source=rss-7f5570dd48c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/858bd72e62d8</guid>
            <dc:creator><![CDATA[Anupam Dewan]]></dc:creator>
            <pubDate>Mon, 28 Feb 2022 04:46:28 GMT</pubDate>
            <atom:updated>2022-02-28T20:14:45.966Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*E-ArvNcxdQXpBmuYP4pw2Q.png" /><figcaption><a href="https://www.cleo.com/blog/knowledge-base-on-premise-vs-cloud">Ref:Link</a></figcaption></figure><p>In this day and age when companies are aggressively finding use-cases to leverage their data to keep up with the stiffly competitive market. An enterprise can be left behind if they do not have a roadmap or plan to use that data to create intelligent, automated decision-making systems and tools to aid in either helping the human workforce or bettering the overall customer experience. With the growing demand for Machine Learning and AI, comes the growing need to answer some critical questions where, on-premise systems can feel lacking and not really build-out for.</p><p>On-premise and co-located servers have been in use, like the old good guys, who have been trusted and have gained the acceptance to the fact that they work, and that the idea of services and systems running on a physical server seems digestible and understandable to the masses. But with the shifting demands, the evolution of storage capacity in the past decade, and skyrocketed growth in data collection, all in all leading to accelerated growth of machine learning and deep learning use-cases, on-premise systems fall short and are not really built out for those massive number-crunching workloads.</p><p>The solution to being successful in operating workloads and processes, specifically around ML, revolves around processing, analyzing large sets of data, is migrating to the cloud. Enterprise have understood this the hard way that to keep up with the growing need for Artificial intelligence embedded in every product, the cloud is the only solution that can give that flexibility to scale, operability to be up and running in a secure manner that too in a short amount of time.</p><p>In this blog, I attempt to highlight why with growth and ever advancements in Machine learning we need to rethink our operation strategy and transition those workloads to Cloud.</p><p><strong>Flexibility</strong>:</p><p>Flexibility is the number 1 priority to move to the cloud, as it provides the feature to pick and choose depending on the type of workloads you are running. It does not box us to one-size-fits-all but gives us an option to expand-the-box based on our needs and workload use-cases. For Example, the Deep learning model might require a GPU instance for training, while a CPU instead would be sufficient when training a basic Machine learning model. Not even that, training hardware requirements and capabilities might be completely different from inference. Apart from that, the cloud also provides operational agility in terms of on-demand scale up, based on the demand, and scale-down when demand is not at their peak, this further gives an added edge of having to not worry about infrastructure provisioning for such tasks.</p><p><strong>Security</strong>:</p><p>The second most important aspect is Security and Anti-Vulnerabilities. As the data utilization and movement of data increases due to the advent of AI, so does the security issues, and attacks grow around it. Almost all cloud Infrastructure providers today provide some very sophisticated algorithms that make sure that there is an E2E encryption in transit as well as at rest for preventing such malicious attacks and data breaches. Cloud also provides replication of data into multiple virtual partitions, which makes sure that in a case of compromise, the data can be preserved from the backup locations also called a “pristine floating cloud”.This also prevents the data from ever leaving the cloud, and is always securely accessed via the internet under the layer of private virtual networks encapsulating the ML workloads for an added layer of security.</p><p>Not just aspects of security but the cloud also auto-applies patches around the found security vulnerabilities, so that your workloads run more securely and smoothly.</p><p><strong>Utility and Ease of Use:</strong></p><p>Another important reason for the transition to the cloud is the Utility benefits and ease of use it offers.The cloud provides very easy-to-use and systematic console flexibility that leads to a minimal effort in getting started. Apart from that, different cloud providers provide multiple super easy to use and highly efficient functionality that takes care of many of your worries and needs therefore, it’s more of <strong><em>“using the wheel rather than reinventing the wheel”</em></strong>.Not just the ease of use, but even the myriad of services and functionality the cloud offers from handling your access permissions via IAM to methods of data extraction, storage, and manipulation, to AutoML to carry out some redundant tasks for you in a more automated way helps not only get started faster, but to iterate, experiment, fail and repeat many times, and at a faster pace.</p><p><strong>Recoverability:</strong></p><p>One of the other key drivers for cloud adoption is the robust disaster, backup, and recovery mechanism that the cloud offers. For a good reason: Disaster happens, According to a 2017 Gartner study, 80% of respondents faced some kind of incident within the last two years that required the use of an IT disaster recovery plan. Also, the same study found that about 30% of those respondents rely on cloud infrastructure to provide that robust recovery plan. The thing that makes a cloud recovery plan so robust is that it keeps the data secure on the cloud in multiple virtual partitions in the form of replicas which help in easily getting a replica to restore back to normal operations.</p><p><strong>Affordability</strong>:</p><p>One of the other key criteria for adopting a cloud is the cost savings that it brings along. These costs are attributed to 4 different sources primarily:</p><ul><li><strong>Hardware costs</strong>: As it is basically processing power on rent, the hardware has to be not bought and maintained as compared against the on-premise solution.</li><li><strong>Maintenance costs</strong>: The maintenance of those resources and security maintenance is the least, as they are auto-patched and can be shut down when not needed making them fast to spin up and tear down.</li><li><strong>Acquisition cost</strong>: The Acquisition cost is pretty minimal as the resources are shared across the cloud, and no specific licenses are needed to be purchased.</li></ul><p><strong>( Bonus) Sustainability</strong>:</p><p>While on the topic of ML and enormous data generation, one more reason for moving to the cloud is from an environment and carbon footprint perspective and for the greater good of the world. When you move to the cloud, your infrastructure sits outside and is basically shared with other users, this leads to overall less electricity, servers, less conditioning, and less physical space requirement. Greenpeace, the environmental advocacy organization, <a href="https://www.computerworld.com/article/3157854/cloud-computing/greenpeace-announces-its-latest-report-about-the-environmental-impacts-of-cloud.html">supports cloud computing</a> due to its incremental improvements in global energy use. Therefore it’s not just good for your company but for the world in which we live as well.</p><p>These are my top picks on why everyone who wants to move to ML or is already in ML on on-premise needs to really rethink their strategy and rethink cloud adoption to accelerate their growth and match up with the growing demands around ML &amp; AI around the world.</p><p>If you would like to watch a short video on this topic: Check it <a href="https://prezi.com/v/embed/demfa-uxcxhz/">out</a>.</p><p>If you would like to share, what made you make the adoption to the cloud, or what other than these picks you think are also some bigger drivers of adoption reach me at <a href="/service/mailto:anupam.dewan07@gmail.com">anupam.dewan07@gmail.com</a>, or DM me on Twitter @anupam-dewan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=858bd72e62d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>