mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
reenable preload models, move huggingface-cache...
... on top of conda env activation, since `~/.cache` also contains pip
This commit is contained in:
parent
e7aeaa310c
commit
fc4d07f198
28
.github/workflows/test-invoke-conda.yml
vendored
28
.github/workflows/test-invoke-conda.yml
vendored
@ -45,12 +45,23 @@ jobs:
|
|||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache conda packages
|
- name: Use cached conda packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/conda_pkgs_dir
|
path: ~/conda_pkgs_dir
|
||||||
key: conda-pkgs-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles(matrix.environment-file) }}
|
key: conda-pkgs-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles(matrix.environment-file) }}
|
||||||
|
|
||||||
|
- name: Use Cached Huggingface and Torch models
|
||||||
|
id: cache-hugginface-torch
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: cache-hugginface-and-torch-models
|
||||||
|
with:
|
||||||
|
path: ~/.cache
|
||||||
|
key: ${{ env.cache-name }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ env.cache-name }}-${{ hashFiles('scripts/preload_models.py') }}
|
||||||
|
|
||||||
- name: Activate Conda Env
|
- name: Activate Conda Env
|
||||||
uses: conda-incubator/setup-miniconda@v2
|
uses: conda-incubator/setup-miniconda@v2
|
||||||
with:
|
with:
|
||||||
@ -90,19 +101,8 @@ jobs:
|
|||||||
-o ${{ matrix.stable-diffusion-model-dl-path }} \
|
-o ${{ matrix.stable-diffusion-model-dl-path }} \
|
||||||
-L ${{ matrix.stable-diffusion-model }}
|
-L ${{ matrix.stable-diffusion-model }}
|
||||||
|
|
||||||
# - name: Use Cached Huggingface and Torch models
|
- name: run preload_models.py
|
||||||
# id: cache-hugginface-torch
|
run: python scripts/preload_models.py
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-hugginface-torch
|
|
||||||
# with:
|
|
||||||
# path: ~/.cache
|
|
||||||
# key: ${{ env.cache-name }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ env.cache-name }}-${{ hashFiles('scripts/preload_models.py') }}
|
|
||||||
|
|
||||||
# - name: run preload_models.py
|
|
||||||
# run: python scripts/preload_models.py
|
|
||||||
|
|
||||||
- name: Run the tests
|
- name: Run the tests
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user