Skip to content

Add llama3.1-70b E2E test scripts - #4279

Merged
copybara-service[bot] merged 1 commit into
AI-Hypercomputer:mainfrom
CIeNET-International:emma/e2e-training-llama3-70b
Jul 17, 2026
Merged

Add llama3.1-70b E2E test scripts#4279
copybara-service[bot] merged 1 commit into
AI-Hypercomputer:mainfrom
CIeNET-International:emma/e2e-training-llama3-70b

Conversation

@chiajunglien

@chiajunglien chiajunglien commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description

This PR introduces end-to-end (E2E) testing and validation pipelines for the Llama3.1 70B model in MaxText.

Tests (Testing on v5p-128 cluster)

Pre-Training:

export RUN_ID=$(date +%Y-%m-%d-%H-%M)
bash tests/end_to_end/tpu/llama3.1/70b/test_llama3.1_70b_to_mt.sh $RUN_ID
bash tests/end_to_end/tpu/llama3.1/70b/test_llama3.1_70b.sh $RUN_ID

SFT:

export RUN_ID=$(date +%Y-%m-%d-%H-%M)
bash tests/end_to_end/tpu/llama3.1/70b/test_llama3.1_70b_to_mt.sh $RUN_ID
bash tests/end_to_end/tpu/llama3.1/70b/test_llama3.1_70b_sft.sh $RUN_ID

RL:

export RUN_ID=$(date +%Y-%m-%d-%H-%M)
bash tests/end_to_end/tpu/llama3.1/70b/test_llama3.1_70b_to_mt.sh $RUN_ID
bash tests/end_to_end/tpu/llama3.1/70b/test_llama3.1_70b_rl.sh $RUN_ID

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

Comment thread tests/end_to_end/tpu/llama3.1/70b/test_llama3.1_70b_to_mt.sh Outdated
Comment thread tests/end_to_end/tpu/llama3.1/70b/test_llama3.1_70b_to_mt.sh
@chiajunglien chiajunglien changed the title Add llama3.1-70b E2E test scripts for pre-training Add llama3.1-70b E2E test scripts Jun 30, 2026
@chiajunglien
chiajunglien force-pushed the emma/e2e-training-llama3-70b branch from 98951f4 to 20a8cbb Compare July 1, 2026 08:42
@chiajunglien
chiajunglien marked this pull request as ready for review July 2, 2026 08:06
@chiajunglien
chiajunglien force-pushed the emma/e2e-training-llama3-70b branch from e8ba9a7 to 04a50c4 Compare July 2, 2026 09:38
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chiajunglien
chiajunglien force-pushed the emma/e2e-training-llama3-70b branch 5 times, most recently from c3cb1b2 to e4738b7 Compare July 9, 2026 09:23
….1-70b

Introduces E2E test configurations and scripts for llama3.1-70b model,
covering both pre-training and post-training validation pipelines.
@chiajunglien
chiajunglien force-pushed the emma/e2e-training-llama3-70b branch from 0f3682c to 6bf8e6f Compare July 10, 2026 07:17
load_parameters_path=${CKPT_PATH} \
base_output_directory=${BASE_OUTPUT_DIRECTORY}/to_huggingface/${scan_status}/${run_id} \
use_multimodal=${USE_MULTIMODAL} \
scan_layers=$SCAN_LAYERS No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we do forward_pass_logit_checker as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite sure, as the existing tests/end_to_end/tpu/gemma3/4b/test_gemma3_to_hf.sh doesn't have this check. I followed its pattern for this PR.

# export RUN_ID=$(date +%Y-%m-%d-%H-%M-%S)
# bash test_llama3.1_70b_to_mt.sh $RUN_ID
# bash test_llama3.1_70b_rl.sh $RUN_ID

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$USE_PATHWAY is the second arguments?

@chiajunglien chiajunglien Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the second argument is for Pathways. But we don't need to manually pass it here since the DAG will automatically handle it and configure for us.

set -ex

run_id=${1:-$(date +%Y-%m-%d-%H-%M-%S)}
use_pathways=${2:-false}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use_pathways to be true because we are testing with v5p cluster?

@chiajunglien chiajunglien Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do need Pathways for multi-host VMs.
The reason we kept the default as false here is just for easier single-host/local testing. When running on multi-host through the DAG, the DAG will automatically pass true as the second argument to handle the Pathways setup for us.

set -ex

run_id=${1:-$(date +%Y-%m-%d-%H-%M-%S)}
use_pathways=${2:-false}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use_pathways to be true if tested on multi-host vms?

@chiajunglien chiajunglien Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do need Pathways for multi-host VMs.
The reason we kept the default as false here is just for easier single-host/local testing. When running on multi-host through the DAG, the DAG will automatically pass true as the second argument to handle the Pathways setup for us.

# export HF_TOKEN=<your Hugging Face access token>
# export RUN_ID=$(date +%Y-%m-%d-%H-%M-%S)
# bash test_llama3.1_70b_to_mt.sh $RUN_ID
# bash test_llama3.1_70b_sft.sh $RUN_ID

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing argument

@chiajunglien chiajunglien Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the second argument is for Pathways. But we don't need to manually pass it here since the DAG will automatically handle it and configure for us.

@copybara-service
copybara-service Bot merged commit 4b357c1 into AI-Hypercomputer:main Jul 17, 2026
160 of 162 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants