Instructions to use Heng666/codecarbon-text-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Heng666/codecarbon-text-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Heng666/codecarbon-text-classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Heng666/codecarbon-text-classification") model = AutoModelForSequenceClassification.from_pretrained("Heng666/codecarbon-text-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
a7c094e | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:97c3f2d4363ecfaaef7cd9e5a0c67d0f125b6ff907722d113308caef89c2a577
size 433315633
|