fix: linter

This commit is contained in:
drbh 2025-05-06 00:03:17 +00:00
parent 783ca66926
commit 551ee3a365

View File

@ -418,7 +418,7 @@ class VlmCausalLM(FlashCausalLM):
logger.warning(
f"Tokenizer vocab size {self.tokenizer.vocab_size} does not match model vocab size {self.config.vocab_size}. Updating tokenizer vocab size."
)
# TODO: HUGE HACK! This is a workaround to update the vocab size
# TODO: HUGE HACK! This is a workaround to update the vocab size
# in the tokenizer. When the tokenizer is updated within the model
# the vocab size is not updated in the tokenizer.
self.tokenizer._vocab_size = self.config.vocab_size