Skip to content

jiangjiawen/fastai-custom-model-with-different-learning-rate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fastai-custom-model-with-different-learning-rate

conv2d with padding code is from here:

https://github.com/Gasoonjia/Tensorflow-type-padding-with-pytorch-conv2d.

thanks a lot.

The core codes are:

x=nn.Sequential(*list(learn.model.children()))
learn.split([x[5]])

They can split model into 2 layer_groups, you can check it by:

print(learn.layer_groups)

run these scripts by

python3 -m torch.distributed.launch --nproc_per_node=2 testDistributeMyModel.py

If you have 2 gpus on your machine.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages