Amazon EC2 G4 instances are specifically designed to enhance the performance of machine learning inference and applications that require high graphics capabilities. Users can select between NVIDIA T4 GPUs (G4dn) and AMD Radeon Pro V520 GPUs (G4ad) according to their requirements. The G4dn instances combine NVIDIA T4 GPUs with bespoke Intel Cascade Lake CPUs, ensuring an optimal mix of computational power, memory, and networking bandwidth. These instances are well-suited for tasks such as deploying machine learning models, video transcoding, game streaming, and rendering graphics. On the other hand, G4ad instances, equipped with AMD Radeon Pro V520 GPUs and 2nd-generation AMD EPYC processors, offer a budget-friendly option for handling graphics-intensive workloads. Both instance types utilize Amazon Elastic Inference, which permits users to add economical GPU-powered inference acceleration to Amazon EC2, thereby lowering costs associated with deep learning inference. They come in a range of sizes tailored to meet diverse performance demands and seamlessly integrate with various AWS services, including Amazon SageMaker, Amazon ECS, and Amazon EKS. Additionally, this versatility makes G4 instances an attractive choice for organizations looking to leverage cloud-based machine learning and graphics processing capabilities.