Giter VIP home page Giter VIP logo

Comments (9)

josStorer avatar josStorer commented on July 17, 2024

目前尚不明确为什么一些电脑需要管理员权限

from rwkv-runner.

josStorer avatar josStorer commented on July 17, 2024

能否提供一下非管理员权限执行时的过程录屏,我好针对添加对应提示

from rwkv-runner.

YFengFly avatar YFengFly commented on July 17, 2024

为了方便截图,我将 Windows Terminal 设置为任务结束后不关闭窗口,这对结果并没有影响。大致情况为:

  1. 首先打开了第一个命令行窗口。这个窗口中没有任何信息,退出,打开第二个窗口;
  2. 第二个窗口有了输出信息,但是没有读取模型。
微信截图_20230601124748

动画:

动画

另外,小概率情况下,即便不使用管理员身份运行,有时也会正常地进入读取模型步骤,尚不清楚原因。有日志可以查看吗?

from rwkv-runner.

josStorer avatar josStorer commented on July 17, 2024

抱歉回复有些晚了
根据你的录屏, 看起来问题原因是, python启动时, 导入包耗时过长, 超出了设定的启动检测用时, 前端认为启动失败, 所以不再请求载入模型

这个问题应该在许久之前的版本中解决了, 我调整了python导包流程, 现在服务启动速度很快, 不再会出现超时问题

from rwkv-runner.

JingShing avatar JingShing commented on July 17, 2024

我已使用最新版的 RWKV-Runner,也有遇到一樣的問題。
一樣是 windows11,打開軟件後如果按運行會直接關閉軟件。或是開著不操作一段時間後會自動關閉。

使用管理員模式也無法操作。
情況和提問者類似,但我是軟件會強制關閉,無法操作。

我有另一台 windows11 的電腦能夠正常操作。
我使用另一台電腦安裝好 python 後打包到無法運行的電腦使用。依舊會直接關閉。沒有報錯。
有沒有地方可以看到 error log? 有幾次我點的快,有開啟 webui ,裡面的介面有成功加載,但模型沒有加載。

from rwkv-runner.

josStorer avatar josStorer commented on July 17, 2024

@JingShing 试一下将软件目录添加到信任 (Windows Security -> Virus & threat protection -> Manage settings -> Exclusions -> Add or remove exclusions -> Add an exclusion -> Folder -> RWKV-Runner)

如果程序仍然会自动退出, 可以使用这里的方法通过命令行运行: https://github.com/josStorer/RWKV-Runner/blob/master/deploy-examples/RWKV-Runner-WebUI/setup.bat

py310/python.exe ./backend-python/main.py --webui
powershell -Command "Invoke-WebRequest http://127.0.0.1:8000/switch-model -Method POST -ContentType 'application/json' -Body '{\"model\":\"./models/你的模型.pth\",\"strategy\":\"cuda fp16\",\"customCuda\":\"true\"}'"

然后自己通过webui访问, 功能和客户端是一样的, 只是不能进行本地管理, 训练

from rwkv-runner.

JingShing avatar JingShing commented on July 17, 2024

@JingShing 试一下将软件目录添加到信任 (Windows Security -> Virus & threat protection -> Manage settings -> Exclusions -> Add or remove exclusions -> Add an exclusion -> Folder -> RWKV-Runner)

如果程序仍然会自动退出, 可以使用这里的方法通过命令行运行: https://github.com/josStorer/RWKV-Runner/blob/master/deploy-examples/RWKV-Runner-WebUI/setup.bat

py310/python.exe ./backend-python/main.py --webui
powershell -Command "Invoke-WebRequest http://127.0.0.1:8000/switch-model -Method POST -ContentType 'application/json' -Body '{\"model\":\"./models/你的模型.pth\",\"strategy\":\"cuda fp16\",\"customCuda\":\"true\"}'"

然后自己通过webui访问, 功能和客户端是一样的, 只是不能进行本地管理, 训练

感謝您,添加信任我無法使用;但底下的命令行運行我可以正常跑,謝謝你。
雖然不能訓練和管理很麻煩,但至少終於能跑模型了,希望新版能把這個 bug 修好。

指令的部分在 windows 環境跑,有些地方需要修正:

"py310/python.exe" ./backend-python/main.py --webui

python.exe 需要用 " 框起來。

兩個指令我是透過兩個 cmd 跑的,我猜想或許是調用多個 cmd 導致 windows11 的權限有問題產生錯誤?
總之,很感謝您協助我能夠運行,謝謝。

from rwkv-runner.

josStorer avatar josStorer commented on July 17, 2024

我不太确定这是否是这个程序的bug, 还是windows本身某个地方的问题

目前社区里其他人没有反馈过这个问题, 这个程序开发所用的wails框架, 我也没有在相关社区搜索到此问题, 并且我也没有编写过运行过程中可能自动退出程序的逻辑, 所以恐怕无从排查

尤其是你也提及, 另一台电脑可以正常操作

from rwkv-runner.

JingShing avatar JingShing commented on July 17, 2024

確實,我自己也在 debug 看到底兩台電腦差在哪,我原以為是驅動的問題,但 cmd 指令可以跑的話,看起來又不是。

目前啟動軟件後,軟件會自行強制關閉,會留下啟動了 webui 的 cmd。
載入模型的 cmd 就沒有運行,直接關閉了,挺困惑的。

看了您上面的回覆,我想了想大概是 python 加載有問題,逾時或加載錯誤所以自己關閉了。
把虛擬環境的 python 刪掉的話,軟件開啟後會強制關閉,沒有跳出下載按鈕。而有虛擬環境的話,一旦要加載 python 軟件就直接關閉。完全搞不明白為什麼。

若不是用自己遠端伺服器的電腦測試能跑,我還以為是 win11 的問題。

from rwkv-runner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.