Instructions to use Joshfcooper/ai-text-detector-optimized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Joshfcooper/ai-text-detector-optimized with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Joshfcooper/ai-text-detector-optimized")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Joshfcooper/ai-text-detector-optimized", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "model_files": { | |
| "onnx_model": "fixed_optimized_detector.onnx", | |
| "pytorch_model": "pytorch_optimized_detector.pt", | |
| "tokenizer": "." | |
| }, | |
| "model_config": { | |
| "base_model_name": "HuggingFaceTB/SmolLM-135M", | |
| "optimal_layers": [ | |
| 0, | |
| 2, | |
| 4, | |
| 6, | |
| 8, | |
| 10, | |
| 12, | |
| 14, | |
| 16, | |
| 18, | |
| 20, | |
| 22 | |
| ], | |
| "max_length": 256, | |
| "feature_dim": 13824, | |
| "layers_loaded": 23, | |
| "layers_used": 12 | |
| }, | |
| "performance": { | |
| "accuracy": 0.9667, | |
| "auc": 0.9934, | |
| "original_accuracy": 0.997 | |
| }, | |
| "optimization_info": { | |
| "strategy": "hook_based_truncated", | |
| "layers_reduction": "30 \u2192 23", | |
| "features_reduction": "34560 \u2192 13824", | |
| "onnx_available": true | |
| } | |
| } |