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

/summarize command fails #1261

Open
2 tasks done
djkazic opened this issue Apr 15, 2024 · 1 comment · May be fixed by #1265
Open
2 tasks done

/summarize command fails #1261

djkazic opened this issue Apr 15, 2024 · 1 comment · May be fixed by #1265

Comments

@djkazic
Copy link

djkazic commented Apr 15, 2024

Describe the bug
Using ollama with dolphin2.2-mistral:7b-q8_0 and chatml wrapper. Cannot summarize in place.

Please describe your setup

  • How did you install memgpt?
    • pip install pymemgpt? pip install pymemgpt-nightly? git clone?
    • Installed with pip install pymemgpt
  • Describe your setup
    • What's your OS (Windows/MacOS/Linux)? Linux
    • How are you running memgpt? memgpt run

Debug log:

> Enter your message: /summarize
MESSAGE_SUMMARY_TRUNC_TOKEN_FRAC=0.75
MESSAGE_SUMMARY_TRUNC_KEEP_N_LAST=3
token_counts=[88, 68, 48, 98, 70, 104, 70, 86, 68, 87]
message_buffer_token_count=1011
desired_token_count_to_summarize=758
len(candidate_messages_to_summarize)=10
Selected cutoff 10 was a 'user', shifting one...
Attempting to summarize 9 messages [1:10] of 14
Using model ollama, endpoint: http://localhost:11434
unsetting function_call because functions is None
'function_call'
/summarize failed:
Failed to convert ChatCompletion messages into prompt string with wrapper <memgpt.local_llm.llm_chat_completion_wrappers.simple_summary_wrapper.SimpleSummaryWrapper object at 0x7f9973d7a6e0> - error: 'function_call'
@djkazic
Copy link
Author

djkazic commented Apr 16, 2024

Figured out the issue. Submitting patch for this.

@djkazic djkazic linked a pull request Apr 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

Successfully merging a pull request may close this issue.

1 participant