Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
c712d05a
Unverified
Commit
c712d05a
authored
Apr 30, 2024
by
Raushan Turganbay
Committed by
GitHub
Apr 30, 2024
Browse files
Pass `use_cache` in kwargs for GPTNeoX (#30538)
pass use_cache in kwargs
parent
a3aabc70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/models/gpt_neox/modeling_gpt_neox.py
src/transformers/models/gpt_neox/modeling_gpt_neox.py
+1
-0
No files found.
src/transformers/models/gpt_neox/modeling_gpt_neox.py
View file @
c712d05a
...
...
@@ -1108,6 +1108,7 @@ class GPTNeoXForCausalLM(GPTNeoXPreTrainedModel):
"attention_mask"
:
attention_mask
,
"past_key_values"
:
past_key_values
,
"position_ids"
:
position_ids
,
"use_cache"
:
kwargs
.
get
(
"use_cache"
),
}
)
...
...
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