|
24 | 24 | conda create -n ci -y python="${PYTHON_VERSION}" |
25 | 25 | conda activate ci |
26 | 26 |
|
27 | | -# 1. Install PyTorch |
28 | | -# if [ -z "${CUDA_VERSION:-}" ] ; then |
29 | | -# if [ "${os}" == MacOSX ] ; then |
30 | | -# cudatoolkit='' |
31 | | -# else |
32 | | -# cudatoolkit="cpuonly" |
33 | | -# fi |
34 | | -# version="cpu" |
35 | | -# else |
36 | | -# version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")" |
37 | | -# export CUDATOOLKIT_CHANNEL="nvidia" |
38 | | -# cudatoolkit="pytorch-cuda=${version}" |
39 | | -# fi |
40 | | - |
41 | | -# printf "Installing PyTorch with %s\n" "${cudatoolkit}" |
42 | | -# ( |
43 | | -# if [ "${os}" == MacOSX ] ; then |
44 | | -# # TODO: this can be removed as soon as linking issue could be resolved |
45 | | -# # see https://github.com/pytorch/pytorch/issues/62424 from details |
46 | | -# MKL_CONSTRAINT='mkl==2021.2.0' |
47 | | -# pytorch_build=pytorch |
48 | | -# else |
49 | | -# MKL_CONSTRAINT='' |
50 | | -# pytorch_build="pytorch[build="*${version}*"]" |
51 | | -# fi |
52 | | -# set -x |
53 | | - |
54 | | -# if [[ -z "$cudatoolkit" ]]; then |
55 | | -# conda install ${CONDA_CHANNEL_FLAGS:-} -y -c "pytorch-${UPLOAD_CHANNEL}" $MKL_CONSTRAINT "pytorch-${UPLOAD_CHANNEL}::${pytorch_build}" |
56 | | -# else |
57 | | -# conda install pytorch ${cudatoolkit} ${CONDA_CHANNEL_FLAGS:-} -y -c "pytorch-${UPLOAD_CHANNEL}" -c nvidia $MKL_CONSTRAINT |
58 | | -# fi |
59 | | -# ) |
60 | | - |
61 | | -export GPU_ARCH_TYPE="cpu" # TODO change this |
| 27 | +export GPU_ARCH_TYPE="cpu" |
62 | 28 |
|
63 | 29 | case $GPU_ARCH_TYPE in |
64 | 30 | cpu) |
@@ -89,22 +55,4 @@ printf "* Installing test tools\n" |
89 | 55 | # On this CI, for whatever reason, we're only able to install ffmpeg 4. |
90 | 56 | conda install -y "ffmpeg<5" |
91 | 57 |
|
92 | | -NUMBA_DEV_CHANNEL="" |
93 | | -if [[ "$(python --version)" = *3.9* || "$(python --version)" = *3.10* ]]; then |
94 | | - # Numba isn't available for Python 3.9 and 3.10 except on the numba dev channel and building from source fails |
95 | | - # See https://github.com/librosa/librosa/issues/1270#issuecomment-759065048 |
96 | | - NUMBA_DEV_CHANNEL="-c numba/label/dev" |
97 | | -fi |
98 | | -( |
99 | | - set -x |
100 | | - conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} libvorbis parameterized 'requests>=2.20' |
101 | | - pip install SoundFile coverage pytest pytest-cov scipy expecttest unidecode inflect Pillow sentencepiece pytorch-lightning 'protobuf<4.21.0' demucs tinytag pyroomacoustics flashlight-text git+https://github.com/kpu/kenlm |
102 | | - |
103 | | - # TODO: might be better to fix the single call to `pip install` above |
104 | | - pip install pillow scipy "numpy>=1.26" |
105 | | -) |
106 | | -# Install fairseq |
107 | | -git clone https://github.com/pytorch/fairseq |
108 | | -cd fairseq |
109 | | -git checkout e47a4c8 |
110 | | -pip install . |
| 58 | +pip3 install parameterized requests coverage pytest pytest-cov scipy numpy expecttest |
0 commit comments