Instructions to use VEG3/TLDR-Vegan-Studies with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VEG3/TLDR-Vegan-Studies with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="VEG3/TLDR-Vegan-Studies")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("VEG3/TLDR-Vegan-Studies", dtype="auto") - Notebooks
- Google Colab
- Kaggle
About This Model
This model has been trained to take abstracts of scientific studies about veganism & animal rights and turn them into single-sentence takeaways for vegan businesses and animal activists to apply to their activism. The dataset was curated by scraping TLDRs and abstracts from Semantic Scholar and having vegan activists and marketing professionals from VEG3 review the usefulness of a random sample of the dataset to ensure their relevance to vegan businesses and animal activists.
Model Trained Using AutoTrain
- Problem type: Summarization
- Model ID: 1923365100
- CO2 Emissions (in grams): 57.7798
Validation Metrics
- Loss: 0.711
- Rouge1: 44.317
- Rouge2: 30.335
- RougeL: 41.369
- RougeLsum: 41.198
- Gen Len: 17.855
Usage
You can use cURL to access this model:
curl https://api-inference.huggingface.co/models/VEG3/TLDR-Vegan-Studies \
-X POST \
-d '{"inputs":"ABSTRACT"}' \
-H "Authorization: Bearer YOURAPIKEY"
- Downloads last month
- 8