Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HF][fix] Use ParameterizedModelParser instead of ModelParser
Fixing this error: ``` Exception: HuggingFaceImage2TextTransformer.run() got an unexpected keyword argument 'callback_manager' ``` This seems like a pretty brittle bug. If we use `ModelParser` isntead of `ParameterizedModelParser`, we get a bug because `callback_manager` is not a supported kwargs for the `run_inference()` method. This gets filtered out by the `ParameterizedModelParser.run()` method (https://github.com/lastmile-ai/aiconfig/blob/0ceb17636bae2b5416e7b415cdc87fd71b5ba3b0/python/src/aiconfig/default_parsers/parameterized_model_parser.py#L48-L54) but these kwags are not accepted by the `ModelParser.run()` method (https://github.com/lastmile-ai/aiconfig/blob/0ceb17636bae2b5416e7b415cdc87fd71b5ba3b0/python/src/aiconfig/model_parser.py#L62-L69) ## Test Plan Before After
- Loading branch information