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/tag-caption-v1")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("YtBig/tag-caption-v1")
model = AutoModelForSeq2SeqLM.from_pretrained("YtBig/tag-caption-v1", device_map="auto")
Quick Links

Model Trained Using AutoTrain

  • Problem type: Summarization
  • Model ID: 1872663964
  • CO2 Emissions (in grams): 339.2994

Validation Metrics

  • Loss: 2.405
  • Rouge1: 30.426
  • Rouge2: 16.255
  • RougeL: 29.262
  • RougeLsum: 29.337
  • Gen Len: 13.671

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-caption-1872663964
Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support