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
Install from pip and serve model
# Install vLLM from pip: pip install vllm# Start the vLLM server: vllm serve "mnemic/NegativePromptGenerator"# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mnemic/NegativePromptGenerator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'