Unverified Commit cf85e86e authored by Krisztián Boros's avatar Krisztián Boros Committed by GitHub
Browse files

remove incorrect urls pointing to the llava repository (#31107)

* remove incorrect urls pointing to the llava repository

* remove incorrect urls pointing to the llava repository; removing entire comments

* remove incorrect urls pointing to the llava repository; removing entire comments; ran fix-copies

* ran fixup
parent 3345ae73
...@@ -1344,9 +1344,6 @@ class Idefics2PreTrainedModel(PreTrainedModel): ...@@ -1344,9 +1344,6 @@ class Idefics2PreTrainedModel(PreTrainedModel):
_supports_cache_class = True _supports_cache_class = True
def _init_weights(self, module): def _init_weights(self, module):
# important: this ported version of Idefics2 isn't meant for training from scratch - only
# inference and fine-tuning - so the proper init weights code has been removed - the original codebase
# https://github.com/haotian-liu/LLaVA/tree/main/idefics2 should serve for that purpose
std = ( std = (
self.config.text_config.initializer_range self.config.text_config.initializer_range
if hasattr(self.config, "initializer_range") if hasattr(self.config, "initializer_range")
......
...@@ -129,9 +129,6 @@ class VideoLlavaPreTrainedModel(PreTrainedModel): ...@@ -129,9 +129,6 @@ class VideoLlavaPreTrainedModel(PreTrainedModel):
_no_split_modules = ["VideoLlavaVisionAttention"] _no_split_modules = ["VideoLlavaVisionAttention"]
def _init_weights(self, module): def _init_weights(self, module):
# important: this ported version of VideoLlava isn't meant for training from scratch - only
# inference and fine-tuning - so the proper init weights code has been removed - the original codebase
# https://github.com/haotian-liu/LLaVA/tree/main/video_llava should serve for that purpose
std = ( std = (
self.config.initializer_range self.config.initializer_range
if hasattr(self.config, "initializer_range") if hasattr(self.config, "initializer_range")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment