Skip to content

Deprecate CB config in gen configuration - #47291

Merged
remi-or merged 3 commits into
mainfrom
cb-detangle-cfgs
Jul 24, 2026
Merged

Deprecate CB config in gen configuration#47291
remi-or merged 3 commits into
mainfrom
cb-detangle-cfgs

Conversation

@remi-or

@remi-or remi-or commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

CI

This PR deprecates passing a ContinuousBatchingConfig through the GenerationConfig which is a different object: the generation config is model-centered while the CB config is hardware-centered. Closes #47039 .

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Comment on lines +467 to 469
# Depreacted in 5.13
self.continuous_batching_config = kwargs.pop("continuous_batching_config", None)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can raise a deprec warning here if continuous_batching_config is not None , hopefully there are no configs saved with CB config

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add that!

@github-actions

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 29894476643:1
Result: success | Jobs: 15 | Tests: 159,103 | Failures: 0 | Duration: 14h 35m

@remi-or
remi-or added this pull request to the merge queue Jul 24, 2026
Merged via the queue into main with commit b98026a Jul 24, 2026
104 checks passed
@remi-or
remi-or deleted the cb-detangle-cfgs branch July 24, 2026 05:13
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Continuous batching Jul 24, 2026
stevhliu pushed a commit to stevhliu/transformers that referenced this pull request Jul 30, 2026
* Depreacte CB config in gen config

* Add depr msg
Sainava pushed a commit to Sainava/Sai-transformers that referenced this pull request Aug 3, 2026
* Depreacte CB config in gen config

* Add depr msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

GenerationConfig serializes ContinuousBatchingConfig as null

3 participants