Amazon Web Services has released Ray LLM Deep Learning Containers that run one large language model across two GPU nodes on Amazon Elastic Kubernetes Service. One node handles prefill and the other handles decode, behind a single OpenAI-compatible endpoint, AWS says.
Prefill and decode are the two phases of inference. Prefill reads the whole prompt at once and builds a key-value cache, which is the model's working memory of the input. Decode then writes the response one token at a time. AWS says prefill is compute bound, while decode is limited by memory bandwidth. Splitting them keeps long, compute-heavy prompts from stalling token generation for requests already in progress.
The containers are pre-built Docker images maintained and tested by AWS. They bundle Ray Serve LLM, the NVIDIA Inference Transfer Library and the Elastic Fabric Adapter networking stack, and they expose the API without application code. AWS says this removes the work of choosing compatible GPU libraries and debugging them when they drift out of alignment.
AWS names retrieval augmented generation, document summarization and agentic applications as workloads suited to this setup. The company also published sample code in an accompanying repository.
Source: Run multi-node inference workloads using Ray LLM Deep Learning Containers | Artificial Intelligence.