mav23 / distilgpt2-stable-diffusion-v2-GGUF

huggingface.co
Total runs: 252
24-hour runs: 0
7-day runs: -6
30-day runs: -22
Model's Last Updated: November 20 2024

Introduction of distilgpt2-stable-diffusion-v2-GGUF

Model Details of distilgpt2-stable-diffusion-v2-GGUF

Fast GPT2 PromptGen

Fast Anime PromptGen generates descriptive safebooru and danbooru tags for anime text-to-image models.

This model was trained on 2,470,000 descriptive stable diffusion prompts on the FredZhang7/distilgpt2-stable-diffusion checkpoint for another 4,270,000 steps.

Compared to other prompt generation models using GPT2, this one runs with 50% faster forwardpropagation and 40% less disk space & RAM.

Major improvements from v1 are:

  • 25% more variations
  • faster and more fluent prompt generation
  • cleaned training data
    • removed prompts that generate images with nsfw scores > 0.5
    • removed duplicates, including prompts that differ by capitalization and punctuations
    • removed punctuations at random places
    • removed prompts shorter than 15 characters
Live WebUI Demo

See the Prompt Generator tab of Paint Journey Demo .

Contrastive Search
pip install --upgrade transformers
from transformers import GPT2Tokenizer, GPT2LMHeadModel
tokenizer = GPT2Tokenizer.from_pretrained('distilgpt2')
tokenizer.add_special_tokens({'pad_token': '[PAD]'})
model = GPT2LMHeadModel.from_pretrained('FredZhang7/distilgpt2-stable-diffusion-v2')

prompt = r'a cat sitting'     # the beginning of the prompt
temperature = 0.9             # a higher temperature will produce more diverse results, but with a higher risk of less coherent text
top_k = 8                     # the number of tokens to sample from at each step
max_length = 80               # the maximum number of tokens for the output of the model
repitition_penalty = 1.2      # the penalty value for each repetition of a token
num_return_sequences=5        # the number of results to generate

# generate the result with contrastive search
input_ids = tokenizer(prompt, return_tensors='pt').input_ids
output = model.generate(input_ids, do_sample=True, temperature=temperature, top_k=top_k, max_length=max_length, num_return_sequences=num_return_sequences, repetition_penalty=repitition_penalty, penalty_alpha=0.6, no_repeat_ngram_size=1, early_stopping=True)

print('\nInput:\n' + 100 * '-')
print('\033[96m' + prompt + '\033[0m')
print('\nOutput:\n' + 100 * '-')
for i in range(len(output)):
    print('\033[92m' + tokenizer.decode(output[i], skip_special_tokens=True) + '\033[0m\n')

No comma style: constrastive search

To bring back the commas, assign output without penalty_alpha and no_repeat_ngram_size :

output = model.generate(input_ids, do_sample=True, temperature=temperature, top_k=top_k, max_length=max_length, num_return_sequences=num_return_sequences, repetition_penalty=repitition_penalty, early_stopping=True)

constrastive search

Runs of mav23 distilgpt2-stable-diffusion-v2-GGUF on huggingface.co

252
Total runs
0
24-hour runs
-12
3-day runs
-6
7-day runs
-22
30-day runs

More Information About distilgpt2-stable-diffusion-v2-GGUF huggingface.co Model

More distilgpt2-stable-diffusion-v2-GGUF license Visit here:

https://choosealicense.com/licenses/creativeml-openrail-m

distilgpt2-stable-diffusion-v2-GGUF huggingface.co

distilgpt2-stable-diffusion-v2-GGUF huggingface.co is an AI model on huggingface.co that provides distilgpt2-stable-diffusion-v2-GGUF's model effect (), which can be used instantly with this mav23 distilgpt2-stable-diffusion-v2-GGUF model. huggingface.co supports a free trial of the distilgpt2-stable-diffusion-v2-GGUF model, and also provides paid use of the distilgpt2-stable-diffusion-v2-GGUF. Support call distilgpt2-stable-diffusion-v2-GGUF model through api, including Node.js, Python, http.

distilgpt2-stable-diffusion-v2-GGUF huggingface.co Url

https://huggingface.co/mav23/distilgpt2-stable-diffusion-v2-GGUF

mav23 distilgpt2-stable-diffusion-v2-GGUF online free

distilgpt2-stable-diffusion-v2-GGUF huggingface.co is an online trial and call api platform, which integrates distilgpt2-stable-diffusion-v2-GGUF's modeling effects, including api services, and provides a free online trial of distilgpt2-stable-diffusion-v2-GGUF, you can try distilgpt2-stable-diffusion-v2-GGUF online for free by clicking the link below.

mav23 distilgpt2-stable-diffusion-v2-GGUF online free url in huggingface.co:

https://huggingface.co/mav23/distilgpt2-stable-diffusion-v2-GGUF

distilgpt2-stable-diffusion-v2-GGUF install

distilgpt2-stable-diffusion-v2-GGUF is an open source model from GitHub that offers a free installation service, and any user can find distilgpt2-stable-diffusion-v2-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of distilgpt2-stable-diffusion-v2-GGUF install, users can directly use distilgpt2-stable-diffusion-v2-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

distilgpt2-stable-diffusion-v2-GGUF install url in huggingface.co:

https://huggingface.co/mav23/distilgpt2-stable-diffusion-v2-GGUF

Url of distilgpt2-stable-diffusion-v2-GGUF

distilgpt2-stable-diffusion-v2-GGUF huggingface.co Url

Provider of distilgpt2-stable-diffusion-v2-GGUF huggingface.co

mav23
ORGANIZATIONS

Other API from mav23

huggingface.co

Total runs: 1.2K
Run Growth: 509
Growth Rate: 41.42%
Updated:October 31 2024
huggingface.co

Total runs: 861
Run Growth: 546
Growth Rate: 63.41%
Updated:November 30 2024
huggingface.co

Total runs: 585
Run Growth: 570
Growth Rate: 97.44%
Updated:November 21 2024
huggingface.co

Total runs: 213
Run Growth: 149
Growth Rate: 69.95%
Updated:November 19 2024
huggingface.co

Total runs: 159
Run Growth: 127
Growth Rate: 79.87%
Updated:October 28 2024
huggingface.co

Total runs: 148
Run Growth: 25
Growth Rate: 16.89%
Updated:December 04 2024
huggingface.co

Total runs: 133
Run Growth: 36
Growth Rate: 27.07%
Updated:December 04 2024
huggingface.co

Total runs: 115
Run Growth: 18
Growth Rate: 15.65%
Updated:November 30 2024
huggingface.co

Total runs: 114
Run Growth: -3.5K
Growth Rate: -3107.02%
Updated:October 13 2024