Skip to content

Commit

Permalink
strip model_id path
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubitium committed Mar 1, 2025
1 parent 54d90cc commit 7afcacf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gptqmodel/models/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ def load(
verify_hash: Optional[Union[str, List[str]]] = None,
**kwargs,
):
if isinstance(model_id_or_path, str):
model_id_or_path = model_id_or_path.strip()

# normalize config to cfg instance
if isinstance(quantize_config, Dict):
quantize_config = QuantizeConfig(**quantize_config)
Expand Down

0 comments on commit 7afcacf

Please sign in to comment.