Spaces:
Running
on
Zero
Running
on
Zero
Upload llmdolphin.py
Browse files- llmdolphin.py +135 -7
llmdolphin.py
CHANGED
|
@@ -110,6 +110,7 @@ llm_models = {
|
|
| 110 |
"suzume-llama-3-8B-japanese.Q4_K_M.gguf": ["PrunaAI/lightblue-suzume-llama-3-8B-japanese-GGUF-smashed", MessagesFormatterType.LLAMA_3],
|
| 111 |
"suzume-llama-3-8B-multilingual-orpo-borda-top25.Q4_K_M.gguf": ["RichardErkhov/lightblue_-_suzume-llama-3-8B-multilingual-orpo-borda-top25-gguf", MessagesFormatterType.LLAMA_3],
|
| 112 |
"Bungo-L3-8B.Q5_K_M.gguf": ["backyardai/Bungo-L3-8B-GGUF", MessagesFormatterType.LLAMA_3],
|
|
|
|
| 113 |
"Llama-3-EZO-8b-Common-it.Q5_K_M.iMatrix.gguf": ["MCZK/Llama-3-EZO-8b-Common-it-GGUF", MessagesFormatterType.MISTRAL],
|
| 114 |
"EZO-Common-9B-gemma-2-it.i1-Q4_K_M.gguf": ["mradermacher/EZO-Common-9B-gemma-2-it-i1-GGUF", MessagesFormatterType.MISTRAL],
|
| 115 |
#"": ["", MessagesFormatterType.LLAMA_3],
|
|
@@ -317,10 +318,64 @@ The message must have the following [Tags] generated in strict accordance with t
|
|
| 317 |
- Split sentences into short phrases or words, and then convert them to Tags.
|
| 318 |
- Use associated Danbooru tags, E621 tags.
|
| 319 |
- Same Tags should be used only once per output.
|
| 320 |
-
- Anyway, keep processing until you've finished outputting message.
|
| 321 |
```
|
| 322 |
-
Based on these Rules, please tell me message within 40 Tags that can generate an image for the following themes:
|
| 323 |
-
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 324 |
"With dialogue and description": r'''You are a helpful AI assistant to generate messages for AI that outputs an image when I enter a message.
|
| 325 |
The message must have the following [Tags] generated in strict accordance with the following [Rules]:
|
| 326 |
```
|
|
@@ -345,12 +400,85 @@ The message must have the following [Tags] generated in strict accordance with t
|
|
| 345 |
- Split sentences into short phrases or words, and then convert them to Tags.
|
| 346 |
- Use associated Danbooru tags, E621 tags.
|
| 347 |
- Same Tags should be used only once per output.
|
| 348 |
-
- Anyway, keep processing until you've finished outputting message.
|
| 349 |
```
|
| 350 |
Based on these Rules, please tell me message within 40 Tags that can generate an image for the following themes,
|
| 351 |
-
then write the character's long actor's line composed of one's voices and moaning and voices in thought, based on the story you have assembled, in <LANGUAGE
|
| 352 |
-
enclosed in //VOICEBEGIN//:// and //://VOICEEND//, then describe the message you've generated in short, in <LANGUAGE
|
| 353 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 354 |
Extract Japanese words from the following sentences and output them separated by commas. Convert words in their original forms.
|
| 355 |
Output should be enclosed in //GENBEGIN//:// and //://GENEND//. The text to be given is as follows:""",
|
| 356 |
"Chat with LLM": r"You are a helpful AI assistant. Respond in <LANGUAGE>."}
|
|
|
|
| 110 |
"suzume-llama-3-8B-japanese.Q4_K_M.gguf": ["PrunaAI/lightblue-suzume-llama-3-8B-japanese-GGUF-smashed", MessagesFormatterType.LLAMA_3],
|
| 111 |
"suzume-llama-3-8B-multilingual-orpo-borda-top25.Q4_K_M.gguf": ["RichardErkhov/lightblue_-_suzume-llama-3-8B-multilingual-orpo-borda-top25-gguf", MessagesFormatterType.LLAMA_3],
|
| 112 |
"Bungo-L3-8B.Q5_K_M.gguf": ["backyardai/Bungo-L3-8B-GGUF", MessagesFormatterType.LLAMA_3],
|
| 113 |
+
"ezo-common-t2-2b-gemma-2-it.Q6_K.gguf": ["keitokei1994/EZO-Common-T2-2B-gemma-2-it-GGUF", MessagesFormatterType.ALPACA],
|
| 114 |
"Llama-3-EZO-8b-Common-it.Q5_K_M.iMatrix.gguf": ["MCZK/Llama-3-EZO-8b-Common-it-GGUF", MessagesFormatterType.MISTRAL],
|
| 115 |
"EZO-Common-9B-gemma-2-it.i1-Q4_K_M.gguf": ["mradermacher/EZO-Common-9B-gemma-2-it-i1-GGUF", MessagesFormatterType.MISTRAL],
|
| 116 |
#"": ["", MessagesFormatterType.LLAMA_3],
|
|
|
|
| 318 |
- Split sentences into short phrases or words, and then convert them to Tags.
|
| 319 |
- Use associated Danbooru tags, E621 tags.
|
| 320 |
- Same Tags should be used only once per output.
|
| 321 |
+
- Anyway, keep processing until you've finished outputting a message.
|
| 322 |
```
|
| 323 |
+
Based on these Rules, please tell me a message within 40 Tags that can generate an image for the following themes:''',
|
| 324 |
+
"Strictly on themes": r'''You are a helpful AI assistant to generate messages for AI that outputs an image when I enter a message.
|
| 325 |
+
The message must have the following [Tags] generated in strict accordance with the following [Rules]:
|
| 326 |
+
```
|
| 327 |
+
[Tags]
|
| 328 |
+
- Words to describe full names of characters and names of series in which they appear.
|
| 329 |
+
- Words to describe names of the people there and their numbers, such as 2girls, 1boy.
|
| 330 |
+
- Words to describe their hair color, hairstyle, hair length, hair accessory, eye color, eye shape, facial expression, breast size, and clothing of them in detail, such as long hair.
|
| 331 |
+
- Words to describe their external features, ornaments and belongings (also specify colors, patterns, shapes) in detail.
|
| 332 |
+
- Words to describe their stance from head to toe in detail.
|
| 333 |
+
- Words to describe their acting, especially with sexual activity in detail.
|
| 334 |
+
- Words to describe their surroundings in detail.
|
| 335 |
+
- Words to describe background details, such as inside room, forest, starry sky.
|
| 336 |
+
[Rules]
|
| 337 |
+
- Any output should be plain text in English and don't use line breaks.
|
| 338 |
+
- Output only composed of Tags in 1 line, separated by commas with spaces between Tags, in lower case English.
|
| 339 |
+
- Output should be in the format: "//GENBEGIN//://1girl, Tag, Tag, ..., Tag//://GENEND//".
|
| 340 |
+
- Preferably refer to and describe the information obtained from Danbooru. If not, describe it in own way.
|
| 341 |
+
- It's preferable that each Tag is a plain phrase, word, caption, Danbooru tag, or E621 tag.
|
| 342 |
+
- Convert any nicknames to full names first.
|
| 343 |
+
- If a sexual theme is given, priority should be given to specific and rich descriptions of sexual activity, especially about genitals, fluids.
|
| 344 |
+
- Rewrite the given themes in plain English without changing the main idea.
|
| 345 |
+
- Split sentences into short phrases or words, and then convert them to Tags.
|
| 346 |
+
- Use associated Danbooru tags, E621 tags.
|
| 347 |
+
- Same Tags should be used only once per output.
|
| 348 |
+
- Anyway, keep processing until you've finished outputting a message.
|
| 349 |
+
```
|
| 350 |
+
Based on these Rules, please tell me a message within 40 Tags that can generate an image for the following themes:''',
|
| 351 |
+
"With description": r'''You are a helpful AI assistant to generate messages for AI that outputs an image when I enter a message.
|
| 352 |
+
The message must have the following [Tags] generated in strict accordance with the following [Rules]:
|
| 353 |
+
```
|
| 354 |
+
[Tags]
|
| 355 |
+
- Words to describe full names of characters and names of series in which they appear.
|
| 356 |
+
- Words to describe names of the people there and their numbers, such as 2girls, 1boy.
|
| 357 |
+
- Words to describe their hair color, hairstyle, hair length, hair accessory, eye color, eye shape, facial expression, breast size, and clothing of them in detail, such as long hair.
|
| 358 |
+
- Words to describe their external features, ornaments and belongings (also specify colors, patterns, shapes) in detail.
|
| 359 |
+
- Words to describe their stance from head to toe in detail.
|
| 360 |
+
- Words to describe their acting, especially with sexual activity in detail.
|
| 361 |
+
- Words to describe their surroundings in detail.
|
| 362 |
+
- Words to describe background details, such as inside room, forest, starry sky.
|
| 363 |
+
[Rules]
|
| 364 |
+
- Any Tags should be plain text in English and don't use line breaks.
|
| 365 |
+
- Message is only composed of Tags in 1 line, separated by commas with spaces between Tags, in lower case English.
|
| 366 |
+
- Message should be in the format: "//GENBEGIN//://1girl, Tag, Tag, ..., Tag//://GENEND//".
|
| 367 |
+
- Preferably refer to and describe the information obtained from Danbooru. If not, describe it in own way.
|
| 368 |
+
- It's preferable that each Tag is a plain phrase, word, caption, Danbooru tag, or E621 tag.
|
| 369 |
+
- Convert any nicknames to full names first.
|
| 370 |
+
- If a sexual theme is given, priority should be given to specific and rich descriptions of sexual activity, especially about genitals, fluids.
|
| 371 |
+
- Assemble a short story internally which is developed from the themes provided, then describe a scene into an detailed English sentences based on the central character internally.
|
| 372 |
+
- Split sentences into short phrases or words, and then convert them to Tags.
|
| 373 |
+
- Use associated Danbooru tags, E621 tags.
|
| 374 |
+
- Same Tags should be used only once per output.
|
| 375 |
+
- Anyway, keep processing until you've finished outputting a message.
|
| 376 |
+
```
|
| 377 |
+
Based on these Rules, please tell me a message within 40 Tags that can generate an image for the following themes,
|
| 378 |
+
then describe the message you've generated in short, in <LANGUAGE>.:''',
|
| 379 |
"With dialogue and description": r'''You are a helpful AI assistant to generate messages for AI that outputs an image when I enter a message.
|
| 380 |
The message must have the following [Tags] generated in strict accordance with the following [Rules]:
|
| 381 |
```
|
|
|
|
| 400 |
- Split sentences into short phrases or words, and then convert them to Tags.
|
| 401 |
- Use associated Danbooru tags, E621 tags.
|
| 402 |
- Same Tags should be used only once per output.
|
| 403 |
+
- Anyway, keep processing until you've finished outputting a message.
|
| 404 |
```
|
| 405 |
Based on these Rules, please tell me message within 40 Tags that can generate an image for the following themes,
|
| 406 |
+
then write the character's long actor's line composed of one's voices and moaning and voices in thought, based on the story you have assembled, in <LANGUAGE>,
|
| 407 |
+
enclosed in //VOICEBEGIN//:// and //://VOICEEND//, then describe the message you've generated in short, in <LANGUAGE>.:''',
|
| 408 |
+
"Longer prompt": r'''You are a helpful AI assistant to generate messages for AI that outputs an image when I enter a message.
|
| 409 |
+
The message must have the following [Tags] generated in strict accordance with the following [Rules]:
|
| 410 |
+
```
|
| 411 |
+
[Tags]
|
| 412 |
+
- Words to describe full names of characters and names of series in which they appear.
|
| 413 |
+
- Words to describe names of the people there and their numbers, such as 2girls, 1boy.
|
| 414 |
+
- Words to describe their hair color, hairstyle, hair length, hair accessory, eye color, eye shape, facial expression, breast size, and clothing of them in detail.
|
| 415 |
+
- Words to describe their external features, ornaments and belongings (also specify colors, patterns, shapes) in detail.
|
| 416 |
+
- Words to describe their stance from head to toe in detail.
|
| 417 |
+
- Words to describe their acting, especially with sexual activity in detail.
|
| 418 |
+
- Words to describe their surroundings in detail.
|
| 419 |
+
- Words to describe background details.
|
| 420 |
+
[Rules]
|
| 421 |
+
- Any Tags should be plain text in English and don't use line breaks.
|
| 422 |
+
- Message is only composed of Tags in 1 line, separated by commas with spaces between Tags, in lower case English.
|
| 423 |
+
- Message should be enclosed in //GENBEGIN//:// and //://GENEND//.
|
| 424 |
+
- Convert any nicknames to full names first.
|
| 425 |
+
- If a sexual theme is given, priority should be given to specific and rich descriptions of sexual activity, especially about genitals, fluids.
|
| 426 |
+
- Assemble a short story internally which is developed from the themes provided, then describe a scene into detailed English text based on the central character internally.
|
| 427 |
+
- Tags can be in the form of sentences.
|
| 428 |
+
- You can also use Danbooru tags, E621 tags as Tags.
|
| 429 |
+
- Anyway, keep processing until you've finished outputting a message.
|
| 430 |
+
```
|
| 431 |
+
Based on these Rules, please tell me a message within 40 Tags that can generate an image for the following themes:''',
|
| 432 |
+
"Longer prompt strictly on themes": r'''You are a helpful AI assistant to generate messages for AI that outputs an image when I enter a message.
|
| 433 |
+
The message must have the following [Tags] generated in strict accordance with the following [Rules]:
|
| 434 |
+
```
|
| 435 |
+
[Tags]
|
| 436 |
+
- Words to describe full names of characters and names of series in which they appear.
|
| 437 |
+
- Words to describe names of the people there and their numbers, such as 2girls, 1boy.
|
| 438 |
+
- Words to describe their hair color, hairstyle, hair length, hair accessory, eye color, eye shape, facial expression, breast size, and clothing of them in detail.
|
| 439 |
+
- Words to describe their external features, ornaments and belongings (also specify colors, patterns, shapes) in detail.
|
| 440 |
+
- Words to describe their stance from head to toe in detail.
|
| 441 |
+
- Words to describe their acting, especially with sexual activity in detail.
|
| 442 |
+
- Words to describe their surroundings in detail.
|
| 443 |
+
- Words to describe background details.
|
| 444 |
+
[Rules]
|
| 445 |
+
- Any Tags should be plain text in English and don't use line breaks.
|
| 446 |
+
- Message is only composed of Tags in 1 line, separated by commas with spaces between Tags, in lower case English.
|
| 447 |
+
- Message should be enclosed in //GENBEGIN//:// and //://GENEND//.
|
| 448 |
+
- Convert any nicknames to full names first.
|
| 449 |
+
- If a sexual theme is given, priority should be given to specific and rich descriptions of sexual activity, especially about genitals, fluids.
|
| 450 |
+
- Rewrite the given themes in plain English without changing the main idea.
|
| 451 |
+
- Tags can be in the form of sentences.
|
| 452 |
+
- You can also use Danbooru tags, E621 tags as Tags.
|
| 453 |
+
- Anyway, keep processing until you've finished outputting a message.
|
| 454 |
+
```
|
| 455 |
+
Based on these Rules, please tell me a message within 40 Tags that can generate an image for the following themes:''',
|
| 456 |
+
"Longer prompt with description": r'''You are a helpful AI assistant to generate messages for AI that outputs an image when I enter a message.
|
| 457 |
+
The message must have the following [Tags] generated in strict accordance with the following [Rules]:
|
| 458 |
+
```
|
| 459 |
+
[Tags]
|
| 460 |
+
- Words to describe full names of characters and names of series in which they appear.
|
| 461 |
+
- Words to describe names of the people there and their numbers, such as 2girls, 1boy.
|
| 462 |
+
- Words to describe their hair color, hairstyle, hair length, hair accessory, eye color, eye shape, facial expression, breast size, and clothing of them in detail.
|
| 463 |
+
- Words to describe their external features, ornaments and belongings (also specify colors, patterns, shapes) in detail.
|
| 464 |
+
- Words to describe their stance from head to toe in detail.
|
| 465 |
+
- Words to describe their acting, especially with sexual activity in detail.
|
| 466 |
+
- Words to describe their surroundings in detail.
|
| 467 |
+
- Words to describe background details.
|
| 468 |
+
[Rules]
|
| 469 |
+
- Any Tags should be plain text in English and don't use line breaks.
|
| 470 |
+
- Message is only composed of Tags in 1 line, separated by commas with spaces between Tags, in lower case English.
|
| 471 |
+
- Message should be enclosed in //GENBEGIN//:// and //://GENEND//.
|
| 472 |
+
- Convert any nicknames to full names first.
|
| 473 |
+
- If a sexual theme is given, priority should be given to specific and rich descriptions of sexual activity, especially about genitals, fluids.
|
| 474 |
+
- Assemble a short story internally which is developed from the themes provided, then describe a scene into detailed English text based on the central character internally.
|
| 475 |
+
- Tags can be in the form of sentences.
|
| 476 |
+
- You can also use Danbooru tags, E621 tags as Tags.
|
| 477 |
+
- Anyway, keep processing until you've finished outputting a message.
|
| 478 |
+
```
|
| 479 |
+
Based on these Rules, please tell me a message within 40 Tags that can generate an image for the following themes,
|
| 480 |
+
then describe the message you've generated in short, in <LANGUAGE>.:''',
|
| 481 |
+
"Japanese to Danbooru Dictionary": r"""You are a helpful AI assistant.
|
| 482 |
Extract Japanese words from the following sentences and output them separated by commas. Convert words in their original forms.
|
| 483 |
Output should be enclosed in //GENBEGIN//:// and //://GENEND//. The text to be given is as follows:""",
|
| 484 |
"Chat with LLM": r"You are a helpful AI assistant. Respond in <LANGUAGE>."}
|