Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/gpu/modal_distill.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,8 @@ def accept_label(src: str, label: str) -> None:
torch.cuda.empty_cache()
student.to("cuda")
student.gradient_checkpointing_enable()
if mtp_head is not None: # built while student was still on cpu
mtp_head.to("cuda")

class TeacherPairs(Dataset):
def __len__(self):
Expand Down
Loading