Baal in Production Notebook | Classification | NLP | Hugging Face #245
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
This is a demo/tutorial to use active learning with hugging face models in a production setting. Kindly find more about this at in the discussion at #242
Features:
NA
Checklist:
tests/documentation_test.py
).Given that this is a notebook and I am not setting up any new modules there are no test cases. There is some pending type hinting pending which I will complete.
Opening a PR for your feedback, just to check if you want me to add/remove somethings
Additional Info
Challenges with current GPU
Seems like the pytorch version which baal uses does not support my current GPU. Although I have tested this on Colab and it works fine.
More info about this on the pytorch forum in case someone runs into a similar issue
Although I have tested this on Colab and it works fine.
Challenges with Black Formatting
You might want to update your black version to
black==22.3.0
.The make format command produces an error which is identical to the one mentioned at stack overflow here.
I have encountered this before and an upgrade does fix it