AIToday
Large Language ModelsAI Coding AssistantsAmazon AI BlogPublished: Oct 29, 2026, 04:00 JST

AWS ships no-build PyTorch fine-tune sample on Ray Train DLC

Send on LINE
AWS ships no-build PyTorch fine-tune sample on Ray Train DLC

3 Key Points

  1. What happened

    AWS published a sample that fine-tunes Qwen2.5-1.5B with PyTorch FSDP across eight L4 GPUs on two g6.12xlarge instances, using the public Ray Train DLC tag train-ml-cuda-v1.1 and building no image.

  2. Why it matters

    Teams that would otherwise assemble and maintain the training container themselves can instead configure the job from outside the image, which AWS says removes work that has nothing to do with the model being trained.

  3. What to watch

    The sample runs on two g6.12xlarge instances at about $9.50 an hour while the GPU instances are up.

WHO IT HITSML platform engineers and infrastructure teams running PyTorch training on Kubernetes can skip building and patching a custom container, and instead adjust environment variables, resource requests and a single manifest per job.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The sample is built around a division of labour: AWS assembles and tests the software stack as one unit, KubeRay creates and maintains the Ray head and worker pods from a single manifest, and Ray Train places one worker per GPU and forms the distributed process group. The training code itself is one function that contains nothing specific to the container, the cluster or the network, so the same script runs unchanged on one node or many.

The fine-tuning target is Qwen2.5-1.5B in bfloat16, which needs about 12 GB for weights, gradients and optimizer state. Sharded eight ways with FSDP, each L4 GPU holds roughly 1.5 GB, and the sample is judged on whether real FSDP collectives crossed both nodes and the job completed. Batches are random token IDs so the run depends on nothing but the cluster; for a real fine-tune, the random tensor is replaced with a Ray Data or DataLoader pipeline and nothing else in the function changes.

Configuration lives in one place, scripts/env.sh, and most changes to the workload touch exactly one file: the model, steps, sequence length and batch size are variables, and an additional Python package is installed at submit time through Ray runtime_env without changing the image. The sample pins train-ml-cuda-v1.1, the current minor release, so a cluster is reproducible from one run to the next, and the scripts are idempotent and safe to re-run.

FAQ
Do I need to build a container to run this sample?
No. The sample uses the Ray Train DLC exactly as published from Amazon ECR Public, and no image is built at any point.
What hardware does the sample run on?
Two g6.12xlarge instances, each with four NVIDIA L4 GPUs, one EFA interface and 192 GiB of memory, placed in a single Availability Zone.
How much does it cost to run?
About $9.50 an hour while the GPU instances are up, covering both instances, the EKS control plane and the NAT Gateway.
Amazon AI BlogRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleOpenAI essay: AI enters firms beneath, beside and between us