Quantization made by Richard Erkhov.
-
generated_from_trainer
-
distilgpt2
-
email generation
-
email
datasets:
-
aeslc
-
postbot/multi_emails
widget:
-
text: 'Good Morning Professor Beans,
Hope you are doing well. I just wanted to reach out and ask if differential calculus
will be on the exam'
example_title: email to prof
-
text: 'Hey ,
Thank you for signing up for my weekly newsletter. Before we get started, you''ll
have to confirm your email address.'
example_title: newsletter
-
text: 'Hi ,
I hope this email finds you well. I wanted to reach out and ask about office hours'
example_title: office hours
-
text: 'Greetings ,
I hope you had a splendid evening at the Company sausage eating festival. I am
reaching out because'
example_title: festival
-
text: 'Good Morning Harold,
I was wondering when the next'
example_title: event
-
text: URGENT - I need the TPS reports
example_title: URGENT
-
text: 'Hi Archibald,
I hope this email finds you extremely well.'
example_title: emails that find you
-
text: 'Hello there.
I just wanted to reach out and check in to'
example_title: checking in
-
text: 'Hello ,
I hope this email finds you well. I wanted to reach out and see if you''ve enjoyed
your time with us'
example_title: work well
-
text: 'Hi ,
I hope this email finds you well. I wanted to reach out and see if we could catch
up'
example_title: catch up
-
text: I'm and I just moved into the area and wanted to reach out and get
some details on where I could get groceries and
example_title: grocery
parameters:
min_length: 4
max_length: 128
length_penalty: 0.8
no_repeat_ngram_size: 2
do_sample: false
num_beams: 8
early_stopping: true
repetition_penalty: 5.5
base_model: distilgpt2
1from transformers import pipeline
2
3model_tag = "postbot/distilgpt2-emailgen"
4generator = pipeline(
5 'text-generation',
6 model=model_tag,
7 )
8
9prompt = """
10Hello,
11
12Following up on the bubblegum shipment."""
13
14result = generator(
15 prompt,
16 max_length=64,
17 do_sample=False,
18 early_stopping=True,
19) # generate
20print(result[0]['generated_text'])
This model is a fine-tuned version of
distilgpt2 on a dataset of 50k emails, including the classic
aeslc dataset.
The intended use of this model is to provide suggestions to "autocomplete" the rest of your email. Said another way, it should serve as a tool to write predictable emails faster. It is not intended to write entire emails; at least some input is required to guide the direction of the model.
Please verify any suggestions by the model for A) False claims and B) negation statements before accepting/sending something.
Detailed results can be found
here