add model b061262
trek90s commited on
How to use tezign/Erlangshen-Sentiment-FineTune with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="tezign/Erlangshen-Sentiment-FineTune") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tezign/Erlangshen-Sentiment-FineTune")
model = AutoModelForSequenceClassification.from_pretrained("tezign/Erlangshen-Sentiment-FineTune", device_map="auto")