Instructions to use ClimatePolicyRadar/national-climate-targets with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ClimatePolicyRadar/national-climate-targets with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ClimatePolicyRadar/national-climate-targets", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ClimatePolicyRadar/national-climate-targets") model = AutoModelForSequenceClassification.from_pretrained("ClimatePolicyRadar/national-climate-targets", device_map="auto") - Notebooks
- Google Colab
- Kaggle
add padding and truncation arguments to `pipe` example
#1
by kdutia - opened
based on feedback that the current example doesn't work for batch inference
mpjuhasz changed pull request status to merged