Sitemap
Press enter or click to view image in full size

Accelerated Computing Instance Type

--

Wednesday at 10:30 AM, the rain was pouring outside. Sudipta sat in the training room, wondering where Pooja was. Just then, her phone rang, and it was Pooja on the line.

Sudipta: Hi Pooja, where are you? I’ve been waiting for you in the training room.

Pooja: Hi Sudipta. I’m working from home today due to the heavy rain, and there’s no reliable communication available.

Sudipta: Oh, I managed to reach the office before the rain started. Should we proceed with the training through Teams?

Pooja: Yes, let’s do that. I’ll call you on Teams in a moment.

Sudipta: Sure.

After about 15 minutes, Pooja initiated the Teams call.

Sudipta: Hey Pooja.

Pooja: Hi Sudipta, let’s get started. Today, we’re going to discuss Accelerated Computing Instance types.

Sudipta: Sounds interesting, Pooja. What exactly are Accelerated Computing Instances designed for?

Pooja: Great question.

  • These instances are tailor-made for applications that demand high processing power.
  • They leverage hardware accelerators, or co-processors, to execute tasks like floating-point calculations, graphics processing, or data pattern matching far more efficiently than software running on standard CPUs.

Sudipta: I see. And what series are available for these instances?

Pooja: You’ll find the P and G series. Additionally, there are some specialized ones like Inf1, Inf2, DL1, Trn1, F1, and VT1.

Sudipta: That’s quite a variety. Where should we start?

Pooja: Let’s begin with the P series. Within this series, you’ll come across P2, P3, P4, and P5 instances.

P2 Instances

  • P2 instances are designed to excel in general-purpose GPU compute applications.
  • They harness the power of High-Frequency Intel Xeon Scalable Processors (Broadwell E5–2686 v4), paired with high-performance NVIDIA K80 GPUs. Each K80 GPU boasts an impressive 2,496 parallel processing cores and a substantial 12GiB of GPU memory.
  • These instances provide robust support for GPUDirect™, enabling peer-to-peer GPU communications.
  • Furthermore, they offer Enhanced Networking capabilities through Elastic Network Adapter (ENA), boasting an aggregate network bandwidth of up to 25 Gbps within a Placement Group. EBS optimization comes as a default feature at no extra cost.
  • Available sizes:-
Press enter or click to view image in full size

P3 Instances

  • These instances offer high-performance computing in the cloud, featuring up to 8 NVIDIA® V100 Tensor Core GPUs, each equipped with 5,120 CUDA Cores and 640 Tensor Cores.
  • Additionally, they provide a remarkable 100 Gbps of network throughput, catering to machine learning and high-performance computing applications.
  • The p3.2xlarge, p3.8xlarge, and p3.16xlarge instances are powered by the High-frequency Intel Xeon Scalable Processor (Broadwell E5–2686 v4). However, the p3dn.24xlarge instance is driven by the High-frequency 2.5 GHz (base) Intel Xeon Scalable Processor (Skylake 8175).
  • These instances deliver an impressive one petaflop of mixed-precision performance per instance, significantly accelerating machine learning and high-performance computing applications. Also, they have proven to reduce machine learning training times from days to minutes and increase the number of simulations completed for high-performance computing by 3–4 times.
  • Furthermore, these instances support NVLink for peer-to-peer GPU communication and provide up to 100 Gbps of aggregate network bandwidth.
  • Notably, the p3dn.24xlarge instance supports EFA (Elastic Fabric Adapter).
  • Available instance sizes include:
Press enter or click to view image in full size

P4 Instances

  • P4 instances deliver high performance for machine learning training and high-performance computing in the cloud.
  • They are powered by 3.0 GHz 2nd Generation Intel Xeon Scalable processors (Cascade Lake P-8275CL) and can accommodate up to 8 NVIDIA A100 Tensor Core GPUs.
  • These instances offer an impressive 400 Gbps of instance networking and support both Elastic Fabric Adapter (EFA) and NVIDIA GPUDirect RDMA (Remote Direct Memory Access).
  • Additionally, they facilitate lightning-fast peer-to-peer GPU communication at 600 GB/s with NVIDIA NVSwitch.
  • These instances are deployed in Amazon EC2 UltraClusters, which consist of over 4,000 NVIDIA A100 Tensor Core GPUs. These clusters are equipped with petabit-scale networking and scalable low-latency storage using Amazon FSx for Lustre.
  • Available instance sizes:
Press enter or click to view image in full size

P5 Instances

  • P5 Instances represent the latest generation of GPU-based instances and deliver the highest performance available in Amazon EC2 for deep learning and high-performance computing (HPC).
  • These instances can be configured with up to 8 NVIDIA H100 GPUs, offering a total of up to 640 GB HBM3 GPU memory per instance. They are powered by 3rd Gen AMD EPYC processors (AMD EPYC 7R13).
  • These instances provide remarkable network bandwidth, delivering up to 3,200 Gbps, and support Elastic Fabric Adapter (EFA) and NVIDIA GPUDirect RDMA for efficient remote direct memory access.
  • Notably, these instances support up to 900 GB/s of NVSwitch GPU interconnect, resulting in a total of 3.6 TB/s bisectional bandwidth in each instance. This enables each GPU to communicate directly with every other GPU in the same instance with single-hop latency.
  • These instances are deployed in Amazon EC2 UltraClusters, which can accommodate up to 20,000 NVIDIA H100 Tensor Core GPUs. These clusters feature petabit-scale networking and scalable low-latency storage using Amazon FSx for Lustre.
  • Available instance sizes:
Press enter or click to view image in full size

With this, we’ve completed the P series.

Sudipta: Alright, what’s next?

Pooja: Now, let’s dive into the G series. In this series, we’ll explore instances G3, G4ad, G4dn, G5, and G5g.

G3 Instances

  • G3 instances are tailored for graphics-intensive applications such as 3D visualizations, mid to high-end virtual workstations, virtual application software, 3D rendering, application streaming, video encoding, gaming, and various other server-side graphics workloads.
  • These instances represent the latest generation of Amazon EC2 GPU graphics instances, delivering a potent combination of CPU, host memory, and GPU capacity. They are powered by High-frequency Intel Xeon Scalable Processors (Broadwell E5–2686 v4).
  • G3 instances provide access to NVIDIA Tesla M60 GPUs, each equipped with up to 2,048 parallel processing cores and 8 GiB of GPU memory.
  • They enable NVIDIA GRID Virtual Workstation features, including support for up to 4 monitors with resolutions up to 4096x2160 per GPU. Each GPU included in your instance is licensed for one “Concurrent Connected User.”
  • Moreover, G3 instances enable NVIDIA GRID Virtual Application capabilities, making them suitable for application virtualization software like Citrix XenApp Essentials and VMware Horizon, supporting up to 25 concurrent users per GPU.
  • Each GPU features an on-board hardware video encoder designed to support up to 10 H.265 (HEVC) 1080p30 streams and up to 18 H.264 1080p30 streams, enabling low-latency frame capture and encoding, as well as high-quality interactive streaming experiences
  • These instances offer Enhanced Networking using the Elastic Network Adapter (ENA) with 25 Gbps of aggregate network bandwidth within a Placement Group.
  • Available instance sizes:
Press enter or click to view image in full size

G4ad Instances

  • G4ad instances feature the latest AMD Radeon Pro V520 GPUs and 2nd-generation AMD EPYC processors.
  • They provide the best price performance in the cloud for graphics applications, including remote workstations, game streaming, and graphics rendering, offering up to 45% better price performance compared to G4dn instances.
  • These instances are equipped with up to 4 AMD Radeon Pro V520 GPUs, 64 vCPUs, 25 Gbps networking, and 2.4 TB of local NVMe-based SSD storage.
  • Available instance sizes include:
Press enter or click to view image in full size

G4dn Instances

  • G4dn instances are designed to accelerate machine learning inference and handle graphics-intensive workloads.
  • They are powered by 2nd Generation Intel Xeon Scalable Processors (Cascade Lake P-8259L) and feature up to 8 NVIDIA T4 Tensor Core GPUs.
  • These instances offer up to 100 Gbps of networking throughput and up to 1.8 TB of local NVMe storage.
  • Available instance sizes:
Press enter or click to view image in full size

G5 Instances

  • G5 instances represent the latest generation of NVIDIA GPU-based instances, suitable for accelerating graphics-intensive applications and machine learning inference. They can also be used for training simple to moderately complex machine learning models.
  • G5 instances deliver up to 3x better performance for graphics-intensive applications and machine learning inference, along with up to 3.3x higher performance for machine learning training compared to Amazon EC2 G4dn instances.
  • They feature up to 8 NVIDIA A10G Tensor Core GPUs and second-generation AMD EPYC processors.
  • These instances support up to 192 vCPUs, up to 100 Gbps of network bandwidth, and up to 7.6 TB of local NVMe SSD storage.
  • Available instance sizes:
Press enter or click to view image in full size

G5g Instances

  • G5g instances are powered by AWS Graviton2 processors with 64-bit Arm Neoverse cores.
  • They also feature up to 2 NVIDIA T4G Tensor Core GPUs, offering the best price-performance in Amazon EC2 for graphics workloads like Android game streaming.
  • These instances are the first Arm-based instances in a major cloud to feature GPU acceleration, making them cost-effective for ML inference.
  • Furthermore, G5g instances provide up to 25 Gbps of networking bandwidth and are EBS-optimized by default.
  • Available instance sizes:
Press enter or click to view image in full size

With the G-series complete, let’s move on to finishing Inf1 and Inf2.

Get Sudipta Pati’s stories in your inbox

Join Medium for free to get updates from this writer.

Sudipta: Okay.

Pooja: So the Inf stands for AWS Inferentia. First, let’s understand what AWS Inferentia is. AWS Inferentia is a custom machine learning chip designed by AWS that offers high performance at the lowest cost for your deep learning (DL) inference applications.

Sudipta: Do these chips have any specific advantages?

Pooja: Absolutely. Businesses across various industries are embracing artificial intelligence (AI) to drive innovation, enhance customer experiences, and streamline processes. However, the ML models powering these AI applications are becoming more complex, leading to increased compute infrastructure costs. In many cases, up to 90% of the infrastructure expenditure for developing and running ML applications is spent on inference. This is where AWS Inferentia comes in as a cost-effective infrastructure solution for deploying ML applications in production.

Now, let’s discuss the instances Inf1 and Inf2.

Inf1 Instances

  • Inf1 instances are purpose-built to support machine learning inference applications. They offer high-performance and cost-effective ML inference.
  • Compared to comparable Amazon EC2 instances, they provide up to 2.3x higher throughput and up to 70% lower cost per inference.
  • These instances are equipped with up to 16 AWS Inferentia chips, high-performance ML inference chips developed by AWS. Additionally, Inf1 instances feature 2nd Generation Intel Xeon Scalable processors and up to 100 Gbps networking, ensuring high-throughput inference.
  • Inf1 instances are suitable for running large-scale ML inference applications such as search, recommendation engines, computer vision, speech recognition, natural language processing (NLP), personalization, and fraud detection.
  • Developers can deploy their ML models on Inf1 instances using the AWS Neuron SDK, which seamlessly integrates with popular ML frameworks like TensorFlow, PyTorch, and Apache MXNet. This allows developers to continue using their existing ML workflows with minimal code changes and no vendor-specific lock-ins.
  • Available instance sizes:
Press enter or click to view image in full size

Inf2 Instances

  • Inf2 instances are purpose-built for deep learning inference, providing high performance at a competitive cost in Amazon EC2. They are ideal for generative artificial intelligence (AI) models, including large language models (LLMs) and vision transformers.
  • Additionally, these instances can be used for text summarization, code generation, video and image generation, speech recognition, personalization, fraud detection, and more.
  • Inf2 instances are powered by up to 12 AWS Inferentia2 accelerators connected with ultra-high-speed NeuronLink for efficient collective communications. Compared to Inf1 instances, Inf2 instances offer 3x higher compute performance, 4x more accelerator memory, up to 4x higher throughput, and up to 10x lower latency.
  • They are supported by the AWS Neuron SDK and feature dual AMD EPYC processors (AMD EPYC 7R13), up to 384 GB of shared accelerator memory (32 GB HBM per accelerator), and up to 100 Gbps networking.
  • Available instance sizes:
Press enter or click to view image in full size

Sudipta: Understood. So, what’s next?

Pooja: We have four more instances in this category. Let’s cover them quickly.

Sudipta: Sure.

Pooja: The next one is DL1.

DL1 Instances

  • Amazon EC2 DL1 instances, powered by Gaudi accelerators from Habana Labs (an Intel company), deliver cost-effective training for deep learning models in applications such as natural language processing, object detection, and image recognition.
  • DL1 instances offer up to a 40% improvement in price performance for training deep learning models compared to the current generation of GPU-based EC2 instances.
  • These instances feature 8 Gaudi accelerators, each with 32 GiB of high-bandwidth memory (HBM), totaling 768 GiB of system memory. They are equipped with custom 2nd generation Intel Xeon Scalable processors, providing 400 Gbps of networking throughput and 4 TB of local NVMe storage.
  • There is only one size available for DL1 instances:
Press enter or click to view image in full size

Sudipta: Three more to finish.

Pooja: Yes, let’s complete them quickly.

Sudipta: Sure

Pooja: So we are left with Trn1, F1, and VT1. Let’s discuss them one by one.

Trn1 Instances

  • Trn1 instances are powered by AWS Trainium accelerators and are purpose-built for high-performance deep learning (DL) training of generative AI models, including large language models (LLMs) and latent diffusion models.
  • AWS Trainium represents the second-generation machine learning (ML) accelerator purpose-built by AWS for deep learning training, capable of handling models with over 100 billion parameters. Trn1 instances offer up to 50% cost savings for training compared to other comparable Amazon EC2 instances.
  • These instances can deploy up to 16 AWS Trainium accelerators, providing a high-performance, cost-effective solution for deep learning (DL) training in the cloud.
  • The AWS Neuron SDK assists developers in training models on AWS Trainium and deploying models on the AWS Inferentia accelerators.
  • Technical specifications include:

→ Powered by 3rd Generation Intel Xeon Scalable processors (Ice Lake SP)

→ Up to 1600 Gbps of second-generation Elastic Fabric Adapter (EFA) networking bandwidth

→ Up to 8 TB of local NVMe storage

→ High-bandwidth intra-instance connectivity enabled by NeuronLink

→ These instances are seamlessly integrated into EC2 UltraClusters, allowing scaling to accommodate up to 30,000 AWS Trainium accelerators. These clusters are interconnected through a petabit-scale nonblocking network and feature scalable low-latency storage with Amazon FSx for Lustre.

→ Additional features include Amazon EBS optimization and enhanced networking.

  • Available instance sizes:
Press enter or click to view image in full size

F1 Instances

  • F1 instances utilize FPGAs (Field Programmable Gate Arrays) to enable the delivery of custom hardware accelerations.
  • They are straightforward to program and come with everything needed to develop, simulate, debug, and compile hardware acceleration code, including an FPGA Developer AMI and support for hardware-level development in the cloud.
  • These instances feature Xilinx Virtex UltraScale+ VU9P FPGAs, 64 GiB of ECC-protected memory on 4x DDR4, a dedicated PCI-Express x16 interface, approximately 2.5 million logic elements, and approximately 6,800 Digital Signal Processing (DSP) engines.
  • They are powered by High-frequency Intel Xeon Scalable Processors (Broadwell E5–2686 v4).
  • They also offer support for Enhanced Networking and NVMe SSD Storage.
  • Available instance sizes:
Press enter or click to view image in full size

VT1 Instances

  • VT1 instances are designed to accelerate real-time video transcoding and provide cost-effective transcoding for live video streams.
  • They can deliver up to 30% lower cost per stream compared to Amazon EC2 G4dn GPU-based instances and up to 60% lower cost per stream compared to Amazon EC2 C5 CPU-based instances for transcoding live video streams.
  • These instances are powered by 2nd Generation Intel Xeon Scalable Processors (Cascade Lake P-8259CL).
  • VT1 instances support streams up to 4K UHD resolution at 60 frames per second (fps) and can transcode up to 64 simultaneous 1080p60 streams in real-time.
  • They are equipped with up to 8 Xilinx® Alveo™ U30 media accelerator cards and support up to 96 vCPUs, 192GB of memory, 25 Gbps of enhanced networking, and 19 Gbps of EBS bandwidth.
  • Available instance sizes:
Press enter or click to view image in full size

With this, we have covered the Accelerated computing instance types.

Sudipta: Finally, we only have one instance type left to discuss.

Pooja: Yes, there are a few points remaining. Let’s cover them and conclude the session.

Sudipta: Sure, I’m ready.

Pooja: In Accelerated computing, except for G3, P2, and F1 instances, all other instances are built on the Nitro System.

Now, let’s summarize the accelerated computing instances:

  • DL1:- Suited for Deep Learning
  • F1:- Utilizes field-programmable gate arrays (FPGAs)
  • G:- Designed for Graphics-intensive applications
Press enter or click to view image in full size
  • Inf — AWS Inferentia
Press enter or click to view image in full size
  • P — GPU accelerated
Press enter or click to view image in full size
  • Trn — AWS Trainium
Press enter or click to view image in full size
  • VT — Specialized for video transcoding
Press enter or click to view image in full size

If you have any doubts, feel free to ask.

Sudipta: Currently, I don’t have any questions. I’ll review the material and get back to you.

Pooja: Excellent. We can conclude today’s session.

Sudipta: Great, thank you. See you tomorrow at the same time.

Pooja: Absolutely. Let’s wrap up by discussing the final instance type. Have a wonderful day!

Sudipta: You too, goodbye!

Press enter or click to view image in full size

--

--