Instructions to use ehsanaghaei/SecureBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ehsanaghaei/SecureBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="ehsanaghaei/SecureBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("ehsanaghaei/SecureBERT") model = AutoModelForMaskedLM.from_pretrained("ehsanaghaei/SecureBERT") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
acf9ffc
1
Parent(s): 80644a7
Update README.md
Browse files
README.md
CHANGED
|
@@ -32,18 +32,6 @@ outputs = model(**inputs)
|
|
| 32 |
|
| 33 |
last_hidden_states = outputs.last_hidden_state
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
Or just clone the repo:
|
| 38 |
-
|
| 39 |
-
```
|
| 40 |
-
git lfs install
|
| 41 |
-
git clone https://huggingface.co/ehsanaghaei/SecureBERT
|
| 42 |
-
# if you want to clone without large files – just their pointers
|
| 43 |
-
# prepend your git clone with the following env var:
|
| 44 |
-
GIT_LFS_SKIP_SMUDGE=1
|
| 45 |
-
```
|
| 46 |
-
|
| 47 |
## Fill Mask
|
| 48 |
SecureBERT has been trained on MLM. Use the code below to predict the masked word within the given sentences:
|
| 49 |
|
|
|
|
| 32 |
|
| 33 |
last_hidden_states = outputs.last_hidden_state
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
## Fill Mask
|
| 36 |
SecureBERT has been trained on MLM. Use the code below to predict the masked word within the given sentences:
|
| 37 |
|