Downloads · 30 days
43
0% of all-time downloads
pszemraj/opt-125m-email-generation
opt-125m-email-generation is a text generation model from pszemraj. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
NOTE: there is currently a bug with huggingface API for OPT models. Please use the colab notebook to test :)
Downloads · 30 days
43
0% of all-time downloads
All-time downloads
9.7K
Public
Parameters
125M
2 GB on disk
Likes
3
Public
Click a slice to open those files.
.bin501 MB · 50%
From the Hugging Face model README
NOTE: there is currently a bug with huggingface API for OPT models. Please use the colab notebook to test :)
Why write the rest of your email when you can generate it?
from transformers import pipeline
model_tag = "pszemraj/opt-125m-email-generation"
generator = pipeline(
'text-generation',
model=model_tag,
use_fast=False,
do_sample=False,
)
prompt = """
Hello,
Following up on the bubblegum shipment."""
generator(
prompt,
max_length=96,
) # generate
This model is a fine-tuned version of facebook/opt-125m on an aeslc dataset.
pipeline objectIt achieves the following results on the evaluation set:
email_body field of train + validation (get more data) from the aeslc dataset.| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.8245 | 1.0 | 129 | 2.8030 |
| 2.521 | 2.0 | 258 | 2.6343 |
| 2.2074 | 3.0 | 387 | 2.5595 |
| 2.0145 | 4.0 | 516 | 2.5552 |