Salesforce / safety-flan-t5-base

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

Introduction of safety-flan-t5-base

Model Details of safety-flan-t5-base

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-base")
tokenizer = AutoTokenizer.from_pretrained("Salesforce/safety-flan-t5-base") 
model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/safety-flan-t5-base", 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-base on huggingface.co

18.7K
Total runs
0
24-hour runs
-21
3-day runs
72
7-day runs
12.5K
30-day runs

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

safety-flan-t5-base huggingface.co

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

safety-flan-t5-base huggingface.co Url

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

Salesforce safety-flan-t5-base online free

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

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

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

safety-flan-t5-base install

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

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

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

Url of safety-flan-t5-base

safety-flan-t5-base huggingface.co Url

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

Salesforce
ORGANIZATIONS

Other API from Salesforce

huggingface.co

Total runs: 40.5K
Run Growth: -9.1K
Growth Rate: -21.71%
Updated: January 21 2025
huggingface.co

Total runs: 8.6K
Run Growth: 1.6K
Growth Rate: 19.06%
Updated: February 19 2024
huggingface.co

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

Total runs: 588
Run Growth: 510
Growth Rate: 87.03%
Updated: January 21 2025
huggingface.co

Total runs: 547
Run Growth: 197
Growth Rate: 36.35%
Updated: January 21 2025
huggingface.co

Total runs: 290
Run Growth: 1
Growth Rate: 0.34%
Updated: January 15 2025
huggingface.co

Total runs: 50
Run Growth: -54
Growth Rate: -108.00%
Updated: January 15 2025