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

Permanent spinner when attempting to prompt #4

Open
shawnyeager opened this issue Mar 17, 2024 · 14 comments
Open

Permanent spinner when attempting to prompt #4

shawnyeager opened this issue Mar 17, 2024 · 14 comments

Comments

@shawnyeager
Copy link

shawnyeager commented Mar 17, 2024

v1 of Dot (download), macOS 14.4 (23E214). This occurs in both small and big models.

CleanShot 2024-03-17 at 11 30 55@2x

@nigelp
Copy link

nigelp commented Mar 17, 2024

Yep got the same on Windows. Just doesn't work.

@alexpinel
Copy link
Owner

Interesting, are you using the standalone app or did you clone the repo? You can press 'Ctrl + Shift + I' to open the dev tools, sometimes there is this error where if the answer is too long it gets truncated and the communication between the backend and frontend doesn't quite work. If you are running the app in dev mode you should alse be able to see error logs in the terminal

@shawnyeager
Copy link
Author

Standalone. I've run into several other problems. I don't think this is a v1 release. I'll keep an eye out for the next release. The idea is promising.

@nigelp
Copy link

nigelp commented Mar 17, 2024

Interesting, are you using the standalone app or did you clone the repo? You can press 'Ctrl + Shift + I' to open the dev tools, sometimes there is this error where if the answer is too long it gets truncated and the communication between the backend and frontend doesn't quite work. If you are running the app in dev mode you should alse be able to see error logs in the terminal

Standalone. I tried the console -
console

@nigelp
Copy link

nigelp commented Mar 17, 2024

It's a single page .doc file that I'm trying to read as a test.

@alexpinel
Copy link
Owner

hmmmm that error is not related to the LLM itself so it cannot be the source of the issue, when loading the doc did it appear immediatelly in the left bar or did it take some time?

@nigelp
Copy link

nigelp commented Mar 17, 2024

It takes around 5 seconds to load the doc after I select the folder. I can't seem to select an individual file in that folder though.

@nategoethel
Copy link

nategoethel commented Mar 17, 2024

Seeing the same thing with a multi-page PDF in the Windows standalone app.

Edit: I see this error appear during the file upload process, before any questions are asked.

@robseward
Copy link

I'm seeing the same issue. M1 mac with 8gb ram; MacOS 14.3.1. I'm able to add documents but never get a response in the chat. Using the standalone app.

@robseward
Copy link

It looks like a python process starts up, consumes ram, and gets killed
Screenshot 2024-04-09 at 10 33 21 AM

@alexpinel
Copy link
Owner

That looks like the app is trying to load the LLM but cannot allocate enough RAM so it kills the process. Do you happen to know if Big Dot works?

I haven't properly tested Dot on 8gb RAM devices, but there are some things that might help solve the issue. If you right click on the Dot icon on the applications folder you can reveal the package contents of the app. From there you can navigate to Contents/Resources/llm/scripts where you should find the three python scripts used to handle the LLM. You can find the following lines in bigdot.py and something very similar in docdot.py:
Screenshot 2024-04-09 at 17 13 42

From here you can try lowering n_batch to 1 and n_ctx to a lower value like 2000. This will affect the performance and quality of the app but should also reduce the RAM consumption (i'm not entirely sure it will be enough though!). At the same time, you should also adapt the chunk size in embeddings.py to match the new context window set in n_ctx:
Screenshot 2024-04-09 at 17 23 21

If you set n_ctx as 2000 you can adjust chunk_size to 2000 and chunk_overlap to 1000.]

Please let me know if that helps!

@carlosalvidrez
Copy link

Same issue, in MacOS M3, 64GB RAM, no luck... "Dot is typing..."

@dazjjackson
Copy link

Still an issue running 0.9.2 CPU version on Windows 11. Looks like the Python process is starting and almost immediately exiting.
Are there any logs anywhere to try and diagnose?

@anikiforov
Copy link

See if this helps: #22 (comment) - I've made Dot 0.9.2 work on Windows 11 using the Mistral model.

As for the diagnosis - you can launch Dot from the console (e.g., by running Dot.exe in Windows Terminal) and then observe the console output when you work with Dot.

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

8 participants