Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Administrator
metaseq
Commits
fd353a6f
Unverified
Commit
fd353a6f
authored
3 years ago
by
Arthur
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Update convert_to_singleton.py
Delete temp file saving
parent
2f6bec11
github/fork/ArthurZucker/fix-conversion-script
1 merge request
!181
Update convert_to_singleton.py
Pipeline
#12
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
metaseq/scripts/convert_to_singleton.py
+0
-4
metaseq/scripts/convert_to_singleton.py
with
0 additions
and
4 deletions
+0
-4
metaseq/scripts/convert_to_singleton.py
+
0
-
4
View file @
fd353a6f
...
...
@@ -93,10 +93,6 @@ def worker_main(cfg: MetaseqConfig):
if
dist_utils
.
get_global_rank
()
==
0
:
glued
=
glue_megatron_parts
(
model_parts
)
with
open
(
"temp.pt"
,
"wb"
)
as
f
:
torch
.
save
(
glued
,
f
)
glued
[
"decoder.version"
]
=
torch
.
tensor
([
3
])
if
"decoder.output_projection.weight"
in
glued
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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