rlogh/superhero-texts
Viewer • Updated • 1.2k • 16
How to use ysakhale/finetuning_notebook with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ysakhale/finetuning_notebook") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ysakhale/finetuning_notebook")
model = AutoModelForSequenceClassification.from_pretrained("ysakhale/finetuning_notebook")The model occasionally misclassifies superheroes with ambiguous or overlapping traits (e.g., similarities between certain DC and Marvel characters).
This suggests the model may rely heavily on explicit universe keywords in the text.
Apache-2.0