The WildLlama-7b-assistant-only model is a chatbot derived from the [Llama-2 model by Meta](https://huggingface.co/meta-llama/Llama-2-7b-hf) that is licensed under the [Llama 2 License](https://ai.meta.com/resources/models-and-libraries/llama-downloads/), enhanced through fine-tuning on the [WildChat Dataset](https://huggingface.co/datasets/allenai/WildChat)'s user-ChatGPT interactions. WildLlama-7b-assistant-only is trained to predict **only assistant responses**. To be able to both predict user prompts and assistant responses, check out [WildLlama-7b-user-assistant](https://huggingface.co/allenai/WildLlama-7b-user-assistant).
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
## Recommendations
We recommend that this model not be used for any high-impact or human-facing purposes as its biases and limitations need to be further explored.
We intend this to be a research artifact to advance AI's ability to better serve human needs.
model = AutoModelForCausalLM.from_pretrained(model_name).to(device)
# Notice the </s>! Note that the format is slightly different from allenai/WildLlama-7b-user-assistant
# Format: A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: abc ASSISTANT: def</s>USER: def ASSISTANT: adfs</s>USER: asdf
# To generate an assistant response
user_prompt = 'Write a story about a dinosaur on an airplane.'
prompt = f"A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {user_prompt} ASSISTANT:"