Hello-SimpleAI/HC3
Viewer • Updated • 48.6k • 5.99k • 223
How to use JackZzZ2333/hw1-hc3-detector with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="JackZzZ2333/hw1-hc3-detector") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("JackZzZ2333/hw1-hc3-detector")
model = AutoModelForSequenceClassification.from_pretrained("JackZzZ2333/hw1-hc3-detector", device_map="auto")Baseline acc = 0.8449 Fine-tuning test acc = 0.9946
Fine-tuning improves the performance significantly compared to baseline (logstic regression). However, it does require more computations.