Instructions to use deepcode-ai/Prompt-Injection-LLM01 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use deepcode-ai/Prompt-Injection-LLM01 with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("undefined") model.load_adapter("deepcode-ai/Prompt-Injection-LLM01", set_active=True) - Notebooks
- Google Colab
- Kaggle
| from abc import ABC, abstractmethod | |
| from ast import List | |
| class PromptEvaluator(ABC): | |
| def eval_sample(self,sample): | |
| pass | |
| def get_name(self): | |
| pass | |
| def eval_batch(self,sample_list:List): | |
| for sample in sample_list: | |
| self.eval_sample(sample) |