Instructions to use traberph/RedBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use traberph/RedBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="traberph/RedBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("traberph/RedBERT") model = AutoModelForSequenceClassification.from_pretrained("traberph/RedBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from traberph/RedBERT: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/traberph/RedBERT/resolve/refs%2Fpr%2F2/README.md
- Command line
-
hf download hf://traberph/RedBERT@refs/pr/2/README.md
-
curl -L -o README.md https://huggingface.co/traberph/RedBERT/resolve/refs%2Fpr%2F2/README.md
364 Bytes
metadata
license: apache-2.0
datasets:
- webis/tldr-17
language:
- en
library_name: transformers
pipeline_tag: text-classification
widget:
- text: >-
Biden says US is at tipping point on gun control: We will ban assault
weapons in this country
example_title: classification
Reddit post classification
This model predicts the subreddit of a provided post