Instructions to use eunJ/SKKU_vulnerability_detector_binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use eunJ/SKKU_vulnerability_detector_binary with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("google/gemma-7b") model = PeftModel.from_pretrained(base_model, "eunJ/SKKU_vulnerability_detector_binary") - Transformers
How to use eunJ/SKKU_vulnerability_detector_binary with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("eunJ/SKKU_vulnerability_detector_binary", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from eunJ/SKKU_vulnerability_detector_binary: direct link, hf CLI and curl.
- Browser
- Download file 636 Bytes
-
https://huggingface.co/eunJ/SKKU_vulnerability_detector_binary/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://eunJ/SKKU_vulnerability_detector_binary/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/eunJ/SKKU_vulnerability_detector_binary/resolve/main/special_tokens_map.json
636 Bytes
| { | |
| "additional_special_tokens": [ | |
| "<start_of_turn>", | |
| "<end_of_turn>" | |
| ], | |
| "bos_token": { | |
| "content": "<bos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<eos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |