Getting - Error raised by inference API: Cannot override task for LLM models when using model from hugging face - Rasa CALM - Rasa Community Forum

👋 Introducing the Rasa Playground

Getting - Error raised by inference API: Cannot override task for LLM models when using model from hugging face

post by RakshitAralimatti on May 8, 2024

Below is my config file- recipe: default.v1 language: en pipeline:

policies:

ERROR - 2024-05-08 18:00:35 ERROR rasa.dialogue_understanding.generator.llm_command_generator - [error ] llm_command_generator.llm.error error=ValueError(‘Error raised by inference API: Cannot override task for LLM models’)

Its showing same for all the models l tried using HF, Can anyone help me to solve this issue.

post by abboudtest on May 22, 2024

same error for me

post by fellinn on May 23, 2024

I got the same error. Have anybody already figured out a solution to this?

post by abboudtest on May 23, 2024

I think we should find a compatible huggingface_hub package version that is compatible with langchain package version 0.0.329 since rasa uses it.

Please note:


pipeline:
- name: LLMCommandGenerator
  llm:
    type: "huggingface_hub"
    repo_id: "HuggingFaceH4/zephyr-7b-beta"
    task: "text-generation"
  flow_retrieval:
    embeddings:
      type: "huggingface_hub"
      repo_id: "sentence-transformers/distilbert-base-nli-mean-tokens"
      task: "feature-extraction"