Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wuxk1
Megatron-LM
Commits
33a666d4
Commit
33a666d4
authored
Jul 30, 2020
by
Neel Kant
Browse files
Remove spurious imports
parent
eaa5d877
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
megatron/checkpointing.py
megatron/checkpointing.py
+1
-2
pretrain_ict.py
pretrain_ict.py
+0
-1
No files found.
megatron/checkpointing.py
View file @
33a666d4
...
...
@@ -22,7 +22,6 @@ import numpy as np
import
torch
from
torch.nn.parallel
import
DistributedDataParallel
as
torchDDP
from
torch.nn.parallel.distributed
import
DistributedDataParallel
as
torchDDP
from
megatron
import
mpu
,
get_args
from
megatron
import
get_args
...
...
@@ -284,4 +283,4 @@ def load_ict_checkpoint(model, only_query_model=False, only_block_model=False, f
if
mpu
.
get_data_parallel_rank
()
==
0
:
print
(
' successfully loaded {}'
.
format
(
checkpoint_name
))
return
model
\ No newline at end of file
return
model
pretrain_ict.py
View file @
33a666d4
...
...
@@ -24,7 +24,6 @@ from megatron import print_rank_0
from
megatron
import
get_timers
from
megatron
import
mpu
from
megatron.data.dataset_utils
import
build_train_valid_test_datasets
from
megatron.model
import
ICTBertModel
from
megatron.training
import
pretrain
from
megatron.utils
import
reduce_losses
from
megatron.model.realm_model
import
general_ict_model_provider
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment