Skip to content

Commit

Permalink
Remove unnecessary files and code (#2)
Browse files Browse the repository at this point in the history
Some cleanup
  • Loading branch information
saurabhdash2512 authored Mar 12, 2024
1 parent 6e73900 commit 67c4a9b
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/transformers/models/cohere/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@
"configuration_cohere": ["COHERE_PRETRAINED_CONFIG_ARCHIVE_MAP", "CohereConfig"],
}

try:
if not is_sentencepiece_available():
raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
pass
else:
_import_structure["tokenization_cohere"] = ["CohereTokenizer"]

try:
if not is_tokenizers_available():
Expand All @@ -58,14 +51,7 @@
if TYPE_CHECKING:
from .configuration_cohere import COHERE_PRETRAINED_CONFIG_ARCHIVE_MAP, CohereConfig

try:
if not is_sentencepiece_available():
raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
pass
else:
from .tokenization_cohere import CohereTokenizer


try:
if not is_tokenizers_available():
raise OptionalDependencyNotAvailable()
Expand Down

0 comments on commit 67c4a9b

Please sign in to comment.