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 9087422 commit f1bab30Copy full SHA for f1bab30
src/speculators/model.py
@@ -351,9 +351,14 @@ def attach_verifier(
351
) # Expect subclasses to handle references if train_only
352
353
if add_to_config:
354
- self.config.speculators_config.verifier = VerifierConfig.from_pretrained(
355
- verifier
356
- )
+ try:
+ self.config.speculators_config.verifier = VerifierConfig.from_pretrained(
+ verifier
357
+ )
358
+ except (OSError, ValueError, Exception) as e:
359
+ raise RuntimeError(
360
+ f"Failed to load verifier configuration from '{verifier}': {e}"
361
+ ) from e
362
363
return verifier
364
0 commit comments