Commit e6c7b05e authored by Vijay Korthikanti's avatar Vijay Korthikanti
Browse files

Adressing more review comments

parent da8dccd6
...@@ -165,7 +165,11 @@ def save_checkpoint(iteration, model, optimizer, lr_scheduler): ...@@ -165,7 +165,11 @@ def save_checkpoint(iteration, model, optimizer, lr_scheduler):
def load_checkpoint(model, optimizer, lr_scheduler, load_arg='load', strict=True): def load_checkpoint(model, optimizer, lr_scheduler, load_arg='load', strict=True):
"""Load a model checkpoint and return the iteration.""" """Load a model checkpoint and return the iteration.
strict (bool): whether to strictly enforce that the keys in
:attr:`state_dict` of the checkpoint match the names of
parameters and buffers in model.
"""
args = get_args() args = get_args()
load_dir = getattr(args, load_arg) load_dir = getattr(args, load_arg)
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
"""BERT model.""" """Vision Transformer(VIT) model."""
import math import math
import einops import einops
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
"""GLUE finetuning/evaluation.""" """Vision-classification finetuning/evaluation."""
from megatron import get_args from megatron import get_args
from megatron import print_rank_0 from megatron import print_rank_0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment