-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(stablediffusion-ncn): drop in favor of ggml implementation (#4652)
* chore(stablediffusion-ncn): drop in favor of ggml implementation Signed-off-by: Ettore Di Giacinto <[email protected]> * chore(ci): drop stablediffusion build Signed-off-by: Ettore Di Giacinto <[email protected]> * chore(tests): add Signed-off-by: Ettore Di Giacinto <[email protected]> * chore(tests): try to fixup current tests Signed-off-by: Ettore Di Giacinto <[email protected]> * Try to fix tests Signed-off-by: Ettore Di Giacinto <[email protected]> * Tests improvements Signed-off-by: Ettore Di Giacinto <[email protected]> * chore(tests): use quality to specify step Signed-off-by: Ettore Di Giacinto <[email protected]> * chore(tests): switch to sd-1.5 also increase prep time for downloading models Signed-off-by: Ettore Di Giacinto <[email protected]> --------- Signed-off-by: Ettore Di Giacinto <[email protected]>
- Loading branch information
Showing
22 changed files
with
123 additions
and
302 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -237,40 +237,7 @@ jobs: | |
detached: true | ||
connect-timeout-seconds: 180 | ||
limit-access-to-actor: true | ||
build-stablediffusion: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.x' | ||
cache: false | ||
- name: Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends libopencv-dev protobuf-compiler ccache upx-ucl | ||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@1958fcbe2ca8bd93af633f11e97d44e567e945af | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
- name: Build stablediffusion | ||
run: | | ||
export PATH=$PATH:$GOPATH/bin | ||
make backend-assets/grpc/stablediffusion | ||
mkdir -p release && cp backend-assets/grpc/stablediffusion release | ||
env: | ||
GO_TAGS: stablediffusion | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: stablediffusion | ||
path: release/ | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
release/* | ||
|
||
|
||
build-macOS-x86_64: | ||
runs-on: macos-13 | ||
|
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 |
---|---|---|
|
@@ -105,9 +105,7 @@ jobs: | |
# Pre-build piper before we start tests in order to have shared libraries in place | ||
make sources/go-piper && \ | ||
GO_TAGS="tts" make -C sources/go-piper piper.o && \ | ||
sudo cp -rfv sources/go-piper/piper-phonemize/pi/lib/. /usr/lib/ && \ | ||
# Pre-build stable diffusion before we install a newer version of abseil (not compatible with stablediffusion-ncn) | ||
PATH="$PATH:/root/go/bin" GO_TAGS="stablediffusion tts" GRPC_BACKENDS=backend-assets/grpc/stablediffusion make build | ||
sudo cp -rfv sources/go-piper/piper-phonemize/pi/lib/. /usr/lib/ | ||
env: | ||
CUDA_VERSION: 12-4 | ||
- name: Cache grpc | ||
|
@@ -129,7 +127,7 @@ jobs: | |
cd grpc && cd cmake/build && sudo make --jobs 5 install | ||
- name: Test | ||
run: | | ||
PATH="$PATH:/root/go/bin" GO_TAGS="stablediffusion tts" make --jobs 5 --output-sync=target test | ||
PATH="$PATH:/root/go/bin" GO_TAGS="tts" make --jobs 5 --output-sync=target test | ||
- name: Setup tmate session if tests fail | ||
if: ${{ failure() }} | ||
uses: mxschmitt/[email protected] | ||
|
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.