Instructions to use dima806/strong-password-checker-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dima806/strong-password-checker-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dima806/strong-password-checker-bert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dima806/strong-password-checker-bert") model = AutoModelForSequenceClassification.from_pretrained("dima806/strong-password-checker-bert") - Notebooks
- Google Colab
- Kaggle
Uses BERT model and trained it on ~2 million most common and randomly generated passwords to check the password strength.
Works well (weighted accuracy 99.4%) for passwords not exceeding 10 symbols.
Note that in hosted inference API, due to the default tokenizer, there is no difference between lower and upper case letters.
To use the model with the correct tokenizer, you need to invoke the model as follows:
# Use a pipeline as a high-level helper - need to specify cased tokenizer
from transformers import pipeline
pipe = pipeline("text-classification", model="dima806/strong-password-checker-bert", tokenizer="bert-base-cased")
See https://www.kaggle.com/code/dima806/passwords-strength-checker-bert for details.
- Downloads last month
- 5
Model tree for dima806/strong-password-checker-bert
Base model
google-bert/bert-base-cased