Skip to content

fix(e5): move the mtp head to cuda with the student - #117

Merged
ronaldtse merged 1 commit into
mainfrom
fix/e5-device
Sep 1, 2026
Merged

fix(e5): move the mtp head to cuda with the student#117
ronaldtse merged 1 commit into
mainfrom
fix/e5-device

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

build_mtp ran while the student was still on cpu, so the head's Linears stayed there and the first training step crashed with a device mismatch (labels are safe in the run dir; relaunch skips labeling). Second launch-iteration bug on E5 — the run is resume-safe by construction.

build_mtp ran while the student was still on cpu (student.to('cuda')
happens after label generation), so the head's Linears stayed on cpu
and the first training step died in a device mismatch. Labels survive
in the run dir — the relaunch skips labeling and trains.
@ronaldtse
ronaldtse merged commit 5861c4f into main Sep 1, 2026
3 checks passed
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