File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ def apply_recipe_modifiers(
160
160
session = active_session ()
161
161
session .reset ()
162
162
163
+ # TODO: validate modifiers before intialization, likely in recipe
163
164
session .initialize (
164
165
model = self .model ,
165
166
start = - 1 ,
Original file line number Diff line number Diff line change @@ -62,10 +62,11 @@ def from_modifiers(
62
62
def _validate_infer_pipeline (modifiers : List [Modifier ]) -> str :
63
63
if any (isinstance (modifier , AWQModifier ) for modifier in modifiers ):
64
64
if len (modifiers ) > 1 :
65
- raise ValueError (
65
+ logger . warning (
66
66
"AWQ does not currently support sharing a data pipeline with other "
67
- "modifiers. Please use oneshot( pipeline='independent') "
67
+ "modifiers. Inferring `independent` calibration pipeline"
68
68
)
69
+ return "independent"
69
70
return "datafree"
70
71
71
72
if any (isinstance (modifier , SEQUENTIAL_MODIFIERS ) for modifier in modifiers ):
You can’t perform that action at this time.
0 commit comments