Views
No views yet
1from transformers import pipeline
2
3# load model and tokenizer from huggingface hub with pipeline
4enhancer = pipeline("summarization", model="gokaygokay/Lamini-Prompt-Enchance", device=0)
5
6prompt = "A blue-tinted bedroom scene, surreal and serene, with a mysterious reflected interior."
7prefix = "Enhance the description: "
8# enhance prompt
9res = enhancer(prefix + prompt)
10
11print(res[0]['summary_text'])
12
13# A surreal and serene bedroom scene with a mysterious mirrored interior,
14# awash in blue and green hues.
15# The room is adorned with intricate patterns and a mirrored wall,
16# creating a sense of mystery and tranquility.| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
|---|---|---|---|---|---|---|---|---|
| No log | 1.0 | 115 | 2.1369 | 31.6298 | 13.2671 | 26.4264 | 28.5472 | 19.0 |
| No log | 2.0 | 230 | 2.0733 | 31.4969 | 13.2677 | 26.5009 | 28.4785 | 19.0 |
| No log | 3.0 | 345 | 2.0405 | 31.4735 | 13.01 | 26.1931 | 28.3299 | 19.0 |
| No log | 4.0 | 460 | 2.0250 | 31.4761 | 13.2096 | 26.3479 | 28.3059 | 19.0 |
| 2.2448 | 5.0 | 575 | 2.0195 | 31.5042 | 13.2633 | 26.4176 | 28.4846 | 19.0 |
1@software{aydogan2024lamini_prompt_enchance,
2 author = {Aydoğan, Gökay},
3 title = {{Lamini-Prompt-Enchance}},
4 year = {2024},
5 publisher = {Hugging Face},
6 url = {https://huggingface.co/gokaygokay/Lamini-Prompt-Enchance},
7 note = {Model repository; cite the base model and upstream datasets as required.}
8}