Skip to main content
Source

This page is generated from skills/eks-genai/references/reference-implementations.md. Edit the source, not this page.

Reference Implementations — Blueprints, Workshops & Validated Stacks

Canonical awslabs/ai-on-eks blueprint catalog, current workshops, AWS Solutions Library guidance, and a concrete validated stack with pinned versions from the GenAI-on-EKS NVIDIA workshop.


awslabs/ai-on-eks Blueprint Catalog

The awslabs/ai-on-eks repository is the TFC-endorsed canonical reference implementation (Containers TFC + Machine Learning TFC). Point customers here as the fastest credible path from idea to production.

Verify paths before quoting them to a customer. awslabs/ai-on-eks reorganizes its directory layout periodically; the paths below were confirmed against the repo's main in June 2026. Always git clone and confirm the current tree (or browse the repo) before scripting against a path — treat these as a current map, not a permanent contract.

Infrastructure Blueprints (infra/)

Each infra blueprint is a Terraform root under infra/<name>/terraform.

Blueprint pathWhat it provisionsUse when
infra/jark-stack/terraformFull JARK dev environment — JupyterHub + Argo + Ray + Karpenter + GPU/Neuron NodePoolsGreenfield; team needs experimentation + training + inference on one cluster
infra/base/terraformBase EKS cluster — Karpenter, core add-ons, GPU/Neuron NodePools (the foundation the workload blueprints deploy onto)Inference- or general-purpose cluster; layer a workload blueprint on top
infra/trainium-inferentia/terraformNeuron-optimized cluster — Inf2/Trn1/Trn2 NodePools, Neuron device pluginNeuron-first / cost-optimized training or inference
infra/nvidia-dynamo, infra/aibrix, infra/nvidia-triton-serverServing-stack-specific infra (Dynamo disaggregated, AIBrix, Triton)When standardizing on that specific serving stack

Inference Blueprints (blueprints/inference/)

Blueprint pathStackUse when
blueprints/inference/vllm-rayserve-gpuvLLM + Ray Serve on NVIDIA GPUDefault LLM inference (Mistral/Llama/Qwen on g6/g6e)
blueprints/inference/neuron/ray-vllmvLLM + Ray Serve on Neuron (Inf2/Trn1)Neuron cost-optimized inference
blueprints/inference/vllm-nvidia-triton-server-gpuvLLM behind NVIDIA Triton ServerMulti-model / Triton-fronted serving
blueprints/inference/inference-chartsHelm charts for quick model deploy (Llama/Mistral/Qwen, GPU + Inf2 variants)Fastest "deploy a model" path

(Plus model-specific examples — e.g. mistral-7b-rayserve-inf2, llama3-8b-instruct-rayserve-inf2, vllm-llama3.1-405b-trn1 — browse blueprints/inference/ for the current list.)

Gateway & Agentic Blueprints

Blueprint pathStackUse when
blueprints/gateways/envoy-ai-gatewayEnvoy AI Gateway — header-based routing + rate limitingL7 multi-model routing at ingress
blueprints/agent-sandboxSandboxed agent execution environmentAgentic AI reference / isolated agent tool execution

Training Blueprints (blueprints/training/)

Blueprint pathStackUse when
blueprints/training/raytrain-llama2-pretrain-trn1Ray Train pre-training on TrainiumMulti-node distributed pre-training on Neuron
blueprints/training/llama-lora-finetuning-trn1LoRA fine-tuning on TrainiumParameter-efficient fine-tuning on Neuron
blueprints/training/slinky-slurmSlurm-on-Kubernetes (Slinky)Teams that want a Slurm scheduler interface for training

How to Use the Blueprints

  1. Clone the repo: git clone https://github.com/awslabs/ai-on-eks.git
  2. Pick an infra blueprint (infra/base, infra/jark-stack, or infra/trainium-inferentia) matching your workload.
  3. Deploy with Terraform: cd infra/<blueprint>/terraform && terraform init && terraform apply (or use the blueprint's install.sh).
  4. Layer an inference/training blueprint on top for the specific model/framework.
  5. Add gateway + observability (LiteLLM, Langfuse, kube-prometheus-stack) from the workshop patterns.

The infra blueprints provision the cluster, NodePools, add-ons, and IAM. The workload blueprints (inference/training/gateway) deploy into the running cluster. This separation lets teams upgrade independently.

Use-Case → Blueprint Mapping

Customer use caseStart with blueprintThen add
Greenfield 7B-30B LLM inferenceinfra/base/terraformblueprints/inference/vllm-rayserve-gpu + LiteLLM
Cost-optimized inference (Neuron)infra/trainium-inferentia/terraformblueprints/inference/neuron/ray-vllm
Distributed training / fine-tuninginfra/trainium-inferentia/terraformblueprints/training/raytrain-llama2-pretrain-trn1 or llama-lora-finetuning-trn1
Full dev + train + serve lifecycleinfra/jark-stack/terraformAll of the above layered on
Agentic AI multi-model platforminfra/base/terraformblueprints/gateways/envoy-ai-gateway + blueprints/agent-sandbox + LiteLLM + Langfuse
Hybrid Trainium training + GPU inferenceinfra/jark-stack/terraformNeuron NodePool (training) + GPU NodePool (inference) via Karpenter

Concrete Validated Stack — GenAI-on-EKS NVIDIA Workshop

These are the pinned, tested versions from the current Generative AI on EKS using NVIDIA GPU workshop, running on EKS Auto Mode. Use these as the credible "this works today" reference.

ComponentVersion / Detail
EKSAuto Mode, Kubernetes 1.34
Terraform EKS moduleterraform-aws-modules/eks v21.15.1
Terraform VPC moduleterraform-aws-modules/vpc v6.6.0
Infra sourceawslabs/ai-on-eksinfra/workshops/genai-on-eks
GPU instanceg6e.2xlarge (NVIDIA L40S)
ModelMinistral-3-8B-Instruct-2512
Inference enginevLLM (AWS Deep Learning Container)
Model loadingRun:ai Streamer from S3 (RUNAI_STREAMER_S3_* env vars)
Serving frameworkRay Serve via KubeRay operator 1.1.0
StorageMountpoint for S3 CSI (s3.csi.aws.com)
RAG vector storeAmazon S3 Vectors
Observability — metricskube-prometheus-stack 69.7.4 + grafana-operator 5.16.0
Observability — GPUNVIDIA DCGM Exporter
Observability — managedAmazon Managed Prometheus (AMP)
AgentsStrands Agents SDK
KV cacheLMCache — L1 CPU + L2 ElastiCache Serverless (Valkey)
Chat UIOpen WebUI
AuthEKS Pod Identity (pods.eks.amazonaws.com)

Agentic Workshop Stack

The Advanced Agentic AI Workshop adds:

ComponentImplementation
AI gatewayLiteLLM
Agent frameworkLangGraph + Strands Agents SDK
TracingLangfuse (self-hosted on EKS)
Self-hosted modelQwen 3 8B via vLLM
Managed modelClaude on Amazon Bedrock

Current Workshops (TFC-Endorsed)

WorkshopFocusURL
Generative AI on EKS using NVIDIA GPUvLLM, Ray Serve, Ministral-8B, g6e, DCGM, Prometheus/Grafana, LMCache, Strands, S3 VectorsWorkshop link
Generative AI on EKS using AWS NeuronvLLM + neuronx-distributed-inference, Inf2/Trn1, Ray Serve, Neuron Monitor, CloudWatchWorkshop link
Architect and Deploy Advanced Agentic AI on EKSLiteLLM gateway, LangGraph agents, Langfuse tracing, Qwen 3 8B + Claude on BedrockWorkshop link

Deprecated workshop: "Generative AI with Data on EKS" — do NOT recommend. Direct customers to the three workshops above.


AWS Solutions Library Guidance

GuidanceWhat it coversURL
Scalable Model Inference and Agentic AI on Amazon EKSEnterprise architecture — Karpenter + GPU/Graviton/Inferentia + LLM gateway + MCP server + agentic AILink
Automated Deployment of Inference-ready Amazon EKS ClustersPre-configured Terraform for production inference — Karpenter + FluentBit + Prometheus/GrafanaLink
Low Latency, High Throughput Inference using Efficient Compute on Amazon EKSMulti-model PyTorch inference with mixed instance families (Graviton + Inferentia)Link

Deployment Architecture — Workshop Stack

The NVIDIA workshop deploys the following architecture on EKS Auto Mode:

┌─────────────────────────────────────────────────────────────────┐
│ EKS Auto Mode (K8s 1.34) — g6e.2xlarge NodePool │
├─────────────────────────────────────────────────────────────────┤
│ vLLM (DLC) + Run:ai Streamer Ray Serve (KubeRay 1.1.0)│
│ ↑ model weights from S3 ↑ auto-scales pods │
├─────────────────────────────────────────────────────────────────┤
│ LMCache (L1 CPU → L2 ElastiCache Valkey) S3 Vectors (RAG) │
├─────────────────────────────────────────────────────────────────┤
│ Strands Agents SDK Open WebUI LiteLLM* │
├─────────────────────────────────────────────────────────────────┤
│ kube-prometheus-stack 69.7.4 + DCGM Exporter → AMP │
│ grafana-operator 5.16.0 → Amazon Managed Grafana │
└─────────────────────────────────────────────────────────────────┘
* LiteLLM shown in Agentic workshop; NVIDIA workshop uses direct vLLM API

Key architectural decisions validated by the workshop:

  • Run:ai Streamer streams model weights from S3 on-demand — eliminates cold-start delay vs full download.
  • LMCache L1+L2 provides prefix-cache reuse across pods — reduces redundant KV computation for common system prompts.
  • S3 Vectors replaces heavier vector DBs for RAG — serverless, no provisioned capacity.
  • EKS Pod Identity for all AWS API access — no static credentials anywhere.
  • Mountpoint S3 CSI for persistent volume claims — model weights and RAG data via S3 without EBS.

Version Currency Notes

  • Versions above are validated as of June 2026. Before recommending to a customer, verify the awslabs/ai-on-eks repo's main branch for any updates — Terraform module versions and Helm chart versions move quarterly.
  • Kubernetes version — pinned ≠ latest. The table pins K8s 1.34 because that is what the workshop was validated on (1.34 reached EKS in Oct 2025 and remains in standard support). It is not the newest — EKS added 1.36 on June 2, 2026. For a new cluster, default to the latest EKS-supported version after confirming the accelerator add-ons (NVIDIA/Neuron device plugins, Karpenter, KubeRay) support it; treat the pinned 1.34 as "known-good for this workshop," not "the version to deploy today." Current standard-support list: EKS Kubernetes version lifecycle.
  • Amazon S3 Vectors is GA (general availability since Dec 2, 2025) — safe as a production default for cost-efficient RAG; see the latency profile in storage.md before using it for low-latency, high-concurrency retrieval.
  • The workshop infra lives under infra/workshops/genai-on-eks in the repo — separate from the production blueprints under infra/.
  • KubeRay operator, kube-prometheus-stack, and grafana-operator versions are pinned in the workshop's Terraform; production deployments should track these or newer patch versions.

Sources