[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-03-13 17:20:56 +00:00
parent a1b545c734
commit 994e9c287d
3 changed files with 8 additions and 4 deletions

View file

@ -89,7 +89,9 @@ class TeacherDistillationEnv(BaseEnv, ABC):
# Core fetch
# ------------------------------------------------------------------
def _validate_teacher_tokenizer_compatibility(self, teacher_tokenizer_name: str) -> None:
def _validate_teacher_tokenizer_compatibility(
self, teacher_tokenizer_name: str
) -> None:
student_tok_name = getattr(self.tokenizer, "name_or_path", None) or ""
if student_tok_name == teacher_tokenizer_name:
return