forked from josStorer/RWKV-Runner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'josStorer:master' into master
- Loading branch information
Showing
87 changed files
with
10,601 additions
and
6,325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ jobs: | |
del ./backend-python/rwkv_pip/cpp/librwkv.so | ||
(Get-Content -Path ./backend-golang/app.go) -replace "//go:custom_build windows ", "" | Set-Content -Path ./backend-golang/app.go | ||
(Get-Content -Path ./backend-golang/utils.go) -replace "//go:custom_build windows ", "" | Set-Content -Path ./backend-golang/utils.go | ||
go install mvdan.cc/[email protected] | ||
make | ||
Rename-Item -Path "build/bin/RWKV-Runner.exe" -NewName "RWKV-Runner_windows_x64.exe" | ||
|
@@ -75,6 +76,7 @@ jobs: | |
rm ./backend-python/rwkv_pip/cpp/librwkv.dylib | ||
rm ./backend-python/rwkv_pip/cpp/rwkv.dll | ||
rm ./backend-python/rwkv_pip/webgpu/web_rwkv_py.cp310-win_amd64.pyd | ||
go install mvdan.cc/[email protected] | ||
make | ||
mv build/bin/RWKV-Runner build/bin/RWKV-Runner_linux_x64 | ||
|
@@ -103,6 +105,7 @@ jobs: | |
rm ./backend-python/rwkv_pip/cpp/rwkv.dll | ||
rm ./backend-python/rwkv_pip/cpp/librwkv.so | ||
rm ./backend-python/rwkv_pip/webgpu/web_rwkv_py.cp310-win_amd64.pyd | ||
go install mvdan.cc/[email protected] | ||
make | ||
cp build/darwin/Readme_Install.txt build/bin/Readme_Install.txt | ||
cp build/bin/RWKV-Runner.app/Contents/MacOS/RWKV-Runner build/bin/RWKV-Runner_darwin_universal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,14 +43,17 @@ jobs: | |
ref: master | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22.5" | ||
go-version: "1.20.5" | ||
- uses: actions/setup-python@v5 | ||
id: cp310 | ||
with: | ||
python-version: "3.10" | ||
- uses: crazy-max/ghaction-chocolatey@v3 | ||
with: | ||
args: install upx | ||
- uses: crazy-max/ghaction-chocolatey@v3 | ||
with: | ||
args: install nsis | ||
- run: | | ||
Start-BitsTransfer https://github.com/josStorer/ai00_rwkv_server/releases/latest/download/webgpu_server_windows_x86_64.exe ./backend-rust/webgpu_server.exe | ||
Start-BitsTransfer https://github.com/josStorer/web-rwkv-converter/releases/latest/download/web-rwkv-converter_windows_x86_64.exe ./backend-rust/web-rwkv-converter.exe | ||
|
@@ -69,10 +72,11 @@ jobs: | |
del ./backend-python/rwkv_pip/cpp/librwkv.so | ||
(Get-Content -Path ./backend-golang/app.go) -replace "//go:custom_build windows ", "" | Set-Content -Path ./backend-golang/app.go | ||
(Get-Content -Path ./backend-golang/utils.go) -replace "//go:custom_build windows ", "" | Set-Content -Path ./backend-golang/utils.go | ||
go install mvdan.cc/[email protected] | ||
make | ||
Rename-Item -Path "build/bin/RWKV-Runner.exe" -NewName "RWKV-Runner_windows_x64.exe" | ||
- run: gh release upload ${{github.ref_name}} build/bin/RWKV-Runner_windows_x64.exe | ||
- run: gh release upload ${{github.ref_name}} build/bin/RWKV-Runner_windows_x64.exe build/bin/RWKV-Runner-amd64-installer.exe | ||
|
||
linux: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -83,7 +87,7 @@ jobs: | |
ref: master | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22.5" | ||
go-version: "1.20.5" | ||
- run: | | ||
wget https://github.com/josStorer/ai00_rwkv_server/releases/latest/download/webgpu_server_linux_x86_64 -O ./backend-rust/webgpu_server | ||
wget https://github.com/josStorer/web-rwkv-converter/releases/latest/download/web-rwkv-converter_linux_x86_64 -O ./backend-rust/web-rwkv-converter | ||
|
@@ -98,6 +102,7 @@ jobs: | |
rm ./backend-python/rwkv_pip/cpp/librwkv.dylib | ||
rm ./backend-python/rwkv_pip/cpp/rwkv.dll | ||
rm ./backend-python/rwkv_pip/webgpu/web_rwkv_py.cp310-win_amd64.pyd | ||
go install mvdan.cc/[email protected] | ||
make | ||
mv build/bin/RWKV-Runner build/bin/RWKV-Runner_linux_x64 | ||
|
@@ -112,7 +117,7 @@ jobs: | |
ref: master | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22.5" | ||
go-version: "1.20.5" | ||
- run: | | ||
wget https://github.com/josStorer/ai00_rwkv_server/releases/latest/download/webgpu_server_darwin_aarch64 -O ./backend-rust/webgpu_server | ||
wget https://github.com/josStorer/web-rwkv-converter/releases/latest/download/web-rwkv-converter_darwin_aarch64 -O ./backend-rust/web-rwkv-converter | ||
|
@@ -124,12 +129,14 @@ jobs: | |
rm ./backend-python/rwkv_pip/cpp/rwkv.dll | ||
rm ./backend-python/rwkv_pip/cpp/librwkv.so | ||
rm ./backend-python/rwkv_pip/webgpu/web_rwkv_py.cp310-win_amd64.pyd | ||
go install mvdan.cc/[email protected] | ||
make | ||
cp build/darwin/Readme_Install.txt build/bin/Readme_Install.txt | ||
cp build/bin/RWKV-Runner.app/Contents/MacOS/RWKV-Runner build/bin/RWKV-Runner_darwin_universal | ||
cd build/bin && zip -r RWKV-Runner_macos_universal.zip RWKV-Runner.app Readme_Install.txt | ||
cd ../../frontend && zip -r html-webui.zip dist | ||
- run: gh release upload ${{github.ref_name}} build/bin/RWKV-Runner_macos_universal.zip build/bin/RWKV-Runner_darwin_universal | ||
- run: gh release upload ${{github.ref_name}} build/bin/RWKV-Runner_macos_universal.zip frontend/html-webui.zip | ||
|
||
publish-release: | ||
runs-on: ubuntu-22.04 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{ | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter" | ||
}, | ||
"python.formatting.provider": "none", | ||
"editor.formatOnSave": true | ||
"prettier.configPath": "./frontend/prettier.config.js", | ||
"prettier.prettierPath": "./frontend/node_modules/prettier", | ||
"prettier.requireConfig": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[go]": { | ||
"editor.defaultFormatter": "golang.go" | ||
}, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter" | ||
}, | ||
"python.formatting.provider": "none", | ||
"editor.formatOnSave": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.