Ploypatcha/my-dataset
Viewer • Updated • 5.13k • 29
How to use Ploypatcha/my-model-upload with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Ploypatcha/my-model-upload") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Ploypatcha/my-model-upload")
model = AutoModelForSequenceClassification.from_pretrained("Ploypatcha/my-model-upload", device_map="auto")Base model
google-bert/bert-base-uncased