Instructions to use Olumorothy/ai-human-detector-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Olumorothy/ai-human-detector-models with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Olumorothy/ai-human-detector-models") - Notebooks
- Google Colab
- Kaggle
AI vs. Human Text Detector β Model Collection
Trained models for detecting AI-generated vs. human-written text. Used by the AI vs. Human Text Detection Space.
Contents
This repository holds the trained artifacts consumed by the app:
roberta_ft/β fine-tunedroberta-baseclassifier (the primary model)svm_model.pkl,decision_tree_model.pkl,adaboost_model.pklβ classical ML modelsfnn_model.h5,lstm_model.keras,cnn_model.kerasβ deep-learning modelstfidf_vectorizer.pkl,text_vectorizer_vocab.pklβ feature transformers
Fine-tuned RoBERTa
FacebookAI/roberta-base fine-tuned as a binary classifier (0 = human, 1 = AI).
Hyperparameters
| Setting | Value |
|---|---|
| Base model | FacebookAI/roberta-base |
| Learning rate | 2e-5 |
| Train / eval batch size | 8 |
| Gradient accumulation | 2 (effective batch 16) |
| Epochs | 3 |
| Weight decay | 0.01 |
| Max sequence length | 512 |
Results
| Metric | Score |
|---|---|
| Train Loss | 0.4943 |
| Eval Loss | 0.2022 |
| Eval F1 | 0.9988 |
| Validation Accuracy | 0.9988 |
| Test Accuracy | 0.9976 |
| Test F1 | 0.9976 |
Training data
~8,000 balanced human/AI text samples, stratified into train/validation/test splits.
Intended use & limitations
Intended for research and educational demonstration of AI-text detection. Predictions are probabilistic estimates, not proof of authorship. Do not use as the sole basis for academic-integrity or disciplinary decisions β accuracy degrades on short texts, edited AI output, and formal human writing.
- Downloads last month
- 14
Model tree for Olumorothy/ai-human-detector-models
Base model
FacebookAI/xlm-roberta-base