Skip to content

add debertav2 #1022

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Global:

Model:
name: imagen_SR1024
text_encoder_name: t5/t5-11b
text_encoder_name: projects/imagen/t5/t5-11b
text_embed_dim: 1024
timesteps: 1000
in_chans: 3
Expand All @@ -25,12 +25,13 @@ Model:
dynamic_thresholding_percentile: 0.95
only_train_unet_number: 1
use_recompute: False
recompute_granularity:

Data:
Train:
dataset:
name: ImagenDataset
input_path: ./projects/imagen/filelist/cc12m_base64.lst
input_path: ./projects/imagen/filelist/laion_400M/train
shuffle: True
input_resolution: 1024
max_seq_len: 128
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Loss:
p2_loss_weight_k: 1.0

Distributed:
dp_degree: 1
dp_degree: 128
mp_degree: 1
pp_degree: 1
sharding:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Model:
dynamic_thresholding_percentile: 0.95
only_train_unet_number: 1
use_recompute: False
recompute_granularity:

Loss:
name: mse_loss
Expand Down
1 change: 1 addition & 0 deletions ppfleetx/models/multimodal_model/imagen/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from .unet import Unet
from ppfleetx.models.language_model.t5 import *
from ppfleetx.models.language_model.debertav2 import *
from ppfleetx.data.tokenizers import get_t5_tokenizer
from .utils import (
GaussianDiffusionContinuousTimes, default, exists, cast_tuple, first,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ python -m paddle.distributed.launch --log_dir $log_dir --devices "0,1,2,3,4,5,6,
./tools/train.py \
-c ./ppfleetx/configs/multimodal/imagen/imagen_text2im_64x64_T5-11B.yaml \
-o Distributed.sharding.sharding_stage=2 \
-o Distributed.dp_degree=32 \
-o Distributed.dp_degree=32 \
-o Distributed.sharding.sharding_degree=8