Training a 70B Japanese Large Language Model with Amazon SageMaker HyperPod

institute_of_science_tokyo · Research & Academia · 2025 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Sovereign Japanese LLM training

The Institute of Science Tokyo needed to adapt Llama 3.3 70B for Japanese language tasks while operating a reliable, efficient 256-GPU distributed training environment.

Constraints:

Architecture

The team continually pre-trained Meta's Llama 3.3 70B into Llama 3.3 Swallow on SageMaker HyperPod. The architecture combined a 32-node P5/H100 cluster, S3 plus FSx for Lustre storage, Megatron-LM 4D parallelism, communication overlap, asynchronous distributed checkpointing, and monitoring across the training environment.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  japanese_training_corpus["Japanese training corpus"] --> amazon_s3_storage["Amazon S3 storage"]
  amazon_s3_storage --> fsx_for_lustre_filesystem["FSx for Lustre filesystem"]
  fsx_for_lustre_filesystem --> hyperpod_h100_cluster["HyperPod H100 cluster"]
  hyperpod_h100_cluster --> megatron_lm_training_stack["Megatron-LM training stack"]
  megatron_lm_training_stack --> distributed_checkpointing["Distributed checkpointing"]
  distributed_checkpointing --> amazon_s3_storage
  monitoring_systems["Monitoring systems"] --> hyperpod_h100_cluster
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Japanese training corpus Provides primarily Japanese tokens for continual pre-training. Amazon S3 storage, FSx for Lustre filesystem
Amazon S3 storage Stores durable training data and model checkpoints. Japanese training corpus, FSx for Lustre filesystem
FSx for Lustre filesystem Provides high-performance parallel file access during active training. Amazon S3 storage, HyperPod H100 cluster
HyperPod H100 cluster Runs distributed 70B continual pre-training across 256 GPUs. FSx for Lustre filesystem, Megatron-LM training stack, Monitoring systems
Megatron-LM training stack Implements 4D parallelism and communication overlap for efficient distributed training. HyperPod H100 cluster, Distributed checkpointing
Distributed checkpointing Writes asynchronous checkpoints without blocking training as severely as traditional checkpointing. Megatron-LM training stack, Amazon S3 storage
Monitoring systems Track large-scale training reliability and performance. HyperPod H100 cluster

Data flow

Japanese training data and checkpoints live durably in S3, synchronize into FSx for Lustre for high-throughput access, feed distributed Megatron-LM training across a 256-H100 HyperPod cluster, and checkpoint asynchronously through Distributed Checkpoint so training can continue with less interruption.

3 supporting quotes
“Amazon S3 serves as the foundation for long-term storage of training data and model checkpoints, while Amazon FSx for Lustre provides high-performance parallel file system capabilities during active training.”summary, stated
“The team deployed 32 EC2 P5 instances, each equipped with 8 NVIDIA H100 GPUs, creating a 256-GPU cluster configured in a single spine topology”summary, stated
“The asynchronous checkpointing implementation using Distributed Checkpoint (DCP) represents a significant advancement in production training reliability.”summary, stated

Why this architecture

A 70B continual-pretraining run needed distributed compute, fast shared storage, communication optimization, and non-blocking checkpointing; SageMaker HyperPod, FSx, S3, and Megatron-LM map directly to those bottlenecks.

“This configuration represents a production-scale distributed training environment that requires sophisticated resource management and monitoring.”summary, stated
“This dual-layer approach prevents storage bottlenecks that commonly plague large-scale training operations”summary, stated

Models used: Meta Llama 3.3 70B · Llama 3.3 Swallow · Megatron-LM

Scale

Alternatives considered (roads not taken)

Train from scratch

Rejected because: The project adapted Meta's Llama 3.3 through continual pre-training instead.

“building upon Meta's foundation model through continual pre-training rather than training from scratch.”summary, stated

Single-layer storage

Rejected because: The team used S3 for durability and FSx for high-performance active training to avoid storage bottlenecks.

“The storage architecture implements a hierarchical approach that balances performance with cost-effectiveness”summary, stated

Traditional blocking checkpointing

Rejected because: The team used asynchronous checkpointing to reduce checkpoint bottlenecks.

“Traditional checkpointing approaches often create bottlenecks that interrupt training”summary, stated

Patterns

fine-tuning-adaptation (model adaptation)

The team continually pre-trained Llama 3.3 70B on Japanese data to produce Llama 3.3 Swallow.

“continual pre-training from Meta's Llama 3.3 70B model using 314 billion tokens of primarily Japanese training data”summary, stated

durable-execution (training reliability)

Asynchronous distributed checkpointing protected long-running training without frequent blocking pauses.

“asynchronous checkpointing, and comprehensive monitoring systems that enabled efficient large-scale model training in production.”summary, stated

observability-tracing (training operations)

Monitoring systems were part of the production LLMOps training stack.

“comprehensive monitoring systems that enabled efficient large-scale model training in production.”summary, stated

Tradeoffs

Continual pre-training from Llama 3.3 70B.

Chose Adapt an existing foundation model over Train a Japanese model from scratch.

Rationale: This targeted Japanese capability while maintaining computational efficiency at 70B scale.

“This required not only sophisticated training methodologies but also robust infrastructure capable of handling the computational demands of such a massive model.”summary, stated

Use hierarchical storage.

Chose S3 plus FSx for Lustre over A single storage layer.

Rationale: The design balanced long-term durability with active-training throughput.

“The storage architecture implements a hierarchical approach that balances performance with cost-effectiveness, a critical consideration in production LLMOps.”summary, stated

Gotchas (what bit them)

Storage can bottleneck large-scale training.

Root cause: Hundreds of GPUs need high-throughput data and checkpoint access.

Resolution: Use S3 for durability and FSx for Lustre for active parallel file access.

“This dual-layer approach prevents storage bottlenecks that commonly plague large-scale training operations, with the FSx for Lustre system enabling efficient data access patterns across all training nodes.”summary, stated

Checkpointing can interrupt long training jobs.

Root cause: Traditional checkpointing creates blocking bottlenecks.

Resolution: Use asynchronous Distributed Checkpoint to parallelize checkpoint operations.

“Traditional checkpointing approaches often create bottlenecks that interrupt training, but the team's implementation parallelizes checkpoint operations across all available GPUs while using asynchronous I/O operations.”summary, stated

GPU utilization suffers if communication blocks computation.

Root cause: Distributed parallelism introduces communication across data, tensor, and pipeline domains.

Resolution: Overlap communication across all parallelism domains.

“The team implemented overlapping communication across all parallelism domains, significantly reducing blocking time during computation.”summary, stated

Evaluation

The model was evaluated on Japanese language benchmarks against GPT-4o-mini and other leading models; operations were judged by training efficiency and production readiness.

Metrics: 70B parameters. · 314B training tokens. · 16 training days. · 256 H100 GPUs. · Superior Japanese benchmark performance versus GPT-4o-mini and other leading models.

“The resulting model demonstrates superior performance compared to GPT-4o-mini and other leading models on Japanese language benchmarks”summary, stated

Outcomes

Training used 314B tokens over 16 days on a 256-H100 cluster.

“The Institute of Science Tokyo successfully developed Llama 3.3 Swallow, a 70-billion-parameter large language model with enhanced Japanese capabilities”summary, stated