Text Classification
Transformers
Safetensors
English
deberta-v2
ai-generated-text-detection
4-bit precision
bitsandbytes
nf4
quantization
text-embeddings-inference
Instructions to use batmac/gradient-ai-text-detector-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use batmac/gradient-ai-text-detector-4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="batmac/gradient-ai-text-detector-4bit")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("batmac/gradient-ai-text-detector-4bit") model = AutoModelForSequenceClassification.from_pretrained("batmac/gradient-ai-text-detector-4bit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Keep classifier head in fp32 so the checkpoint loads on Linux CPU
Verified signaturec0f8664
-
Document reproduction scripts in the model card
Verified signature3834faf -
Upload folder using huggingface_hub
Verified signature8465953 -
Fix repository id in usage example
Verified signature4161c5c -
Add 4-bit NF4 quantization of ShantanuT01/gradient-ai-text-detector
Verified signature1fb5b39 -
initial commit
Verified signature3ecf8ec