How to use the Summarization inference model from hugging face in n8n?

I am trying to use this inference model from huggingface: Model facebook/bart-large-cnn

I tried different workflows:

  • Chat → Basic LLM Model → hugging face
  • Chat → Summarization Chain → HuggingFace

but I always get this error:

“Model facebook/bart-large-cnn is not supported for task text-generation and provider hf-inference. Supported task: summarization.”

How do I use an inference model from huggingface that is NOT a text-generation task?

I think you will need to handle it differently if you are using this model “facebook/bart-large-cnn“ use http node rather.