Instructions to use nodd-repo/prompt-injection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use nodd-repo/prompt-injection with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'nodd-repo/prompt-injection');
Download nodd.json from nodd-repo/prompt-injection: direct link, hf CLI and curl.
- Browser
- Download file 599 Bytes
-
https://huggingface.co/nodd-repo/prompt-injection/resolve/main/nodd.json
- Command line
-
hf download hf://nodd-repo/prompt-injection/nodd.json
-
curl -L -o nodd.json https://huggingface.co/nodd-repo/prompt-injection/resolve/main/nodd.json
599 Bytes
| {"format":"nodd","format_version":2,"model":"prompt_injection@v3","labels":["safe","injection"],"temperature":1.3288772357007919,"threshold":0.8653128384586074,"max_chars":2000,"files":{"config.json":879,"onnx/model.onnx":70043323,"onnx/model_quantized.onnx":17865709,"tokenizer.json":711649,"tokenizer_config.json":594},"tier":"encoder","tokenizer":{"file":"tokenizer.json","add_special_tokens":true,"max_tokens":256,"truncation":true},"onnx":{"file":"onnx/model_quantized.onnx","fp32_file":"onnx/model.onnx","dtype":"q8","inputs":["input_ids","token_type_ids","attention_mask"],"output":"logits"}} |