from local

This commit is contained in:
dohe0342 2022-12-26 13:39:32 +09:00
parent eefb5708ec
commit 6f3d89dd0f
3 changed files with 9 additions and 0 deletions

View File

@ -138,6 +138,15 @@ def set_batch_count(model: Union[nn.Module, DDP], batch_count: float) -> None:
model.encoder.num_updates = int(batch_count)
def add_adapter_arguments(cls, parser: argparse.ArgumentParser):
parser.add_argument(
"--add-adapter",
type=str2bool,
default=False,
help="add adapter to rep model's encoder"
)
def add_rep_arguments(parser: argparse.ArgumentParser):
parser.add_argument(
"--wandb",