Run this model with HF Jobs
Run deepcode-ai/Prompt-Injection-LLM01 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/deepcode-ai/Prompt-Injection-LLM01. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/deepcode-ai/Prompt-Injection-LLM01 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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("<base-model-id>") model.load_adapter("deepcode-ai/Prompt-Injection-LLM01", set_active=True) - Notebooks
- Google Colab
- Kaggle
Create mini_llm_perplexity.py
Browse files1234567891011121314151617from prompt_injection.evaluators.base import PromptEvaluatorfrom sentence_transformers import SentenceTransformerimport numpy as np
class MiniLMEmbeddingPromptEvaluator(PromptEvaluator): def __init__(self) -> None: super().__init__() self.model=SentenceTransformer('sentence-transformers/all-MiniLM-L12-v2') def eval_sample(self,sample): try: return self.model.encode([sample]) except Exception as err: return np.nan
def get_name(self): return 'Embedding'prompt_injection/evaluators/mini_llm_perplexity.pyAdded+17