Hello-SimpleAI/HC3
Viewer • Updated • 48.6k • 5.17k • 243
How to use slmyu0915/hw1-hc3-detector with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="slmyu0915/hw1-hc3-detector") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("slmyu0915/hw1-hc3-detector")
model = AutoModelForSequenceClassification.from_pretrained("slmyu0915/hw1-hc3-detector", device_map="auto")Fine-tuned sentence-transformers/all-MiniLM-L6-v2 for binary classification of HC3 answers (0 = human, 1 = ChatGPT). Trained for 5 epochs with AdamW (lr = 2e-5), batch size 32, and max length 256.
| Model | Test Accuracy |
|---|---|
| Baseline: frozen embeddings + logistic regression | 0.8449 |
| Fine-tuned (this model) | 0.9856 |
Trained on a historical benchmark (late-2022 ChatGPT). This model is not a reliable detector for current AI-generated text.
Base model
nreimers/MiniLM-L6-H384-uncased