Downloads · 30 days
8
1% of all-time downloads
dima806/strong-password-checker-bert
strong-password-checker-bert is a text classification model from dima806. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Uses BERT model and trained it on ~2 million most common and randomly generated passwords to check the password strength.
Downloads · 30 days
8
1% of all-time downloads
All-time downloads
938
Public
Parameters
108M
1.7 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin867 MB · 40%
How the weights are stored.
F32108M · 100%
From the Hugging Face model README
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.