<?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 Harjinder Singh on Medium]]></title>
        <description><![CDATA[Stories by Harjinder Singh on Medium]]></description>
        <link>https://medium.com/@pisingh_?source=rss-3857683691cd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KLXfU4fOcZkI0FC9.jpeg</url>
            <title>Stories by Harjinder Singh on Medium</title>
            <link>https://medium.com/@pisingh_?source=rss-3857683691cd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:37:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pisingh_/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[Next Level AI/ML: Exploring major themes from Re:Invent 2023 (Part -2)]]></title>
            <link>https://medium.com/@pisingh_/next-level-ai-ml-exploring-major-themes-from-re-invent-2023-part-2-fdd8ce59b688?source=rss-3857683691cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdd8ce59b688</guid>
            <dc:creator><![CDATA[Harjinder Singh]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 00:23:10 GMT</pubDate>
            <atom:updated>2023-12-14T00:43:34.091Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Disclaimer:</strong> I work as a software engineer at Amazon but the following represents my individual perspectives and opinions, and does not constitute an official communication from Amazon.</blockquote><blockquote><strong>Disclaimer:</strong> Some snippets in the blog are directly picked from the AWS Blog and I’ve linked the blog posts in the relevant sections. Through this blog, my goal is to summarize and organize all the announcements and identify common trends in the growth of AIML offerings.</blockquote><p>This is part 2 of the blog exploring major themes of the AI/ML launches at Re:Invent 2023. Here is the link to <a href="https://medium.com/@pisingh_/next-level-ai-ml-exploring-major-themes-from-re-invent-2023-part-1-a61f37a84511">part1</a> of the blog where I discussed the following two themes —</p><ol><li>Innovation in AI/ML Computing Infrastructure</li><li>Enhancements in the model development and deployment features</li></ol><p>In this blog post, I’ll cover the following themes —</p><ol><li><strong>Accelerating AI adoption with user-friendly visual and low-code tools — </strong>Amazon’s focus on user-friendly low-code AI/ML tools like Amazon Q, SageMaker Canvas and Amazon Bedrock to democratize and accelerate adoption of AI. SageMaker Canvas added new features like foundation model support, natural language data exploration, and advanced model build configurations. Amazon Bedrock is now offering additional foundational models, fine-tuning, and integration with other AWS services.</li><li><strong>Enabling customization of the foundational models to fit specific needs </strong>— Amazon is hitting the nail here, making the foundational models more useful to the enterprise customers. Bedrock allows augmenting the models with user’s data, RAGs, and Agents. Continued pre-training allows customers to expand models’ understanding with new, domain-specific data. Amazon CodeWhisperer’s customization capabilities generate code recommendations based on enterprise’s internal libraries and APIs.</li><li><strong>Integrating generative AI in major AWS offerings to improve productivity </strong>— With AWS as its sandbox, Amazon is advancing its generative AI expertise and also helping developers with powerful generative AI tools within the AWS ecosystem. Amazon Q will boost developer and architect efficiency by integrating with AWS services like QuickSight, Redshift, CodeCatalyst, and more. CodeWhisperer expands integrations with command line, EMR Studio, security scans, and IaC support. Natural language queries with CloudWatch will simplify operational data analysis with AI-powered insights.</li><li><strong>Focusing on model explanability and responsible AI — </strong>LLMs pose risks like bias, misinformation, and lack of transparency. Amazon addresses these concerns by enabling model evaluation and guardrails on it’s generative AI offerings like SageMaker and Bedrock. It now supports evaluation and comparison of LLMs based on accuracy, safety, and other metrics, offering both automatic and human evaluation options. Amazon is the first company to enable watermarking on GenAI images.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjqgrdK8jNT1kIulJxUP9g.png" /></figure><p>For more details, read on —</p><h3>1. Accelerating AI adoption with user-friendly visual and low-code tools</h3><p><strong>As AI and ML become more prevalent across industries, there’s a growing demand for tools that make them accessible to a broader range of users. Low-code and no-code tools remove the need for extensive coding expertise, allowing even those with limited technical skills to leverage the power of AI and ML. By lowering the barrier to entry, these tools aim to democratize AI and ML, making them accessible to small businesses, startups, and individuals. Building no-code tools is not new to AWS, and they’ve previously offered tools like </strong><a href="https://aws.amazon.com/sagemaker/canvas/"><strong>Amazon Sagemaker Canvas</strong></a><strong> that has a visual (no-code) capability that allows business analysts to build ML models and generate accurate predictions without writing code or requiring ML expertise.</strong></p><p>These tools help business users who want to build AI solutions but also makes it possible for scientists and engineers to focus on building models and applications without worrying too much up about setting up the infrastructure. They also allow users to build and iterate quickly on AI solutions and speed up development cycles and time-to-market for new applications.</p><p>AWS’s commitment to low-code/no-code development was quite visible at Re:Invent, with significant enhancements and additions to their existing suite of tools. They not only unveiled new services like Amazon Q, but also significantly improved existing low-code/no-code offerings like Amazon Bedrock, Sagemaker Canvas and Sagemaker Studi.</p><h4>1. Amazon Q</h4><p>Amazon Q is a generative AI–powered assistant that can answer questions, provide summaries, generate content, and complete tasks based on data and information in user’s enterprise systems. This all happens through its web-based interface, making it easier for users to interact.<strong> Amazon Q is a true no-code solution that allows users to connect to a plethora of data sources including </strong><a href="https://aws.amazon.com/pm/kendra"><strong>Amazon Kendra</strong></a><strong> and leverage the power of </strong><a href="https://www.promptingguide.ai/techniques/rag"><strong>Retrieval Augmented Generation (RAG) </strong></a><strong>without writing a single line of code.</strong> It lets users to build in-context apps and get fast, relevant answers to pressing questions, generate content, and take actions using custom data.<strong> It’s like </strong><a href="https://chat.openai.com/"><strong>ChatGPT</strong></a><strong> but better because ChatGPT requires users to write custom connectors for external data sources using </strong><a href="https://github.com/hwchase17/langchain"><strong>LangChain</strong></a><strong>.</strong> Additionally, Amazon Q prioritizes security and privacy by respecting existing identity, roles, and permissions within the users’ organization and not using user data for model training or improvement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*de8Jy0BAod10_k5bQeISWw.png" /><figcaption><strong>Source: AWS ML blog</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1KsAov_1mWxDdeK26uMvMg.png" /></figure><h4>2. AWS Sagemaker Canvas enhancements</h4><p><a href="https://aws.amazon.com/sagemaker/canvas/">Amazon SageMaker Canvas</a> is a visual, no-code interface that allows business analysts to build and train machine learning (ML) models without writing any code. It provides drag-and-drop functionality and pre-built components that make it easy to connect to data, prepare it for ML, build models, and deploy them to production.</p><p><strong>a. Sagemaker Canvas adds support for Foundation Models</strong></p><p>Sagemaker Canvas now allows users to build on foundation models (FMs) from <a href="https://aws.amazon.com/bedrock/">Amazon Bedrock</a> and <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/studio-jumpstart.html">Amazon SageMaker Jumpstart</a> through a no-code experience. This new capability makes it easier for users to evaluate and generate responses from FMs for your specific use case with high accuracy. SageMaker Canvas trains the models for users, so they don’t need to write any code. It uses user provided data to ensure that the model output reflects the specific domain knowledge. For the fine-tuning process, SageMaker Canvas creates a new custom model and the data used for fine-tuning is not used to train the original FM, ensuring the privacy of the data.</p><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/aws/leverage-foundation-models-for-business-analysis-at-scale-with-amazon-sagemaker-canvas/">https://aws.amazon.com/blogs/aws/leverage-foundation-models-for-business-analysis-at-scale-with-amazon-sagemaker-canvas/</a></p><p><strong>b. Sagemaker Canvas adds supports for data exploration using natural language</strong></p><p>Amazon SageMaker Canvas now leverages the power of natural language to simplify data exploration and preparation for building machine learning models. This new feature, powered by <a href="https://aws.amazon.com/bedrock/">Amazon Bedrock</a>’s Foundation Models, eliminates the need for writing code and empowers users to interact with their data more intuitively. With natural language queries, users can ask ad-hoc questions, visualize feature distributions and correlations, and transform data to suit their specific business needs. Guided prompts facilitate getting started quickly, allowing users to explore data, identify outliers, and prepare it for model training with ease. This innovative capability significantly enhances the user experience and simplifies data preparation, making SageMaker Canvas even more accessible to users of all technical backgrounds.</p><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/aws/use-natural-language-to-explore-and-prepare-data-with-a-new-capability-of-amazon-sagemaker-canvas/">https://aws.amazon.com/blogs/aws/use-natural-language-to-explore-and-prepare-data-with-a-new-capability-of-amazon-sagemaker-canvas/</a></p><p><strong>c. SageMaker Canvas add supports for advanced model build configurations</strong></p><p>SageMaker Canvas now supports advanced model build configurations such as selecting a training method (ensemble or hyperparameter optimization) and algorithms, customizing the training and validation data split ratio, and setting limits on autoML iterations and job run time, thus allowing users to customize model building configurations without having to write a single line of code. This flexibility can provide more robust and insightful model development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7A_Y5a82v2zEN2S-h1wpQ.png" /><figcaption><strong>Source: AWS ML blog</strong></figcaption></figure><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/machine-learning/build-and-evaluate-machine-learning-models-with-advanced-configurations-using-the-sagemaker-canvas-model-leaderboard/">https://aws.amazon.com/blogs/machine-learning/build-and-evaluate-machine-learning-models-with-advanced-configurations-using-the-sagemaker-canvas-model-leaderboard/</a></p><h4>3. New features in AWS Bedrock</h4><p>The next low-code managed service for building AI applications is AWS Bedrock. It’s a new service that democratizes access to powerful foundational models (FMs) for generative AI applications. Bedrock empowers developers of all skill levels to build and scale innovative AI solutions with just a few clicks. Find the right FM for your specific task, customize it with your own data, and easily integrate it into your applications using familiar AWS tools. Bedrock eliminates infrastructure management overhead, allowing you to focus on building the next generation of AI-powered solutions.</p><p><strong>a. Expanding model choice</strong></p><p>At Re:Invent, AWS added the support for new models to the Bedrock foundation model catalog —</p><p><strong>Claude 2.1</strong> delivers key capabilities for enterprises such as an industry-leading 200K token context window (2x the context of Claude 2.0), reduced rates of hallucination, and significant improvements in accuracy, even at very long context lengths. Claude 2.1 also includes improved system prompts — which are model instructions that provide a better experience for end users — while also reducing the cost of prompts and completions by 25%.</p><p><strong>Llama 2 70B</strong> is suitable for large-scale tasks such as language modeling, text generation, and dialogue systems.</p><p><strong>Stable Diffusion XL 1.0 (SDXL 1.0)</strong> is the most advanced of the text-to-image models. The latest edition of this popular image model has increased accuracy, better photorealism, and higher resolution.</p><p><a href="https://aws.amazon.com/bedrock/titan/"><strong>Titan Text Lite</strong></a><strong><em> </em></strong>is a succinct, cost-effective model for use cases like chatbots, text summarization, or copywriting, and it is also compelling to fine-tune.</p><p><strong>Titan Text Express<em> </em></strong>is more expansive, and can be used for a wider range of text-based tasks, such as open-ended text generation and conversational chat.</p><p><a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-titan-multimodal-embeddings-model-bedrock/"><strong>Titan Multimodal Embeddings</strong></a> is a new embeddings model to power multimodal search and recommendation experiences for users using images and text (or a combination of both) as inputs.</p><p><a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-titan-image-generator-model-bedrock-preview/"><strong>Titan Image Generator</strong></a> can be used to generate realistic, studio-quality images in large volumes from texts and at low cost.</p><p><strong>c. Step function integration with Amazon Bedrock</strong></p><p>The new Step Functions optimized integrations with Amazon Bedrock allow you to orchestrate tasks to build generative AI applications using Amazon Bedrock. Now you don’t have to invoke AWS Bedrock API using AWS Lambda. Step Functions provides two new optimized API actions for Amazon Bedrock:</p><ul><li><strong>InvokeModel</strong> – This integration allows you to invoke a model and run the inferences with the input provided in the parameters. Use this API action to run inferences for text, image, and embedding models.</li><li><strong>CreateModelCustomizationJob</strong> – This integration creates a fine-tuning job to customize a base model. In the parameters, you specify the foundation model and the location of the training data. When the job is completed, your custom model is ready to be used. This is an asynchronous API, and this integration allows Step Functions to <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync">run a job</a> and wait for it to complete before proceeding to the next state. This means that the state machine execution will pause while the create model customization job is running and will resume automatically when the task is complete.</li></ul><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/aws/build-generative-ai-apps-using-aws-step-functions-and-amazon-bedrock/">https://aws.amazon.com/blogs/aws/build-generative-ai-apps-using-aws-step-functions-and-amazon-bedrock/</a></p><p><strong>d. Batch Inference in Amazon Bedrock</strong></p><p>You can now use Amazon Bedrock to process prompts in batch to get responses for model evaluation, experimentation, and offline processing. Using batch API makes it more efficient to run inference with foundation models (FMs). It also allows you to aggregate responses and analyze them in batches.</p><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-bedrock-batch-inference/">https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-bedrock-batch-inference/</a></p><h4>4. Improved interactive experience in SageMaker Studio</h4><p>Amazon SageMaker Studio is a unified integrated development environment (IDE) for building, training, deploying, and managing machine learning (ML) models. It provides a comprehensive suite of tools that simplify the entire ML workflow, enabling data scientists and ML practitioners to work efficiently and collaboratively.</p><p><strong>a. Launch IDEs in SageMaker Studio</strong></p><p>SageMaker Studio is now a multi-tenant web application from where users can not only launch JupyterLab, but also have the option to launch Visual Studio Code open-source (<a href="https://github.com/coder/code-server">Code-OSS</a>), RStudio, and Canvas as managed applications. The SageMaker Studio UI enables you to access and discover SageMaker resources and ML tooling such as Jobs, Endpoints, and Pipelines in a consistent manner, regardless of your IDE of choice.</p><p>You can select storage and compute of your choice with Code Editor. Code Editor allows you to take advantage of the SageMaker tooling and Amazon Toolkit, as well as integration with <a href="https://docs.aws.amazon.com/emr/?icmpid=docs_homepage_analytics">Amazon EMR</a>, <a href="https://docs.aws.amazon.com/codewhisperer/?icmpid=docs_homepage_devtools">Amazon CodeWhisperer</a>, GitHub, and the ability to customize the environment with custom images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*w_0Go23sW-JFzBQa770ysA.png" /></figure><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/machine-learning/experience-the-new-and-improved-amazon-sagemaker-studio/">https://aws.amazon.com/blogs/machine-learning/experience-the-new-and-improved-amazon-sagemaker-studio/</a></p><p><strong>4. Interactively deploy a trained or foundational models (FMs)</strong></p><p>With the new interactive experience, there is significant enhancements and a simplification of parts of the existing ML workflow from Amazon SageMaker. Specifically, within Training and Hosting there’s a much more intuitive UI-driven experience to create new jobs and endpoints while also providing metric tracking and monitoring interfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g4idrW8L2rGLeOLDjVpo4Q.png" /><figcaption><strong>Source: AWS ML blog</strong></figcaption></figure><p><strong>6. Launch fully managed notebooks in JupyterLab</strong></p><p>You can now launch fully managed JupyterLab in seconds with pre-configured <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-sagemaker-distribution-code-editor/">SageMaker Distribution</a>, a pre-built docker image with mutually compatible popular ML libraries, including deep learning frameworks such as PyTorch, TensorFlow and Keras; popular python packages such as numpy, scikit-learn and pandas. You now have access to the latest fully-featured JupyterLab 4 version and generative AI-powered coding companions, such as Amazon Code Whisperer, to quickly author, debug, explain, and test code. You can scale your compute resources up or down with the broadest selection of compute and easily persist your packages across instance changes by quickly creating custom conda environments. Further, you can also bring your custom built images to power your environment with customized JupyterLab and ML libraries.</p><p><strong>Launch announcement </strong>— <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-sagemaker-studio-fully-managed-notebooks-jupyterlab/">https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-sagemaker-studio-fully-managed-notebooks-jupyterlab/</a></p><p><strong>6. Use your own Amazon EFS volume to JupyterLab and CodeEditor</strong></p><p>You can now make pre-existing EFS volumes available to multiple users in SageMaker within their IDEs to allow them to access common datasets on a filesystem without requiring data movement thus saving time, effort, and cost. With this, you can also share notebooks, code and data with your colleagues to boost productivity and collaborate faster on your ML workflows. Further, you can access the same EFS volume across different steps of ML workflow such as model building and training enabling you to iterate and experiment quickly.</p><p><strong>Launch announcement </strong>— <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-eds-volume-jupyterlab-codeeditor-amazon-sagemaker-studio/">https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-eds-volume-jupyterlab-codeeditor-amazon-sagemaker-studio/</a></p><h3>2. Enabling customization of the GenAI models</h3><p><strong>Amazon is now at the forefront of providing various open source and proprietary foundation models (FMs) using various AWS offerings like AWS Bedrock, SageMaker Canvas, and SageMaker Jumpstart. It sets them apart and give them edge over their competitors who only offer their proprietary models. The array of foundational models offered by AWS Bedrock presents customers with a varied selection, enabling flexibility and empowering them to choose solutions that best align with their specific needs.</strong></p><p><strong>While FMs offer tremendous potential, they’re not a one-size-fits-all solution. Recognizing this, a key theme from the recent AWS re:Invent event focused on empowering users to tailor FMs to their specific needs. This aligns with a broader industry trend towards improving and building upon FMs through techniques like fine-tuning, Retrieval Augmented Generation (RAGs), and Agents. Here are the top announcements focusing on model customization and augmentation from ReInvent —</strong></p><h4>1. Expansion of fine-tuning for more models with Amazon Bedrock</h4><p>Fine tuning is now available for Cohere Command, Meta Llama 2, Amazon <a href="https://aws.amazon.com/bedrock/titan/">Titan Text</a> (Lite and Express), <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-titan-multimodal-embeddings-model-bedrock/">Amazon Titan Multimodal Embeddings</a>, and in preview for <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-titan-image-generator-model-bedrock-preview/">Amazon Titan Image Generato</a>r. Fine-tuning of Claude is coming soon. Amazon Bedrock “incrementally trains” (augments the copied model with the new information) on the labeled examplesthat you store in Amazon S3, and the result is a private, more accurate fine-tuned model that delivers more relevant, customized responses.</p><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/aws/customize-models-in-amazon-bedrock-with-your-own-data-using-fine-tuning-and-continued-pre-training/">https://aws.amazon.com/blogs/aws/customize-models-in-amazon-bedrock-with-your-own-data-using-fine-tuning-and-continued-pre-training/</a></p><h4>2. Augmentation of foundational models using RAGs and knowledge bases in Amazon Bedrock</h4><p>Retrieval Augmented Generation (RAG) can augment FMs with additional information, including company-specific data, without continuously retraining your model. Continuously retraining your model is not only compute-intensive and expensive, but as soon as you’ve retrained the model, your company might have already generated new data, and your model has stale information. RAG addresses this issue by providing your model access to additional external data at runtime. Relevant data is then added to the prompt to help improve both the relevance and the accuracy of completions. This data can come from a number of data sources, such as document stores or databases.</p><p><a href="https://aws.amazon.com/bedrock/knowledge-bases/">Knowledge Bases</a> is a new feature available on Bedrock that securely connects models to your proprietary data sources to supplement your prompts with more information so your applications deliver more relevant, contextual, and accurate responses is now generally available with an API that performs the entire RAG workflow from fetching text needed to augment a prompt, to sending the prompt to the model, to returning the response. Knowledge Bases supports databases with vector capabilities that store numerical representations of your data (embeddings) that models use to access this data for RAG, including Amazon OpenSearch Service, and other popular databases like Pinecone and Redis Enterprise Cloud (Amazon Aurora and MongoDB vector support coming soon).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wrjPLEOE_ialIZki5ZRJGQ.png" /><figcaption><strong>Source: AWS ML blog</strong></figcaption></figure><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/aws/knowledge-bases-now-delivers-fully-managed-rag-experience-in-amazon-bedrock/">https://aws.amazon.com/blogs/aws/knowledge-bases-now-delivers-fully-managed-rag-experience-in-amazon-bedrock/</a></p><h4>3. Enable advanced reasoning for LLMs using Amazon Bedrock</h4><p>Agents for LLMs helps you accelerate generative artificial intelligence (AI) application development by orchestrating multi-step tasks. Agents uses the reasoning capability of foundation models (FMs) to break down user-requested tasks into multiple steps. They use the developer-provided instruction to create an orchestration plan and then carry out the plan by invoking company APIs and accessing knowledge bases using Retrieval Augmented Generation (RAG) to provide a final response to the end user.</p><p>AWS announced the general availability of Agents for AWS Bedrock, a new capability for developers to create fully managed agents in a few clicks. Agents for Amazon Bedrock accelerate the delivery of generative AI applications that can manage and perform tasks by making API calls to your company systems. Agents extend FMs to understand user requests, break down complex tasks into multiple steps, carry on a conversation to collect additional information, and take actions to fulfill the request. Agents for Amazon Bedrock automate the prompt engineering and orchestration of user-requested tasks. Once configured, an agent automatically builds the prompt and securely augments it with your company-specific information to provide responses back to the user in natural language. The agent is able to figure out the actions required to automatically process user-requested tasks. It breaks the task into multiple steps, orchestrates a sequence of API calls and data lookups, and maintains memory to complete the action for the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*NmFwhKVjGmkYxADRCR02wA.png" /><figcaption><strong>Source: AWS ML blog</strong></figcaption></figure><p>With fully managed agents, you don’t have to worry about provisioning or managing infrastructure. You’ll have seamless support for monitoring, encryption, user permissions, and API invocation management without writing custom code. As a developer, you can use the Bedrock console or SDK to upload the API schema. As a developer, you can use the new trace capability to follow the reasoning that’s used as the plan is carried out. You can view the intermediate steps in the orchestration process and use this information to troubleshoot issues. You can also access and modify the prompt that the agent automatically creates so you can further enhance the end-user experience. You can update this automatically created prompt (or prompt template) to help the FM enhance the orchestration and responses, giving you more control over the orchestration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-rIUiwV6gDN92GExD_8sw.png" /><figcaption><strong>Source: AWS ML blog</strong></figcaption></figure><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/aws/agents-for-amazon-bedrock-is-now-available-with-improved-control-of-orchestration-and-visibility-into-reasoning/">https://aws.amazon.com/blogs/aws/agents-for-amazon-bedrock-is-now-available-with-improved-control-of-orchestration-and-visibility-into-reasoning/</a></p><p><strong>4. Continued training in AWS Bedrock</strong></p><p>Creating a continued Pre-training model allows you to train a model with new unlabeled data relevant to a specific domain. Use continued pre-training to teach a model new domain knowledge that’s not already present in the base models. Continued pre-training in Bedrock helps address out-of-domain learning challenges by exposing models to new, diverse data, beyond their original training. With continued pre-training, you can expand the model’s understanding to include the language used in your domain and improve the model’s overall competency for your business.</p><p><em>Continued-Pretraining of a model is only supported by the Titan Text Express model.</em></p><p><strong>Launch announcement</strong> — <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/continued-pre-training-amazon-bedrock-preview/">https://aws.amazon.com/about-aws/whats-new/2023/11/continued-pre-training-amazon-bedrock-preview/</a></p><p><strong>5. Amazon CodeWhisperer customization capability</strong></p><p>Amazon CodeWhisperer customization capability enables organizations to customize CodeWhisperer to generate specific code recommendations from private code repositories. With this feature, developers who are part of <a href="https://docs.aws.amazon.com/codewhisperer/latest/userguide/whisper-setup-prof-devs.html">Amazon CodeWhisperer Professional</a> tier can now receive real-time code recommendations that include their internal libraries, APIs, packages, classes, and methods. Amazon CodeWhisperer securely leverages a customer’s internal code base to provide more relevant and useful code recommendations. With this capability, CodeWhisperer is an expert on <em>your</em> code and provides recommendations that are more relevant to save even more time. AWS is the only major cloud provider that offers a capability like this to everyone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ffScp7MVT36pPF2m-kmQaw.png" /><figcaption><strong>Source: ML blog post</strong></figcaption></figure><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/codewhisperer/customize/">https://aws.amazon.com/codewhisperer/customize/</a></p><h3>3. Integrating generative AI in major AWS offerings to improve productivity</h3><p><strong>Generative AI simplifies and personalizes user interactions, automates repetitive tasks, freeing up human resources for higher-level tasks. With the rapid expansion of GenAI, we’ve seen </strong><a href="https://blogs.microsoft.com/blog/2023/03/16/introducing-microsoft-365-copilot-your-copilot-for-work/"><strong>CoPilot</strong></a><strong> being integrated Microsoft’s suite of products including Windows, Office, Teams, etc. and similarly Google is integrating </strong><a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwiUqoCQ5IuDAxVeTWwGHax7COMQFnoECAwQAQ&amp;url=https%3A%2F%2Fblog.google%2Fproducts%2Fbard%2Fgoogle-bard-new-features-update-sept-2023%2F&amp;usg=AOvVaw1Z4JpT4LJ8TtjV_c5ql4fT&amp;opi=89978449"><strong>Bard/Gemini</strong></a><strong> into it’s range of products like Gmail, Search and Docs. Amazon has previously launched AWS CodeWhisperer as a GenAI coding companion to accelerate the software development by optimizing code quality, improving performance, and ensuring their software meets security/compliance requirements. This year at ReInvent, AWS launched a new product Amazon Q that is a GenAI product that integrates with major AWS services, and also made improvements to AWS CodeWhisperer.</strong></p><h4>1. Amazon Q integration with AWS ecosystem</h4><p>Amazon Q is a generative AI–powered assistant that can answer questions, provide summaries, generate content, and complete tasks based on data and information in your enterprise systems. You can use Amazon Q to get started building applications on AWS, research best practices, resolve errors, and get assistance in coding new features for your applications and is designed to help you at each stage of development with a new experience for building applications on AWS. Here is a list of services where Amazon Q is integrated to help the developers and architects become more productive and efficient —</p><p><strong>a. Amazon Q in AWS</strong></p><p>Amazon Q has a chat interface in the AWS Management Console and documentation, your IDE (via CodeWhisperer), and your team chat rooms on Slack or other chat apps. Amazon Q can help you explore new AWS capabilities, get started faster, learn unfamiliar technologies, architect solutions, troubleshoot, upgrade, and much more — it’s an expert in AWS well-architected patterns, best practices, documentation, and solutions implementations.</p><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/aws/amazon-q-brings-generative-ai-powered-assistance-to-it-pros-and-developers-preview/">https://aws.amazon.com/blogs/aws/amazon-q-brings-generative-ai-powered-assistance-to-it-pros-and-developers-preview/</a></p><p>b. <strong>Amazon Q in QuickSight</strong> Business users can now generate compelling sharable stories examining their data, see executive summaries of dashboards surfacing key insights from data in seconds, and confidently answer questions of data not answered by dashboards and reports with a reimagined Q&amp;A experience. Stories is a new and visually compelling way to present and share insights. Stories can automatically be generated in minutes using natural language prompts, customized using point-and-click options, and shared securely with others. Amazon Q can generate executive summaries and helps understand key highlights in your dashboard. It’s Data Q&amp;A capability provides a new and easy-to-use natural-language Q&amp;A experience to help you get answers for questions beyond what is available in existing dashboards and reports.​​</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DH0lkjalxB76UOv8rB0Nkw.png" /><figcaption><strong>Source: ML blog post</strong></figcaption></figure><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/aws/new-amazon-q-in-quicksight-uses-generative-ai-assistance-for-quicker-easier-data-insights-preview/">https://aws.amazon.com/blogs/aws/new-amazon-q-in-quicksight-uses-generative-ai-assistance-for-quicker-easier-data-insights-preview/</a></p><p><strong>c. Amazon Q in Redshift </strong>Instead of manually crafting complex SQL statements, <a href="https://aws.amazon.com/redshift/query-editor-v2/">Amazon Redshift Query Editor</a>, a web-based SQL editor let’s analysts describe their desired results in natural language. Analysts can write SQL queries significantly faster, saving valuable time and effort. The LLM’s ability to learn and adapt ensures accurate query generation based on specific data context. Behind the scenes, Amazon Q generative SQL uses a large language model (LLM) and <a href="https://aws.amazon.com/bedrock/">Amazon Bedrock</a> to generate the SQL query. It different techniques, such as <a href="https://aws.amazon.com/what-is/prompt-engineering/">prompt engineering</a> and <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-foundation-models-customize-rag.html">Retrieval Augmented Generation (RAG)</a>, to query the model based on your context: the database you’re connected to, the schema you’re working on, your query history, and optionally the query history of other users connected to the same endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jErERJrTFag_POqRoLEdyg.png" /><figcaption><strong>Source: ML blog post</strong></figcaption></figure><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/aws/amazon-redshift-adds-new-ai-capabilities-to-boost-efficiency-and-productivity/">https://aws.amazon.com/blogs/aws/amazon-redshift-adds-new-ai-capabilities-to-boost-efficiency-and-productivity/</a></p><p><strong>d. Amazon Q in Amazon CodeCatalyst </strong>allows developers to assign a CodeCatalyst issue to Amazon Q, and Q performs the heavy lifting of converting a human prompt to an actionable plan, then completes code changes and a pull request that is assigned to the requester. Q will then monitor any associated workflows and attempt to correct any issues. The user can preview code changes and merge the pull request. Development teams can utilize this new capability as an end-to-end, streamlined experience within Amazon CodeCatalyst, without having to enter the IDE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*is8e2dXg90Nmn_GyN0LleA.png" /><figcaption><strong>Source: ML blog post</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NmicRa9xWc1TozIH1L5hBQ.png" /><figcaption><strong>Source: ML blog post</strong></figcaption></figure><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/aws/improve-developer-productivity-with-generative-ai-powered-amazon-q-in-amazon-codecatalyst-preview/">https://aws.amazon.com/blogs/aws/improve-developer-productivity-with-generative-ai-powered-amazon-q-in-amazon-codecatalyst-preview/</a></p><p><strong>e. Amazon Q to troubleshoot and solve errors in the console </strong>Amazon Q can also help you to solve errors for various AWS services directly in the console. With Amazon Q proposed solutions, you can avoid slow manual log checks or research. Let’s say that you have an <a href="https://aws.amazon.com/lambda">AWS Lambda</a> function that tries to interact with an <a href="https://aws.amazon.com/dynamodb">Amazon DynamoDB</a> table. But, for an unknown reason (yet), it fails to run. Now, with Amazon Q, you can troubleshoot and resolve this issue faster by selecting <strong>Troubleshoot with Amazon Q</strong>.</p><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/aws/amazon-q-brings-generative-ai-powered-assistance-to-it-pros-and-developers-preview/">https://aws.amazon.com/blogs/aws/amazon-q-brings-generative-ai-powered-assistance-to-it-pros-and-developers-preview/</a></p><p><strong>f. Amazon Q with network troubleshooting </strong>allows you to ask questions about your network in plain English. For example, you can ask questions like, “Why can’t my application communicate with my database?” or “Do I have instances that can be accessed from the internet?”<br>Amazon Q then uses large language models (LLMs) to understand the intent behind your questions. It looks at your current network configuration and metadata to infer context. For example, to answer a question like “why can’t my application reach the internet?”, it would look for an instance tagged as “web server” and the associated routing configuration. Amazon Q translates the natural language question and works with Reachability Analyzer to investigate the issue and provide a detailed answer with information on the underlying issue or how to troubleshoot further. More details on the Amazon Q network troubleshooting capabilities, features and benefits can be found in our <a href="https://docs.aws.amazon.com/vpc/latest/reachability/amazon-q-network-troubleshooting.html">documentation</a>.</p><p><strong>Blog post </strong>— <a href="https://docs.aws.amazon.com/vpc/latest/reachability/amazon-q-network-troubleshooting.html">https://docs.aws.amazon.com/vpc/latest/reachability/amazon-q-network-troubleshooting.html</a></p><p><strong>g. Amazon Q for Amazon EC2 instances </strong>Amazon Q uses machine learning to help customers take quick and cost-effective decisions for their compute instance type before building their workloads. Amazon Q generates personalized EC2 instance suggestions for customers using the AWS Management Console or AWS documentation site. Its natural language interface provides an easy way for customers to communicate their requirements and get the best-matched instances.</p><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-q-optimal-ec2-instance-selection-workload/">https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-q-optimal-ec2-instance-selection-workload/</a></p><h4>2. CodeWhisperer now has more integrations</h4><p><strong>a. Amazon CodeWhisperer for command line<br></strong>Amazon CodeWhisperer for command line is a new set of capabilities and integrations for AI-powered productivity tool, Amazon CodeWhisperer, that makes software developers more productive in the command line. CodeWhisperer for command line modernizes the command line with features such personalized code completions, inline documentation, and AI natural-language-to-code translation. You don’t need to change the tools you use to start benefiting from CodeWhisperer for command line: it integrates directly with your existing tools, such as iTerm2 or the VS Code embedded terminal.</p><p>Blog post — <a href="https://docs.aws.amazon.com/codewhisperer/latest/userguide/command-line.html">https://docs.aws.amazon.com/codewhisperer/latest/userguide/command-line.html</a></p><p><strong>b. Amazon CodeWhisperer in Amazon EMR Studio<br></strong>You can use <a href="https://aws.amazon.com/codewhisperer/">Amazon CodeWhisperer</a> with no additional charge to generate real-time code suggestions in Amazon EMR Studio notebooks. CodeWhisperer can generate code suggestions ranging from snippets to full functions in real time based on your prompts and existing code.</p><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/devops/introducing-amazon-codewhisperer-for-command-line/">https://aws.amazon.com/blogs/devops/introducing-amazon-codewhisperer-for-command-line/</a></p><p><strong>c. AI-powered code remediatio</strong>n<br>Since its launch, Amazon CodeWhisperer has identified hard-to-find security vulnerabilities with built-in security scans. It now provides generative AI-powered code suggestions to help remediate identified security and code quality issues. Built-in security scanning is designed to detect issues such as exposed credentials and log injection. Generative AI-powered code suggestions are designed to remediate the identified vulnerabilities, and are tailored to your application code so that you can quickly accept fixes with confidence. When a security scan is completed in CodeWhisperer, you are presented with code suggestions that you can simply accept to close the identified vulnerabilities quickly.</p><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/security/use-codewhisperer-to-identify-issues-and-use-suggestions-to-improve-code-security-in-your-ide/">https://aws.amazon.com/blogs/security/use-codewhisperer-to-identify-issues-and-use-suggestions-to-improve-code-security-in-your-ide/</a></p><p><strong>d. Infrastructure as code (IaC)<br></strong>Amazon CodeWhisperer announces support for IaC, now encompassing AWS CloudFormation (YAML, JSON), AWS CDK (Typescript, Python), and HashiCorp Terraform (HCL). This update enhances the efficiency of IaC script development, allowing developers and DevOps teams to write infrastructure code seamlessly. With support for multiple IaC languages, CodeWhisperer promotes collaboration and consistency across diverse teams. This marks a significant advancement in cloud infrastructure development, offering a more streamlined and productive coding experience for users.</p><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/aws/amazon-codewhisperer-offers-new-ai-powered-code-remediation-iac-support-and-integration-with-visual-studio/">https://aws.amazon.com/blogs/aws/amazon-codewhisperer-offers-new-ai-powered-code-remediation-iac-support-and-integration-with-visual-studio/</a></p><h4>3. Other services using Generative AI</h4><p><strong>a. Amazon Cloudwatch now support natural language to query logs and metrics</strong></p><p>To make it easy to interact with your operational data, <a href="https://aws.amazon.com/cloudwatch/">Amazon CloudWatch</a> is introducing today natural language query generation for Logs and Metrics Insights. With this capability, powered by <a href="https://aws.amazon.com/generative-ai/">generative artificial intelligence (AI)</a>, you can describe in English the insights you are looking for, and a Logs or Metrics Insights query will be automatically generated.</p><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-cloudwatch-ai-powered-natural-language-query-generation-preview/">https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-cloudwatch-ai-powered-natural-language-query-generation-preview/</a></p><p><strong>b. Use LLMs in Amazon Redshift</strong></p><p>Amazon Redshift ML exclusively supported BYOMs that accepted text or CSV as the data input and output format. Now, it has added support for the SUPER data type for both input and output. With this support, you can use LLMs in Amazon SageMaker JumpStart which offers numerous proprietary and publicly available foundation models from various model providers.</p><p>One of the use cases where you can use LLMs in Redshift ML is extracting the user sentiments in the table and augmenting the table.</p><p>Here is a high level architecture of how it’s accomplished —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*iageslx7rM0P_Quj_rYpkA.jpeg" /></figure><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/big-data/large-language-models-for-sentiment-analysis-with-amazon-redshift-ml-preview/">https://aws.amazon.com/blogs/big-data/large-language-models-for-sentiment-analysis-with-amazon-redshift-ml-preview/</a></p><h3>4. Focus on model explanability and responsible AI</h3><p><strong>As artificial intelligence (AI) becomes increasingly integrated into our lives, the need for responsible AI practices rises along with it. This means ensuring that AI systems are developed and deployed ethically, fairly, and transparently. LLMs can sometimes generate outputs that are biased, harmful, or simply incorrect. One of the most critical aspects of responsible AI is explainable AI (XAI), which focuses on making the inner workings of AI models understandable to humans. When people understand how AI models reach their decisions, they are more likely to trust those decisions. XAI can help us to identify and mitigate bias in AI and LLM models, leading to fairer and more equitable outcomes. By understanding how AI models work, we can better debug them and improve their performance. This is essential for ensuring that AI models are reliable and effective.</strong></p><p>Detecting and managing these risks, as prescribed by evolving guidelines and regulations, such as <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjm4Y2jzo2DAxUQ6KACHRHTANAQFnoECBEQAQ&amp;url=https%3A%2F%2Fwww.iso.org%2Fstandard%2F81230.html&amp;usg=AOvVaw3HOHlMW0PZVrfQyhnZtKBs&amp;opi=89978449">ISO 42001</a> and <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwiK472Czo2DAxX--DgGHTENDSkQFnoECCoQAQ&amp;url=https%3A%2F%2Fwww.europarl.europa.eu%2Fnews%2Fen%2Fheadlines%2Fsociety%2F20230601STO93804%2Feu-ai-act-first-regulation-on-artificial-intelligence&amp;usg=AOvVaw3eB3aAiRwZiFoZOdPca5ie&amp;opi=89978449">EU AI Act</a>, is challenging. Customers have to leave their development environment to use academic tools and benchmarking sites, which require highly-specialized knowledge. The sheer number of metrics make it hard to filter down to ones that are truly relevant for their use-cases. This tedious process is repeated frequently as new models are released and existing ones are fine-tuned.</p><p>Amazon made the following major announcements during ReInvent that demonstrates Amazon’s commitment in building responsible AI —</p><h4>1. Amazon SageMaker Clarify provides evaluation for LLMs</h4><p><a href="https://aws.amazon.com/sagemaker/clarify/">Sagemaker Clarify</a> now provides AWS customers with foundation model (FM) evaluations using <a href="https://github.com/aws/fmeval/tree/main">FMEval</a>, an open-source LLM evaluation library to evaluate and compare model quality and responsibility metrics for any LLM, in minutes. FMEval covers the following four different tasks, and five different evaluation dimensions as shown in the following table —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XzrMX-wQTrbS9w__LO_phQ.png" /><figcaption><strong>Source: AWS ML blog</strong></figcaption></figure><p>It helps customers evaluate, compare, and select the best FMs for their specific use case based on custom metrics, such as accuracy and safety, using either automatic or human evaluations. For subjective criteria or nuanced content requiring judgment, customers can easily set up human-based evaluation workflows with just a few clicks. These workflows leverage a customer’s in-house team, or use a managed workforce provided by AWS, to evaluate model responses. During human-based evaluations, customers define use case-specific metrics (e.g., relevance, style, and brand voice).</p><p><strong>Blog Post</strong> — <a href="https://aws.amazon.com/blogs/machine-learning/evaluate-large-language-models-for-quality-and-responsibility/">https://aws.amazon.com/blogs/machine-learning/evaluate-large-language-models-for-quality-and-responsibility/</a></p><h4>2. Amazon Bedrock enables model evaluation</h4><p>It offers a choice of automatic evaluation and human evaluation. You can use automatic evaluation with predefined metrics such as accuracy, robustness, and toxicity. For subjective or custom metrics, such as friendliness, style, and alignment to brand voice, you can set up human evaluation workflows with just a few clicks.</p><p>Model evaluations are critical at all stages of development. As a developer, you now have evaluation tools available for building generative artificial intelligence (AI) applications. Similar to SageMaker clarify, Bedrock helps users to compare accuracy and safety of output, using either automatic or human evaluations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l4KOCszeiBUTCxGYk35V4w.png" /><figcaption><strong>Source: AWS ML blog</strong></figcaption></figure><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/aws/evaluate-compare-and-select-the-best-foundation-models-for-your-use-case-in-amazon-bedrock-preview/">https://aws.amazon.com/blogs/aws/evaluate-compare-and-select-the-best-foundation-models-for-your-use-case-in-amazon-bedrock-preview/</a></p><h4>3. Amazon Bedrock enables guardrails</h4><p>Guardrails drive consistency in how FMs on Amazon Bedrock respond to undesirable and harmful content within applications. Customers can apply guardrails to large language models on Amazon Bedrock as well as to fine-tuned models and in combination with <a href="https://aws.amazon.com/bedrock/agents/">Agents for Amazon Bedrock</a>. Guardrails lets you specify topics to be avoided, and the service automatically detects and prevents queries and responses that fall into restricted categories. Customers can also configure content filter thresholds across categories including hate speech, insults, sexualized language, and violence to filter out harmful content to the desired level.</p><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/aws/guardrails-for-amazon-bedrock-helps-implement-safeguards-customized-to-your-use-cases-and-responsible-ai-policies-preview/">https://aws.amazon.com/blogs/aws/guardrails-for-amazon-bedrock-helps-implement-safeguards-customized-to-your-use-cases-and-responsible-ai-policies-preview/</a></p><h4>4. Watermarking in Amazon Titan-generated images</h4><p>All <a href="https://aws.amazon.com/bedrock/titan/">Amazon Titan</a>-generated images contain an invisible watermark by default, which is designed to help reduce the spread of disinformation by providing a discreet mechanism to identify AI-generated images. AWS is among the first model providers to widely release built-in invisible watermarks that are integrated into image outputs and are designed to be resistant to alterations.</p><p><strong>Launch announcement </strong>— <a href="https://aws.amazon.com/codewhisperer/customize/">https://aws.amazon.com/codewhisperer/customize/</a></p><h4>5. Extending use cases for AI Service Cards</h4><p><a href="https://aws.amazon.com/blogs/machine-learning/introducing-aws-ai-service-cards-a-new-resource-to-enhance-transparency-and-advance-responsible-ai/">AI Service Cards </a>are a form of responsible AI documentation that provide customers with a single place to find information on the intended use cases and limitations, responsible AI design choices, and deployment and performance optimization best practices for our AI services. They are part of a comprehensive development process we undertake to build our services in a responsible way that addresses fairness, explainability, veracity and robustness, governance, transparency, privacy and security, safety, and controllability.</p><p>At re:Invent this year AWS announced <a href="https://aws.amazon.com/machine-learning/responsible-machine-learning/titan-text/">new AI Service Card for Amazon Titan Text</a> to increase transparency in foundation models. It also launched four new AI Service Cards including: <a href="https://aws.amazon.com/machine-learning/responsible-machine-learning/comprehend-detectpii/">Amazon Comprehend Detect PII</a>, <a href="https://aws.amazon.com/machine-learning/responsible-machine-learning/transcribe-toxicity-detection/">Amazon Transcribe Toxicity Detection</a>, <a href="https://aws.amazon.com/machine-learning/responsible-machine-learning/rekognition-face-liveness">Amazon Rekognition Face Liveness</a>, and <a href="https://aws.amazon.com/machine-learning/responsible-machine-learning/aws-healthscribe">AWS HealthScribe</a>. You can explore each of these cards on the <a href="https://aws.amazon.com/machine-learning/responsible-ai/resources/">AWS website.</a> As generative AI continues to grow and evolve, transparency on how technology is developed, tested, and used will be a vital component to earn the trust of organizations and their customers alike.</p><p><strong>Launch announcement </strong>— <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/aws-ai-service-cards/">https://aws.amazon.com/about-aws/whats-new/2023/11/aws-ai-service-cards/</a></p><h3>Conclusion</h3><p><strong>Going through all the announcements at Re:Invent, I believe that AWS remains the frontrunner in the AI/ML/Generative AI revolution.</strong></p><p>AWS leads it’s cloud competitors in terms of building custom hardware specifically designed for large-scale machine learning tasks, offering an unparalleled edge in performance and efficiency. It is also partnering with industry leaders like NVIDIA, Intel, and ARM ensures access to cutting-edge technologies and optimized hardware solutions.</p><p>SageMaker is still one of the most widely used machine learning suite of tools and libraries empowering developers to build and deploy ML models seamlessly. AWS have been investing heavily into SageMaker to improve developer productivity and model performance. Amazon’s commitment to open collaboration fuels continuous integration of groundbreaking AI advancements. Through partnerships with open source communities like <a href="https://aws.amazon.com/blogs/machine-learning/interactively-fine-tune-falcon-40b-and-other-llms-on-amazon-sagemaker-studio-notebooks-using-qlora/">Hugging Face</a> and <a href="https://aws.amazon.com/blogs/opensource/scaling-ai-and-machine-learning-workloads-with-ray-on-aws/">Ray Serve</a>, and industry leaders like NVIDIA (e.g., <a href="https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-sagemaker-large-model-inference-dlc-tensorrt-llm-support/">TensorRT</a>, <a href="https://aws.amazon.com/blogs/machine-learning/host-ml-models-on-amazon-sagemaker-using-triton-tensorrt-models/">Triton</a>), Amazon delivers the most powerful tools and technologies for building and optimizing next-generation AI models. Amazon is constantly innovating to make the model training and inference faster, cheaper, and more efficient.</p><p>AWS prioritizes democratizing machine learning by offering low-code/no-code tools like Amazon Q, Sagemaker Canvas and Bedrock. These tools enable developer, architects, business users and executives to build LLM applications and customize them easily, increasing adoption and accessibility.</p><p>AWS is building the machine learning and generative AI stack from scratch keeping in mind the enterprise needs. It has made it simple to tailor the large language models by using pre-tuning, fine-tuning or RAGs enabled on different AWS services like Bedrock, SageMaker Canvas, CodeWhisperer, etc. Further, having access to various compute, data and storage services will make it easier for users to build these Agents quickly, and expedite the development of the sophisticated reasoning apps using LLMs. Finally, AWS also makes sure that the data is the proprietary enterprise data is fully secure.</p><p>AWS has built SOTA foundation models like Titan and is the only company working with other leaders in offering range of LLM models including Falcon, Claude, Llama, Stable Diffusion, etc. for different needs. AWS’s collaboration with open-source communities and other companies encourages innovation and development within the LLM space.</p><p>Generative AI capabilities are increasingly getting integrated into core AWS offerings, enhancing productivity and streamlining workflows. Integration with services like SageMaker Canvas empowers users to leverage generative AI without writing code.</p><p>Finally, AWS prioritizes responsible AI practices by building tools for explanability, model evaluation, and guardrails. Services like Bedrock, SageMaker Studio, and SageMaker Canvas emphasize security, fairness, and ethical considerations in AI development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdd8ce59b688" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next Level AI/ML: Exploring major themes from Re:Invent 2023 (Part -1)]]></title>
            <link>https://medium.com/@pisingh_/next-level-ai-ml-exploring-major-themes-from-re-invent-2023-part-1-a61f37a84511?source=rss-3857683691cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/a61f37a84511</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Harjinder Singh]]></dc:creator>
            <pubDate>Wed, 13 Dec 2023 23:03:40 GMT</pubDate>
            <atom:updated>2023-12-14T00:44:24.660Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Disclaimer:</strong> I work as a software engineer at Amazon but the following represents my individual perspectives and opinions, and does not constitute an official communication from Amazon.</blockquote><blockquote><strong>Disclaimer:</strong> Some snippets in the blog are directly picked from the AWS Blog and I’ve linked the blog posts in the relevant sections. Through this blog, my goal is to summarize and organize all the announcements and identify common trends in the growth of AIML offerings.</blockquote><p>AWS re:Invent is a landmark event that showcases how AWS is pioneering the future of cloud technology. This year, Machine Learning (ML) took center stage especially the announcements around Generative AI(GenAI). Re:Invent 2023 placed a significant emphasis on GenAI highlighting its increasing importance on how it can revolutionize how we develop in cloud and interact with the world around us. AWS CEO Adam Selipsky himself emphasized that GenAI development is still in its early stages, hinting at even more exciting advancements to come.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjqgrdK8jNT1kIulJxUP9g.png" /></figure><p>The rapid growth of ML and generative AI has led AWS to expand the current offerings of features and services within the already vast AWS ecosystem. The growth in machine learning and generative AI applications brings exciting possibilities, and AWS is paving the way by shaping their future and unlocking their potential across various industries.</p><p>I’ve been catching up on all the major AI/ML launch announcements and the sheer volume of information (50+ posts on <a href="https://aws.amazon.com/blogs/machine-learning/">AWS Machine Learning blog</a>!) is overwhelming, so I’ll try consolidating the key AI/ML announcements in one convenient location which can serve as guide for you to explore more. <strong>This blog also explores key themes that emerged from AWS Re:Invent 2023 AI/ML launches. This year at Re:Invent, the major themes were —</strong></p><ol><li>Continued innovation in AI/ML Computing Infrastructure</li><li>Enhancements in the model development and deployment features</li><li>Accelerating AI adoption with user-friendly visual and low-code tools</li><li>Enabling customization of the foundational models to fit specific needs and enabling security for Enterprise customers</li><li>Focusing on model explainability and responsible AI</li><li>Integrating generative AI in major AWS offerings to improve productivity</li></ol><p>There were a bunch of offerings in the AI/ML/Generative AI field, so I’ll break the blog into 2 parts — <a href="https://medium.com/@pisingh_/next-level-ai-ml-exploring-major-themes-from-re-invent-2023-part-1-a61f37a84511">part 1</a> and <a href="https://medium.com/@pisingh_/next-level-ai-ml-exploring-major-themes-from-re-invent-2023-part-2-fdd8ce59b688">part 2</a>. In the first part, I’ll cover the following topics —</p><ol><li><strong>Innovation in AI/ML Computing Infrastructure: </strong>AWS continues to lead the industry with its diverse range of compute options, unmatched scalability, and continual innovation. This includes pioneering hardware and software advancements like custom Graviton processors, Inferentia and Trainium chips specifically designed for AI/ML inference and training, and the Neuron SDK for streamlined model development and deployment.</li><li><strong>Enhancements in Model Development and Deployment:</strong> AWS unveiled a slew of features designed to elevate the developer experience for building, training, and monitoring ML models more efficiently. These include:</li></ol><ul><li><strong>SageMaker LMI DLCs:</strong> Offering state-of-the-art optimizations for LLMs, including TensorRT-LLM and efficient collective operations.</li><li><strong>New ModelBuilder class in the SageMaker Python SDK</strong>: Simplifies model deployment for beginners and experienced users alike.</li><li><strong>New SageMaker inference capability to reduce cost: </strong>Achieves cost savings by up to 50% through Inference Components.</li><li><strong>Support for Least Outstanding Request (LOR) routing strategy: </strong>Optimizes performance and efficiency for inference by directing requests to the most suitable instance.</li><li><strong>SageMaker Hyperpod for efficient distributed training: </strong>Speeds up training by up to 40% through automated processes and fault-tolerant infrastructure.</li><li><strong>Introducing Smart Sifting technique to accelerate training:</strong> Reduces training cost for deep learning models by up to 35% by filtering data.</li><li><strong>SageMaker Pipeline support for custom python code and notebooks as job steps: </strong>Allows developers to run notebooks as jobs and create multi-step ML workflows with ease.</li></ul><p>For more details, read on —</p><h3>1. Leading innovation in the AI/ML Computing Infrastructure</h3><p>AWS leads the computing infrastructure market with its <a href="https://aws.amazon.com/ec2/instance-types/">diverse range of compute options</a>, unmatched scalability, and continuous innovation. AWS has established itself as the undisputed leader in computing infrastructure through a combination of pioneering hardware and software innovations.</p><p>They were the first to introduce <a href="https://aws.amazon.com/blogs/aws/new-ec2-instance-type-the-cluster-gpu-instance/">cloud-based GPUs over a decade ago</a>, providing developers with unprecedented processing power for their compute requirement. This dedication to hardware innovation continues with the development of custom <a href="https://aws.amazon.com/ec2/graviton/">Graviton</a> processors, offering superior performance and energy efficiency specifically for cloud workloads. AWS has developed custom chips like <a href="https://aws.amazon.com/machine-learning/inferentia/">Inferentia</a> and <a href="https://aws.amazon.com/machine-learning/trainium/">Trainium</a>, specifically designed for AI/ML inference and training tasks, further solidifying their commitment to providing the most advanced hardware solutions for the needs for AI solutions.</p><p>On the software front, AWS focuses on optimizing resource utilization through lightweight container runtimes (<a href="https://firecracker-microvm.github.io/">Firecracker</a>), CLI client for building, running, and publishing Linux containers (<a href="https://github.com/runfinch/finch">Finch</a>), bare-metal hypervisor to run virtual machines on AWS Nitro System servers (<a href="https://aws.amazon.com/ec2/nitro/">Nitro Hypervisor</a>) and minimal Linux distributions (<a href="https://github.com/bottlerocket-os/bottlerocket">Bottlerocket</a>). Additionally, the <a href="https://github.com/aws-neuron/aws-neuron-sdk">Neuron SDK</a> simplifies deep learning model development and deployment, accelerating innovation in the AI/ML space. This holistic approach ensures unparalleled performance, efficiency, and agility for cloud developers, solidifying AWS’s reputation as the leading force in this rapidly evolving field.</p><p><strong>Continuing its commitment to revolutionize the AI/ML landscape, AWS has announced a series of groundbreaking advancements:</strong></p><h4>1. EC2 Capacity Blocks:</h4><ul><li>Offers the first and only consumption model in the industry, allowing customers to reserve up to 500 GPUs deployed in <a href="https://aws.amazon.com/ec2/ultraclusters/">EC2 UltraClusters</a> for short-duration ML workloads, particularly for generative AI.</li><li>This solution provides guaranteed access to highly sought-after GPU compute capacity, enabling seamless execution of demanding ML tasks.</li><li><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/aws/announcing-amazon-ec2-capacity-blocks-for-ml-to-reserve-gpu-capacity-for-your-machine-learning-workloads/">https://aws.amazon.com/blogs/aws/announcing-amazon-ec2-capacity-blocks-for-ml-to-reserve-gpu-capacity-for-your-machine-learning-workloads/</a></li></ul><h4>2. Graviton4 Processors:</h4><ul><li>Powering the new R8g instances, Graviton4 processors deliver superior price-performance compared to any existing memory-optimized instance.</li><li>96 Neoverse V2 cores, 2 MB of L2 cache per core, and 12 DDR5–5600 channels work together to make the Graviton4 up to 40% faster for databases, 30% faster for web applications, and 45% faster for large Java applications than the Graviton3</li><li><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/aws/join-the-preview-for-new-memory-optimized-aws-graviton4-powered-amazon-ec2-instances-r8g/">https://aws.amazon.com/blogs/aws/join-the-preview-for-new-memory-optimized-aws-graviton4-powered-amazon-ec2-instances-r8g/</a></li></ul><h4>3. AWS Inferentia Inf2:</h4><ul><li>Designed specifically for large-scale generative AI applications, Inf2 instances boast the lowest cost for inference in the cloud.</li><li>With up to four times higher throughput and ten times lower latency compared to Inf1, Inf2 empowers developers to efficiently run inference for models containing hundreds of billions of parameters.</li><li>Powered by up to 12 Inferentia2 chips, Inf2 are the only inference-optimized EC2 instances that have high-speed connectivity between accelerators so customers can run inference faster and more efficiently</li><li><a href="https://aws.amazon.com/ec2/instance-types/inf2/">https://aws.amazon.com/ec2/instance-types/inf2/</a></li></ul><h4>4. AWS Training Trn2:</h4><ul><li>Delivering even better price-performance for training models with hundreds of billions to trillions of parameters, Trn2 promises to revolutionize the training process.</li><li>This innovation offers up to four times faster training performance compared to the first generation, and when used in EC2 UltraClusters should deliver up to 65 exaflops of aggregate compute enabling the training of large language models in weeks instead of months</li><li><a href="https://press.aboutamazon.com/2023/11/aws-unveils-next-generation-aws-designed-chips">https://press.aboutamazon.com/2023/11/aws-unveils-next-generation-aws-designed-chips</a></li></ul><h4>5. Enhanced NVIDIA GPUs:</h4><ul><li>EC2 P5e: Featuring NVIDIA’s latest H200 GPUs, P5e instances offer a substantial boost in memory capacity and performance, ideal for developing, training, and inferring the largest LLMs.</li><li>EC2 G6e and G6: Providing broadly available options for training and inference of LLMs and general ML tasks with NVIDIA L40S and L4 GPUs respectively. These instances offer a range of functionalities catering to various needs, including natural language processing, image and video analysis, and graphics workloads.</li><li><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/machine-learning/introducing-three-new-nvidia-gpu-based-amazon-ec2-instances/">https://aws.amazon.com/blogs/machine-learning/introducing-three-new-nvidia-gpu-based-amazon-ec2-instances/</a></li></ul><h3>2. Improving model development and deployment with new Amazon SageMaker features</h3><p>SageMaker is a fully managed service that takes care of most of the heavy lifting in the ML lifecycle, so you can focus on building, training, and deploying your models without having to worry about the underlying infrastructure. SageMaker automates many of the steps involved in model training and deployment, such as data preparation, hyperparameter tuning, and model serving. This makes it easier and faster to get your models up and running in production. SageMaker also provides a wide range of tools and features to help you manage your models throughout their lifecycle. These include tools for monitoring and debugging your models, as well as tools for managing your model deployments.</p><p><strong>AWS unveiled a number of features to elevate the developer experience to optimize training, deployment, and monitoring of ML models and empowering developers to build solutions more efficiently —</strong></p><ol><li><a href="https://aws.amazon.com/blogs/machine-learning/boost-inference-performance-for-llms-with-new-amazon-sagemaker-containers/">SageMaker LMI DLCs: Unlocking New Levels of Performance for LLMs</a></li><li><a href="https://aws.amazon.com/blogs/machine-learning/package-and-deploy-classical-ml-and-llms-easily-with-amazon-sagemaker-part-1-pysdk-improvements/">New ModelBuilder class in the SageMaker Python SDK</a></li><li><a href="https://aws.amazon.com/blogs/machine-learning/reduce-model-deployment-costs-by-50-on-average-using-sagemakers-latest-features/">New Sagemaker inference capability to reduce cost</a></li><li><a href="https://aws.amazon.com/blogs/machine-learning/minimize-real-time-inference-latency-by-using-amazon-sagemaker-routing-strategies/">Support for Least Outstanding Request (LOR) routing strategy</a></li><li><a href="https://aws.amazon.com/blogs/aws/introducing-amazon-sagemaker-hyperpod-a-purpose-built-infrastructure-for-distributed-training-at-scale/">Sagemaker Hyperpod for efficient distributed training</a></li><li><a href="https://aws.amazon.com/blogs/machine-learning/accelerate-deep-learning-model-training-up-to-35-with-amazon-sagemaker-smart-sifting/">Introducing Smart Sifting technique to accelerate distributed training</a></li><li>Sagemaker Pipeline support for custom python code and notebooks as job steps</li><li>Tools for benchmarking and evolving models</li></ol><h4>1. SageMaker LMI DLCs: Unlocking New Levels of Performance for LLMs</h4><p><strong>SageMaker LMI now supports </strong><a href="https://github.com/NVIDIA/TensorRT-LLM"><strong>TensorRT-LLM</strong></a>, offering state-of-the-art optimizations like SmoothQuant, FP8, and continuous batching for LLMs when using NVIDIA GPUs. This translates into ultra-low latency experiences and significantly improved performance. Whether you have single- or multi-GPU deployments, TensorRT-LLM unlocks new possibilities for running LLMs with exceptional speed and efficiency. To use the TensorRT-LLM library, choose the TensorRT-LLM DLC from the available <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/large-model-inference-dlc.html">LMI DLCs</a> and set engine=MPI among other <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/large-model-inference-configuration.html">settings</a> such as option.model_id.</p><p><strong>Efficient inference collective operations</strong>: SageMaker now boasts a new collective operation specifically designed for P4D instance types. In a typical deployment of LLMs, model parameters are spread across multiple accelerators to accommodate the requirements of a large model that can’t fit on a single accelerator. This enhances inference speed by enabling each accelerator to carry out partial calculations in parallel. Afterwards, a collective operation is introduced to consolidate these partial results at the end of these processes, and redistribute them among the accelerators. This operation optimizes communication between GPUs, leading to lower latency and higher throughput compared to previous versions. This feature is embedded in the LMI DLCs, making it readily available without any additional configuration.</p><p><strong>Quantization support</strong>: SageMaker LMI DLCs now support cutting-edge quantization techniques, including:</p><ul><li><a href="https://huggingface.co/docs/text-generation-inference/conceptual/quantization">Pre-quantized models with GPTQ</a>: Run popular INT3 and INT4 models from Hugging Face with the smallest possible model weights.</li><li><a href="https://huggingface.co/papers/2306.00978">Activation-aware Weight Quantization (AWQ)</a>: Achieve faster inference speeds through efficient weight quantization.</li><li>Just-in-time quantization with <a href="https://github.com/mit-han-lab/smoothquant">SmoothQuant</a>: Reduce memory footprint and improve computational cost with minimal accuracy loss.</li></ul><p>With SmoothQuant, you can enjoy just-in-time conversion without additional steps, while GPTQ and AWQ models require dataset quantization before use. Additionally, pre-quantized GPTQ and AWQ models are readily available for your convenience.</p><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/machine-learning/boost-inference-performance-for-llms-with-new-amazon-sagemaker-containers/">https://aws.amazon.com/blogs/machine-learning/boost-inference-performance-for-llms-with-new-amazon-sagemaker-containers/</a></p><h4>2. New ModelBuilder class in the SageMaker Python SDK</h4><p>AWS has introduced the ModelBuilder class in the SageMaker Python SDK, simplifying the model deployment process for both beginners and experienced users. It provides the following benefits —</p><ul><li><strong>Unifies the deployment experience across frameworks</strong> — The new experience provides a consistent workflow for deploying models built using different frameworks like PyTorch, TensorFlow, and XGBoost. This simplifies the deployment process.</li><li><strong>Automates model deployment </strong>— Tasks like selecting appropriate containers, capturing dependencies, and handling serialization/deserialization are automated, reducing manual effort required for deployment.</li><li><strong>Provides a smooth transition from local to SageMaker hosted endpoint </strong>— With minimal code changes, models can be easily transitioned from local testing to deployment on a SageMaker endpoint. Live logs make debugging seamless.</li></ul><p>The following diagram shows how ModelBuilder works on a high-level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WW1hFxx3tDTQ1Yboe1PT6g.png" /><figcaption>Source: Amazon ML blogpost</figcaption></figure><p>ModelBuilder provides a build() function, which generates the artifacts according the model server, and a deploy() function to deploy locally or to a SageMaker endpoint.</p><pre># Create a model<br>model_xgboost = XGBClassifier()<br>model_xgboost.fit(X_train, y_train)<br>model_xgboost.save_model(model_dir + &quot;/my_model.xgb&quot;)<br><br># Create ModelBuilder object<br><br>## Local mode<br>model_xg_boost_builder_local = ModelBuilder(<br>    model=model,  <br>    schema_builder=SchemaBuilder(X_test, y_pred), <br>    role_arn=execution_role, <br>    mode=Mode.LOCAL_CONTAINER<br>)<br><br>## Server mode<br>model_llm_falocm_builder = ModelBuilder(<br>    model=&quot;huggingface-llm-falcon-7b-bf16&quot;,<br>    schema_builder=SchemaBuilder(sample_input, sample_output),<br>    role_arn=execution_role,<br>     model_server=ModelServer.TRITON, <br>    mode=Mode.SAGEMAKER_ENDPOINT<br>)<br><br><br># Build the model<br>xgb_local_builder = model_xg_boost_builder_local.build()<br>llm_server_model_buidler = model_llm_falocm_builder.build()<br><br># Deploy the model<br>predictor_local = xgb_local_builder.deploy(<br>   instance_type=&#39;ml.c5.xlarge&#39;,   <br>    initial_instance_count=1<br>)<br><br>predictor_server = llm_server_model_buidler.deploy()<br><br># Run prediciton<br>predictor_local.predict(X_test)</pre><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/machine-learning/package-and-deploy-classical-ml-and-llms-easily-with-amazon-sagemaker-part-1-pysdk-improvements/">https://aws.amazon.com/blogs/machine-learning/package-and-deploy-classical-ml-and-llms-easily-with-amazon-sagemaker-part-1-pysdk-improvements/</a></p><h4>3. New Sagemaker inference capability to reduce cost</h4><p>SageMaker introduces Inference <em>Components</em>, a new capability that optimizes inference performance and cost. This enables deploying multiple models to the same instance, sharing resources and reducing inference costs by an average of 50%. Additionally, intelligent routing based on available instances lowers latency by an average of 20%.</p><p>An inference component (IC) abstracts your ML model enabling you to -</p><ol><li>Assign CPUs, GPU, or AWS Neuron accelerators, and scaling policies per model.</li><li>Optimally place and pack models onto ML instances to maximize utilization, leading to cost savings.</li><li>Each model scales dynamically to meet your needs. SageMaker automatically adds and removes instances to maintain capacity and minimize idle time. You can even scale models down to zero to free up resources.</li></ol><p>The below diagram explains what constitutes an Inference Component (IC) and how SageMaker deploys multiple ICs dynamically across compute resources —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d8n_FzpLAFbTl950RERovQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R6nZ_HocwU18XGH6HudJVQ.png" /></figure><p>This can be set up easily with a simple method —</p><pre>## Create an Inference Component<br>sm_client.create_inference_component(<br>    InferenceComponentName=inference_component_name,<br>    EndpointName=endpoint_name,<br>    VariantName=variant_name,<br>    Specification={<br>        &quot;Container&quot;: {<br>            &quot;Image&quot;: inference_image_uri,<br>            &quot;ArtifactUrl&quot;: s3_code_artifact,<br>        },<br>        &quot;StartupParameters&quot;: {<br>            &quot;ModelDataDownloadTimeoutInSeconds&quot;: 300,<br>            &quot;ContainerStartupHealthCheckTimeoutInSeconds&quot;: 600,<br>        },<br>        &quot;ComputeResourceRequirements&quot;: {<br>            &quot;NumberOfAcceleratorDevicesRequired&quot;: 1, <br>            &quot;MinMemoryRequiredInMb&quot;: 1024<br>        }<br>    },<br>    RuntimeConfig={&quot;CopyCount&quot;: 1},<br>)<br><br>smr_client = boto3.client(&quot;sagemaker-runtime&quot;) <br>response_model = smr_client.invoke_endpoint( <br>    ## Define the Inference Component in the existing endpoint config<br>    InferenceComponentName=inference_component_name,<br>    EndpointName=endpoint_name, <br>    Body=payload, <br>    ContentType=&quot;application/json&quot;, <br>)</pre><p><strong>Blog post </strong>— <a href="https://aws.amazon.com/blogs/machine-learning/reduce-model-deployment-costs-by-50-on-average-using-sagemakers-latest-features/">https://aws.amazon.com/blogs/machine-learning/reduce-model-deployment-costs-by-50-on-average-using-sagemakers-latest-features/</a></p><h4>4. Support for Least Outstanding Request (LOR) routing strategy</h4><p>Previously, SageMaker endpoints used a random approach when distributing incoming requests among instances. Now, with the new Least Outstanding Requests (LOR) strategy, SageMaker actively analyzes the workload on each instance and its deployed models, ensuring that requests are directed to the most suitable one. This intelligent routing optimizes performance and efficiency, leading to better overall results for your ML applications.</p><pre>endpoint_config_response = sm_client.create_endpoint_config(<br>    EndpointConfigName=endpoint_config_name,<br>    ProductionVariants=[<br>        {<br>             &quot;VariantName&quot;: &quot;variant1&quot;,<br>             &quot;ModelName&quot;: model_name,<br>             &quot;InstanceType&quot;: &quot;instance_type&quot;,<br>             &quot;InitialInstanceCount&quot;: initial_instance_count,<br>    …..<br>             ## Define routing strategy in the endpoint config<br>             &quot;RoutingConfig&quot;: {<br>                   &#39;RoutingStrategy&#39;: &#39;LEAST_OUTSTANDING_REQUESTS&#39;<br>              }<br>        },<br>    ],<br>)</pre><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/machine-learning/minimize-real-time-inference-latency-by-using-amazon-sagemaker-routing-strategies/">https://aws.amazon.com/blogs/machine-learning/minimize-real-time-inference-latency-by-using-amazon-sagemaker-routing-strategies/</a></p><h4>5. Sagemaker HyperPod for efficient distributed training</h4><p>HyperPod automates more of the processes required for high-scale fault-tolerant distributed training<em> </em>(e.g., configuring distributed training libraries, scaling training workloads across thousands of accelerators, detecting and repairing faulty instances), speeding up training by as much as 40%.</p><p>HyperPod is pre-configured with <a href="https://aws.amazon.com/sagemaker/clarify/">Amazon SageMaker</a> distributed training libraries, including the <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/data-parallel.html">SageMaker data parallelism library (SMDDP)</a> and <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-parallel-core-features.html">SageMaker model parallelism library (SMP)</a>, to improve FM training performance by making it straightforward to split training data and models into smaller chunks and processing them in parallel across the cluster nodes, while fully utilizing the cluster’s compute and network infrastructure. SageMaker HyperPod integrates the <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjV4aiXioeDAxVWwTgGHXBnBswQFnoECAkQAQ&amp;url=https%3A%2F%2Fslurm.schedmd.com%2Fdocumentation.html&amp;usg=AOvVaw2hVGpbg7D4koIV_gqdGY5S&amp;opi=89978449">Slurm Workload Manager</a> for cluster and training job orchestration. SageMaker HyperPod also ensures customers can continue FM training uninterrupted by periodically saving checkpoints. When a hardware failure occurs during training, SageMaker HyperPod automatically detects the failure, repairs or replaces the faulty instance, and resumes the training from the last saved checkpoint, removing the need for customers to manually manage this process and helping them train for week or months in a distributed setting without disruption.</p><p>Blog post — <a href="https://aws.amazon.com/blogs/aws/introducing-amazon-sagemaker-hyperpod-a-purpose-built-infrastructure-for-distributed-training-at-scale/">https://aws.amazon.com/blogs/aws/introducing-amazon-sagemaker-hyperpod-a-purpose-built-infrastructure-for-distributed-training-at-scale/</a></p><h4>6. Introducing Smart Sifting technique to accelerate training</h4><p>SageMaker introduced a new feature called smart sifting that can reduce the cost of training deep learning models by up to 35%. Smart sifting is a new data efficiency technique that actively analyzes your data samples during training and filters out the samples that are less informative to the model. By training on a smaller subset of data with only the samples that contribute the most to model convergence, total training and cost decreases with minimal or no impact to accuracy. Additionally, because the feature operates online during model training, smart sifting doesn’t require changes to your upstream data or downstream training pipeline.</p><p>Smart sifting uses your model and a user-specified loss function to do an evaluative forward pass of each data sample as it’s loaded. Samples that are high-loss will materially impact model training and therefore are used in training; data samples that are relatively low-loss are set aside and excluded from training.</p><p>Below diagram explains the architecture of how this is implemented —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3HDUPm-rEoYVgDJYLPE7lA.png" /><figcaption>Source: Amazon ML blog post</figcaption></figure><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/machine-learning/accelerate-deep-learning-model-training-up-to-35-with-amazon-sagemaker-smart-sifting/">https://aws.amazon.com/blogs/machine-learning/accelerate-deep-learning-model-training-up-to-35-with-amazon-sagemaker-smart-sifting/</a></p><h4>7. Sagemaker Pipeline supports custom python code and notebooks as job steps</h4><ol><li><strong>Run notebook as a job</strong> — <a href="https://aws.amazon.com/sagemaker/pipelines/">Amazon Sagemaker pipeline</a> the ML workflow orchestration feature of <a href="https://aws.amazon.com/sagemaker/">Amazon SageMaker</a> now supports API to run notebooks as a job. Furthermore, you can create a multi-step ML workflow with multiple dependent notebooks using these APIs. You can easily run notebooks as jobs with just a few lines of code using the <a href="https://sagemaker.readthedocs.io/en/stable/workflows/pipelines/index.html">Amazon SageMaker Python SDK</a>. Additionally, you can stitch multiple dependent notebooks together to create a workflow in the form of Directed Acyclic Graphs (DAGs). You can then run these notebooks jobs or DAGs, and manage and visualize them using SageMaker Studio.<br>Data Scientists can interactively develop multiple Jupyter notebooks for different type of jobs like ETL, model training, model validation, etc. and chain them together using DAGs and trigger the workflow using a Pipeline Notebook step.</li></ol><pre>nb_job_params = {&quot;default_s3_bucket&quot;: notebook_artifacts}<br><br>preprocess_nb_step = NotebookJobStep(<br>  name=preprocess_step_name,<br>  description=preprocess_description,<br>  notebook_job_name=preprocess_job_name,<br>  image_uri=image_uri,<br>  kernel_name=kernel_name,<br>  display_name=display_name,<br>  role=role,<br>  ## This is the name of the notebook you want to invoke<br>  input_notebook=preprocess_notebook,<br>  instance_type=&quot;ml.m5.4xlarge&quot;,<br>  parameters=nb_job_params,<br>)<br><br>## Add pre-process step as a dependency on the pre-processing notebook step<br>train_nb_step.add_depends_on([preprocess_nb_step])</pre><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/machine-learning/schedule-amazon-sagemaker-notebook-jobs-and-manage-multi-step-notebook-workflows-using-apis/">https://aws.amazon.com/blogs/machine-learning/schedule-amazon-sagemaker-notebook-jobs-and-manage-multi-step-notebook-workflows-using-apis/</a></p><p>2. <strong>Run Python code as a custom step:</strong></p><p>With the new Amazon SageMaker Pipelines developer experience, you can convert your ML code into an automated Directed Acyclic Graph (DAG) of various ML steps in a few minutes. To create an ML workflow, annotate your existing Python functions with ‘@step’ decorators and pass the final step to pipeline creation API. Amazon SageMaker will automatically interpret the dependencies between the annotated Python functions, create custom pipeline steps for each of them, and generate the Pipeline DAG.</p><pre>## Create Python code as a step<br>@step(name=reduce_func_step_name, keep_alive_period_in_seconds=300)<br>def my_reduce(stat, number_1, number_2):<br>    if stat == &quot;avg&quot;:<br>        return sum([number_1, number_2]) / 2.0<br>    elif stat == &quot;sum&quot;:<br>        return sum([number_1, number_2])<br>    else:<br>        raise ValueError<br><br>## Use the python code as a step in the pipeline<br>pipeline_name = &quot;CalculatorPipeline&quot;<br>pipeline = Pipeline(<br>    name=pipeline_name,<br>    steps=[my_reduce(param, generate(), generate())],<br>    parameters=[param],<br>)</pre><h4>8. Tools for Benchmarking &amp; Evolving Models</h4><p><strong>As the AI landscape evolves rapidly with increasingly complex and nuanced models, developers need powerful tools to benchmark and continuously improve their models. This was the most interesting observation looking at the launch announcement as most of the AI services now support benchmarking the model performance and quality. I feel AWS is really focusing on this feature as it plays a vital role in model development process —</strong></p><ul><li><strong>Staying Ahead of the Curve:</strong> In a fast-changing landscape, benchmarking helps developers identify the most effective models for their specific needs amidst a plethora of constantly evolving options.</li><li><strong>Mitigating Bias and Ensuring Fairness: </strong>Modern AI models are susceptible to inheriting biases from their training data. Benchmarking allows developers to assess and address such biases, promoting fair and ethical AI development.</li><li><strong>Adapting to Change:</strong> As data and requirements evolve, models need to adapt to remain effective. Continuous evaluation and improvement, facilitated by tools like continued pre-training, ensure that models stay relevant and accurate over time.</li><li><strong>Optimizing for Specific Use Cases:</strong> No single model excels in every task. Benchmarking allows developers to identify the models that best suit their specific use cases, leading to optimal performance and improved outcomes.</li></ul><ol><li><strong>SageMaker Canvas now provides a model leaderboard.</strong> A leaderboard allows you to compare key performance metrics (for example, accuracy, precision, recall, and F1 score) for different models’ configurations to identify the best model for your data. You can also view the entire model building workflow, including suggested preprocessing steps, algorithms, and hyperparameter ranges in a notebook.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jIsyuNjG1VhW52pbEHltog.png" /></figure><p><strong>2. </strong><a href="https://aws.amazon.com/sagemaker/clarify/"><strong>Amazon SageMaker Clarify</strong></a><strong> provides evaluation for LLMs.</strong> Sagemaker Clarify now provides AWS customers with foundation model (FM) evaluations using <a href="https://github.com/aws/fmeval/tree/main">FMEval</a>, an open-source LLM evaluation library to evaluate and compare model quality and responsibility metrics for any LLM, in minutes. FMEval covers the following four different tasks, and five different evaluation dimensions as shown in the following table —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XzrMX-wQTrbS9w__LO_phQ.png" /></figure><p><strong>Blog Post</strong> — <a href="https://aws.amazon.com/blogs/machine-learning/evaluate-large-language-models-for-quality-and-responsibility/">https://aws.amazon.com/blogs/machine-learning/evaluate-large-language-models-for-quality-and-responsibility/</a></p><p><strong>3. Amazon Bedrock enables model evaluation</strong> It offers a choice of automatic evaluation and human evaluation. You can use automatic evaluation with predefined metrics such as accuracy, robustness, and toxicity. For subjective or custom metrics, such as friendliness, style, and alignment to brand voice, you can set up human evaluation workflows with just a few clicks.</p><p>Model evaluations are critical at all stages of development. As a developer, you now have evaluation tools available for building generative artificial intelligence (AI) applications. You can start by experimenting with different models in the playground environment. To iterate faster, add automatic evaluations of the models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l4KOCszeiBUTCxGYk35V4w.png" /></figure><p><strong>Blog post</strong> — <a href="https://aws.amazon.com/blogs/aws/evaluate-compare-and-select-the-best-foundation-models-for-your-use-case-in-amazon-bedrock-preview/">https://aws.amazon.com/blogs/aws/evaluate-compare-and-select-the-best-foundation-models-for-your-use-case-in-amazon-bedrock-preview/</a></p><p>That’s it for now. In the second part of the blog I’ll cover the following themes —</p><ol><li>Accelarating AI adoption with user-friendly visual and low-code tools</li><li>Enabling customization of the foundational models to fit specific needs and enabling security for enterprise customers</li><li>Focussing on model explanability and responsible AI</li><li>Integrating generative AI in all the AWS offerings to improve productivity</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a61f37a84511" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accelerating Inference using AWS SageMaker]]></title>
            <link>https://medium.com/@pisingh_/accelerating-inference-using-aws-sagemaker-9f1610ed008b?source=rss-3857683691cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f1610ed008b</guid>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[ai-accelerator]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Harjinder Singh]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 11:48:24 GMT</pubDate>
            <atom:updated>2023-11-27T11:48:24.456Z</atom:updated>
            <content:encoded><![CDATA[<p>An AI accelerator is a specialized hardware or a software system designed to accelerate machine learning computations. These accelerators are becoming crucial for handling the growing size and complexity of AI models and datasets enabling more advanced and real-time AI applications in fields of natural language processing, autonomous vehicles, computer vision, etc. These accelerators are often used to improve the performance and efficiency of training and inference tasks for these large machine learning models. Common examples include GPUs (Graphics Processing Units), TPUs (Tensor Processing Units), and FPGAs (Field-Programmable Gate Arrays), etc. This <a href="https://medium.com/@adi.fu7/ai-accelerators-part-iv-the-very-rich-landscape-17481be80917">article</a> from <a href="https://medium.com/u/56060ce84a5b">Adi Fuchs</a> covers the rich landscape of all the AI accelerators, but for this article we’ll focus on the AI accelerators supported by AWS SageMaker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*svYblhe-pKmN0Yam.png" /><figcaption><em>Accelerators for Deep Neural Networks (Source: </em><a href="https://www.microsoft.com/en-us/research/uploads/prod/2017/08/HC29.22622-Brainwave-Datacenter-Chung-Microsoft-2017_08_11_2017.compressed.pdf"><em>Microsoft</em></a><em>)</em></figcaption></figure><p>Both neural networks and computer vision rely on mathematical foundational models that involve linear algebra operations or tensor operations like matrix-matrix or matrix-vector calculations, activation functions such as ReLU, convolutional operations, etc., which are highly parallelizable. Given that machine learning involves a finite set of operations, it made sense to use AI accelerators, specialized hardware tailored to optimize these specific operations, and thus began the rise in the popularity of AI accelerators in the <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjjjPjQ9OOCAxXEwTgGHQ_VBR0QFnoECA4QAQ&amp;url=https%3A%2F%2Ftowardsdatascience.com%2Falexnet-the-architecture-that-challenged-cnns-e406d5297951&amp;usg=AOvVaw2T2zRmjK-PTVqTLCgXTeP0&amp;opi=89978449">post-Alexnet</a> world.</p><p>When talking about AI accelerators, it’s crucial to talk about the Model compilers. Model compilers play a crucial role in the efficient execution of machine learning models, especially when deploying them on different hardware accelerators. They take high-level model descriptions, often written in machine learning frameworks like TensorFlow or PyTorch, and transform them into optimized, low-level code that can fully leverage the capabilities of specific hardware accelerators. By doing so, model compilers bridge the gap between the flexibility of machine learning frameworks and the performance of specialized hardware. This optimization process includes tasks such as operator fusion, kernel selection, and memory management, all aimed at maximizing the efficiency of model execution. This leads to performance enhancements, latency reduction, and cost savings when deploying machine learning-based applications. This <a href="https://huyenchip.com/2021/09/07/a-friendly-introduction-to-machine-learning-compilers-and-optimizers.html">article</a> from <a href="https://medium.com/u/6c686c1afb42">Chip Huyen</a> gets you in depth of the ML Compilers and is a must read.</p><p>We’ll discuss both AI accelerators and the model compilers that compile the model for these accelerators supported by AWS SageMaker.</p><h3>When do we need AI Accelerators</h3><p>AI accelerators are a significant investment, and their usage is most warranted in specific use cases. These primary scenarios where AI accelerators prove their worth include:</p><ol><li><strong>Deep Learning Training</strong>: AI accelerators shine when it comes to training deep neural networks, especially larger models. They offer substantial computational power, dramatically reducing training times from weeks to mere days or even hours.</li><li><strong>Real-Time Inference</strong>: Applications demanding real-time or low-latency inference, such as autonomous vehicles, speech recognition, and natural language processing, greatly benefit from AI accelerators. Their capacity to swiftly process data enables rapid decision-making.</li><li><strong>Edge Devices</strong>: For edge devices with limited computational resources, the efficient and fast execution of machine learning models often necessitates the deployment of AI accelerators.</li><li><strong>Scaling Workloads</strong>: As machine learning models continue to grow in size and adding new capabilities, demanding more substantial computational resources, AI accelerators become indispensable for efficiently handling this increased size and growing demand. For batch computing, the utilization of accelerated inference is becoming increasingly vital to manage the vast volumes of data and requests associated with the expanding size of models.</li></ol><p>AI accelerators are energy-efficient since they optimize the computation making them ideal for power-sensitive applications like mobile devices and IoT devices, but also reduces the costs of maintaining the data centers. With the rising demand for machine learning computations, AI accelerators are poised to become more affordable and enjoy broader adoption.</p><h3>Choosing the right AI accelerator</h3><p>There are 2 main factors that will help you determine the accelerator for inference that works best for your use case —</p><ol><li>Latency Throughput trade-off</li><li>ML Operators support</li></ol><h4>Latency Throughput trade-off</h4><p>When discussing AI accelerators for inference, latency-throughput trade-offs become crucial because you can either minimize latency or maximize throughput at the same time. The cost associated with operating the inference workload is a major constraint that influences this trade-off. You aim to reduce latency by using optimal hardware but you also want to ensure efficient resource utilization to stay within budget. Fine-tuning latency and throughput SLAs can help you make an optimal choice between latency, throughput, and cost.</p><p>The below table summarizes the characteristics and considerations for different accelerators in the context of different use cases -</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsheetsu.com%2Ftables%2Fb12a4b0d7b&amp;dntp=1&amp;display_name=Sheetsu&amp;url=https%3A%2F%2Fsheetsu.com%2Ftables%2Fb12a4b0d7b&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=sheetsu" width="700" height="340" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e11187ebfec601cd77f5a63cb884a5e/href">https://medium.com/media/7e11187ebfec601cd77f5a63cb884a5e/href</a></iframe><p>You can experiment with various accelerators and benchmark them with different model and server parameters to find the best option that meets your latency and throughput requirements.</p><h4>ML operators support</h4><p>Machine learning operators encompass various mathematical and computational functions, including matrix multiplication, convolution, activation functions like ReLU, pooling, normalization, and element-wise operations. Neural networks consist of interconnected layers of neurons, each performing one or more of these operations. In complex models, such as those used for image recognition or natural language processing, the scale of computation becomes immense, involving millions or billions of operations. Hardware accelerators like GPUs, TPUs, and ASICs are purposefully designed and fine-tuned for efficient execution of these operations. However, they may have limitations in supporting certain operators. CPUs can handle all operators but are not the most efficient processors for these computations.</p><p>NVIDIA GPU accelerators offer extensive operator support through the <a href="https://developer.nvidia.com/cuda-toolkit">CUDA toolkit</a>. However, in cases requiring custom operator development, the CUDA toolkit provides a programming API for tailored solutions. In contrast, ASIC accelerators like <a href="https://aws.amazon.com/machine-learning/inferentia/">AWS Inferentia</a> have finite operator and framework support. When an unsupported operator arises, it resorts to CPU execution, allowing the deployment of numerous model architectures on specialized accelerators. However, this transition can lead to increased inference latency due to the slower CPU execution and tensor hand-off between the ASIC and CPU during the model’s forward pass.</p><h3>Accelerators on Sagemaker</h3><p>Amazon SageMaker offers multiple NVIDIA GPU accelerators, a proprietary chip built for DL inference — AWS Inferentia and AI accelerators from other chip makers like Intel and Qualcomm . SageMaker also allows you to access accelerator capacity using its Elastic Inference capability.</p><ol><li><strong>GPU Processors</strong>: Nvidia GPUs are specialized hardware designed for parallel processing tasks. The most widely used nowadays are NVIDIA A100 and NVIDIA H100 GPUs</li><li><strong>AWS Inferentia</strong>: A custom designed machine learning inference chip for deep learning workloads by AWS.</li><li><strong>Specialized accelerators</strong>: AWS offers other accelerators from Intel and Qualcomm. It also supports hardware acceleration with field programmable gate arrays.</li><li><strong>Amazon Elastic Inference (EI)</strong>: An accelerator that saves cost by giving you access to variable-size GPU acceleration, for models that don’t need a dedicated GPU. This is on path of deprecation.</li></ol><h4>GPU Processors</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a1x78NHFeMoO9RfPphGLQA.png" /></figure><p>GPUs are especially designed for throughput as they’re designed with a massively parallel architecture consisting of thousands of smaller cores optimized for parallel processing. GPUs are expensive compared to CPU, so it’s important to make sure that your workload is designed to maximize the resource utilization. This makes GPUs perfect choice for offline and batch prediction where you can trade-off latencies with high resource utilization. This <a href="https://codeconfessions.substack.com/p/gpu-computing">article</a> covers everything you want to know about GPU Computing.</p><p>Below table shows the different GPUs provided by AWS as of November 2023. Check the <a href="https://aws.amazon.com/ec2/instance-types/">EC2 instance-type</a> page and the <a href="https://aws.amazon.com/ec2/pricing/on-demand/">On-demand pricing</a> page for latest updates -</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsheetsu.com%2Ftables%2Fd65ef22e63&amp;dntp=1&amp;display_name=Sheetsu&amp;url=https%3A%2F%2Fsheetsu.com%2Ftables%2Fd65ef22e63&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=sheetsu" width="700" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/571f36c8bfe38a2bb091fdb7164dc3c3/href">https://medium.com/media/571f36c8bfe38a2bb091fdb7164dc3c3/href</a></iframe><p>For further performance optimizations, you can compile your model using the <a href="https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html">NVIDIA TensorRT</a> optimizer. We will discuss the TensorRT optimizer in detail in the next section.</p><h4>AWS Inferentia</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PWB8mFn_aZqf1vBVvxLCgw.png" /></figure><p><a href="https://aws.amazon.com/machine-learning/inferentia/">AWS Inferentia</a> is a purpose-built ASIC accelerator for DL inference workloads. Each inferentia instance consists of Inferentia devices and each device consists of 2–4 <a href="https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/arch/neuron-hardware/neuroncores-arch.html">NeuronCores</a>. The NeuronCore is a compute unit that runs the operations of the Neural Network (NN) graph. NeuronCores are optimized for operations on small batch sizes to guarantee the lowest possible inference latency. It offer lower price/performance ratio compared to GPUs, but similar to GPUs, it offers maximum resource utilization when running batch inference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J8KdKHXuAPwqLOflOIYtTw.jpeg" /><figcaption>Inferentia 2 architecture (Source: <a href="https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/arch/neuron-hardware/inferentia.html#inferentia-arch">Neuron docs</a>)</figcaption></figure><p>The first-generation AWS Inferentia accelerator delivered up to 2.3x higher throughput and up to 70% lower cost per inference than comparable Amazon EC2 instances. Inferentia2 delivers up to 4x higher throughput and up to 10x lower latency compared to Inferentia. One of the limitations of using AWS Inferentia is that you need to compile the model using <a href="https://github.com/aws/aws-neuron-sdk/">AWS Neuron SDK</a> which supports limited operators and models on the following DL frameworks — TensorFlow, PyTorch, and MXNet DL frameworks.</p><p>Below is the list of Inferentia instances available on AWS as of Nov 2023. Check the <a href="https://aws.amazon.com/ec2/instance-types/">EC2 instance-type</a> page and the <a href="https://aws.amazon.com/ec2/pricing/on-demand/">On-demand pricing</a> page for latest updates -</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsheetsu.com%2Ftables%2F74dd9286ba&amp;dntp=1&amp;display_name=Sheetsu&amp;url=https%3A%2F%2Fsheetsu.com%2Ftables%2F74dd9286ba&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=sheetsu" width="700" height="380" frameborder="0" scrolling="no"><a href="https://medium.com/media/d4a8a6c145f11d7151e8a33639c47230/href">https://medium.com/media/d4a8a6c145f11d7151e8a33639c47230/href</a></iframe><h4>Special accelerators</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bcWPmKvaD1VZzAhRFKAdtg.png" /></figure><p><strong>Gaudi accelerators</strong></p><p><a href="https://aws.amazon.com/ec2/instance-types/dl1/">Amazon EC2 DL1</a> instances powered by <a href="https://www.googleadservices.com/pagead/aclk?sa=L&amp;ai=DChcSEwiajOzO-OOCAxVQLIMDHT6HDkIYABAAGgJzZg&amp;gclid=CjwKCAiAmZGrBhAnEiwAo9qHiZqYL61NjiZpxZTTPlQ_XMxQSHg-THyaLPFYzUU3oDLm7BqUI96fZhoCFaoQAvD_BwE&amp;ohost=www.google.com&amp;cid=CAESV-D2aUJ2byoeZyHLvoF9HUyHdeqLLZYJKs0PBlkNOsx8GmRjEbzYt0I7D6qn34ZI8wMshR6YjKm6P9SAyCBx8CmQ88QvzsXHrykt16FRXTOk4Q1-pTzkBQ&amp;sig=AOD64_1XYPHYrB7E4XmjVy-Gx7LfxzOu-A&amp;q&amp;adurl&amp;ved=2ahUKEwjH5ePO-OOCAxWcxTgGHXwuCBwQ0Qx6BAgIEAE">Gaudi accelerators from Habana Labs</a> (an Intel company), deliver low cost-to-train deep learning models for natural language processing, object detection, and image recognition use cases. DL1 instances include the <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjAmYbb-OOCAxX31jgGHfbBAtwQFnoECBAQAQ&amp;url=https%3A%2F%2Fhabana.ai%2Ftraining-software%2F&amp;usg=AOvVaw1d_EG4y1WLWW-nUTQW2sjr&amp;opi=89978449">Habana SynapseAI® SDK</a>, that is integrated with leading machine learning frameworks such as TensorFlow and PyTorch. You can get started on DL1 instances easily, using<a href="https://docs.aws.amazon.com/dlami/latest/devguide/habana.html"> AWS Deep Learning AMIs for Habana</a> or AWS Deep Learning Containers, or Amazon EKS and ECS for containerized applications.</p><p><strong>Qualcomm accelerators</strong></p><p><a href="https://aws.amazon.com/ec2/instance-types/dl2q/">Amazon EC2 DL2q instances</a>, powered by <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwijrZez-eOCAxX-wjgGHX0sA_8QFnoECA0QAQ&amp;url=https%3A%2F%2Fwww.qualcomm.com%2Fproducts%2Ftechnology%2Fprocessors%2Fcloud-artificial-intelligence%2Fcloud-ai-100&amp;usg=AOvVaw39vM4aycxhP71_2aPmq0hB&amp;opi=89978449">Qualcomm AI 100 Standard accelerators</a>, can be used to cost-efficiently deploy deep learning (DL) workloads in the cloud. They can also be used to develop and validate performance and accuracy of DL workloads that will be deployed on Qualcomm devices. DL2q instances are the first instances to bring Qualcomm’s AI technology to the cloud. Qualcomm provides an AI stack which includes two software development kits (SDK) known as the <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwi608HI-eOCAxUNxzgGHWHbCiIQFnoECBMQAQ&amp;url=https%3A%2F%2Fwww.qualcomm.com%2Fmedia%2Fdocuments%2Ffiles%2Fqualcomm-cloud-ai-100-announcement.pdf&amp;usg=AOvVaw3oOVKA2SNzhVeFcTiA0og4&amp;opi=89978449">Apps and Platform SDK </a>to compile and deploy their DL workloads on the DL2q instances.</p><p><strong>Acceleration using Field programmable gate arrays (FPGAs)</strong></p><p><a href="https://aws.amazon.com/ec2/instance-types/f1/">Amazon EC2 F1 instances</a> use FPGAs to enable delivery of custom hardware accelerations. F1 instances are easy to program and come with everything you need to develop, simulate, debug, and compile your hardware acceleration code, including an <a href="https://aws.amazon.com/marketplace/pp/B06VVYBLZZ">FPGA Developer AMI</a> and supporting hardware level development on the cloud. F1 instances provide diverse development environments: from low-level hardware developers to software developers who are more comfortable with C/C++ and openCL environments. You can reuse your AFIs as many times as you like, and across as many F1 instances as you like.</p><h4>Amazon Elastic Inference</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_9Uu3KtXYwNfjUKW5bPDxA.png" /></figure><p><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html">Elastic Inference </a>(EI) is a capability that allows you to attach user-defined low-cost GPU-powered accelerator capacity to regular CPU instances. Accelerator capacity is available via an attached network interface. You can easily scale the amount of inference acceleration up and down using Amazon EC2 Auto Scaling groups to meet the demands of your application without over-provisioning capacity. When EC2 Auto Scaling increases your EC2 instances to meet increasing demand, it also automatically scales up the attached accelerator for each instance.</p><p>EI is on path of deprecation due to the following reasons, and AWS is not onboarding any new customers-</p><ul><li>By design, EI accelerators always introduce additional latency due to network transfer. EI accelerators may underperform on models with complex control flows.</li><li>The EI-enabled DL frameworks are lagging considerably behind the latest open source versions. Also, you may experience compatibility issues trying to run the latest model architectures on EI.</li><li>EI provides relatively low GPU memory (compared to the latest generations of GPU instances), which may restrict the types of models you can run on it.</li></ul><h3>Compiling models for inference optimization</h3><p>We’ll cover three main model compilers used with most commonly used accelerators —</p><ol><li>TensorRT for GPUs</li><li>NeuronSDK for AWS Inferentia</li><li>Sagemaker Neo that works with variety of hardware</li></ol><h4>TensorRT</h4><p><a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwihkZq6-uOCAxWJ-jgGHVAwARkQFnoECA4QAQ&amp;url=https%3A%2F%2Fdeveloper.nvidia.com%2Ftensorrt&amp;usg=AOvVaw2PRmI7Y054Xc9YK8sb1_9h&amp;opi=89978449">NVIDIA TensorRT</a> is a high-performance deep learning inference optimizer and runtime library developed by NVIDIA. It is designed to optimize and accelerate the inference (prediction) phase of deep neural networks, making them run faster and more efficiently on NVIDIA GPUs (Graphics Processing Units). TensorRT uses various techniques like layer fusion, precision calibration, and hardware-specific optimizations to achieve significant speedups for deep learning models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NgO4U3XysDfsxZbkQ-CMPA.png" /><figcaption>NVIDIA optimization summary (Source <a href="https://docs.nvidia.com/deeplearning/tensorrt/quick-start-guide/index.html">NVIDIA</a>)</figcaption></figure><p>TensorRT is integrated with the <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwisnLTF-uOCAxUDzDgGHbUmAq4QFnoECA8QAQ&amp;url=https%3A%2F%2Fdeveloper.nvidia.com%2Ftriton-inference-server&amp;usg=AOvVaw3tG9d3ETYOpkRDAJVVNcYY&amp;opi=89978449">NVIDIA Triton model server</a> to manage model deployment and serve inference requests. TensorRT provides both C++ and Python runtime environments. The C++ runtime can be especially useful for inference at the edge and embedded devices that may not have a Python runtime configured:</p><p>TensorRT provides several key optimization mechanisms when compiling models -</p><ul><li><strong>Precision Calibration</strong>: This process transforms the precision of model weights and activations from FP32 (single precision) to more efficient FP16 (half precision) or INT8 (8-bit integer precision) without sacrificing accuracy. This optimization maximizes the throughput of the model.</li><li><strong>Layer and Tensor Fusion</strong>: By merging multiple layers and tensor operations into a single computation, this technique optimizes both memory utilization and latency, resulting in more efficient execution.</li><li><strong>Kernel Auto-Tuning</strong>: It intelligently selects the best data layers and algorithms tailored to the specific hardware accelerator in use, ensuring optimal performance.</li><li><strong>Dynamic Tensor Memory</strong>: This feature efficiently manages and recycles memory allocated for tensors, reducing memory consumption and enhancing resource utilization.</li><li><strong>Multi-Stream Execution</strong>: Enabling the simultaneous processing of multiple input streams, this capability enhances parallelism and accelerates overall computation.</li></ul><p>Depending on the DL framework model, you can use a different compilation library. For TensorFlow, you can use the TensorFlow-TensorRT (TRT) integration <a href="https://github. com/tensorflow/tensorrt">library</a>. For PyTorch, you need to convert the model into TorchScript format using the PyTorch JIT compiler. Then, you can use Torch-TensorRT integration <a href="https:// github.com/pytorch/TensorRT">library</a></p><h4>Neuron SDK</h4><p><a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjJ7cDT-uOCAxVo-jgGHSA7BRcQFnoECAkQAQ&amp;url=https%3A%2F%2Fawsdocs-neuron.readthedocs-hosted.com%2F&amp;usg=AOvVaw0_C3CPKqh-z6ijgLsaNXgm&amp;opi=89978449">AWS Neuron SDK</a> allows you to compile your DL models for AWS Inferentia instances. Neuron SDK supports only two frameworks — TensorFlow and PyTorch. It has 2 components -</p><ul><li><strong>Compiler</strong>: The Neuron compiler takes DL models, typically in frameworks like TensorFlow or PyTorch, and compiles them into an optimized format that can be executed efficiently on AWS Inferentia hardware.</li><li><strong>Runtime</strong>: The Neuron runtime is responsible for executing the compiled models on AWS Inferentia-based instances, ensuring high performance and low-latency inference.</li></ul><p>Below is the list of models which have been tested on Neuron SDK for inference. Check the <a href="https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/arch/model-architecture-fit.html">Neuron SDK model architecture fit</a> page for the latest updates -</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsheetsu.com%2Ftables%2Fdbaafbd48c&amp;dntp=1&amp;display_name=Sheetsu&amp;url=https%3A%2F%2Fsheetsu.com%2Ftables%2Fdbaafbd48c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=sheetsu" width="700" height="470" frameborder="0" scrolling="no"><a href="https://medium.com/media/a46348a71a12dc5da8ec44f6ad89b957/href">https://medium.com/media/a46348a71a12dc5da8ec44f6ad89b957/href</a></iframe><p>You can adjust the latency and throughput of your model by modifying parameters like memory, batch size, precision in the Neuron SDK settings. Neuron SDK supports generic model layers such as a fully connected layer or embeddings lookup that allows you to work with a wide range of deep learning models that utilize these standard layers. Neuron SDK supports a wide but finite set of operators. If your model architecture uses supported operators, you will be able to fully utilize Neuron SDK optimizations. It handles unsupported operators by partitioning the graph into subgraph, and executing them on different targets (e.g. NeuronCore partition, CPU partition) which will lead to slower performance because of additional overhead of moving the data between CPU and GPU. Neuron SDK is an ahead-of-time compiler, so you must explicitly provide the batch size at compilation time or set the dynamic batching flag.</p><p>Let’s discuss the available Neuron SDK optimizations.</p><ol><li><strong>FP32 Autocasting:</strong> The AWS Neuron SDK’s Neuron Compiler is versatile, supporting machine learning models with various data types like FP32, FP16, and BF16. Neuron hardware can efficiently handle a combination of 32-bit and 16-bit data types. The hardware’s Matmult Engine performs matrix multiplication using FP16 or BF16 and accumulations using FP32. It also supports operators like activations and vector operations in FP16, BF16, and FP32. Neuron offers tensor transpose using fast matrix multiplication in FP16/BF16 or slower byte-by-byte data movements.<br>By default, the Neuron Compiler optimizes for performance by converting most FP32 components to BF16, retaining only partial sums in FP32. This default configuration is suitable for FP32-trained models and maximizes inference performance. However, you have the flexibility to adjust this configuration using the “ — fast-math” option to find the right balance between performance and model accuracy.</li></ol><p><strong>2. Batching inference inputs:</strong> Batching refers to combining multiple inference inputs into a single batch. The Inferentia accelerator is specially designed to excel at running inference on smaller batch sizes. It accomplishes this by efficiently handling latency-sensitive operations, such as reading weights from memory, for the entire batch, leading to improved latency-throughput characteristics compared to performing these operations individually for each input. Batching is preferred for applications that aim to optimize throughput and cost at the expense of latency</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3eKoRA9WPx45lYE2Upmfvw.png" /><figcaption>Neuron SDK Batching architecture (Source — <a href="https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/arch/neuron-features/neuroncore-batching.html">Neuron SDK docs</a>)</figcaption></figure><p><strong>3. NeuronCore pipelining:</strong> The Neuron software feature referred to as a NeuronCore Pipeline refers to the process of sharding a compute-graph across multiple NeuronCores, caching the model parameters in each core’s on-chip memory (cache), and then streaming inference requests across the cores in a pipelined manner. This allows you to process network operators with locally cached data faster and avoid accessing external memory improving both latency and throughput. Pipelining allow us to achieve the highest hardware utilization without batching. In order to fully realize the maximum throughput, users need to launch multiple host CPU threads (more than the size of neuron cores) to feed inputs into the Neuron pipeline and change the number of outstanding inference requests configuration to account for the additional compute performed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KdTnPV08wMuJTvGsmckILA.png" /><figcaption>Neuron SDK Pipeline architecture (Source — <a href="https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/arch/neuron-features/neuroncore-batching.html">Neuron SDK docs</a>)</figcaption></figure><h4>SageMaker Neo</h4><p><a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjd0pSP--OCAxXnxzgGHVx8DT8QjBB6BAgREAE&amp;url=https%3A%2F%2Fdocs.aws.amazon.com%2Fsagemaker%2Flatest%2Fdg%2Fneo.html&amp;usg=AOvVaw23K0RRa2CnaVgCp-gp9iDZ&amp;opi=89978449">SageMaker Neo</a> offers a versatile solution for compiling and optimizing deep learning models to run efficiently on a wide range of hardware platforms. Neo automatically optimizes Gluon, Keras, MXNet, PyTorch, TensorFlow, TensorFlow-Lite, and ONNX models for inference on Android, Linux, and Windows machines based on processors from Ambarella, ARM, Intel, Nvidia, NXP, Qualcomm, Texas Instruments, and Xilinx. Neo is tested with computer vision models available in the model zoos across the frameworks. SageMaker Neo supports compilation and deployment for two main platforms: cloud instances (including Inferentia) and edge devices.</p><p>The process involves transforming your model from a framework-specific format into an intermediate, framework-agnostic representation. During this conversion, automatic optimizations are applied, and optimized binary code is generated for model operations. Once the compilation is complete, the model can be deployed on the target hardware using the SageMaker Inference service. Neo includes a runtime specific to each target platform, responsible for loading and executing the compiled model.</p><p>However, it’s worth noting that SageMaker Neo primarily focuses on computer vision models such as Image Classification, Object Detection, and Semantic Segmentation and may not support other architectures like NLP models. Additionally, while it supports various deep learning frameworks, it may lag behind the latest framework versions and model architectures.</p><p>The following instances are supported for Sagemaker Neo as of November 2023 -</p><ul><li><strong>Standard:</strong> — ml_c4, ml_c5, ml_m4, ml_m5</li><li><strong>Accelerated computing</strong> — ml_p2, ml_p3, ml_g4dn, Inf1, Inf2 (Inferential only supports few frameworks)</li></ul><p>For the most up-to-date information on supported instances and formats, it’s advisable to refer to the official <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/neo-supported-cloud.html">documentation</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsheetsu.com%2Ftables%2F45e11f6258&amp;dntp=1&amp;display_name=Sheetsu&amp;url=https%3A%2F%2Fsheetsu.com%2Ftables%2F45e11f6258&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=sheetsu" width="700" height="440" frameborder="0" scrolling="no"><a href="https://medium.com/media/712aa5ed96e7550ed2da5914cce9b059/href">https://medium.com/media/712aa5ed96e7550ed2da5914cce9b059/href</a></iframe><h3>Summary</h3><p>AWS is solidifying its position as a leading player in the machine learning landscape, particularly for hosting and executing large models. With advanced AI accelerators like Inferentia, Trainium, NVIDIA GPUs, Qualcomm AI 100, and Habana Gaudi, AWS offers a powerful and cost-efficient platform for both machine learning inference and training. These accelerators, combined with AWS’s continued innovation in cloud computing, provide high performance, scalability, and reduced training times, making AWS an increasingly attractive option for deploying complex, large-scale machine learning models. AWS’s offerings, notably including SageMaker Neo for model optimization, underscore its commitment to advancing machine learning capabilities and efficiency.</p><h3>References</h3><ol><li><a href="https://medium.com/@adi.fu7/ai-accelerators-part-iv-the-very-rich-landscape-17481be80917">https://medium.com/@adi.fu7/ai-accelerators-part-iv-the-very-rich-landscape-17481be80917</a></li><li><a href="https://huyenchip.com/2021/09/07/a-friendly-introduction-to-machine-learning-compilers-and-optimizers.html">https://huyenchip.com/2021/09/07/a-friendly-introduction-to-machine-learning-compilers-and-optimizers.html</a></li><li><a href="https://codeconfessions.substack.com/p/gpu-computing">https://codeconfessions.substack.com/p/gpu-computing</a></li><li><a href="https://aws.amazon.com/ec2/instance-types/">https://aws.amazon.com/ec2/instance-types/</a></li><li><a href="https://aws.amazon.com/ec2/pricing/on-demand/">https://aws.amazon.com/ec2/pricing/on-demand/</a></li><li><a href="https://aws.amazon.com/machine-learning/neuron/">https://aws.amazon.com/machine-learning/neuron/</a></li><li><a href="https://docs.nvidia.com/deeplearning/tensorrt/">https://docs.nvidia.com/deeplearning/tensorrt/</a></li><li><a href="https://aws.amazon.com/machine-learning/elastic-inference/">https://aws.amazon.com/machine-learning/elastic-inference/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f1610ed008b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google “Now on Tap” is one step closer to a true Smartphone experience]]></title>
            <link>https://medium.com/@pisingh_/google-now-on-tap-is-one-step-closer-to-a-true-smartphone-experience-8c13d2fb49c?source=rss-3857683691cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c13d2fb49c</guid>
            <dc:creator><![CDATA[Harjinder Singh]]></dc:creator>
            <pubDate>Sun, 31 May 2015 17:21:54 GMT</pubDate>
            <atom:updated>2015-05-31T17:21:54.921Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Google “Now on Tap” is one step closer to a true Smartphone experience</strong></p><p>Google just announced some new features in its upcoming Android M release. One of the best feature, which surprisingly nobody is talking about is “Now On Tap”. I can’t emphasis how much time it will save you to get the information from different sources at once.</p><p>I started mobile development back in 2011 for a brief period. I was mostly working on iOS platform. The most frustrating thing I found about mobile apps was the shear number of the apps on the market. There are some wonderful applications that never make it to the top list, while some applications for which I have never found out a use (eg. “Yo”) became very popular. With so many good apps on the market, it becomes very difficult to find those gems. I loved apps and my home screen was always full of all types of apps. But, you know that frustration when you have to swipe through 5 screens to open that one app. Mobile devices were just a platform for apps,<strong> they weren’t smart enough to do important stuff</strong>. I didn’t use ‘smartphone’ for another one year. I wished there was a way in which the most used apps can be integrated in the OS so that I don’t have to look into each one of them, and better if it could recommend me apps according to my interest.</p><p><em>Google Ventures</em> invested in a ‘<em>Bento App</em>’ which is <em>Google Now</em> competitor in March’ 15, but it‘s smarter because it integrates apps like Reddit, SoundCloud, Uber into the home screen and fetches the information when it thinks you need it. That news got me excited, it was close to what I’ve imagined a smartphone might do. <em>Now on Tap </em>is a promise that we are seeing a single platform for information from different apps. But what would it mean for apps and the marketplace. How will apps generate revenue if you don’t have to open them(Most free apps rely on in-app advertising for revenue). <em>May be a paid version that will integrate with Google Now ?</em></p><p>App discovery is still a pain. So, is opening different apps to text, tweet, check mails, order food, check movie shows, etc. <em>Google Now</em> solved a lot of these problems by displaying this information on neat cards at single place, and <em>Now on Tap</em> is one step closer to a true smartphone experience. I don’t have to browse different apps to get the information I need.</p><p>I’m surprised that it took so long to realize it was next logical step to fetch information from different apps at one place when you need it. I predicted a doom for the smartphone markets because apps platform was so inefficient and messy. I was wrong, it survived somehow. But now we are looking at a bright side of smartphones. A phone which is a true assistant. I would love to see all these apps integrated, helping me out with my daily routine, suggesting me what to do and when, recommending me similar apps for better experience.</p><p>I hope Google is reading this and is working on this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c13d2fb49c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>