Downloads · 30 days
4
10% of all-time downloads
Dede1989600/FLAN-T5_sexism_amCAD
FLAN-T5_sexism_amCAD is a machine learning model from Dede1989600. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Some example code to load our model locally and generate a prediction:
Downloads · 30 days
4
10% of all-time downloads
All-time downloads
42
Public
Repo size
2 GB
Likes
0
Public
Click a slice to open those files.
.bin990 MB · 100%
From the Hugging Face model README
Some example code to load our model locally and generate a prediction:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Dede1989600/sexism_amCAD")
model = AutoModelForSeq2SeqLM.from_pretrained("Dede1989600/sexism_amCAD")
inputs = tokenizer("This is a test that should be labelled as no hate", return_tensors="pt")
outputs = model.generate(**inputs)
tokenizer.decode(outputs[0], skip_special_tokens=True)
The model returns either 1 for sexist or 0 for non-sexist