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
Update README.md
Browse files
README.md
CHANGED
|
@@ -101,7 +101,7 @@ def predict_mask(sent, tokenizer, model, topk=10, print_results=True):
|
|
| 101 |
|
| 102 |
return words
|
| 103 |
```
|
| 104 |
-
Limitations & Risks
|
| 105 |
|
| 106 |
* Domain-Specific Bias: SecureBERT is trained primarily on cybersecurity-related text. It may underperform on tasks outside this domain compared to general-purpose models.
|
| 107 |
|
|
|
|
| 101 |
|
| 102 |
return words
|
| 103 |
```
|
| 104 |
+
# Limitations & Risks
|
| 105 |
|
| 106 |
* Domain-Specific Bias: SecureBERT is trained primarily on cybersecurity-related text. It may underperform on tasks outside this domain compared to general-purpose models.
|
| 107 |
|