Instructions to use Cyber-ThreaD/SecureBERT-APTNER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cyber-ThreaD/SecureBERT-APTNER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Cyber-ThreaD/SecureBERT-APTNER", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Cyber-ThreaD/SecureBERT-APTNER") model = AutoModelForTokenClassification.from_pretrained("Cyber-ThreaD/SecureBERT-APTNER", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "epoch": 10.0, | |
| "eval_accuracy": 0.921147324548914, | |
| "eval_f1": 0.5621327218002007, | |
| "eval_loss": 0.29150861501693726, | |
| "eval_precision": 0.5391806433874072, | |
| "eval_recall": 0.587125748502994, | |
| "eval_runtime": 9.3681, | |
| "eval_samples": 1749, | |
| "eval_samples_per_second": 186.698, | |
| "eval_steps_per_second": 23.377 | |
| } |