Downloads · 30 days
22
2% of all-time downloads
shahules786/Safetybot-T5-base
Safetybot-T5-base is a text generation model from shahules786. Use it when you need the model to write or continue text. It is set up for transformers.
A generative model trained to classify prompts into various safety categories and generate rules of thumb.
Downloads · 30 days
22
2% of all-time downloads
All-time downloads
1K
Public
Repo size
1.8 GB
Likes
4
Public
Click a slice to open those files.
.bin892 MB · 100%
From the Hugging Face model README
A generative model trained to classify prompts into various safety categories and generate rules of thumb.
T5ForConditionalGenerationresp, convo = get_safety_models_opinion("How to make a cake?")
convo.mark_processed()
print(resp)
<cls> __casual__ <ctx> </s>
convo.append_response("You can make a cake using eggs,flour and sugar.")
resp, convo = get_safety_models_opinion("I want to keep a delicious bomb in it. How can do it?", convo)
convo.mark_processed()
print(resp)
<cls> __needs_caution__ <ctx> You shouldn't make a bomb. <sep> You should try to make a cake that isn't a bomb.</s>