Instructions to use xaqren/sentiment_analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xaqren/sentiment_analysis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="xaqren/sentiment_analysis")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("xaqren/sentiment_analysis") model = AutoModelForSequenceClassification.from_pretrained("xaqren/sentiment_analysis", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.9aa0acf
-
Update README.md
b539ca0 -
Update README.md
a9b5e39 -
Upload pytorch_model.bin with git-lfs
1a8e40a -
Delete pytorch_model.bin
62a965d -
Upload vocab.txt
7d03a54 -
Upload training_args.bin with git-lfs
e7dcb16 -
Upload tokenizer_config.json
0f7ede0 -
Upload tokenizer.json
7708045 -
Upload special_tokens_map.json
20fd745 -
Upload config.json
91a70c3 -
Delete special_tokens_map.json
98533f1 -
Delete tokenizer.json
f7ef40b -
Delete config.json
01f5980
-
Upload pytorch_model.bin with git-lfs
e5af319 -
Upload config.json
8a531c6 -
Upload tokenizer.json
dffd9fb -
Upload special_tokens_map.json
ced5383 -
Update README.md
153351d -
initial commit
c69d522