How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="mnemic/NegativePromptGenerator")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("mnemic/NegativePromptGenerator")
model = AutoModelForCausalLM.from_pretrained("mnemic/NegativePromptGenerator")
Quick Links

The trained model is a finetuned GPT2 text generation model that takes a positive prompt as an input, and outputs a negative prompt that is supposed to match the input prompt.

However, the results are very random and they are mostly unrelated to the prompt, and sometime they even output a positive prompt.

As the results are not good, I have not yet cleaned up the project and made it presentable.

Use this mostly for your own curiosity or experimentation.

Github Project

https://github.com/MNeMoNiCuZ/NegativePromptGenerator

Downloads last month
6
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support