Skip to content

Commit

Permalink
quality
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuntowicz committed Jul 24, 2024
1 parent 33f28c6 commit a964c08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/optimum/nvidia/utils/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def model_type_from_known_config(config: Dict[str, Any]) -> Optional[str]:
): # Extracting (Llama)(ForCausalLM)
return match.group(1).lower()
else:
raise RuntimeError(f"model_type {model_type} is not a valid model_type format")
raise RuntimeError(
f"model_type {model_type} is not a valid model_type format"
)
else:
raise RuntimeError(f"Unable to process model_type: {model_type}")
else:
Expand Down
1 change: 0 additions & 1 deletion tests/test_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import mock
import pytest
import torch.cuda
from huggingface_hub import login
from transformers import AutoConfig as HfAutoConfig
from transformers import AutoModelForCausalLM as HfAutoModelForCausalLM

Expand Down

0 comments on commit a964c08

Please sign in to comment.