# 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
- Downloads last month
- 6
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mnemic/NegativePromptGenerator")