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
OpenDAS
Megatron-LM
Commits
b10ca211
Commit
b10ca211
authored
Oct 12, 2021
by
mshoeybi
Browse files
fixed a bug
parent
8f7c0d11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
megatron/model/transformer.py
megatron/model/transformer.py
+2
-1
No files found.
megatron/model/transformer.py
View file @
b10ca211
...
...
@@ -214,8 +214,9 @@ class ParallelAttention(MegatronModule):
# is not provided, make sure there is no potential memory left
# from previous inference.
else
:
self
.
inference_key_memory
=
None
self
.
inference_value_memory
=
None
self
.
inference_current_sequence_len
=
None
# =====================
# Query, Key, and Value
...
...
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