File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ def from_dict(
2929 cls , config_dict : dict [str , Any ], ** kwargs
3030 ) -> "IndependentSpeculatorConfig" :
3131 """
32- Create a IndependentSpeculatorConfig from a dictionary, automatically instantiating
33- the correct subclass based on the speculators_model_type field.
32+ Create a IndependentSpeculatorConfig from a dictionary, automatically
33+ instantiating the correct subclass based on the speculators_model_type field.
3434
3535 :param config_dict: Dictionary containing the configuration
3636 :param kwargs: Additional keyword arguments that override config values
@@ -122,8 +122,10 @@ def __init__(
122122 and config .speculators_model_type != "independent"
123123 ):
124124 raise ValueError (
125- f"Attempted to initialize a IndependentSpeculator with a { config .speculators_model_type } config class."
126- "IndependentSpeculator only supports models with speculators_model_type='independent'."
125+ "Attempted to initialize a IndependentSpeculator with a "
126+ f"{ config .speculators_model_type } config class. "
127+ "IndependentSpeculator only supports models with "
128+ "speculators_model_type='independent'."
127129 )
128130 # Subclass of PretrainedConfig but not an IndependentSpeculatorConfig
129131 # Convert to IndependentSpeculatorConfig
You can’t perform that action at this time.
0 commit comments