Artificial intelligence • Original RRTutors lesson
AI Tools, Cloud Services, GPUs, and Compute Choices
Understand how hardware, software frameworks, and cloud services affect AI development and operating cost.
Concept and explanation
Training and inference workloads use CPUs, GPUs, and specialized accelerators differently. Frameworks provide tensor operations, automatic differentiation, model serving, and data pipelines; cloud services add managed infrastructure and usage-based costs. Compute choice depends on model size, throughput, latency, privacy, availability, and total cost.
How to apply it
Measure a representative workload, estimate end-to-end costs, benchmark optimized and smaller models, and include data transfer and idle resources.
Worked example
A small tabular classifier may run efficiently on a CPU; a large neural training job may benefit from accelerator parallelism.
Illustrative Python example
workload = {"requests_per_second": 12, "latency_target_ms": 150}
print("Benchmark against:", workload)
Expected result
A workload specification creates a meaningful basis for comparing deployment options.
Limitations and cautions
Accelerators do not fix inefficient pipelines, and cloud convenience does not remove privacy or vendor-dependence concerns.
Practice exercise
Estimate the trade-offs among local inference, a hosted API, and a managed cloud model for a private document assistant.
Key takeaway: Choose infrastructure from measured workload and constraints, not hardware hype.