
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# Phi2-Seq-classification-LoRa

This model is a fine-tuned version of [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) on the None dataset.

## Model description

More information needed

## Intended uses & limitations

```
tokenizer = AutoTokenizer.from_pretrained("ysy970923/phi-2-prompt-injection-QLoRA")
model = AutoModelForSequenceClassification.from_pretrained("ysy970923/phi-2-prompt-injection-QLoRA", load_in_4bit=True, torch_dtype=torch.bfloat16, id2label={0: "SAFE", 1: "INJECTION"})

```

## Training and evaluation data

More information needed

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 0.0002
- train_batch_size: 2
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 8
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: constant
- lr_scheduler_warmup_ratio: 0.03
- training_steps: 100

### Framework versions

- PEFT 0.8.2
- Transformers 4.37.2
- Pytorch 2.2.0+cu121
- Datasets 2.17.0
- Tokenizers 0.15.2
{"license": "mit", "library_name": "peft", "tags": ["generated_from_trainer"], "datasets": ["hackaprompt/hackaprompt-dataset", "HuggingFaceH4/ultrachat_200k", "HuggingFaceH4/no_robots", "imoxto/prompt_injection_cleaned_dataset-v2"], "base_model": "microsoft/phi-2", "model-index": [{"name": "Phi2-Seq-classification-LoRa", "results": []}]}
peft safetensors generated_from_trainer dataset:hackaprompt/hackaprompt-dataset dataset:HuggingFaceH4/ultrachat_200k dataset:HuggingFaceH4/no_robots dataset:imoxto/prompt_injection_cleaned_dataset-v2 base_model:microsoft/phi-2 license:mit region:us