Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugging checkpoint resumption #469

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pstjohn
Copy link
Collaborator

@pstjohn pstjohn commented Nov 22, 2024

Currently running the following pre-training command:

DATA_DIR=$(download_bionemo_data esm2/testdata_esm2_pretrain:2.0 --source ngc)

train_esm2 \
    --train-cluster-path ${DATA_DIR}/2024_03_sanity/train_clusters_sanity.parquet \
    --train-database-path ${DATA_DIR}/2024_03_sanity/train_sanity.db \
    --valid-cluster-path ${DATA_DIR}/2024_03_sanity/valid_clusters.parquet \
    --valid-database-path ${DATA_DIR}/2024_03_sanity/validation.db \
    --resume-if-exists \
    --precision="bf16-mixed" \
    --num-gpus 1 \
    --num-nodes 1 \
    --num-steps 10_000 \
    --val-check-interval 1_000 \
    --stop-after-steps 1_500 \
    --max-seq-length 1024 \
    --limit-val-batches 2 \
    --micro-batch-size 16 \
    --num-layers=6 \
    --hidden-size=320 \
    --num-attention-heads=20 \
    --ffn-hidden-size=1280 \
    --tensor-model-parallel-size 1 \
    --create-tensorboard-logger \
    --wandb-project=esm2_checkpoint_resumption \
    --experiment-name=8m_pretraining_local

Runs resumed from a checkpoint are reproducible, but different from the model that continued without stopping

Screenshot 2024-11-22 at 9 57 02 AM

@pstjohn pstjohn changed the title adding option to error out after n steps debugging checkpoint resumption Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant