GPT - Portuguese - Models for hate speech classification
Collection
2 items • Updated
How to use FpOliveira/tupi-gpt2-small with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="FpOliveira/tupi-gpt2-small") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("FpOliveira/tupi-gpt2-small")
model = AutoModelForSequenceClassification.from_pretrained("FpOliveira/tupi-gpt2-small")No model card