Instructions to use CyberPeace-Institute/Cybersecurity-Knowledge-Graph with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CyberPeace-Institute/Cybersecurity-Knowledge-Graph with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="CyberPeace-Institute/Cybersecurity-Knowledge-Graph", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForTokenClassification model = AutoModelForTokenClassification.from_pretrained("CyberPeace-Institute/Cybersecurity-Knowledge-Graph", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from CyberPeace-Institute/Cybersecurity-Knowledge-Graph: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/CyberPeace-Institute/Cybersecurity-Knowledge-Graph/resolve/400226a2baa65a46e54d5658a27dc321a1d3d300/config.json
- Command line
-
hf download hf://CyberPeace-Institute/Cybersecurity-Knowledge-Graph@400226a2baa65a46e54d5658a27dc321a1d3d300/config.json
-
curl -L -o config.json https://huggingface.co/CyberPeace-Institute/Cybersecurity-Knowledge-Graph/resolve/400226a2baa65a46e54d5658a27dc321a1d3d300/config.json
406 Bytes
| { | |
| "architectures": [ | |
| "CybersecurityKnowledgeGraphModel" | |
| ], | |
| "event_argument_model_path": "cybersecurity_knowledge_graph/argument_model_state_dict.pth", | |
| "event_nugget_model_path": "cybersecurity_knowledge_graph/nugget_model_state_dict.pth", | |
| "event_realis_model_path": "cybersecurity_knowledge_graph/realis_model_state_dict.pth", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.33.2" | |
| } | |