Skip to content

fix(distill): logit-KD student vocab matches teacher - #175

Merged
ronaldtse merged 1 commit into
mainfrom
logit-vocab-match
Sep 4, 2026
Merged

fix(distill): logit-KD student vocab matches teacher#175
ronaldtse merged 1 commit into
mainfrom
logit-vocab-match

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

F.kl_div crashed: teacher logits vocab 384 vs student 259. vocab_size now spec-configurable with the sequence-path default preserved; Hebrew layerdrop spec pins 384. Suite 132 green.

The KL between teacher and student distributions requires identical
vocab; student_t5_config hardcoded the sequence path's 259-token
byte-table, so the Hebrew layerdrop crashed in F.kl_div (384 vs 259).
vocab_size is now spec-configurable (259 default preserved); the
Hebrew layerdrop spec pins 384 to match the ByT5 s46 teacher.
@ronaldtse
ronaldtse merged commit a042c5d into main Sep 4, 2026
@ronaldtse
ronaldtse deleted the logit-vocab-match branch September 4, 2026 11:57
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