Update hf_utils.py
Browse files- hf_utils.py +1 -1
hf_utils.py
CHANGED
@@ -249,7 +249,7 @@ class AutoModelForCausalLMWithRM(PreTrainedModel):
|
|
249 |
use_safetensors: Optional[bool] = None,
|
250 |
**kwargs: Any,
|
251 |
) -> PreTrainedModel:
|
252 |
-
trust_remote_code = kwargs.pop('trust_remote_code',
|
253 |
use_flash_attention_2 = kwargs.pop('use_flash_attention_2', False)
|
254 |
return_lm_logits = kwargs.pop('return_lm_logits', False)
|
255 |
load_in_8bit = kwargs.pop('load_in_8bit', False)
|
|
|
249 |
use_safetensors: Optional[bool] = None,
|
250 |
**kwargs: Any,
|
251 |
) -> PreTrainedModel:
|
252 |
+
trust_remote_code = kwargs.pop('trust_remote_code', True)
|
253 |
use_flash_attention_2 = kwargs.pop('use_flash_attention_2', False)
|
254 |
return_lm_logits = kwargs.pop('return_lm_logits', False)
|
255 |
load_in_8bit = kwargs.pop('load_in_8bit', False)
|