Instructions to use SuperAnnotate/ai-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SuperAnnotate/ai-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SuperAnnotate/ai-detector")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SuperAnnotate/ai-detector", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Model Type ERROR
... Unrecognized model in SuperAnnotate/ai-detector. Should have a model_type key in config.json ...
Hello, @felixmk0 !
Thank you for your feedback. From what I understand, you are suggesting adding a model_type key to allow initializing the model using base Transformers abstractions, like this:
from transformers import AutoModel
AutoModel.from_pretrained("SuperAnnotate/ai-detector")
However, this model has a custom output architecture and cannot be initialized using the standard abstractions from Transformers.
I recommend checking the 'Usage' section of the model card for detailed instructions on how to properly initialize and use this model:
Usage Section
If there’s a specific reason for adding this key or if you have any other questions, please feel free to let me know!