Skip to content

fix: missing commit for #1518 - #1567

Merged
dxqb merged 1 commit into
Nerogar:mergefrom
dxqb:fix-copy-pipeline-to-dtype-api
Jul 1, 2026
Merged

fix: missing commit for #1518#1567
dxqb merged 1 commit into
Nerogar:mergefrom
dxqb:fix-copy-pipeline-to-dtype-api

Conversation

@dxqb

@dxqb dxqb commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #1518: _copy_pipeline_to_dtype took a tokenizer_attrs tuple of attribute-name strings, with a default of ("tokenizer",). This fix passes the tokenizer objects directly instead, and drops the default so every caller states explicitly which tokenizers it protects.

This addresses review feedback that came in on #1518 after it was already merged.

Test plan

  • pre-commit run --all-files passes

AI assistance

  • AI-assisted — I have read every line in this diff and can defend each change

Drafted by Claude

Avoids attribute-name strings and the default-args("tokenizer",) that
implicitly assumed every model has a single "tokenizer" attribute.
@dxqb dxqb changed the title Simplify _copy_pipeline_to_dtype API: pass tokenizer objects directly fix: missing commit for #1518 Jul 1, 2026
@dxqb
dxqb merged commit ef7bf6c into Nerogar:merge Jul 1, 2026
1 check was pending
@dxqb
dxqb deleted the fix-copy-pipeline-to-dtype-api branch July 1, 2026 05:07
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