Skip to content

Commit

Permalink
tokenizer_class = "AutoTokenizer" Llava Family (#30912)
Browse files Browse the repository at this point in the history
propagate changes to more models
  • Loading branch information
ArthurZucker committed May 22, 2024
1 parent 4c6c45b commit 6d2439a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/transformers/models/llava_next/processing_llava_next.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class LlavaNextProcessor(ProcessorMixin):
"""

attributes = ["image_processor", "tokenizer"]
image_processor_class = "LlavaNextImageProcessor"
tokenizer_class = ("LlamaTokenizer", "LlamaTokenizerFast")
image_processor_class = "AutoImageProcessor"
tokenizer_class = "AutoTokenizer"

def __init__(self, image_processor=None, tokenizer=None):
super().__init__(image_processor, tokenizer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class VideoLlavaProcessor(ProcessorMixin):

attributes = ["image_processor", "tokenizer"]
image_processor_class = "VideoLlavaImageProcessor"
tokenizer_class = ("LlamaTokenizer", "LlamaTokenizerFast")
tokenizer_class = "AutoTokenizer"

def __init__(self, image_processor=None, tokenizer=None):
super().__init__(image_processor, tokenizer)
Expand Down

0 comments on commit 6d2439a

Please sign in to comment.