Skip to content

Conversation

@entrpn
Copy link
Collaborator

@entrpn entrpn commented Feb 12, 2026

Description

Adds optional cosine loss between hidden states of teacher/student after norm to the distillation loss.

Tests

  • Ran train_distill_test unit test
  • Ran train_distill.py on llama3.1-8b.

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

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