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
881e966a
Unverified
Commit
881e966a
authored
Jan 15, 2024
by
Tom Aarsen
Committed by
GitHub
Jan 15, 2024
Browse files
[`chore`] Update warning text, a word was missing (#28017)
Update warning, a word was missing
parent
121641ca
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
src/transformers/models/llama/modeling_llama.py
src/transformers/models/llama/modeling_llama.py
+2
-2
src/transformers/models/mistral/modeling_mistral.py
src/transformers/models/mistral/modeling_mistral.py
+2
-2
src/transformers/models/mixtral/modeling_mixtral.py
src/transformers/models/mixtral/modeling_mixtral.py
+2
-2
src/transformers/models/persimmon/modeling_persimmon.py
src/transformers/models/persimmon/modeling_persimmon.py
+2
-2
src/transformers/models/phi/modeling_phi.py
src/transformers/models/phi/modeling_phi.py
+2
-2
No files found.
src/transformers/models/llama/modeling_llama.py
View file @
881e966a
...
...
@@ -291,8 +291,8 @@ class LlamaAttention(nn.Module):
self
.
layer_idx
=
layer_idx
if
layer_idx
is
None
:
logger
.
warning_once
(
f
"Instantiating
{
self
.
__class__
.
__name__
}
without passing `layer_idx` is not recommended and will "
"to errors during the forward call
,
if caching is used. Please make sure to provide a `layer_idx` "
f
"Instantiating
{
self
.
__class__
.
__name__
}
without passing
a
`layer_idx` is not recommended and will "
"
lead
to errors during the forward call if caching is used. Please make sure to provide a `layer_idx` "
"when creating this class."
)
...
...
src/transformers/models/mistral/modeling_mistral.py
View file @
881e966a
...
...
@@ -202,8 +202,8 @@ class MistralAttention(nn.Module):
self
.
layer_idx
=
layer_idx
if
layer_idx
is
None
:
logger
.
warning_once
(
f
"Instantiating
{
self
.
__class__
.
__name__
}
without passing `layer_idx` is not recommended and will "
"to errors during the forward call
,
if caching is used. Please make sure to provide a `layer_idx` "
f
"Instantiating
{
self
.
__class__
.
__name__
}
without passing
a
`layer_idx` is not recommended and will "
"
lead
to errors during the forward call if caching is used. Please make sure to provide a `layer_idx` "
"when creating this class."
)
...
...
src/transformers/models/mixtral/modeling_mixtral.py
View file @
881e966a
...
...
@@ -246,8 +246,8 @@ class MixtralAttention(nn.Module):
self
.
layer_idx
=
layer_idx
if
layer_idx
is
None
:
logger
.
warning_once
(
f
"Instantiating
{
self
.
__class__
.
__name__
}
without passing `layer_idx` is not recommended and will "
"to errors during the forward call
,
if caching is used. Please make sure to provide a `layer_idx` "
f
"Instantiating
{
self
.
__class__
.
__name__
}
without passing
a
`layer_idx` is not recommended and will "
"
lead
to errors during the forward call if caching is used. Please make sure to provide a `layer_idx` "
"when creating this class."
)
...
...
src/transformers/models/persimmon/modeling_persimmon.py
View file @
881e966a
...
...
@@ -185,8 +185,8 @@ class PersimmonAttention(nn.Module):
self
.
layer_idx
=
layer_idx
if
layer_idx
is
None
:
logger
.
warning_once
(
f
"Instantiating
{
self
.
__class__
.
__name__
}
without passing `layer_idx` is not recommended and will "
"to errors during the forward call
,
if caching is used. Please make sure to provide a `layer_idx` "
f
"Instantiating
{
self
.
__class__
.
__name__
}
without passing
a
`layer_idx` is not recommended and will "
"
lead
to errors during the forward call if caching is used. Please make sure to provide a `layer_idx` "
"when creating this class."
)
...
...
src/transformers/models/phi/modeling_phi.py
View file @
881e966a
...
...
@@ -237,8 +237,8 @@ class PhiAttention(nn.Module):
self
.
layer_idx
=
layer_idx
if
layer_idx
is
None
:
logger
.
warning_once
(
f
"Instantiating
{
self
.
__class__
.
__name__
}
without passing `layer_idx` is not recommended and will "
"to errors during the forward call
,
if caching is used. Please make sure to provide a `layer_idx` "
f
"Instantiating
{
self
.
__class__
.
__name__
}
without passing
a
`layer_idx` is not recommended and will "
"
lead
to errors during the forward call if caching is used. Please make sure to provide a `layer_idx` "
"when creating this class."
)
...
...
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