-
-
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
Signed-off-by: Ettore Di Giacinto <[email protected]>
- Loading branch information
Showing
15 changed files
with
28 additions
and
211 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 |
---|---|---|
|
@@ -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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -687,6 +687,10 @@ var _ = Describe("API test", func() { | |
Name: "model-gallery", | ||
URL: "https://raw.githubusercontent.com/go-skynet/model-gallery/main/index.yaml", | ||
}, | ||
{ | ||
Name: "localai", | ||
URL: "https://raw.githubusercontent.com/mudler/LocalAI/refs/heads/master/gallery/index.yaml", | ||
}, | ||
} | ||
|
||
application, err := application.New( | ||
|
@@ -764,10 +768,7 @@ var _ = Describe("API test", func() { | |
} | ||
|
||
response := postModelApplyRequest("http://127.0.0.1:9090/models/apply", modelApplyRequest{ | ||
ID: "model-gallery@stablediffusion", | ||
Overrides: map[string]interface{}{ | ||
"parameters": map[string]interface{}{"model": "stablediffusion_assets"}, | ||
}, | ||
ID: "[email protected]", | ||
}) | ||
|
||
Expect(response["uuid"]).ToNot(BeEmpty(), fmt.Sprint(response)) | ||
|
@@ -784,8 +785,8 @@ var _ = Describe("API test", func() { | |
"http://127.0.0.1:9090/v1/images/generations", | ||
"application/json", | ||
bytes.NewBuffer([]byte(`{ | ||
"prompt": "floating hair, portrait, ((loli)), ((one girl)), cute face, hidden hands, asymmetrical bangs, beautiful detailed eyes, eye shadow, hair ornament, ribbons, bowties, buttons, pleated skirt, (((masterpiece))), ((best quality)), colorful|((part of the head)), ((((mutated hands and fingers)))), deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, Octane renderer, lowres, bad anatomy, bad hands, text", | ||
"mode": 2, "seed":9000, | ||
"prompt": "a lovely cat", | ||
"steps": 2, "seed":9000, | ||
"size": "256x256", "n":2}`))) | ||
// The response should contain an URL | ||
Expect(err).ToNot(HaveOccurred(), fmt.Sprint(resp)) | ||
|
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.