ValueError: Model not supported for task text-generation (Llama-3.1-8B-Instruct with featherless-ai)

I’m using LangChain and had set the task as "text-generation" in HuggingFaceHub. It seems the model only supports the "conversational" task.

My questions:

  1. How can I properly use this model with the correct task?
  2. Where can I find a list of supported tasks for a model or provider programmatically?
  3. Is there a way to fall back to another provider or model if the task isn’t supported?

Any help would be appreciated :folded_hands:
Thanks in advance!

— Ayush

1 Like

2

Hmm… This?