Instructions to use aubmindlab/aragpt2-mega-detector-long with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aubmindlab/aragpt2-mega-detector-long with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="aubmindlab/aragpt2-mega-detector-long")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("aubmindlab/aragpt2-mega-detector-long") model = AutoModelForSequenceClassification.from_pretrained("aubmindlab/aragpt2-mega-detector-long", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (593ee56dcd072bc5b27c079e518d49061672923f) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>cca5877
-
Fixed readme
aubmindlab6858434 -
Fixed readme
aubmindlab9ebf94c -
Fixed readme
aubmindlab40b42a8 -
Added model files
aubmindlab3ab904f -
initial commit
ac7d6f6