---
title: llama2-7b-WildJailbreak
canonical_url: "https://www.modelscope.cn/models/LLM-Research/llama2-7b-WildJailbreak"
md_url: "https://www.modelscope.cn/models/LLM-Research/llama2-7b-WildJailbreak.md"
repository: LLM-Research/llama2-7b-WildJailbreak
last_updated: 2024-09-09
license: apache-2.0
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - llama
architectures:
  - LlamaForCausalLM
library_name:
  - pytorch
frameworks:
  - pytorch
language:
  - en
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy 0.9.1"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 2090
stars: 0
---

# llama2-7b-WildJailbreak

> llama2-7b-WildJailbreak - LLM-Research 在 ModelScope 开源的模型。Model Card for llama2-7b-WildJailbreak

LLM-Research/llama2-7b-WildJailbreak 是 ModelScope 魔搭社区上的text-generation模型，采用 apache-2.0 许可，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: LLM-Research/llama2-7b-WildJailbreak
- **License**: apache-2.0
- **Tasks**: text-generation
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Downloads**: 2090
- **Stars**: 0
- **Last updated**: 2024-09-09

Source: https://www.modelscope.cn/models/LLM-Research/llama2-7b-WildJailbreak

---

## Model Card for llama2-7b-WildJailbreak

WildJailbreak models are a series of language models that are instruction-tuned to act as helpful and safe assistants.

For more details, read the paper: [WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models](https://arxiv.org/abs/2406.18510).

## Model description

- **Model type:** The model is fine-tuned with the [WildJailbreak](https://huggingface.co/datasets/allenai/wildjailbreak) safety training dataset + an augmented version of [Tulu2Mix](https://huggingface.co/datasets/allenai/tulu-v2-sft-mixture), a general capability instruction-tuning dataset.
- **Model size:** 7B
- **Language(s) (NLP):** English
- **License:** Apache 2.0.
- **Finetuned from model:** [meta-llama/Llama-2-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b-hf)

## Results

Please refer to our [paper](https://arxiv.org/abs/2406.18510) for the full detail of model results.

<img src="assets/safety_training_results.png" alt="drawing" width="600"/>

## Intended uses & limitations

The model was fine-tuned on a mixture of [WildJailbreak](https://huggingface.co/datasets/allenai/wildjailbreak) safety training data and an augmented version of [Tulu2Mix](https://huggingface.co/datasets/allenai/tulu-v2-sft-mixture) dataset, which contains a diverse range of human created instructions and synthetic dialogues generated primarily by other LLMs.
Although our model went through significant safety enhancement by [WildJailbreak](https://huggingface.co/datasets/allenai/wildjailbreak), it's not bulletproof to all types of jailbreaks (especially in multilingual setup and multiturn conversations).
We hope that by open-sourcing safety-trained models and their safety training resources, we can facilitate a new arena of LLM safety studies regarding the limitations and promises of LLM safety, tailored to models with enhanced safety ability.

### Training details


<img src="assets/params.png" alt="drawing" width="200"/>


## Citation

If you find this resource useful in your work, please cite it with:

```
@misc{wildteaming2024,
      title={WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models}, 
      author={Liwei Jiang and Kavel Rao and Seungju Han and Allyson Ettinger and Faeze Brahman and Sachin Kumar and Niloofar Mireshghallah and Ximing Lu and Maarten Sap and Yejin Choi and Nouha Dziri},
      year={2024},
      eprint={2406.18510},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2406.18510}, 
}
```
