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

**URL:** <https://discuss.huggingface.co/t/valueerror-model-not-supported-for-task-text-generation-llama-3-1-8b-instruct-with-featherless-ai/159970>\
**Category:** Models\
**Created:** [June 19, 2025, 2:31pm UTC](https://discuss.huggingface.co/t/valueerror-model-not-supported-for-task-text-generation-llama-3-1-8b-instruct-with-featherless-ai/159970 "2025-06-19T14:31:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AyushAgarwal5840](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ayushagarwal5840/32/49736_2.png) [@AyushAgarwal5840](https://discuss.huggingface.co/u/AyushAgarwal5840)\
**Post date:** [June 19, 2025, 2:31pm UTC](https://discuss.huggingface.co/t/valueerror-model-not-supported-for-task-text-generation-llama-3-1-8b-instruct-with-featherless-ai/159970/1 "2025-06-19T14:31:28Z")

</div>

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 🙏  
Thanks in advance!

— Ayush

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [June 19, 2025, 11:24pm UTC](https://discuss.huggingface.co/t/valueerror-model-not-supported-for-task-text-generation-llama-3-1-8b-instruct-with-featherless-ai/159970/2 "2025-06-19T23:24:15Z")

</div>

> 2

Hmm… This?

> **[Hub API](https://huggingface.co/docs/inference-providers/hub-api)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.
