CodeHima/TOS_DatasetV3
Viewer • Updated • 10k • 66
How to use prasannadhungana8848/TOS_DistilBERT with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="prasannadhungana8848/TOS_DistilBERT") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("prasannadhungana8848/TOS_DistilBERT")
model = AutoModelForSequenceClassification.from_pretrained("prasannadhungana8848/TOS_DistilBERT")TOS-DistilBERT
Here's a quick example of how to use the model:
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained("prasannadhungana8848/TOS-DistilBERT")
tokenizer = AutoTokenizer.from_pretrained("prasannadhungana8848/TOS-DistilBERT")
Base model
distilbert/distilbert-base-uncased