Instructions to use cardiffnlp/bertweet-base-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/bertweet-base-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/bertweet-base-sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/bertweet-base-sentiment") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/bertweet-base-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download flax_model.msgpack from cardiffnlp/bertweet-base-sentiment: direct link, hf CLI and curl.
- Browser
- Download file 540 MB
-
https://huggingface.co/cardiffnlp/bertweet-base-sentiment/resolve/main/flax_model.msgpack
- Command line
-
hf download hf://cardiffnlp/bertweet-base-sentiment/flax_model.msgpack
-
curl -L -o flax_model.msgpack https://huggingface.co/cardiffnlp/bertweet-base-sentiment/resolve/main/flax_model.msgpack
540 MB
- Xet hash:
- 04954383376c2da6bca95a946527873cc0b738910c90fa99d98af776dc3008bf
- Size of remote file:
- 540 MB
- SHA256:
- aec3faf360181533e630952261dbb488373b90d9c1c4cac2e2f8e192c3debe4e
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.