Skip to content

Commit

Permalink
Install torch cpu-only in github actions (grok-ai#91)
Browse files Browse the repository at this point in the history
* Install torch cpu-only in github actions

* Fix extra whitespace for pre-commits
  • Loading branch information
lucmos authored Aug 30, 2023
1 parent 669456e commit e0d0bf6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ jobs:
sed -Ei '/^\s*-?\s*python\s*([#=].*)?$/d' ${{ env.CONDA_ENV_FILE }}
cat ${{ env.CONDA_ENV_FILE }}
# Install torch cpu-only
- name: Install torch cpu only
shell: bash -l {0}
run: |
sed -i '/nvidia\|cuda/d' ${{ env.CONDA_ENV_FILE }}
cat ${{ env.CONDA_ENV_FILE }}
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
Expand Down

0 comments on commit e0d0bf6

Please sign in to comment.