We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f892c18 commit 062de3aCopy full SHA for 062de3a
convert_hf_to_gguf.py
@@ -6447,9 +6447,11 @@ class T5GemmaModel(TextModel):
6447
6448
def __init__(self, *args, **kwargs):
6449
# Load hyperparameters first to modify them for super().__init__()
6450
- dir_model: Path = args[0] if args else kwargs.get('dir_model')
+ dir_model = args[0] if args else kwargs.get('dir_model')
6451
if dir_model is None:
6452
raise ValueError("dir_model is required")
6453
+ # Type assertion after None check
6454
+ dir_model = Path(dir_model)
6455
6456
hparams = kwargs.get("hparams") or ModelBase.load_hparams(dir_model)
6457
encoder_config = hparams.get("encoder", {})
0 commit comments