Instructions to use IDEA-CCNL/Erlangshen-Roberta-330M-Sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IDEA-CCNL/Erlangshen-Roberta-330M-Sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="IDEA-CCNL/Erlangshen-Roberta-330M-Sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("IDEA-CCNL/Erlangshen-Roberta-330M-Sentiment") model = AutoModelForSequenceClassification.from_pretrained("IDEA-CCNL/Erlangshen-Roberta-330M-Sentiment", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 135 Bytes
ec3feb7 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:25bd492dbaf6814964823e6aff67641333fd660b3b4613934191435686cb8d42
size 1302259629
|