Skip to content

Commit d11dccb

Browse files
committed
rm trust_remote_code
1 parent 4840d2f commit d11dccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def get_model_part_names(dir_model: Path, prefix: str, suffix: str) -> list[str]
419419
@staticmethod
420420
def load_hparams(dir_model: Path):
421421
try:
422-
return AutoConfig.from_pretrained(dir_model, trust_remote_code=True).to_dict()
422+
return AutoConfig.from_pretrained(dir_model).to_dict()
423423
except Exception as e:
424424
logger.warning(f"Failed to load model config from {dir_model}: {e}")
425425
logger.warning("Trying to load config.json instead")

0 commit comments

Comments
 (0)