File size: 3,399 Bytes
dfcffd8
1cf49f0
 
dfcffd8
 
 
1cf49f0
 
dfcffd8
 
1cf49f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dfcffd8
 
 
 
 
 
4eca727
dfcffd8
4b24d95
 
 
 
 
dfcffd8
 
 
4eca727
dfcffd8
 
 
4eca727
 
dfcffd8
 
c11862c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dfcffd8
4eca727
dfcffd8
 
1f1e54b
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
language:
- en
license: apache-2.0
tags:
- generated_from_trainer
datasets:
- postbot/multi-emails-hq
metrics:
- accuracy
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 <NAME>,


    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 <NAME>,


    I hope this email finds you well. I wanted to reach out and ask about office hours'
  example_title: office hours
- text: 'Greetings <NAME>,


    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 <NAME>,


    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 <NAME>,


    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 <NAME> 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
pipeline_tag: text-generation
base_model: EleutherAI/pythia-410m-deduped
model-index:
- name: multi-emails-hq-pythia-410m-deduped-r1
  results: []
---


# emailgen-pythia-410m-deduped

[![colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/gist/pszemraj/94b0e6b95437896f800a65ae2e5f9ab4/emailgen-pythia-410m-deduped.ipynb
)


This model is a fine-tuned version of [EleutherAI/pythia-410m-deduped](https://huggingface.co/EleutherAI/pythia-410m-deduped) on email data.
It achieves the following results on the evaluation set:
- Loss: 2.1018
- Accuracy: 0.6157
- perplexity: 8.181

## Model description

- fine-tuned on dataset of emails for 4 epochs
- intended use: "text completion" of partially written emails


## Usage example



```python
from transformers import pipeline

model_tag = "postbot/emailgen-pythia-410m-deduped"
generator = pipeline(
    "text-generation",
    model=model_tag,
)

prompt = """
Hello, 

Following up on the bubblegum shipment."""

result = generator(
    prompt,
)  # generate
print(result[0]["generated_text"])
```

---



# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_postbot__emailgen-pythia-410m-deduped)

| Metric                | Value                     |
|-----------------------|---------------------------|
| Avg.                  | 26.65   |
| ARC (25-shot)         | 27.9          |
| HellaSwag (10-shot)   | 40.04    |
| MMLU (5-shot)         | 27.35         |
| TruthfulQA (0-shot)   | 38.2   |
| Winogrande (5-shot)   | 52.09   |
| GSM8K (5-shot)        | 0.0        |
| DROP (3-shot)         | 0.99         |