Instructions to use nateraw/codecarbon-text-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nateraw/codecarbon-text-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nateraw/codecarbon-text-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nateraw/codecarbon-text-classification") model = AutoModelForSequenceClassification.from_pretrained("nateraw/codecarbon-text-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 305 Bytes
a7f6b3c | 1 2 3 | timestamp,experiment_id,project_name,duration,emissions,energy_consumed,country_name,country_iso_code,region,on_cloud,cloud_provider,cloud_region
2022-02-07T20:20:47,8235a4c0-26d4-4141-9c9d-375503d02716,codecarbon,398.7036349773407,0.001664903606019315,0.011999320519491527,United States,USA,oregon,N,,
|