Skip to content

Latest commit

 

History

History
 
 

checkpoint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Model Checkpoint

Examples of how to use model checkpoint.

How to run

We use colossalai.launch_from_torch as an example here. Before running, you should export DATA=/path/to/cifar-10.

If you are training with single node multiple GPUs:

# If your torch >= 1.10.0
torchrun --standalone --nproc_per_node <world_size> save_engine.py

# If your torch >= 1.9.0
python -m torch.distributed.run --standalone --nproc_per_node=<world_size> save_engine.py

# Otherwise
python -m torch.distributed.launch --nproc_per_node <world_size> --master_addr <node_name> --master_port 29500 save_engine.py

If you are using multiple nodes, see torchrun.