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

Stuck on 'Loading...' #4

Open
vinccirom opened this issue Dec 26, 2022 · 2 comments
Open

Stuck on 'Loading...' #4

vinccirom opened this issue Dec 26, 2022 · 2 comments

Comments

@vinccirom
Copy link

vinccirom commented Dec 26, 2022

The app gets stuck on 'Loading...'. I have tried running both, with and without llm fine-tuned model. Not sure what it is. Here are the prints before interrupting it. I have waited up to 5 minutes several times.

teleprompter % python main.py llm
Using LLM for suggestions
Starting up...
Loading model...
 * Serving Flask app "main" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5001/ (Press CTRL+C to quit)
127.0.0.1 - - [26/Dec/2022 18:36:41] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [26/Dec/2022 18:36:41] "GET /static/style.css HTTP/1.1" 404 -
Starting 'hear' command
Starting 'hear' command
127.0.0.1 - - [26/Dec/2022 18:36:42] "POST /api/v0/swarm/peers?timeout=2500ms HTTP/1.1" 404 -
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
127.0.0.1 - - [26/Dec/2022 18:36:45] "POST /api/v0/swarm/peers?timeout=2500ms HTTP/1.1" 404 -
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
Starting 'hear' command
^C%                     

Screenshot 2022-12-26 at 18 37 47

@CarlsonCarlson
Copy link

I also got this and below after every "Starting ./hear"

"huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
To disable this warning, you can either:
- Avoid using tokenizers before the fork if possible
- Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)"

@CarlsonCarlson
Copy link

The warning doesn't go away, but the code actually works if you run it in terminal instead of VSCode (macbook air)

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