Instructions to use ContinuousAT/Phi-CAT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ContinuousAT/Phi-CAT with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct") model = PeftModel.from_pretrained(base_model, "ContinuousAT/Phi-CAT") - Notebooks
- Google Colab
- Kaggle
File size: 912 Bytes
f68dd18 09260a7 f68dd18 9d0a394 f68dd18 9d0a394 f68dd18 9d0a394 f68dd18 9d0a394 f68dd18 9d0a394 f68dd18 9d0a394 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ---
library_name: peft
base_model: microsoft/Phi-3-mini-4k-instruct
---
# Model Card for Model ID
In this repo are LoRa weights of the Phi-3-mini-4k-instruct model (https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) finetuned with the Continuous Adversarial Training (CAT) algorithm.
For more information, see our paper "Efficient Adversarial Training in LLMs with Continuous Attacks" (https://arxiv.org/abs/2405.15589)
## Github
https://github.com/sophie-xhonneux/Continuous-AdvTrain/edit/master/README.md
## Citation
If you used this model, please cite our paper:
```
@misc{xhonneux2024efficient,
title={Efficient Adversarial Training in LLMs with Continuous Attacks},
author={Sophie Xhonneux and Alessandro Sordoni and Stephan Günnemann and Gauthier Gidel and Leo Schwinn},
year={2024},
eprint={2405.15589},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
```
|