Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] label_list not being set for NLP token classification training if distillation teacher and student labels do not match (#1414) #1416

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

bfineran
Copy link
Member

@bfineran bfineran commented Mar 4, 2023

  • [Fix] Fix label_list not being set for NLP token classification training if distillation teacher and student labels do not match

  • Added two fixes: omitting the labels/indices matching for student/teacher if teacher is a string; prioritizing teacher labels to student labels if teacher labels are string and student's int

  • revert previous int label patch - allow int labels to let given dataset be the source of truth

  • only override label_list when teacher and student labels sets are equal


…if distillation teacher and student labels do not match (#1414)

* [Fix] Fix label_list not being set for NLP token classification training if distillation teacher and student labels do not match

* Added two fixes: omitting the labels/indices matching for student/teacher if teacher is a string; prioritizing teacher labels to student labels if teacher labels are string and student's int

* revert previous int label patch - allow int labels to let given dataset be the source of truth

* only override label_list when teacher and student labels sets are equal

---------

Co-authored-by: Damian <damian@neuralmagic.com>
Co-authored-by: Benjamin <ben@neuralmagic.com>
@bfineran bfineran self-assigned this Mar 4, 2023
@bfineran bfineran merged commit ba818cd into release/1.5 Mar 4, 2023
@bfineran bfineran deleted the cherry_pick-1.5-nlp_token_fix branch March 4, 2023 05:47
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.

None yet

2 participants