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
chenpangpang
transformers
Commits
23f6a43f
Unverified
Commit
23f6a43f
authored
Jul 23, 2024
by
Joao Gante
Committed by
GitHub
Jul 23, 2024
Browse files
fix (#32162)
parent
d5a99dfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/llama/modeling_llama.py
src/transformers/models/llama/modeling_llama.py
+1
-1
No files found.
src/transformers/models/llama/modeling_llama.py
View file @
23f6a43f
...
@@ -107,7 +107,7 @@ class LlamaRotaryEmbedding(nn.Module):
...
@@ -107,7 +107,7 @@ class LlamaRotaryEmbedding(nn.Module):
else
:
else
:
# BC: "rope_type" was originally "type"
# BC: "rope_type" was originally "type"
if
config
.
rope_scaling
is
not
None
:
if
config
.
rope_scaling
is
not
None
:
self
.
rope_type
=
config
.
rope_scaling
.
get
(
"rope_type"
,
config
.
rope_scaling
[
"type"
]
)
self
.
rope_type
=
config
.
rope_scaling
.
get
(
"rope_type"
,
config
.
rope_scaling
.
get
(
"type"
)
)
else
:
else
:
self
.
rope_type
=
"default"
self
.
rope_type
=
"default"
self
.
max_seq_len_cached
=
config
.
max_position_embeddings
self
.
max_seq_len_cached
=
config
.
max_position_embeddings
...
...
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