Skip to content

fix(sft): use processing_class instead of deprecated tokenizer param#16

Merged
sacredvoid merged 1 commit into
mainfrom
fix/sft-processing-class
Mar 26, 2026
Merged

fix(sft): use processing_class instead of deprecated tokenizer param#16
sacredvoid merged 1 commit into
mainfrom
fix/sft-processing-class

Conversation

@sacredvoid

Copy link
Copy Markdown
Owner

Summary

  • Changes tokenizer=self._tokenizer to processing_class=self._tokenizer in SFTTrainer init
  • Matches DPOTrainer and GRPOTrainer which already use the correct parameter name
  • Eliminates deprecation warning visible in notebook output

Fixes #15

Test plan

  • All 149 tests pass

SFTTrainer was using the deprecated `tokenizer` parameter while
DPOTrainer and GRPOTrainer already use `processing_class`. This
caused deprecation warnings in notebooks and inconsistent API usage.

Fixes #15
@sacredvoid sacredvoid merged commit 5fa18fa into main Mar 26, 2026
@sacredvoid sacredvoid deleted the fix/sft-processing-class branch March 26, 2026 00:37
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.

Bug: SFTTrainer uses deprecated tokenizer param instead of processing_class

1 participant