Skip to content

Modify pipeline and auto_map#16906

Closed
RkGrit wants to merge 2 commits intoapache:masterfrom
RkGrit:modify_pipeline
Closed

Modify pipeline and auto_map#16906
RkGrit wants to merge 2 commits intoapache:masterfrom
RkGrit:modify_pipeline

Conversation

@RkGrit
Copy link
Contributor

@RkGrit RkGrit commented Dec 15, 2025

Some modifications regarding model management, including:

  • Expose the preprocess and postprocess interfaces of the Pipeline class.
  • Builtin model no longer relies on auto_map, but uses config_cls and model_cls in BUILTIN_HF_TRANSFORMERS_MODEL_MAP.
  • User-defined model still uses the auto_map in config.json to obtain config_cls and model_cls.

…d model_cls in BUILTIN_HF_TRANSFORMERS_MODEL_MAP; (2)However, user-defined model still uses the auto_map in config.json to obtain config_cls and model_cls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant