Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local LLM Issue - send_to field is None #113

Closed
dhifafaz opened this issue Jan 10, 2024 · 4 comments
Closed

Local LLM Issue - send_to field is None #113

dhifafaz opened this issue Jan 10, 2024 · 4 comments

Comments

@dhifafaz
Copy link

dhifafaz commented Jan 10, 2024

I try to use local LLM using several local model, such as deepseek-6.7b, mistral-7b, dolphine-2.1-mistral-7b.
When i give taskweaver ordinary message such hai, on model dolphine it going fine but when i try triggering with question that need function calling it return some error. But when i'm using deepseek and mistral, im just sending hello, and it return the same error that i found on dolphine model.

I'm using text-gen-webui/oobabooga, the latest pull from their repo to serve the model. I also activate the open ai extension.

This is the error

TaskWeaver: I am TaskWeaver, an AI assistant. To get started, could you please enter your request?
Human: can you please make this word 'ABC' into ascii art
Error: Cannot process your request due to Exception: Planner failed to generate response because send_to field is None 
 Traceback (most recent call last):
  File "mypath/TaskWeaver/taskweaver/planner/planner.py", line 222, in reply
    response_post = self.planner_post_translator.raw_text_to_post(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "mypath/TaskWeaver/taskweaver/role/translator.py", line 86, in raw_text_to_post
    validation_func(post)
  File "mypath/TaskWeaver/taskweaver/planner/planner.py", line 207, in check_post_validity
    assert post.send_to is not None, "send_to field is None"
           ^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: send_to field is None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "mypath/TaskWeaver/taskweaver/session/session.py", line 135, in send_message
    post = _send_message(post.send_to, post)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "mypath/TaskWeaver/taskweaver/session/session.py", line 107, in _send_message
    reply_post = self.planner.reply(
                 ^^^^^^^^^^^^^^^^^^^
  File "mypath/TaskWeaver/taskweaver/planner/planner.py", line 244, in reply
    raise Exception(f"Planner failed to generate response because {str(e)}")
Exception: Planner failed to generate response because send_to field is None

Human: 

I'm using transformers and llama.cpp loader for this one
Any clue ? anyone? thanks

@liqul
Copy link
Contributor

liqul commented Jan 10, 2024

This is because the LLM failed to generate response according to our protocol, missing the send_to field.

@dhifafaz
Copy link
Author

ooo basically it's not following the system prompt right?

@liqul
Copy link
Contributor

liqul commented Jan 11, 2024

Yes, we have a retry mechanism, but if it fails for 3 times, we will raise this exception.

@dhifafaz
Copy link
Author

aaaa i see, thank you very much for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants