diff --git a/metaseq/logging/progress_bar/aim_progress_bar.py b/metaseq/logging/progress_bar/aim_progress_bar.py index 7a5d23906fda593e2904a3fe301f23f579430e11..4b1ad7dd912aaf590cbbf4b438fb8d1752391513 100644 --- a/metaseq/logging/progress_bar/aim_progress_bar.py +++ b/metaseq/logging/progress_bar/aim_progress_bar.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from metaseq.logging.progress_bar.base_progress_bar import ( BaseProgressBar, logger, diff --git a/metaseq/modules/activation_functions.py b/metaseq/modules/activation_functions.py index 5df4ea24d2a658ada96796de14390da4575ca4cb..f652651160aa17e21d26fcd4f7e37fc061dbed7f 100644 --- a/metaseq/modules/activation_functions.py +++ b/metaseq/modules/activation_functions.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import torch import torch.nn as nn import torch.nn.functional as F diff --git a/metaseq/scripts/convert_to_singleton.py b/metaseq/scripts/convert_to_singleton.py index ceaf1c353fac20f3ecaace414abeb1901f8c4d2f..20900f0ee3d9d67587d7592d305249bf021b7624 100644 --- a/metaseq/scripts/convert_to_singleton.py +++ b/metaseq/scripts/convert_to_singleton.py @@ -1,5 +1,9 @@ #!/usr/bin/env python +# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. """ Script for backing out of the MP-resharded (reshard.pt) files and getting back a non-flattened state dict. diff --git a/metaseq/scripts/generation_benchmarks.py b/metaseq/scripts/generation_benchmarks.py index b64cb99fbe61fd4c95d75b18744113074d75a61b..1a37e2467270a9e7daffd20b5134d9dc19996a53 100644 --- a/metaseq/scripts/generation_benchmarks.py +++ b/metaseq/scripts/generation_benchmarks.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import os from transformers import GPT2Tokenizer from metaseq import checkpoint_utils, tasks, utils