Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: shunxing12345 <[email protected]>
  • Loading branch information
shunxing12345 committed Dec 30, 2024
1 parent 6370c62 commit 775062f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
17 changes: 6 additions & 11 deletions src/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5512,7 +5512,6 @@
from .models.levit import LevitConfig
from .models.lilt import LiltConfig
from .models.llama import LlamaConfig
from .models.telechat2 import TeleChat2Config
from .models.llava import (
LlavaConfig,
LlavaProcessor,
Expand Down Expand Up @@ -5799,6 +5798,7 @@
TapasConfig,
TapasTokenizer,
)
from .models.telechat2 import TeleChat2Config
from .models.time_series_transformer import (
TimeSeriesTransformerConfig,
)
Expand Down Expand Up @@ -7411,11 +7411,6 @@
LlamaModel,
LlamaPreTrainedModel,
)
from .models.telechat2 import (
TeleChat2ForCausalLM,
TeleChat2Model,
TeleChat2PreTrainedModel,
)
from .models.llava import (
LlavaForConditionalGeneration,
LlavaPreTrainedModel,
Expand Down Expand Up @@ -8131,6 +8126,11 @@
TapasPreTrainedModel,
load_tf_weights_in_tapas,
)
from .models.telechat2 import (
TeleChat2ForCausalLM,
TeleChat2Model,
TeleChat2PreTrainedModel,
)
from .models.time_series_transformer import (
TimeSeriesTransformerForPrediction,
TimeSeriesTransformerModel,
Expand Down Expand Up @@ -9192,11 +9192,6 @@
FlaxLlamaModel,
FlaxLlamaPreTrainedModel,
)
from .models.telechat2 import (
FlaxTeleChat2ForCausalLM,
FlaxTeleChat2Model,
FlaxTeleChat2PreTrainedModel,
)
from .models.longt5 import (
FlaxLongT5ForConditionalGeneration,
FlaxLongT5Model,
Expand Down
1 change: 0 additions & 1 deletion src/transformers/convert_slow_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,6 @@ def converted(self) -> Tokenizer:
"SeamlessM4TTokenizer": SeamlessM4TConverter,
"SqueezeBertTokenizer": BertConverter,
"T5Tokenizer": T5Converter,
"TeleChat2Tokenizer": LlamaConverter,
"UdopTokenizer": UdopConverter,
"WhisperTokenizer": WhisperConverter,
"XLMRobertaTokenizer": XLMRobertaConverter,
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
levit,
lilt,
llama,
telechat2,
llava,
llava_next,
llava_next_video,
Expand Down Expand Up @@ -251,6 +250,7 @@
t5,
table_transformer,
tapas,
telechat2,
time_series_transformer,
timesformer,
timm_backbone,
Expand Down

0 comments on commit 775062f

Please sign in to comment.