Compare commits

...

3 Commits

Author SHA1 Message Date
59641834c3 Dispatch 2024-04-29 11:47:49 -04:00
a8e823c8be Let's test this out 2024-04-29 11:47:36 -04:00
2b718f04c7 Optimize docker build speed + space 2024-04-29 11:39:25 -04:00
2 changed files with 7 additions and 7 deletions

View File

@ -9,6 +9,7 @@ on:
- "examples/**"
- "setup.py"
types: [opened, synchronize, reopened]
workflow_dispatch:
env:
HF_HOME: ~/hf_cache
@ -18,6 +19,8 @@ env:
jobs:
run-tests:
runs-on: ubuntu-latest
container:
image: huggingface/accelerate:cpu-nightly
strategy:
fail-fast: false
matrix:
@ -38,11 +41,6 @@ jobs:
test_rest
]
steps:
- uses: actions/checkout@v3.1.0
- name: Set up python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install the library
run: |

View File

@ -17,9 +17,11 @@ RUN python3 -m venv ${VIRTUAL_ENV}
# Make sure we use the virtualenv
ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
WORKDIR /workspace
# Setup UV
RUN pip install uv --no-cache-dir
# Install specific CPU torch wheel to save on space
RUN python3 -m pip install --upgrade --no-cache-dir pip
RUN python3 -m pip install --no-cache-dir \
RUN uv pip install --upgrade --no-cache-dir pip
RUN uv pip install --no-cache-dir \
jupyter \
git+https://github.com/huggingface/accelerate#egg=accelerate[testing,test_trackers] \
--extra-index-url https://download.pytorch.org/whl/cpu