Skip to content

Commit b3a6586

Browse files
committed
update model repo to fix tests
1 parent bde9015 commit b3a6586

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/docker-build-action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
push: true
6464
context: ${{ inputs.context }}
6565
build-args: ${{ inputs.build_args }}
66+
target: base
6667
file: ${{ inputs.context }}/${{ inputs.dockerfile }}
6768
tags: ${{ inputs.repository }}/${{ inputs.image }}:sha-${{ env.GITHUB_SHA_SHORT }},${{ inputs.repository }}/${{ inputs.image }}:latest
6869

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
extras = {}
3232

3333
extras["st"] = ["sentence_transformers==2.7.0"]
34-
extras["diffusers"] = ["diffusers==0.26.3", "accelerate==0.30.1"]
35-
extras["torch"] = ["torch==2.2.2", "torchvision", "torchaudio"]
34+
extras["diffusers"] = ["diffusers==0.26.3", "accelerate==0.27.2"]
35+
extras["torch"] = ["torch==2.2.0", "torchvision", "torchaudio"]
3636
extras["test"] = [
3737
"pytest==7.2.1",
3838
"pytest-xdist",

tests/unit/test_diffusers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
def test_get_diffusers_pipeline():
1616
with tempfile.TemporaryDirectory() as tmpdirname:
1717
storage_dir = _load_repository_from_hf(
18-
"hf-internal-testing/tiny-stable-diffusion-torch",
18+
"echarlaix/tiny-random-stable-diffusion-xl",
1919
tmpdirname,
2020
framework="pytorch"
2121
)
@@ -28,7 +28,7 @@ def test_get_diffusers_pipeline():
2828
def test_pipe_on_gpu():
2929
with tempfile.TemporaryDirectory() as tmpdirname:
3030
storage_dir = _load_repository_from_hf(
31-
"hf-internal-testing/tiny-stable-diffusion-torch",
31+
"echarlaix/tiny-random-stable-diffusion-xl",
3232
tmpdirname,
3333
framework="pytorch"
3434
)
@@ -44,7 +44,7 @@ def test_pipe_on_gpu():
4444
def test_text_to_image_task():
4545
with tempfile.TemporaryDirectory() as tmpdirname:
4646
storage_dir = _load_repository_from_hf(
47-
"hf-internal-testing/tiny-stable-diffusion-torch",
47+
"echarlaix/tiny-random-stable-diffusion-xl",
4848
tmpdirname,
4949
framework="pytorch"
5050
)

0 commit comments

Comments
 (0)