Instructions to use rayschwartz/text-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rayschwartz/text-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="rayschwartz/text-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("rayschwartz/text-classification") model = AutoModelForSequenceClassification.from_pretrained("rayschwartz/text-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download sample_input.pkl from rayschwartz/text-classification: direct link, hf CLI and curl.
- Browser
- Download file 2.03 kB
-
https://huggingface.co/rayschwartz/text-classification/resolve/main/sample_input.pkl
- Command line
-
hf download hf://rayschwartz/text-classification/sample_input.pkl
-
curl -L -o sample_input.pkl https://huggingface.co/rayschwartz/text-classification/resolve/main/sample_input.pkl
2.03 kB
This file contains binary data. It cannot be displayed, but you can still download it.