Fix Gemma2 types (#31779)

Update __init__.py
This commit is contained in:
hoshi-hiyouga 2024-07-04 21:37:32 +08:00 committed by GitHub
parent 87726a08ed
commit cee768d97e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ else:
]
if TYPE_CHECKING:
from .configuration_gemma import Gemma2Config
from .configuration_gemma2 import Gemma2Config
try:
if not is_torch_available():
@ -47,7 +47,7 @@ if TYPE_CHECKING:
except OptionalDependencyNotAvailable:
pass
else:
from .modeling_gemma import (
from .modeling_gemma2 import (
Gemma2ForCausalLM,
Gemma2ForSequenceClassification,
Gemma2ForTokenClassification,