text generation emailgen email generation email

gpt2-medium-emailgen

colab

Why write the entire email when you can generate (most of) it?

from transformers import pipeline

model_tag = "postbot/gpt2-medium-emailgen"
generator = pipeline(
              'text-generation', 
              model=model_tag, 
            )
            
prompt = """
Hello, 

Following up on the bubblegum shipment."""

result = generator(
    prompt,
    max_length=64,
    do_sample=False,
    early_stopping=True,
) # generate
print(result[0]['generated_text'])

about

This model is a fine-tuned version of gpt2-medium on the postbot/multi-emails-100k dataset. It achieves the following results on the evaluation set:

Model description

More information needed

Intended uses & limitations

Training and evaluation data

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

Training results

Training Loss Epoch Step Validation Loss
1.8701 1.0 789 1.8378
1.5065 2.0 1578 1.6176
1.1873 3.0 2367 1.5840

Framework versions