Instructions to use SmartDataPolito/logprecis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SmartDataPolito/logprecis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="SmartDataPolito/logprecis")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("SmartDataPolito/logprecis") model = AutoModelForTokenClassification.from_pretrained("SmartDataPolito/logprecis", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,7 +8,8 @@ widget:
|
|
| 8 |
|
| 9 |
[LogPrecis](https://arxiv.org/abs/2307.08309) is a [Codebert](microsoft/codebert-base) model fine-tuned for **Token Classification**.
|
| 10 |
|
| 11 |
-
The model was previously domain-adapted using a corpus of **>20k Unix sessions**.
|
|
|
|
| 12 |
|
| 13 |
Specifically, LogPrecis is designed for the analysis of **malicious Unix logs**. Given as input a Unix session:
|
| 14 |
|
|
@@ -20,7 +21,7 @@ LogPrecis outputs the sequence of [Mitre Tactics](https://attack.mitre.org/tacti
|
|
| 20 |
|
| 21 |
`Impact x 3 -- Execution x 10`
|
| 22 |
|
| 23 |
-
LogPrecis achieved a **91.2% accuracy** on the test set. Its training code and
|
| 24 |
|
| 25 |
---
|
| 26 |
metrics:
|
|
|
|
| 8 |
|
| 9 |
[LogPrecis](https://arxiv.org/abs/2307.08309) is a [Codebert](microsoft/codebert-base) model fine-tuned for **Token Classification**.
|
| 10 |
|
| 11 |
+
The model was previously domain-adapted using a corpus of **>20k Unix sessions**. Later, it was further finetuned on the task of **Token Classification** with **360 labelled examples**.
|
| 12 |
+
|
| 13 |
|
| 14 |
Specifically, LogPrecis is designed for the analysis of **malicious Unix logs**. Given as input a Unix session:
|
| 15 |
|
|
|
|
| 21 |
|
| 22 |
`Impact x 3 -- Execution x 10`
|
| 23 |
|
| 24 |
+
LogPrecis achieved a **91.2% accuracy** on the test set. Its training code, data and training details are available on SmartData's [GitHub](https://github.com/SmartData-Polito/logprecis).
|
| 25 |
|
| 26 |
---
|
| 27 |
metrics:
|