File size: 1,511 Bytes
59fff9b
 
 
 
 
 
 
 
57278a3
59fff9b
ec67838
59fff9b
ec67838
59fff9b
ec67838
59fff9b
ec67838
59fff9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
tags:
- generated_from_trainer
model-index:
- name: prompt-extend
  results: []
---
[![Generic badge](https://img.shields.io/badge/🤗-Open%20in%20Spaces-blue.svg)](https://huggingface.co/spaces/daspartho/prompt-extend)

# Prompt Extend

GPT-2 model trained on [dataset](https://huggingface.co/datasets/Gustavosta/Stable-Diffusion-Prompts) of stable diffusion prompts.

## Intended uses

Extend stable diffusion prompts with suitable style cues.

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 0.0001
- train_batch_size: 32
- eval_batch_size: 64
- seed: 42
- gradient_accumulation_steps: 8
- total_train_batch_size: 256
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 3
- mixed_precision_training: Native AMP

### Training results

| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 6.3816        | 0.35  | 100  | 4.1823          |
| 3.7123        | 0.69  | 200  | 3.3033          |
| 3.118         | 1.04  | 300  | 2.8311          |
| 2.7291        | 1.39  | 400  | 2.5503          |
| 2.4918        | 1.74  | 500  | 2.3653          |
| 2.3379        | 2.08  | 600  | 2.2375          |
| 2.1952        | 2.43  | 700  | 2.1714          |
| 2.1593        | 2.78  | 800  | 2.1453          |


### Framework versions

- Transformers 4.23.1
- Pytorch 1.12.1+cu113
- Datasets 2.6.1
- Tokenizers 0.13.1