Downloads · 30 days
11
31% of all-time downloads
RichardErkhov/UnfilteredAI_-_Promt-generator-8bits
UnfilteredAI_-_Promt-generator-8bits is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
11
31% of all-time downloads
All-time downloads
35
Public
Parameters
559M
839 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors817 MB · 97%
How the weights are stored.
I8302M · 54%
From the Hugging Face model README
Quantization made by Richard Erkhov.
Promt-generator - bnb 8bits
The UnfilteredAI/Promt-generator is a text generation model designed specifically for creating prompts for text-to-image models. It leverages PyTorch and safetensors for optimized performance and storage, ensuring that it can be easily deployed and scaled for prompt generation tasks.
This model is primarily intended for:
To generate prompts using this model, follow these steps:
Example Code:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("UnfilteredAI/Promt-generator")
model = AutoModelForCausalLM.from_pretrained("UnfilteredAI/Promt-generator")
prompt = "a red car"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs)
generated_prompt = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_prompt)