Hello-SimpleAI/HC3
Viewer • Updated • 48.6k • 5.34k • 241
How to use DuJiahui/hw1-hc3-detector with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="DuJiahui/hw1-hc3-detector") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("DuJiahui/hw1-hc3-detector")
model = AutoModelForSequenceClassification.from_pretrained("DuJiahui/hw1-hc3-detector", device_map="auto")This model was fine-tuned for binary classification of human-written and ChatGPT-generated answers using the HC3 dataset.
Base model: sentence-transformers/all-MiniLM-L6-v2
Labels:
The baseline used frozen sentence embeddings with logistic regression. After fine-tuning the transformer for five epochs, the test accuracy increased from 0.8449 to 0.9908.
The model was trained and evaluated on the Human ChatGPT Comparison Corpus (HC3).
The high performance on HC3 does not necessarily mean that the model will generalize to newer AI-generated text or text from other domains. The model may learn dataset-specific patterns rather than universal indicators of AI-generated text.
Base model
nreimers/MiniLM-L6-H384-uncased