Skip to content

sugolov/skipnorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skip norm

Implementing classification ViT at scale with deepspeed acceleration. Investigating the effect of normalizing the residual stream on training stability

Setup

Dependencies

pip install torch==2.3.1 torchvision==0.18.1 deepspeed==0.16.2

Run single device training (run.sh):

python run.py \
    --data-path ~/.data \
    --num-workers 1
    --epochs 1 \
    --checkpoint-path checkpoints \
    --checkpoint-epochs 1

Run distributed training (run_deepspeed.sh)

deepspeed \
    --num_gpus=2 \
    run.py \
    --deepspeed \
    --deepspeed_config ds_configs/default.json \
    --data-path /fs01/datasets/cifar10 \
    --epochs 1 \
    --num-workers 2 \
    --checkpoint-path /fs01/projects/skipnorm/checkpoints \
    --checkpoint-epoch 1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published