How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "FredZhang7/danbooru-tag-generator"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "FredZhang7/danbooru-tag-generator",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker
docker model run hf.co/FredZhang7/danbooru-tag-generator
Quick Links

Disclaimer

Danbooru stores millions of tagged anime images, but it doesn't have a way to filter out NSFW content. This model was trained on 100,000 of these tags with up_score ≥ 3 for 3 epochs, so it's possible that some tags might contain NSFW descriptions. So, just be mindful of that. Thank you for your cooperation.

The Safe Version

For details on data preprocessing, prompt engineering, and more, please see Fast Anime PromptGen. I used a very similar approach to train the Danbooru version.

Downloads last month
411
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 1 Ask for provider support

Model tree for FredZhang7/danbooru-tag-generator

Quantizations
2 models

Dataset used to train FredZhang7/danbooru-tag-generator