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
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Cache conda packages
|
||||
- name: Use cached conda packages
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/conda_pkgs_dir
|
||||
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
|
||||
uses: conda-incubator/setup-miniconda@v2
|
||||
with:
|
||||
@ -90,19 +101,8 @@ jobs:
|
||||
-o ${{ matrix.stable-diffusion-model-dl-path }} \
|
||||
-L ${{ matrix.stable-diffusion-model }}
|
||||
|
||||
# - name: Use Cached Huggingface and Torch models
|
||||
# id: cache-hugginface-torch
|
||||
# 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 preload_models.py
|
||||
run: python scripts/preload_models.py
|
||||
|
||||
- name: Run the tests
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user