adding model arg override at generation time for interactive.py
@@ -73,7 +73,7 @@ def main(args):
# Load ensemble
print('| loading model(s) from {}'.format(args.path))
model_paths = args.path.split(':')
- models, model_args = utils.load_ensemble_for_inference(model_paths, task)
+ models, model_args = utils.load_ensemble_for_inference(model_paths, task, model_arg_overrides=eval(args.model_overrides))
# Set dictionaries
src_dict = task.source_dictionary
