Update configuration_slip.py: use HF torch_dtype instead of hardcoded bfloat16
Browse files1234516 unmodified lines222324252627"""SLIP model configuration for HuggingFace Hub."""from transformers import PretrainedConfig16 unmodified linessensor_encoder=None,**kwargs,):super().__init__(**kwargs)self.llm_model_name = llm_model_nameself.max_llm_len = max_llm_len12345616 unmodified lines23242526272829"""SLIP model configuration for HuggingFace Hub."""import torchfrom transformers import PretrainedConfig16 unmodified linessensor_encoder=None,**kwargs,):kwargs.setdefault("torch_dtype", "bfloat16")super().__init__(**kwargs)self.llm_model_name = llm_model_nameself.max_llm_len = max_llm_len
configuration_slip.py+2