Instructions to use inep/twitter-roberta-base-sentiment-js with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inep/twitter-roberta-base-sentiment-js with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="inep/twitter-roberta-base-sentiment-js")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("inep/twitter-roberta-base-sentiment-js") model = AutoModelForSequenceClassification.from_pretrained("inep/twitter-roberta-base-sentiment-js") - Notebooks
- Google Colab
- Kaggle
| { | |
| "per_channel": true, | |
| "reduce_range": true, | |
| "per_model_config": { | |
| "model": { | |
| "op_types": [ | |
| "Shape", | |
| "Slice", | |
| "Gather", | |
| "ReduceMean", | |
| "Erf", | |
| "Transpose", | |
| "Softmax", | |
| "Expand", | |
| "ConstantOfShape", | |
| "Add", | |
| "Concat", | |
| "MatMul", | |
| "Not", | |
| "Constant", | |
| "Unsqueeze", | |
| "Gemm", | |
| "Equal", | |
| "Pow", | |
| "Mul", | |
| "Div", | |
| "CumSum", | |
| "Reshape", | |
| "Cast", | |
| "Tanh", | |
| "Where", | |
| "Sub", | |
| "Sqrt" | |
| ], | |
| "weight_type": "QInt8" | |
| } | |
| } | |
| } |