Salesforce / safety-flan-t5-small

huggingface.co
Total runs: 1
24-hour runs: 0
7-day runs: -1
30-day runs: -15
Model's Last Updated: January 15 2025
text2text-generation

Introduction of safety-flan-t5-small

Model Details of safety-flan-t5-small

Model Details

Model Description

Usage

Find below some example scripts on how to use the model in transformers :

Using the Pytorch model
Running the model
Click to expand
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, AutoConfig

config = AutoConfig.from_pretrained("Salesforce/safety-flan-t5-small")
tokenizer = AutoTokenizer.from_pretrained("Salesforce/safety-flan-t5-small") 
model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/safety-flan-t5-small", config=config)

prefix = "Is the <Text> field safe or unsafe?"
input_context = "Can you teach me this?"
input_text = "You are so stupid"
input_ids = tokenizer(prefix + " <Text> " + input_text + " <Context> " + input_context, return_tensors="pt").input_ids

outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))

Runs of Salesforce safety-flan-t5-small on huggingface.co

1
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
-15
30-day runs

More Information About safety-flan-t5-small huggingface.co Model

More safety-flan-t5-small license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

safety-flan-t5-small huggingface.co

safety-flan-t5-small huggingface.co is an AI model on huggingface.co that provides safety-flan-t5-small's model effect (), which can be used instantly with this Salesforce safety-flan-t5-small model. huggingface.co supports a free trial of the safety-flan-t5-small model, and also provides paid use of the safety-flan-t5-small. Support call safety-flan-t5-small model through api, including Node.js, Python, http.

safety-flan-t5-small huggingface.co Url

https://huggingface.co/Salesforce/safety-flan-t5-small

Salesforce safety-flan-t5-small online free

safety-flan-t5-small huggingface.co is an online trial and call api platform, which integrates safety-flan-t5-small's modeling effects, including api services, and provides a free online trial of safety-flan-t5-small, you can try safety-flan-t5-small online for free by clicking the link below.

Salesforce safety-flan-t5-small online free url in huggingface.co:

https://huggingface.co/Salesforce/safety-flan-t5-small

safety-flan-t5-small install

safety-flan-t5-small is an open source model from GitHub that offers a free installation service, and any user can find safety-flan-t5-small on GitHub to install. At the same time, huggingface.co provides the effect of safety-flan-t5-small install, users can directly use safety-flan-t5-small installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

safety-flan-t5-small install url in huggingface.co:

https://huggingface.co/Salesforce/safety-flan-t5-small

Url of safety-flan-t5-small

safety-flan-t5-small huggingface.co Url

Provider of safety-flan-t5-small huggingface.co

Salesforce
ORGANIZATIONS

Other API from Salesforce

huggingface.co

Total runs: 8.0K
Run Growth: 415
Growth Rate: 5.26%
Updated: February 19 2024
huggingface.co

Total runs: 3.3K
Run Growth: 109
Growth Rate: 3.27%
Updated: January 25 2025
huggingface.co

Total runs: 579
Run Growth: 516
Growth Rate: 88.05%
Updated: January 21 2025
huggingface.co

Total runs: 575
Run Growth: 273
Growth Rate: 47.07%
Updated: January 21 2025
huggingface.co

Total runs: 256
Run Growth: -33
Growth Rate: -12.89%
Updated: January 15 2025
huggingface.co

Total runs: 48
Run Growth: -64
Growth Rate: -133.33%
Updated: January 15 2025