mirror of
https://github.com/huggingface/accelerate.git
synced 2025-11-18 00:14:36 +08:00
Compare commits
3 Commits
v1.10.1
...
speedup-do
| Author | SHA1 | Date | |
|---|---|---|---|
| 59641834c3 | |||
| a8e823c8be | |||
| 2b718f04c7 |
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -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: |
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user