Reducing GPU Cloud Costs for an AI Document Processing Platform on AWS 

Client Context 

An AI company providing a document processing platform for logistics and finance teams needed clear control over its AWS spend. It had used up its AWS startup credits and was paying its full cloud bill from its own budget for the first time. It needed to bring GPU costs under control without slowing its engineering team or affecting the API its customers rely on. 

The Operational Challenge 

Rising GPU Spend with Limited Cost Visibility 

The company trained its models on GPU instances in AWS and ran its customer-facing API on the same platform. Datasets and model checkpoints were stored in Amazon S3. Engineers launched instances on demand for training and experiments, but almost no resources were tagged. The monthly run rate had reached $25,000, mostly GPU compute, and leadership could not reliably separate customer workload costs from experimentation costs. 

Key challenges included: 

  • Untagged resources, with only 22% of spend attributable to a project or team 
  • GPU training instances and notebooks left running after work had finished 
  • An inference fleet sized for peak traffic around the clock 
  • 41 TB of older checkpoints and dataset copies held in the highest-cost S3 storage class 

Cloud Secure Group Engagement 

A Cost Optimization Model Built Around Engineering Workflows 

Cloud Secure Group engaged as a cloud cost optimization partner for the AWS environment, working alongside the engineering team rather than around it. The objective was to make spend traceable first, then reduce it without affecting training throughput or customer response times. 

Our approach included: 

  • Tagging every resource by project, environment and owner 
  • Automatically stopping idle GPU instances, with an opt-out for long-running jobs 
  • Scaling the inference fleet with customer demand instead of running at peak size all day 
  • Delivering a short weekly cost report to the CTO and team leads 

Implementation and Delivery 

The first three weeks focused on establishing where spend was going. Cloud Secure Group found three training instances still running after their experiments had ended, one of them for 19 days. Development notebooks were running on GPUs around the clock, and 41 TB of aged data sat in premium storage. Most customers are businesses working office hours, so inference traffic fell by around 70% overnight and at weekends while the fleet stayed at full size. 

With tagging in place, automatic stopping was introduced for training instances and notebooks to idle for two hours. Engineers can add a tag to keep long jobs running. The inference fleet moved scaling on the number of documents waiting in the queue, with a minimum of two instances at all times. Checkpoints older than 60 days moved to lower-cost S3 storage tiers. In month four, with three months of reliable usage data, a Savings Plan was purchased to cover the platform’s always-on compute. 

Two early adjustments refined the model. In week five, the idle rule stopped a training run that was loading a large dataset, costing about 14 hours of training time. The rule was changed to check job activity rather than GPU usage alone, and no running jobs have been stopped since. The first inference scaling profile also reduced capacity too quickly overnight. When one customer sent a large morning batch, responses were slower for about 40 minutes. A higher minimum fleet size for that time window resolved the issue. 

Results and Operational Impact 

Over six months, the monthly AWS run rate fell by 16%, from $25,000 to $21,000, while documents processed grew by about 27%. API response time stayed well within the three-second limit the company commits to its customers. 

Measure Month 1 Month 6 
Monthly AWS run rate $25,000 $21,000 
Documents processed per month 4.8 million 6.1 million 
Inference cost per 1,000 documents $2.69 $1.66 
Share of AWS spend tagged to a project or team 22% 96% 
API response time (95th percentile) 1.8 seconds 1.9 seconds 

Savings by action: 

Action Monthly saving 
Scaling inference with customer traffic $2,700 
Stopping idle training instances and notebooks $1,300 
Savings Plan for always-on compute $800 
Moving old checkpoints to lower-cost storage $600 
Total savings $5,400 

Savings exceed the $4,000 drop in the run rate because the company also ran more training jobs and stored more data as it grew, adding around $1,400 a month. 

Beyond the immediate savings, the engagement made cloud spend explainable. With 96% of spend now tagged to a project or team, each team lead sees what their work costs every week, and new spending can be planned with confidence. By building cost controls that fit how engineers already work, Cloud Secure Group gave the company a predictable, scalable cost foundation for continued growth. 

Share on socials:

Table of Contents