generated_from_trainer dolly_hhrlhf bart-instruct

bart-large-mnli: instruction tuned - v1

<a href="https://colab.research.google.com/gist/pszemraj/43431a164e2e3ab0640182f3419c584d/bart-large-instruct-example.ipynb"> <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/> </a>

This model is a fine-tuned version of facebook/bart-large-mnli on the pszemraj/dolly_hhrlhf-text2text dataset.

Model description

text2text models fine-tuned on a modified dataset for text2text generation based on the relatively more permissive mosaicml/dolly_hhrlhf dataset.

Basic usage in Python:

# pip install -q transformers accelerate
import torch
from transformers import pipeline, GenerationConfig

model_name = "pszemraj/bart-large-mnli-instruct-dolly_hhrlhf-v1"
assistant = pipeline(
    "text2text-generation",
    model_name,
    device_map="auto",
)
cfg = GenerationConfig.from_pretrained(model_name)

# pass an 'instruction' as the prompt to the pipeline
prompt = "Write a guide on how to become a ninja while working a 9-5 job."
result = assistant(prompt, generation_config=cfg)[0]["generated_text"]
print(result)

The use of the generation config is optional, it can be replaced by other generation params.

Intended Uses & Limitations

Training

Training hyperparameters

The following hyperparameters were used during training: