How to use from the
Use from the
Transformers.js library
// npm i @huggingface/transformers
import { pipeline } from '@huggingface/transformers';

// Allocate pipeline
const pipe = await pipeline('summarization', 'fcogidi/pegasus-arxiv');

https://huggingface.co/google/pegasus-arxiv with ONNX weights compatible with Transformers.js.

NOTE: As of 2024-11-30 Transformers.js does not support PegasusTokenizer.

Downloads last month
2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support