How to use from the
Use from the
Transformers library
# 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="YtBig/improve-figcaption-v2")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("YtBig/improve-figcaption-v2")
model = AutoModelForSeq2SeqLM.from_pretrained("YtBig/improve-figcaption-v2")
Quick Links

Model Trained Using AutoTrain

  • Problem type: Summarization
  • Model ID: 1902664733
  • CO2 Emissions (in grams): 2.4436

Validation Metrics

  • Loss: 0.282
  • Rouge1: 63.261
  • Rouge2: 29.581
  • RougeL: 63.239
  • RougeLsum: 63.219
  • Gen Len: 9.777

Usage

You can use cURL to access this model:

$ curl -X POST -H "Authorization: Bearer YOUR_HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/aalbertini90/autotrain-improve-figcaption-v2-1902664733
Downloads last month
3
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support