Instructions to use TransferGraph/mrm8488_codebert-base-finetuned-detect-insecure-code-finetuned-lora-tweet_eval_hate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use TransferGraph/mrm8488_codebert-base-finetuned-detect-insecure-code-finetuned-lora-tweet_eval_hate with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("mrm8488/codebert-base-finetuned-detect-insecure-code") model = PeftModel.from_pretrained(base_model, "TransferGraph/mrm8488_codebert-base-finetuned-detect-insecure-code-finetuned-lora-tweet_eval_hate") - Notebooks
- Google Colab
- Kaggle
mrm8488_codebert-base-finetuned-detect-insecure-code-finetuned-lora-tweet_eval_hate / special_tokens_map.json
Download special_tokens_map.json from TransferGraph/mrm8488_codebert-base-finetuned-detect-insecure-code-finetuned-lora-tweet_eval_hate: direct link, hf CLI and curl.
- Browser
- Download file 958 Bytes
-
https://huggingface.co/TransferGraph/mrm8488_codebert-base-finetuned-detect-insecure-code-finetuned-lora-tweet_eval_hate/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://TransferGraph/mrm8488_codebert-base-finetuned-detect-insecure-code-finetuned-lora-tweet_eval_hate/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/TransferGraph/mrm8488_codebert-base-finetuned-detect-insecure-code-finetuned-lora-tweet_eval_hate/resolve/main/special_tokens_map.json
958 Bytes
| { | |
| "bos_token": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "cls_token": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "mask_token": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "sep_token": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |