Skip to content

Added news_fake_example.ipynb and updated retnet/modeling_retnet.py for compatibility #41

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trueroyce
Copy link

Purpose

This PR adds a new example notebook to demonstrate the use of the RetNet model and updates the codebase to ensure compatibility with the latest dependencies.

Changes

  • Added news_fake_example.ipynb to showcase how to load and test the RetNet model with a sample dataset.
  • Updated retnet/modeling_retnet.py to fix compatibility issues with updated library versions.

Notes

This PR addresses compatibility issues caused by updates in the transformers library. Specifically, the top_k_top_p_filtering function is now imported from transformers.generation.utils. This change ensures the codebase remains functional with the latest version of transformers.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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