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 finetuning notebook augmentation #2071

Merged
merged 9 commits into from
Jan 26, 2022

Conversation

MichelBartels
Copy link
Contributor

@MichelBartels MichelBartels commented Jan 26, 2022

Proposed changes:
Previously, the data augmentation and model distillation parts of the finetuning tutorial were not working due to 2 issues:

  1. Wrong path to train file
  2. The PR for implementing model distillation did not make sure that all LanguageModels could actually return hidden states and attentions

This PR fixes those and uses a different dataset for model distillation in the tutorial to decrease notebook runtime (more than 1 h for distillation before).

Status (please check what you already did):

  • First draft (up for discussions & feedback)
  • Final code
  • Added tests
  • Updated documentation

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍 Please try to run the notebook on colab as a final test: https://colab.research.google.com/github/deepset-ai/haystack/blob/fix-finetuning-notebook-augmentation/tutorials/Tutorial2_Finetune_a_model_on_your_data.ipynb#scrollTo=lHkSOXjBd0fS (with !pip install git+https://github.com/deepset-ai/haystack.git@fix-finetuning-notebook-augmentation

@MichelBartels MichelBartels merged commit 4cc3754 into master Jan 26, 2022
@MichelBartels MichelBartels deleted the fix-finetuning-notebook-augmentation branch January 26, 2022 16:49
@MichelBartels MichelBartels restored the fix-finetuning-notebook-augmentation branch January 31, 2022 11:07
@masci masci deleted the fix-finetuning-notebook-augmentation branch August 18, 2022 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants