Skip to content

fix(distill): shared student_t5_config for sequence + logit paths - #174

Merged
ronaldtse merged 1 commit into
mainfrom
student-config-unification
Sep 4, 2026
Merged

fix(distill): shared student_t5_config for sequence + logit paths#174
ronaldtse merged 1 commit into
mainfrom
student-config-unification

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Why

The Hebrew layerdrop launch crashed: layer_drop_state IndexError at
the decoder mapping. Root cause: the logit path built the student with
T5Config(**student_config), which does not understand enc_layers /
dec_layers — T5Config defaults silently produced a 6/6-depth student
from the 6/4 spec, and the verbatim layer copy (4 pretrained decoder
layers) indexed out of range. A 6/6 student would also have been the
wrong experiment entirely.

What

  • student_t5_config(cfg): the one spec-vocabulary -> T5Config
    translation (byte-model constants included)
  • Both the sequence and logit paths use it; 2 new tests pin the depth
    translation and defaults
  • Suite: 131 passed

The logit path's raw T5Config(**student_config) ignored the spec's
enc_layers/dec_layers vocabulary (T5Config defaults won: a 6/6 student
from a 6/4 spec) — the Hebrew layerdrop run crashed in layer_drop_state
with IndexError and would otherwise have silently trained wrong depths.
student_t5_config() is now shared by the sequence and logit paths.
@ronaldtse
ronaldtse merged commit e4b63b3 into main Sep 4, 2026
7 of 10 checks passed
@ronaldtse
ronaldtse deleted the student-config-unification branch September 4, 2026 11:53
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