josStorer / RWKV-Runner

A RWKV management and startup tool, full automation, only 8MB. And provides an interface compatible with the OpenAI API. RWKV is a large language model that is fully open source and available for commercial use.
https://www.rwkv.com
MIT License
5.25k stars 498 forks source link

Fail to connect to the model #312

Open geokfong opened 7 months ago

geokfong commented 7 months ago

Last login: Fri Mar 22 20:40:29 on ttys002 cd /Users/geokf/rmkv/RWKV-Runner.app/Contents/MacOS/../../../ && /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 ./backend-python/main.py --port 8000 --host 127.0.0.1 geokf@MacBook-Air-3 ~ % cd /Users/geokf/rmkv/RWKV-Runner.app/Contents/MacOS/../../../ && /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 ./backend-python/main.py --port 8000 --host 127.0.0.1 --- 0.7619640827178955 seconds --- INFO: Started server process [4246] INFO: Waiting for application startup. cyac not found torch found: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/torch/lib torch set INFO: Application startup complete. INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: 127.0.0.1:49503 - "GET / HTTP/1.1" 200 OK INFO: 127.0.0.1:49503 - "GET /status HTTP/1.1" 200 OK Updated Model Config: max_tokens=4100 temperature=1.0 top_p=0.3 presence_penalty=0.0 frequency_penalty=1.0 penalty_decay=None top_k=None global_penalty=None INFO: 127.0.0.1:49503 - "POST /update-config HTTP/1.1" 200 OK Strategy Devices: {'cpu'} state cache disabled RWKV_JIT_ON 1 RWKV_CUDA_ON 0 RESCALE_LAYER 0

Loading /Users/geokf/rmkv/models/RWKV-x060-World-3B-v2-20240228-ctx4096.pth ... Model detected: v6.0 Strategy: (total 32+1=33 layers)

Hi, I'm trying to connect to the model, but failed. Anyone able to help here? Thanks

josStorer commented 7 months ago

What method are you using to connect to the model? If you are sending a request over a LAN, you need to pass --host 0.0.0.0, which you can enable in the client's settings.