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
cee768d9
Unverified
Commit
cee768d9
authored
Jul 04, 2024
by
hoshi-hiyouga
Committed by
GitHub
Jul 04, 2024
Browse files
Fix Gemma2 types (#31779)
Update __init__.py
parent
87726a08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/models/gemma2/__init__.py
src/transformers/models/gemma2/__init__.py
+2
-2
No files found.
src/transformers/models/gemma2/__init__.py
View file @
cee768d9
...
@@ -39,7 +39,7 @@ else:
...
@@ -39,7 +39,7 @@ else:
]
]
if
TYPE_CHECKING
:
if
TYPE_CHECKING
:
from
.configuration_gemma
import
Gemma2Config
from
.configuration_gemma
2
import
Gemma2Config
try
:
try
:
if
not
is_torch_available
():
if
not
is_torch_available
():
...
@@ -47,7 +47,7 @@ if TYPE_CHECKING:
...
@@ -47,7 +47,7 @@ if TYPE_CHECKING:
except
OptionalDependencyNotAvailable
:
except
OptionalDependencyNotAvailable
:
pass
pass
else
:
else
:
from
.modeling_gemma
import
(
from
.modeling_gemma
2
import
(
Gemma2ForCausalLM
,
Gemma2ForCausalLM
,
Gemma2ForSequenceClassification
,
Gemma2ForSequenceClassification
,
Gemma2ForTokenClassification
,
Gemma2ForTokenClassification
,
...
...
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