This link has a table that compares instances' GPU memory https://docs.amazonaws.cn/en_us/AmazonECS/latest/developerguide/ecs-gpu.html Answer from YoFayed on repost.aws
🌐
Vantage
instances.vantage.sh › aws › ec2 › g4dn.4xlarge
g4dn.4xlarge pricing and specs - Vantage
The g4dn.4xlarge instance is in the GPU instance family with 16 vCPUs, 64 GiB of memory and up to 25 Gibps of bandwidth starting at $1.204 per hour.
🌐
AWS
aws.amazon.com › amazon ec2 › instance types › g4 instances
Amazon EC2 G4 Instances — Amazon Web Services (AWS)
1 week ago - They provide up to 8 NVIDIA T4 GPUs, 96 vCPUs, 100 Gbps networking, and 1.8 TB local NVMe-based SSD storage and are also available as bare metal instances. G4dn instances are equipped with NVIDIA T4 GPUs which deliver up to 40X better low-latency throughput than CPUs, so more requests can be ...
🌐
Vantage
instances.vantage.sh › aws › ec2 › g4dn.xlarge
g4dn.xlarge pricing and specs - Vantage
The g4dn.xlarge instance is in the GPU instance family with 4 vCPUs, 16 GiB of memory and up to 25 Gibps of bandwidth starting at $0.526 per hour.
🌐
EC2 Pricing Calculator
costcalc.cloudoptimo.com › aws-pricing-calculator › ec2 › g4dn.xlarge
g4dn.xlarge Pricing and Specs: AWS EC2
The g4dn.xlarge instance is part of the g4dn series, featuring 4 vCPUs and Up to 25 Gigabit of RAM, with Gpu Instances.
🌐
CloudPrice
cloudprice.net › amazon web services › ec2 › g4dn.4xlarge
g4dn.4xlarge specs and pricing | AWS | CloudPrice
Amazon EC2 instance g4dn.4xlarge with 16 vCPUs, 64 GiB RAM and 1 x NVIDIA T4 16 GiB. Available in 23 regions starting from $878.92 per month.
🌐
Reddit
reddit.com › r/localllama › benchmarking inexpensive aws instances
r/LocalLLaMA on Reddit: Benchmarking Inexpensive AWS Instances
June 10, 2024 -

I recently did some testing using Dolphin-Llama3 across various (inexpensive-ish) AWS instances to compare performance. The results are in line with what one might expect.

Testing was done using default settings with Ollama. I spun up a new instance on Ubuntu, installed Ollama and ran it with Dolphin-Llama3 —verbose.

Key Takeaways:

-Fastest Prompt Eval Rate: AWS g5 (fastest AWS instance tested)
-Fastest Eval Rate: Home PC w/RTX 3080
-Best Cost-Performance Balance: AWS g4dn.xlarge offers a good balance of performance and cost, at $0.58/hr.
-GPU speed is the key differentiator. Within the same family of models, such as the g4dn and g5 instances, the evaluation rates remain consistent. If the model fits in GPU memory there is no need for more cores/memory.
-I did notice that the more system memory available the greater number of tokens used in the output.

Test Results

AWS Instances

c7g.8xlarge (Compute Instance)
•32 cores, 64GB RAM
•Prompt Eval Rate: 38.38 tokens/s
•Eval Rate: 25.07 tokens/s
•Price: $1.27/hr, $941.16/mo
r6g.4xlarge (Memory Instance)
•16 cores, 128GB RAM
•Prompt Eval Rate: 10.15 tokens/s
•Eval Rate: 8.29 tokens/s
•Price: $0.88/hr, $657.10/mo
g4dn.xlarge (GPU Instance)
•4 cores, 16GB RAM, 16GB GPU
•Prompt Eval Rate: 222.23 tokens/s
•Eval Rate: 41.71 tokens/s
•Price: $0.58/hr, $434.50/mo
g4dn.2xlarge (GPU Instance)
•8 cores, 32GB RAM, 32GB GPU
•Prompt Eval Rate: 214.25 tokens/s
•Eval Rate: 41.74 tokens/s
•Price: $0.84/hr, $621.24/mo
g5.xlarge (GPU Instance)
•4 cores, 16GB RAM, 24GB GPU
•Prompt Eval Rate: 624.29 tokens/s
•Eval Rate: 68.08 tokens/s
•Price: $1.12/hr, $831.05/mo
g5.2xlarge (GPU Instance)
•8 cores, 32GB RAM, 24GB GPU
•Prompt Eval Rate: 624.48 tokens/s
•Eval Rate: 66.67 tokens/s
•Price: $1.35/hr, $1,000.96/mo

Local Machines

M2 MacMini
•M2, 8GB RAM, <8GB GPU
•Prompt Eval Rate: 66.38 tokens/s
•Eval Rate: 18.33 tokens/s
M1 MacBook Air
•M1, 16GB RAM, <16GB GPU
•Prompt Eval Rate: 71.58 tokens/s
•Eval Rate: 11.46 tokens/s
Home PC w/RTX 3080
•Intel i5, 64GB RAM, 10GB GPU
•Prompt Eval Rate: 185.67 tokens/s
•Eval Rate: 83.79 tokens/s

Oracle Ampere

Ampere 16 Core, 32GB RAM
•Prompt Eval Rate: 11.96 tokens/s (Duration: 1m34.955180835s)
•Eval Rate: 9.01 tokens/s (Duration: 1m28.461256s)
•Price: $0.1276/hr, $95/mo
Ampere 32 Core, 32GB RAM
•Prompt Eval Rate: 22.54 tokens/s (Duration: 47.93207936s)
•Eval Rate: 14.11 tokens/s (Duration: 44.423782s)
•Price: $0.2796/hr, $208/mo

Here's the data formatted in table for easier viewing - courtesy of u/sergeant113. https://www.reddit.com/r/LocalLLaMA/comments/1dclmwt/comment/l7zrgzm/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

🌐
Bigbell
bigbell.ai › coin › aws › ec2 › g4dn.xlarge
g4dn.xlarge pricing and specs - BigBell
The g4dn.xlarge instance is in the gpu instance family with 4 vCPUs, 16.0 GiB of memory and up to 25 Gibps of bandwidth starting at $0.526 per hour.
Find elsewhere
🌐
AWS
aws.amazon.com › blogs › aws › now-available-ec2-instances-g4-with-nvidia-t4-tensor-core-gpus
Now Available – EC2 Instances (G4) with NVIDIA T4 Tensor Core GPUs | Amazon Web Services
November 3, 2022 - The instances are equipped with up to four NVIDIA T4 Tensor Core GPUs, each with 320 Turing Tensor cores, 2,560 CUDA cores, and 16 GB of memory. The T4 GPUs are ideal for machine learning inferencing, computer vision, video processing, and real-time ...
🌐
Northflank
northflank.com › cloud › aws › instances › g4dn.4xlarge
g4dn.4xlarge instances on Amazon Web Services | Cloud Providers — Northflank
Other Instances with GPUs · cloud · / aws · / instances · / g4dn.4xlarge · Amazon Web Services g4dn.4xlarge nodes offer: 16 vCPU · 64 GB memory · 1 NVIDIA T4 · 16 GB · 230 GB storage · Deploy g4dn.4xlarge instances now · af-south-1 ...
🌐
Cloudzero
advisor.cloudzero.com › aws › ec2 › g4dn.4xlarge
g4dn.4xlarge Instance Specs And Pricing - EC2
CloudZero's intelligent platform helps you optimize cloud costs and improve infrastructure efficiency.
🌐
Umbrella
umbrellacost.com › home › learning center › aws cost management › amazon ec2 g4 instances
Using AWS EC2 G4dn and G4ad | Amazon EC2 G4 | Umbrella
April 10, 2025 - In December 2020, AWS released the Amazon EC2 G4ad instance subfamily — powered by AMD Radeon Pro V520 GPUs and second-generation AMD EPYC processors with up to 2.4 TB of local NVMe storage — that delivers up to 40% better price performance ...
🌐
EC2 Pricing Calculator
costcalc.cloudoptimo.com › aws-pricing-calculator › ec2 › g4dn.4xlarge
g4dn.4xlarge Pricing and Specs: AWS EC2
The g4dn.4xlarge instance is part of the g4dn series, featuring 16 vCPUs and Up to 25 Gigabit of RAM, with Gpu Instances.
🌐
NVIDIA Developer
developer.nvidia.com › blog › getting-the-most-out-of-nvidia-t4-on-aws-g4-instances
Getting the Most Out of NVIDIA T4 on AWS G4 Instances | NVIDIA Technical Blog
August 21, 2022 - AWS offers the G4dn Instance based on NVIDIA T4 GPUs, and describes G4dn as “the lowest cost GPU-based instances in the cloud for machine learning inference and small scale training.” · Amazon EC2 offers a variety of G4 instances with one or multiple GPUs, and with different amounts of vCPU and memory.
🌐
CloudPrice
cloudprice.net › amazon web services › ec2 › g4dn.xlarge
g4dn.xlarge specs and pricing | AWS | CloudPrice
Amazon EC2 instance g4dn.xlarge with 4 vCPUs, 16 GiB RAM and 1 x NVIDIA T4 16 GiB. Available in 23 regions starting from $383.98 per month.
🌐
Cloudzero
advisor.cloudzero.com › aws › ec2 › g4dn.xlarge
g4dn.xlarge Instance Specs And Pricing
CloudZero's intelligent platform helps you optimize cloud costs and improve infrastructure efficiency.
🌐
CloudPrice
cloudprice.net › amazon web services › ec2 › g4dn.2xlarge
g4dn.2xlarge specs and pricing | AWS | CloudPrice
Amazon EC2 instance g4dn.2xlarge with 8 vCPUs, 32 GiB RAM and 1 x NVIDIA T4 16 GiB. Available in 23 regions starting from $548.96 per month.