andythetechnerd03/AI-human-text
Viewer โข Updated โข 487k โข 130 โข 13
How to use andythetechnerd03/BERT-tiny_AI-Human with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="andythetechnerd03/BERT-tiny_AI-Human") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("andythetechnerd03/BERT-tiny_AI-Human")
model = AutoModelForSequenceClassification.from_pretrained("andythetechnerd03/BERT-tiny_AI-Human", device_map="auto")