Training in progress, step 500 5ee54e7 verified
Hoang Pham commited on
How to use hoganpham/qqp_v2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="hoganpham/qqp_v2") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("hoganpham/qqp_v2")
model = AutoModelForSequenceClassification.from_pretrained("hoganpham/qqp_v2", device_map="auto")