File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,14 +150,15 @@ jobs:
150150 sudo apt-get update
151151 sudo apt install pipx
152152 pipx install poetry
153+ mkdir -p ../llm2-persistent_storage
153154 poetry install
154155
155156 - name : Cache llm2 models
156157 uses : actions/cache@v5
157158 env :
158159 cache-name : cache-llm2-models
159160 with :
160- path : ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
161+ path : llm2-persistent_storage/
161162 key : ${{ runner.os }}-llm2-models-${{ env.cache-name }}-${{ hashFiles('llm2/lib/main.py') }}
162163
163164 - name : Init llm2
@@ -167,7 +168,7 @@ jobs:
167168 APP_PORT : 9080
168169 APP_VERSION : ${{ fromJson(steps.llm2_appinfo.outputs.result).version }}
169170 run : |
170- poetry run python3 main.py > ../logs 2>&1 &
171+ APP_PERSISTENT_STORAGE="$(pwd)/../../llm2-persistent-storage/" poetry run python3 main.py > ../logs 2>&1 &
171172
172173 - name : Register backend
173174 run : |
You can’t perform that action at this time.
0 commit comments