How awslabs/ai-on-eks works
AI on EKS is a collection of deployment blueprints and examples for running AI/ML workloads on Amazon EKS, rather than one integrated application. Users select a blueprint, deploy a workload pattern, and interact with its training or inference example; the README also highlights gateway routing and rate limiting. The graph preserves the major documented capabilities and sampled runtime examples. Several blueprints are unsampled, so their internal wiring is not inferred; dashed links mark only unverified relationships.
Main entry points: inference Inference Clients · tp_zero1_llama2_7b_hf_pretrain.py Llama Pretraining · blueprints Blueprint Collection · streamlit.py JARK Streamlit UI
Components 26
Blueprint Patterns
- Blueprint Collection
blueprints - Agent Sandbox
blueprints/agent-sandbox/agent.py
Inference
- Ray Serve LLMs
blueprints/inference/llama2-13b-chat-rayserve-inf2/ray_serve_llama2.py - Ray Serve Llama 3
blueprints/inference/llama3-8b-instruct-rayserve-inf2/ray_serve_llama3.py - Ray Serve Mistral
blueprints/inference/mistral-7b-rayserve-inf2/ray_serve_mistral.py - Ray Serve Diffusion
blueprints/inference/stable-diffusion-rayserve-gpu/ray_serve_stablediffusion.py - Ray Serve SDXL
blueprints/inference/stable-diffusion-xl-base-rayserve-inf2/ray_serve_stablediffusion.py - vLLM Ray Serve
blueprints/inference/vllm-rayserve-gpu/vllm_serve.py - Triton Model Backends
blueprints/inference/vllm-nvidia-triton-server-gpu/model_repository - Triton Client
blueprints/inference/vllm-nvidia-triton-server-gpu/triton-client/triton-client.py - NVIDIA NIM Client
blueprints/inference/nvidia-nim/nim-client/client.py - Trainium Runner
blueprints/inference/vllm-llama3.1-405b-trn1/docker/neuron_multi_node_runner.py - Inference Clients
blueprints/inference
Training
- Ray Training Entry
blueprints/training/raytrain-llama2-pretrain-trn1/llama2_pretrain/ray_train_llama2.py - Llama Pretraining
blueprints/training/raytrain-llama2-pretrain-trn1/llama2_pretrain/tp_zero1_llama2_7b_hf_pretrain.py - Neuron Llama Model
blueprints/training/raytrain-llama2-pretrain-trn1/llama2_pretrain/modeling_llama_nxd.py - Dataset Loader
blueprints/training/raytrain-llama2-pretrain-trn1/llama2_pretrain/get_dataset.py - Training Logger
blueprints/training/raytrain-llama2-pretrain-trn1/llama2_pretrain/logger.py
AI Gateway
- Multi-Model Routing
blueprints/gateways/envoy-ai-gateway/multi-model-routing/client.py - Rate Limiting
blueprints/gateways/envoy-ai-gateway/rate-limiting/client.py
User Tools
- Gradio LLM UI
blueprints/inference/gradio-ui/gradio-app-llama.py - Gradio Diffusion UI
blueprints/inference/gradio-ui/gradio-app-stable-diffusion.py - JARK Streamlit UI
infra/jark-stack/src/app/streamlit.py - Dogbooth Service
infra/jark-stack/src/service/dogbooth.py
Other components
- Platform User
- Amazon EKS
Connections 20
- Platform User → Blueprint Collection: selects pattern
- Blueprint Collection → Amazon EKS: deploys workloads
- Ray Training Entry → Llama Pretraining: configures trainer
blueprints/training/raytrain-llama2-pretrain-trn1/llama2_pretrain/ray_train_llama2.py - Llama Pretraining → Neuron Llama Model: uses model
blueprints/training/raytrain-llama2-pretrain-trn1/llama2_pretrain/tp_zero1_llama2_7b_hf_pretrain.py - Llama Pretraining → Training Logger: uses logging
blueprints/training/raytrain-llama2-pretrain-trn1/llama2_pretrain/tp_zero1_llama2_7b_hf_pretrain.py - Llama Pretraining → Dataset Loader: loads data
- Platform User → Inference Clients: sends inference requests
- Inference Clients → Ray Serve LLMs: calls serving endpoint
- Inference Clients → Ray Serve Llama 3: calls serving endpoint
- Inference Clients → Ray Serve Mistral: calls serving endpoint
- Inference Clients → Ray Serve Diffusion: calls serving endpoint
- Inference Clients → Ray Serve SDXL: calls serving endpoint
- Inference Clients → vLLM Ray Serve: calls serving endpoint
- Triton Client → Triton Model Backends: queries models
- Multi-Model Routing → Amazon EKS: routes workloads
- Rate Limiting → Amazon EKS: limits usage
- Platform User → Gradio LLM UI: uses interface
- Platform User → Gradio Diffusion UI: uses interface
- Platform User → JARK Streamlit UI: uses interface
- JARK Streamlit UI → Dogbooth Service: invokes service