Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update InstaNovo: Use GPU version of Pytorch #52231

Closed
wants to merge 7 commits into from

Conversation

BioGeek
Copy link
Contributor

@BioGeek BioGeek commented Nov 20, 2024

InstaNovo currently installs the CPU version of PyTorch.

Pytorch recently announced that they will stop publishing to Anaconda and are directing users to use pytorch-gpu from conda-forge

$ conda config --add channels defaults
$ conda config --add channels bioconda
$ conda config --add channels conda-forge
$ conda config --show channels              

channels:
  - conda-forge
  - bioconda
  - defaults
$ conda create -n instanovo_env instanovo python=3.11
Channels:
 - conda-forge
 - bioconda
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/j-vangoey/.local/miniconda3/envs/instanovo_env

  added / updated specs:
    - instanovo
    - python=3.11


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    aiohttp-3.11.6             |  py311h2dc5d0c_0         896 KB  conda-forge
    contourpy-1.3.1            |  py311hd18a35c_0         272 KB  conda-forge
    fonttools-4.55.0           |  py311h2dc5d0c_0         2.8 MB  conda-forge
    frozenlist-1.5.0           |  py311h9ecbd09_0          60 KB  conda-forge
    llvm-openmp-19.1.3         |       h024ca30_0         3.0 MB  conda-forge
    matplotlib-base-3.9.2      |  py311h2b939e6_2         7.6 MB  conda-forge
    multiprocess-0.70.15       |  py311h459d7ec_1         332 KB  conda-forge
    pillow-10.3.0              |  py311h18e6fac_0        40.6 MB  conda-forge
    polars-1.12.0              |  py311hcc3b33b_1        21.8 MB  conda-forge
    psutil-6.1.0               |  py311h9ecbd09_0         494 KB  conda-forge
    pyopenms-3.2.0             |  py311he92948f_0        10.4 MB  bioconda
    rapidfuzz-3.10.1           |  py311hfdbb021_0         2.1 MB  conda-forge
    rpds-py-0.21.0             |  py311h9e33e62_0         326 KB  conda-forge
    scipy-1.14.1               |  py311he9a78e4_1        16.8 MB  conda-forge
    unicodedata2-15.1.0        |  py311h9ecbd09_1         360 KB  conda-forge
    yarl-1.17.2                |  py311h9ecbd09_0         149 KB  conda-forge
    ------------------------------------------------------------
                                           Total:       107.9 MB

The following NEW packages will be INSTALLED:

  _libgcc_mutex      conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge 
  _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-2_kmp_llvm 
  absl-py            conda-forge/noarch::absl-py-2.1.0-pyhd8ed1ab_0 
  aiobotocore        conda-forge/noarch::aiobotocore-2.15.2-pyhd8ed1ab_0 
  aiohappyeyeballs   conda-forge/noarch::aiohappyeyeballs-2.4.3-pyhd8ed1ab_0 
  aiohttp            conda-forge/linux-64::aiohttp-3.11.6-py311h2dc5d0c_0 
  aioitertools       conda-forge/noarch::aioitertools-0.12.0-pyhd8ed1ab_0 
  aiosignal          conda-forge/noarch::aiosignal-1.3.1-pyhd8ed1ab_0 
  alsa-lib           conda-forge/linux-64::alsa-lib-1.2.13-hb9d3cd8_0 
  altair             conda-forge/noarch::altair-5.4.1-pyhd8ed1ab_1 
  antlr-python-runt~ conda-forge/noarch::antlr-python-runtime-4.9.3-pyhd8ed1ab_1 
  appdirs            conda-forge/noarch::appdirs-1.4.4-pyh9f0ad1d_0 
  arrow              conda-forge/noarch::arrow-1.3.0-pyhd8ed1ab_0 
  attr               conda-forge/linux-64::attr-2.5.1-h166bdaf_1 
  attrs              conda-forge/noarch::attrs-24.2.0-pyh71513ae_0 
  aws-c-auth         conda-forge/linux-64::aws-c-auth-0.7.22-h96bc93b_2 
  aws-c-cal          conda-forge/linux-64::aws-c-cal-0.6.14-h88a6e22_1 
  aws-c-common       conda-forge/linux-64::aws-c-common-0.9.19-h4ab18f5_0 
  aws-c-compression  conda-forge/linux-64::aws-c-compression-0.2.18-h83b837d_6 
  aws-c-event-stream conda-forge/linux-64::aws-c-event-stream-0.4.2-ha47c788_12 
  aws-c-http         conda-forge/linux-64::aws-c-http-0.8.1-h29d6fba_17 
  aws-c-io           conda-forge/linux-64::aws-c-io-0.14.8-h21d4f22_5 
  aws-c-mqtt         conda-forge/linux-64::aws-c-mqtt-0.10.4-h759edc4_4 
  aws-c-s3           conda-forge/linux-64::aws-c-s3-0.5.9-h594631b_3 
  aws-c-sdkutils     conda-forge/linux-64::aws-c-sdkutils-0.1.16-h83b837d_2 
  aws-checksums      conda-forge/linux-64::aws-checksums-0.1.18-h83b837d_6 
  aws-crt-cpp        conda-forge/linux-64::aws-crt-cpp-0.26.9-he3a8b3b_0 
  aws-sdk-cpp        conda-forge/linux-64::aws-sdk-cpp-1.11.329-hba8bd5f_3 
  blinker            conda-forge/noarch::blinker-1.9.0-pyhff2d567_0 
  boost-cpp          conda-forge/linux-64::boost-cpp-1.85.0-h44aadfe_2 
  boto3              conda-forge/noarch::boto3-1.35.36-pyhd8ed1ab_0 
  botocore           conda-forge/noarch::botocore-1.35.36-pyge310_1234567_0 
  bravado            conda-forge/noarch::bravado-11.0.3-pyhd8ed1ab_0 
  bravado-core       conda-forge/noarch::bravado-core-5.17.1-pyhd8ed1ab_0 
  brotli             conda-forge/linux-64::brotli-1.1.0-hb9d3cd8_2 
  brotli-bin         conda-forge/linux-64::brotli-bin-1.1.0-hb9d3cd8_2 
  brotli-python      conda-forge/linux-64::brotli-python-1.1.0-py311hfdbb021_2 
  bzip2              conda-forge/linux-64::bzip2-1.0.8-h4bc722e_7 
  c-ares             conda-forge/linux-64::c-ares-1.34.3-heb4867d_0 
  ca-certificates    conda-forge/linux-64::ca-certificates-2024.8.30-hbcca054_0 
  cached-property    conda-forge/noarch::cached-property-1.5.2-hd8ed1ab_1 
  cached_property    conda-forge/noarch::cached_property-1.5.2-pyha770c72_1 
  cairo              conda-forge/linux-64::cairo-1.18.0-h3faef2a_0 
  certifi            conda-forge/noarch::certifi-2024.8.30-pyhd8ed1ab_0 
  cffi               conda-forge/linux-64::cffi-1.17.1-py311hf29c0ef_0 
  charset-normalizer conda-forge/noarch::charset-normalizer-3.4.0-pyhd8ed1ab_0 
  click              conda-forge/noarch::click-8.1.7-unix_pyh707e725_0 
  coinmp             conda-forge/linux-64::coinmp-1.8.4-h1546033_3 
  colorama           conda-forge/noarch::colorama-0.4.6-pyhd8ed1ab_0 
  contourpy          conda-forge/linux-64::contourpy-1.3.1-py311hd18a35c_0 
  cryptography       conda-forge/linux-64::cryptography-43.0.3-py311hafd3f86_0 
  cycler             conda-forge/noarch::cycler-0.12.1-pyhd8ed1ab_0 
  datasets           conda-forge/noarch::datasets-2.14.4-pyhd8ed1ab_0 
  dbus               conda-forge/linux-64::dbus-1.13.6-h5008d03_3 
  deprecated         conda-forge/noarch::deprecated-1.2.15-pyhff2d567_0 
  dill               conda-forge/noarch::dill-0.3.7-pyhd8ed1ab_0 
  eigen              conda-forge/linux-64::eigen-3.4.0-h00ab1b0_0 
  expat              conda-forge/linux-64::expat-2.6.4-h5888daf_0 
  fastobo            bioconda/linux-64::fastobo-0.12.3-py311ha86b268_2 
  filelock           conda-forge/noarch::filelock-3.16.1-pyhd8ed1ab_0 
  font-ttf-dejavu-s~ conda-forge/noarch::font-ttf-dejavu-sans-mono-2.37-hab24e00_0 
  font-ttf-inconsol~ conda-forge/noarch::font-ttf-inconsolata-3.000-h77eed37_0 
  font-ttf-source-c~ conda-forge/noarch::font-ttf-source-code-pro-2.038-h77eed37_0 
  font-ttf-ubuntu    conda-forge/noarch::font-ttf-ubuntu-0.83-h77eed37_3 
  fontconfig         conda-forge/linux-64::fontconfig-2.14.2-h14ed4e7_0 
  fonts-conda-ecosy~ conda-forge/noarch::fonts-conda-ecosystem-1-0 
  fonts-conda-forge  conda-forge/noarch::fonts-conda-forge-1-0 
  fonttools          conda-forge/linux-64::fonttools-4.55.0-py311h2dc5d0c_0 
  fqdn               conda-forge/noarch::fqdn-1.5.1-pyhd8ed1ab_0 
  freetype           conda-forge/linux-64::freetype-2.12.1-h267a509_2 
  frozenlist         conda-forge/linux-64::frozenlist-1.5.0-py311h9ecbd09_0 
  fsspec             conda-forge/noarch::fsspec-2024.10.0-pyhff2d567_0 
  future             conda-forge/noarch::future-1.0.0-pyhd8ed1ab_0 
  gettext            conda-forge/linux-64::gettext-0.22.5-he02047a_3 
  gettext-tools      conda-forge/linux-64::gettext-tools-0.22.5-he02047a_3 
  gflags             conda-forge/linux-64::gflags-2.2.2-h5888daf_1005 
  gitdb              conda-forge/noarch::gitdb-4.0.11-pyhd8ed1ab_0 
  gitpython          conda-forge/noarch::gitpython-3.1.43-pyhd8ed1ab_0 
  glib               conda-forge/linux-64::glib-2.80.2-hf974151_0 
  glib-tools         conda-forge/linux-64::glib-tools-2.80.2-hb6ce0ca_0 
  glog               conda-forge/linux-64::glog-0.7.1-hbabe93e_0 
  gmp                conda-forge/linux-64::gmp-6.3.0-hac33072_2 
  gmpy2              conda-forge/linux-64::gmpy2-2.1.5-py311h0f6cedb_2 
  graphite2          conda-forge/linux-64::graphite2-1.3.13-h59595ed_1003 
  greenlet           conda-forge/linux-64::greenlet-3.1.1-py311hfdbb021_0 
  grpcio             conda-forge/linux-64::grpcio-1.62.2-py311ha6695c7_0 
  gst-plugins-base   conda-forge/linux-64::gst-plugins-base-1.24.4-h9ad1361_0 
  gstreamer          conda-forge/linux-64::gstreamer-1.24.4-haf2f30d_0 
  h2                 conda-forge/noarch::h2-4.1.0-pyhd8ed1ab_0 
  harfbuzz           conda-forge/linux-64::harfbuzz-8.5.0-hfac3d4d_0 
  hdf5               conda-forge/linux-64::hdf5-1.14.3-nompi_hdf9ad27_105 
  hpack              conda-forge/noarch::hpack-4.0.0-pyh9f0ad1d_0 
  huggingface_hub    conda-forge/noarch::huggingface_hub-0.26.2-pyh0610db2_0 
  hydra-core         conda-forge/noarch::hydra-core-1.3.2-pyhd8ed1ab_0 
  hyperframe         conda-forge/noarch::hyperframe-6.0.1-pyhd8ed1ab_0 
  icu                conda-forge/linux-64::icu-73.2-h59595ed_0 
  idna               conda-forge/noarch::idna-3.10-pyhd8ed1ab_0 
  importlib-metadata conda-forge/noarch::importlib-metadata-8.5.0-pyha770c72_0 
  importlib_resourc~ conda-forge/noarch::importlib_resources-6.4.5-pyhd8ed1ab_0 
  instanovo          bioconda/noarch::instanovo-1.0.0-pyhdfd78af_0 
  isoduration        conda-forge/noarch::isoduration-20.11.0-pyhd8ed1ab_0 
  jaxtyping          conda-forge/noarch::jaxtyping-0.2.36-pyhd8ed1ab_0 
  jinja2             conda-forge/noarch::jinja2-3.1.4-pyhd8ed1ab_0 
  jiwer              conda-forge/noarch::jiwer-3.0.5-pyhd8ed1ab_0 
  jmespath           conda-forge/noarch::jmespath-1.0.1-pyhd8ed1ab_0 
  joblib             conda-forge/noarch::joblib-1.4.2-pyhd8ed1ab_0 
  jsonpointer        conda-forge/linux-64::jsonpointer-3.0.0-py311h38be061_1 
  jsonref            conda-forge/noarch::jsonref-1.1.0-pyhd8ed1ab_0 
  jsonschema         conda-forge/noarch::jsonschema-4.23.0-pyhd8ed1ab_0 
  jsonschema-specif~ conda-forge/noarch::jsonschema-specifications-2024.10.1-pyhd8ed1ab_0 
  jsonschema-with-f~ conda-forge/noarch::jsonschema-with-format-4.23.0-hd8ed1ab_0 
  kernel-headers_li~ conda-forge/noarch::kernel-headers_linux-64-3.10.0-he073ed8_18 
  keyutils           conda-forge/linux-64::keyutils-1.6.1-h166bdaf_0 
  kiwisolver         conda-forge/linux-64::kiwisolver-1.4.7-py311hd18a35c_0 
  krb5               conda-forge/linux-64::krb5-1.21.3-h659f571_0 
  lame               conda-forge/linux-64::lame-3.100-h166bdaf_1003 
  lark               conda-forge/noarch::lark-1.2.2-pyhd8ed1ab_0 
  lcms2              conda-forge/linux-64::lcms2-2.16-hb7c19ff_0 
  ld_impl_linux-64   conda-forge/linux-64::ld_impl_linux-64-2.43-h712a8e2_2 
  lerc               conda-forge/linux-64::lerc-4.0.0-h27087fc_0 
  libabseil          conda-forge/linux-64::libabseil-20240116.2-cxx17_he02047a_1 
  libaec             conda-forge/linux-64::libaec-1.1.3-h59595ed_0 
  libarrow           conda-forge/linux-64::libarrow-16.1.0-hcb6531f_6_cpu 
  libarrow-acero     conda-forge/linux-64::libarrow-acero-16.1.0-hac33072_6_cpu 
  libarrow-dataset   conda-forge/linux-64::libarrow-dataset-16.1.0-hac33072_6_cpu 
  libarrow-substrait conda-forge/linux-64::libarrow-substrait-16.1.0-h7e0c224_6_cpu 
  libasprintf        conda-forge/linux-64::libasprintf-0.22.5-he8f35ee_3 
  libasprintf-devel  conda-forge/linux-64::libasprintf-devel-0.22.5-he8f35ee_3 
  libblas            conda-forge/linux-64::libblas-3.9.0-25_linux64_openblas 
  libboost           conda-forge/linux-64::libboost-1.85.0-hba137d9_2 
  libboost-devel     conda-forge/linux-64::libboost-devel-1.85.0-h00ab1b0_2 
  libboost-headers   conda-forge/linux-64::libboost-headers-1.85.0-ha770c72_2 
  libbrotlicommon    conda-forge/linux-64::libbrotlicommon-1.1.0-hb9d3cd8_2 
  libbrotlidec       conda-forge/linux-64::libbrotlidec-1.1.0-hb9d3cd8_2 
  libbrotlienc       conda-forge/linux-64::libbrotlienc-1.1.0-hb9d3cd8_2 
  libcap             conda-forge/linux-64::libcap-2.69-h0f662aa_0 
  libcblas           conda-forge/linux-64::libcblas-3.9.0-25_linux64_openblas 
  libclang-cpp15     conda-forge/linux-64::libclang-cpp15-15.0.7-default_h127d8a8_5 
  libclang13         conda-forge/linux-64::libclang13-18.1.7-default_h087397f_0 
  libcrc32c          conda-forge/linux-64::libcrc32c-1.1.2-h9c3ff4c_0 
  libcups            conda-forge/linux-64::libcups-2.3.3-h4637d8d_4 
  libcurl            conda-forge/linux-64::libcurl-8.8.0-hca28451_1 
  libdeflate         conda-forge/linux-64::libdeflate-1.20-hd590300_0 
  libedit            conda-forge/linux-64::libedit-3.1.20191231-he28a2e2_2 
  libev              conda-forge/linux-64::libev-4.33-hd590300_2 
  libevent           conda-forge/linux-64::libevent-2.1.12-hf998b51_1 
  libexpat           conda-forge/linux-64::libexpat-2.6.4-h5888daf_0 
  libffi             conda-forge/linux-64::libffi-3.4.2-h7f98852_5 
  libflac            conda-forge/linux-64::libflac-1.4.3-h59595ed_0 
  libgcc             conda-forge/linux-64::libgcc-14.2.0-h77fa898_1 
  libgcc-ng          conda-forge/linux-64::libgcc-ng-14.2.0-h69a702a_1 
  libgcrypt          conda-forge/linux-64::libgcrypt-1.11.0-h4ab18f5_1 
  libgettextpo       conda-forge/linux-64::libgettextpo-0.22.5-he02047a_3 
  libgettextpo-devel conda-forge/linux-64::libgettextpo-devel-0.22.5-he02047a_3 
  libgfortran        conda-forge/linux-64::libgfortran-14.2.0-h69a702a_1 
  libgfortran-ng     conda-forge/linux-64::libgfortran-ng-14.2.0-h69a702a_1 
  libgfortran5       conda-forge/linux-64::libgfortran5-14.2.0-hd5240d6_1 
  libglib            conda-forge/linux-64::libglib-2.80.2-hf974151_0 
  libgoogle-cloud    conda-forge/linux-64::libgoogle-cloud-2.24.0-h2736e30_0 
  libgoogle-cloud-s~ conda-forge/linux-64::libgoogle-cloud-storage-2.24.0-h3d9a0c8_0 
  libgpg-error       conda-forge/linux-64::libgpg-error-1.51-hbd13f7d_1 
  libgrpc            conda-forge/linux-64::libgrpc-1.62.2-h15f2491_0 
  libhwloc           conda-forge/linux-64::libhwloc-2.11.1-default_hecaa2ac_1000 
  libiconv           conda-forge/linux-64::libiconv-1.17-hd590300_2 
  libjpeg-turbo      conda-forge/linux-64::libjpeg-turbo-3.0.0-hd590300_1 
  liblapack          conda-forge/linux-64::liblapack-3.9.0-25_linux64_openblas 
  libllvm14          conda-forge/linux-64::libllvm14-14.0.6-hcd5def8_4 
  libllvm15          conda-forge/linux-64::libllvm15-15.0.7-hb3ce162_4 
  libllvm18          conda-forge/linux-64::libllvm18-18.1.7-hb77312f_0 
  libnghttp2         conda-forge/linux-64::libnghttp2-1.58.0-h47da74e_1 
  libnsl             conda-forge/linux-64::libnsl-2.0.1-hd590300_0 
  libogg             conda-forge/linux-64::libogg-1.3.5-h4ab18f5_0 
  libopenblas        conda-forge/linux-64::libopenblas-0.3.28-pthreads_h94d23a6_1 
  libopenms          bioconda/linux-64::libopenms-3.2.0-haddbca4_5 
  libopus            conda-forge/linux-64::libopus-1.3.1-h7f98852_1 
  libparquet         conda-forge/linux-64::libparquet-16.1.0-h6a7eafb_6_cpu 
  libpng             conda-forge/linux-64::libpng-1.6.43-h2797004_0 
  libpq              conda-forge/linux-64::libpq-16.5-h2d7952a_0 
  libprotobuf        conda-forge/linux-64::libprotobuf-4.25.3-h08a7969_0 
  libre2-11          conda-forge/linux-64::libre2-11-2023.09.01-h5a48ba9_2 
  libsndfile         conda-forge/linux-64::libsndfile-1.2.2-hc60ed4a_1 
  libsqlite          conda-forge/linux-64::libsqlite-3.46.0-hde9e2c9_0 
  libssh2            conda-forge/linux-64::libssh2-1.11.0-h0841786_0 
  libstdcxx          conda-forge/linux-64::libstdcxx-14.2.0-hc0a3c3a_1 
  libstdcxx-ng       conda-forge/linux-64::libstdcxx-ng-14.2.0-h4852527_1 
  libsvm             conda-forge/linux-64::libsvm-332-h59595ed_0 
  libsystemd0        conda-forge/linux-64::libsystemd0-256.7-h2774228_1 
  libthrift          conda-forge/linux-64::libthrift-0.19.0-hb90f79a_1 
  libtiff            conda-forge/linux-64::libtiff-4.6.0-h1dd3fc0_3 
  libtorch           conda-forge/linux-64::libtorch-2.4.1-cpu_mkl_he3c781b_100 
  libutf8proc        conda-forge/linux-64::libutf8proc-2.8.0-h166bdaf_0 
  libuuid            conda-forge/linux-64::libuuid-2.38.1-h0b41bf4_0 
  libuv              conda-forge/linux-64::libuv-1.49.2-hb9d3cd8_0 
  libvorbis          conda-forge/linux-64::libvorbis-1.3.7-h9c3ff4c_0 
  libwebp-base       conda-forge/linux-64::libwebp-base-1.4.0-hd590300_0 
  libxcb             conda-forge/linux-64::libxcb-1.15-h0b41bf4_0 
  libxcrypt          conda-forge/linux-64::libxcrypt-4.4.36-hd590300_1 
  libxkbcommon       conda-forge/linux-64::libxkbcommon-1.7.0-h662e7e4_0 
  libxml2            conda-forge/linux-64::libxml2-2.12.7-hc051c1a_1 
  libxslt            conda-forge/linux-64::libxslt-1.1.39-h76b75d6_0 
  libzlib            conda-forge/linux-64::libzlib-1.2.13-h4ab18f5_6 
  lightning-utiliti~ conda-forge/noarch::lightning-utilities-0.11.9-pyhff2d567_0 
  llvm-openmp        conda-forge/linux-64::llvm-openmp-19.1.3-h024ca30_0 
  llvmlite           pkgs/main/linux-64::llvmlite-0.43.0-py311h6a678d5_0 
  lxml               conda-forge/linux-64::lxml-5.2.2-py311hc0a218f_0 
  lz4-c              conda-forge/linux-64::lz4-c-1.9.4-hcb278e6_0 
  markdown           conda-forge/noarch::markdown-3.6-pyhd8ed1ab_0 
  markupsafe         conda-forge/linux-64::markupsafe-3.0.2-py311h2dc5d0c_0 
  matchms            bioconda/noarch::matchms-0.8.1-pyh3252c3a_0 
  matplotlib-base    conda-forge/linux-64::matplotlib-base-3.9.2-py311h2b939e6_2 
  mkl                conda-forge/linux-64::mkl-2023.2.0-h84fe81f_50496 
  monotonic          conda-forge/noarch::monotonic-1.5-pyhd8ed1ab_1 
  mpc                conda-forge/linux-64::mpc-1.3.1-h24ddda3_1 
  mpfr               conda-forge/linux-64::mpfr-4.2.1-h90cbb55_3 
  mpg123             conda-forge/linux-64::mpg123-1.32.9-hc50e24c_0 
  mpmath             conda-forge/noarch::mpmath-1.3.0-pyhd8ed1ab_0 
  msgpack-python     conda-forge/linux-64::msgpack-python-1.1.0-py311hd18a35c_0 
  multidict          conda-forge/linux-64::multidict-6.1.0-py311h2dc5d0c_1 
  multiprocess       conda-forge/linux-64::multiprocess-0.70.15-py311h459d7ec_1 
  munkres            conda-forge/noarch::munkres-1.1.4-pyh9f0ad1d_0 
  mysql-common       conda-forge/linux-64::mysql-common-8.3.0-hf1915f5_4 
  mysql-libs         conda-forge/linux-64::mysql-libs-8.3.0-hca2cd23_4 
  narwhals           conda-forge/noarch::narwhals-1.14.1-pyhff2d567_0 
  ncurses            conda-forge/linux-64::ncurses-6.5-he02047a_1 
  neptune            conda-forge/noarch::neptune-1.13.0-pyhd8ed1ab_0 
  networkx           conda-forge/noarch::networkx-3.4-pyhd8ed1ab_0 
  nspr               conda-forge/linux-64::nspr-4.36-h5888daf_0 
  nss                conda-forge/linux-64::nss-3.100-hca3bf56_0 
  numba              conda-forge/linux-64::numba-0.60.0-py311h4bc866e_0 
  numpy              conda-forge/linux-64::numpy-1.23.5-py311h7d28db0_0 
  oauthlib           conda-forge/noarch::oauthlib-3.2.2-pyhd8ed1ab_0 
  omegaconf          conda-forge/noarch::omegaconf-2.3.0-pyhd8ed1ab_0 
  openjpeg           conda-forge/linux-64::openjpeg-2.5.2-h488ebb8_0 
  openssl            conda-forge/linux-64::openssl-3.4.0-hb9d3cd8_0 
  orc                conda-forge/linux-64::orc-2.0.1-h17fec99_1 
  packaging          conda-forge/noarch::packaging-24.2-pyhff2d567_1 
  pandas             conda-forge/linux-64::pandas-2.2.3-py311h7db5c69_1 
  pcre2              conda-forge/linux-64::pcre2-10.43-hcad00b1_0 
  pillow             conda-forge/linux-64::pillow-10.3.0-py311h18e6fac_0 
  pip                conda-forge/noarch::pip-24.3.1-pyh8b19718_0 
  pixman             conda-forge/linux-64::pixman-0.43.2-h59595ed_0 
  pkgutil-resolve-n~ conda-forge/noarch::pkgutil-resolve-name-1.3.10-pyhd8ed1ab_1 
  polars             conda-forge/linux-64::polars-1.12.0-py311hcc3b33b_1 
  propcache          conda-forge/linux-64::propcache-0.2.0-py311h9ecbd09_2 
  protobuf           conda-forge/linux-64::protobuf-4.25.3-py311hbffca5d_1 
  psutil             conda-forge/linux-64::psutil-6.1.0-py311h9ecbd09_0 
  pthread-stubs      conda-forge/linux-64::pthread-stubs-0.4-hb9d3cd8_1002 
  pulseaudio-client  conda-forge/linux-64::pulseaudio-client-17.0-hb77b528_0 
  pyarrow            conda-forge/linux-64::pyarrow-16.1.0-py311h781c19f_1 
  pyarrow-core       conda-forge/linux-64::pyarrow-core-16.1.0-py311h8e2c35d_1_cpu 
  pycparser          conda-forge/noarch::pycparser-2.22-pyhd8ed1ab_0 
  pyjwt              conda-forge/noarch::pyjwt-2.10.0-pyhff2d567_0 
  pyopenms           bioconda/linux-64::pyopenms-3.2.0-py311he92948f_0 
  pyparsing          conda-forge/noarch::pyparsing-3.2.0-pyhd8ed1ab_1 
  pysocks            conda-forge/noarch::pysocks-1.7.1-pyha2e5f31_6 
  pyteomics          bioconda/noarch::pyteomics-4.7.5-pyh7e72e81_0 
  python             conda-forge/linux-64::python-3.11.9-hb806964_0_cpython 
  python-dateutil    conda-forge/noarch::python-dateutil-2.9.0.post0-pyhff2d567_0 
  python-dotenv      conda-forge/noarch::python-dotenv-1.0.1-pyhd8ed1ab_0 
  python-tzdata      conda-forge/noarch::python-tzdata-2024.2-pyhd8ed1ab_0 
  python-xxhash      conda-forge/linux-64::python-xxhash-3.5.0-py311h9ecbd09_1 
  python_abi         conda-forge/linux-64::python_abi-3.11-5_cp311 
  pytorch            conda-forge/linux-64::pytorch-2.4.1-cpu_mkl_py311hb499fb8_100   ## <--- CPU version!
  pytorch-lightning  conda-forge/noarch::pytorch-lightning-2.4.0-pyhd8ed1ab_0 
  pytz               conda-forge/noarch::pytz-2024.1-pyhd8ed1ab_0 
  pyyaml             conda-forge/linux-64::pyyaml-6.0.2-py311h9ecbd09_1 
  qhull              conda-forge/linux-64::qhull-2020.2-h434a139_5 
  qt-main            conda-forge/linux-64::qt-main-5.15.8-hc9dc06e_21 
  rapidfuzz          conda-forge/linux-64::rapidfuzz-3.10.1-py311hfdbb021_0 
  re2                conda-forge/linux-64::re2-2023.09.01-h7f4b329_2 
  readline           conda-forge/linux-64::readline-8.2-h8228510_1 
  referencing        conda-forge/noarch::referencing-0.35.1-pyhd8ed1ab_0 
  requests           conda-forge/noarch::requests-2.32.3-pyhd8ed1ab_0 
  requests-oauthlib  conda-forge/noarch::requests-oauthlib-2.0.0-pyhd8ed1ab_0 
  rfc3339-validator  conda-forge/noarch::rfc3339-validator-0.1.4-pyhd8ed1ab_0 
  rfc3987            conda-forge/noarch::rfc3987-1.3.8-py_0 
  rpds-py            conda-forge/linux-64::rpds-py-0.21.0-py311h9e33e62_0 
  s2n                conda-forge/linux-64::s2n-1.4.15-he19d79f_0 
  s3fs               conda-forge/noarch::s3fs-2024.10.0-pyhd8ed1ab_0 
  s3transfer         conda-forge/noarch::s3transfer-0.10.3-pyhd8ed1ab_0 
  scikit-learn       conda-forge/linux-64::scikit-learn-1.5.2-py311h57cc02b_1 
  scipy              conda-forge/linux-64::scipy-1.14.1-py311he9a78e4_1 
  setuptools         conda-forge/noarch::setuptools-75.5.0-pyhff2d567_0 
  simplejson         conda-forge/linux-64::simplejson-3.19.3-py311h9ecbd09_1 
  six                conda-forge/noarch::six-1.16.0-pyh6c4a22f_0 
  sleef              conda-forge/linux-64::sleef-3.7-h1b44611_2 
  smmap              conda-forge/noarch::smmap-5.0.0-pyhd8ed1ab_0 
  snappy             conda-forge/linux-64::snappy-1.2.1-ha2e4443_0 
  spectrum_utils     bioconda/noarch::spectrum_utils-0.4.2-pyhdfd78af_0 
  sqlalchemy         conda-forge/linux-64::sqlalchemy-2.0.36-py311h9ecbd09_0 
  swagger-spec-vali~ conda-forge/noarch::swagger-spec-validator-3.0.4-pyhd8ed1ab_0 
  sympy              conda-forge/noarch::sympy-1.13.3-pypyh2585a3b_103 
  sysroot_linux-64   conda-forge/noarch::sysroot_linux-64-2.17-h4a8ded7_18 
  tbb                conda-forge/linux-64::tbb-2021.13.0-h84d6215_0 
  tensorboard        conda-forge/noarch::tensorboard-2.18.0-pyhd8ed1ab_0 
  tensorboard-data-~ conda-forge/linux-64::tensorboard-data-server-0.7.0-py311hafd3f86_2 
  threadpoolctl      conda-forge/noarch::threadpoolctl-3.5.0-pyhc1e730c_0 
  tk                 conda-forge/linux-64::tk-8.6.13-noxft_h4845f30_101 
  torchmetrics       conda-forge/noarch::torchmetrics-1.5.2-pyhe5570ce_0 
  tqdm               conda-forge/noarch::tqdm-4.67.0-pyhd8ed1ab_0 
  typeguard          conda-forge/noarch::typeguard-2.13.3-pyhd8ed1ab_0 
  types-python-date~ conda-forge/noarch::types-python-dateutil-2.9.0.20241003-pyhff2d567_0 
  typing             conda-forge/noarch::typing-3.10.0.0-pyhd8ed1ab_1 
  typing-extensions  conda-forge/noarch::typing-extensions-4.12.2-hd8ed1ab_0 
  typing_extensions  conda-forge/noarch::typing_extensions-4.12.2-pyha770c72_0 
  tzdata             conda-forge/noarch::tzdata-2024b-hc8b5060_0 
  unicodedata2       conda-forge/linux-64::unicodedata2-15.1.0-py311h9ecbd09_1 
  uri-template       conda-forge/noarch::uri-template-1.3.0-pyhd8ed1ab_0 
  urllib3            conda-forge/noarch::urllib3-2.2.3-pyhd8ed1ab_0 
  webcolors          conda-forge/noarch::webcolors-24.8.0-pyhd8ed1ab_0 
  websocket-client   conda-forge/noarch::websocket-client-1.8.0-pyhd8ed1ab_0 
  werkzeug           conda-forge/noarch::werkzeug-3.1.3-pyhff2d567_0 
  wheel              conda-forge/noarch::wheel-0.45.0-pyhd8ed1ab_0 
  wrapt              conda-forge/linux-64::wrapt-1.16.0-py311h9ecbd09_1 
  xcb-util           conda-forge/linux-64::xcb-util-0.4.0-hd590300_1 
  xcb-util-image     conda-forge/linux-64::xcb-util-image-0.4.0-h8ee46fc_1 
  xcb-util-keysyms   conda-forge/linux-64::xcb-util-keysyms-0.4.0-h8ee46fc_1 
  xcb-util-renderut~ conda-forge/linux-64::xcb-util-renderutil-0.3.9-hd590300_1 
  xcb-util-wm        conda-forge/linux-64::xcb-util-wm-0.4.1-h8ee46fc_1 
  xerces-c           conda-forge/linux-64::xerces-c-3.2.5-hac6953d_0 
  xkeyboard-config   conda-forge/linux-64::xkeyboard-config-2.42-h4ab18f5_0 
  xorg-kbproto       conda-forge/linux-64::xorg-kbproto-1.0.7-hb9d3cd8_1003 
  xorg-libice        conda-forge/linux-64::xorg-libice-1.1.1-hb9d3cd8_1 
  xorg-libsm         conda-forge/linux-64::xorg-libsm-1.2.4-he73a12e_1 
  xorg-libx11        conda-forge/linux-64::xorg-libx11-1.8.9-h8ee46fc_0 
  xorg-libxau        conda-forge/linux-64::xorg-libxau-1.0.11-hb9d3cd8_1 
  xorg-libxdmcp      conda-forge/linux-64::xorg-libxdmcp-1.1.5-hb9d3cd8_0 
  xorg-libxext       conda-forge/linux-64::xorg-libxext-1.3.4-h0b41bf4_2 
  xorg-libxrender    conda-forge/linux-64::xorg-libxrender-0.9.11-hd590300_0 
  xorg-renderproto   conda-forge/linux-64::xorg-renderproto-0.11.1-hb9d3cd8_1003 
  xorg-xextproto     conda-forge/linux-64::xorg-xextproto-7.3.0-hb9d3cd8_1004 
  xorg-xf86vidmodep~ conda-forge/linux-64::xorg-xf86vidmodeproto-2.3.1-hb9d3cd8_1005 
  xorg-xproto        conda-forge/linux-64::xorg-xproto-7.0.31-hb9d3cd8_1008 
  xxhash             conda-forge/linux-64::xxhash-0.8.2-hd590300_0 
  xz                 conda-forge/linux-64::xz-5.2.6-h166bdaf_0 
  yaml               conda-forge/linux-64::yaml-0.2.5-h7f98852_2 
  yaml-cpp           conda-forge/linux-64::yaml-cpp-0.8.0-h59595ed_0 
  yarl               conda-forge/linux-64::yarl-1.17.2-py311h9ecbd09_0 
  zipp               conda-forge/noarch::zipp-3.21.0-pyhd8ed1ab_0 
  zlib               conda-forge/linux-64::zlib-1.2.13-h4ab18f5_6 
  zstandard          conda-forge/linux-64::zstandard-0.23.0-py311hbc35293_1 
  zstd               conda-forge/linux-64::zstd-1.5.6-ha6fb4c9_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages:
                                                                                                                                                                                 
Preparing transaction: done                                                                                                                                                      
Verifying transaction: done                                                                                                                                                      
Executing transaction: done                                                                                                                                                      
#                                                                                                                                                                                
# To activate this environment, use                                                                                                                                              
#                                                                                                                                                                                
#     $ conda activate instanovo_env                                                                                                                                             
#                                                                                                                                                                                
# To deactivate an active environment, use                                                                                                                                       
#                                                                                                                                                                                
#     $ conda deactivate                                                                                                                                                         
                                                                                                                                                                                 
$ conda activate instanovo_env 
(instanovo_env)  $ python -c "import instanovo;print(instanovo.__version__)"
1.0.0
(instanovo_env)  $ python -c "import torch;print(torch.cuda.is_available())"
False ## <-- Pytorch is not built with CUDA support

CC: @mfansler

@BioGeek BioGeek changed the title Use GPU version of Pytorch Update InstaNovo: Use GPU version of Pytorch Nov 20, 2024
@BioGeek BioGeek mentioned this pull request Nov 20, 2024
Copy link
Contributor

coderabbitai bot commented Nov 20, 2024

Caution

Review failed

The head commit changed during the review from ec00144 to b18a9c9.

📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request updates the meta.yaml file for the instanovo package. The version number in the build section has been incremented from 0 to 1. The dependency for pytorch has been changed to pytorch-gpu, indicating a requirement for GPU support. Additionally, new dependencies cudatoolkit and cuda-nvcc have been added to the run requirements. A new test command has been introduced to check for the package version using Python. The summary under the about section remains unchanged, while the identifiers section retains the DOI entry without modification. Overall, the changes reflect updates in versioning and dependency requirements, along with an enhancement in testing.

Possibly related PRs

  • Add Instanovo #51796: This PR adds the instanovo package, which is directly related to the main PR that updates the meta.yaml file for the same package, reflecting changes in versioning and dependencies.

Suggested labels

please review & merge

Suggested reviewers

  • mfansler
  • bgruening

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (2)
recipes/instanovo/meta.yaml (2)

65-65: Remove trailing whitespace

There is a trailing whitespace after the DOI that should be removed.

-    - doi:10.1101/2023.08.30.555055 
+    - doi:10.1101/2023.08.30.555055
🧰 Tools
🪛 yamllint

[error] 65-65: trailing spaces

(trailing-spaces)


Line range hint 20-45: Consider adding channel configuration

Based on the PR objectives mentioning conda channel configuration, we should specify the required channels to ensure proper installation of GPU dependencies.

Consider adding channel configuration at the package level:

channels:
  - conda-forge
  - defaults
  - bioconda

This will help users avoid installation issues with GPU-related packages.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between f76dedf and 39a94da.

📒 Files selected for processing (1)
  • recipes/instanovo/meta.yaml (3 hunks)
🧰 Additional context used
🪛 yamllint
recipes/instanovo/meta.yaml

[error] 65-65: trailing spaces

(trailing-spaces)

🔇 Additional comments (2)
recipes/instanovo/meta.yaml (2)

15-15: Verify if build number increment is sufficient

The build number increment is appropriate for tracking this change. However, given that this is a significant change in the underlying PyTorch implementation (CPU to GPU), consider if a minor version bump might be more appropriate.


57-57: LGTM: Summary update is clear and informative

The expanded summary better describes the package's capabilities.

recipes/instanovo/meta.yaml Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
recipes/instanovo/meta.yaml (2)

Line range hint 46-51: Add CUDA availability verification test

To ensure the GPU support is properly configured, we should add a test to verify CUDA availability.

Add this test command:

  commands:
    - python -c "import instanovo; print(instanovo.__version__)"
+   - python -c "import torch; print(f'CUDA available: {torch.cuda.is_available()}')"

65-65: Fix trailing whitespace

Remove the trailing space after the DOI.

-    - doi:10.1101/2023.08.30.555055 
+    - doi:10.1101/2023.08.30.555055
🧰 Tools
🪛 yamllint

[error] 65-65: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 39a94da and 751b605.

📒 Files selected for processing (1)
  • recipes/instanovo/meta.yaml (3 hunks)
🧰 Additional context used
🪛 yamllint
recipes/instanovo/meta.yaml

[error] 65-65: trailing spaces

(trailing-spaces)

🔇 Additional comments (3)
recipes/instanovo/meta.yaml (3)

15-15: LGTM: Build number increment is appropriate

The build number increment from 0 to 1 is correct as this represents a rebuild with different dependencies (CPU → GPU PyTorch).


Line range hint 1-65: Consider specifying minimum CUDA version requirement

Since we're adding GPU support, it would be helpful to specify the minimum required CUDA version in the package metadata to ensure compatibility.

Would you like assistance in determining and adding the appropriate CUDA version constraints?


44-44: ⚠️ Potential issue

Additional CUDA dependencies required for GPU support

The switch to conda-forge::pytorch-gpu alone isn't sufficient to ensure GPU functionality, as evidenced by the CUDA availability check returning False in the PR description.

I agree with the previous review comment. Please add the following dependencies:

    - conda-forge::pytorch-gpu
+   - cudatoolkit
+   - cuda-nvcc
    - tqdm

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
recipes/instanovo/meta.yaml (2)

54-54: Verify CUDA test implementation

The CUDA availability test has been added as suggested. However, consider adding a more comprehensive GPU check:

- python -c "import torch; print(f'CUDA is available: {torch.cuda.is_available()}')"
+ python -c "import torch; print(f'CUDA available: {torch.cuda.is_available()}'); print(f'GPU count: {torch.cuda.device_count()}'); print(f'GPU device: {torch.cuda.get_device_name(0) if torch.cuda.is_available() else "N/A"}')"

This will provide more detailed information about the GPU setup during testing.


68-68: Fix trailing whitespace in DOI identifier line

Remove the trailing space after the DOI.

-    - doi:10.1101/2023.08.30.555055 
+    - doi:10.1101/2023.08.30.555055
🧰 Tools
🪛 yamllint

[error] 68-68: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 751b605 and 1e89f44.

📒 Files selected for processing (1)
  • recipes/instanovo/meta.yaml (3 hunks)
🧰 Additional context used
🪛 yamllint
recipes/instanovo/meta.yaml

[error] 68-68: trailing spaces

(trailing-spaces)

🔇 Additional comments (3)
recipes/instanovo/meta.yaml (3)

15-15: LGTM: Build number increment is appropriate

The build number increment from 0 to 1 is correct as this represents a significant change in the package's dependencies (CPU to GPU transition).


44-46: Skip comment about GPU configuration requirements

The suggested changes from the previous review have been properly implemented, including the addition of cudatoolkit and cuda-nvcc dependencies.


Line range hint 21-46: Verify PyTorch version compatibility

The requirements section doesn't specify a version constraint for pytorch-gpu. Consider adding version constraints to ensure compatibility with the Python version requirement (>=3.10,<3.12) and other dependencies.

@mfansler
Copy link
Member

What does conda create -n instanovo_env instanovo python=3.11 pytorch-gpu give?

Is the CPU version non-functional?

@BioGeek
Copy link
Contributor Author

BioGeek commented Nov 20, 2024

@mfansler

Is the CPU version non-functional?

The CPU version is functional but so slow in practice that it can be considered unusable.

What does conda create -n instanovo_env instanovo python=3.11 pytorch-gpu give?

That indeed does work!

$ conda create -n instanovo_gpu instanovo python=3.11 pytorch-gpu 
Channels:
 - conda-forge
 - bioconda
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/j-vangoey/.local/miniconda3/envs/instanovo_gpu

  added / updated specs:
    - instanovo
    - python=3.11
    - pytorch-gpu


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    cuda-version-11.8          |       h70ddcb2_3          21 KB  conda-forge
    cudatoolkit-11.8.0         |      h4ba93d1_13       682.5 MB  conda-forge
    cudnn-8.9.7.29             |       hbc23b4c_3       443.9 MB  conda-forge
    libmagma-2.8.0             |       hfdb99dd_0       245.2 MB  conda-forge
    libmagma_sparse-2.8.0      |       h9ddd185_0         7.1 MB  conda-forge
    libtorch-2.4.0             |cuda118_h8db9d67_301       465.0 MB  conda-forge
    nccl-2.23.4.1              |       h03a54cd_2       127.3 MB  conda-forge
    pytorch-2.4.0              |cuda118_py311h4ee7bbc_301        33.9 MB  conda-forge
    pytorch-gpu-2.4.0          |cuda118py311h9433a6d_301          22 KB  conda-forge
    ------------------------------------------------------------
                                           Total:        1.96 GB

[... rest of output ommitted ... ]

$ conda activate instanovo_gpu
(instanovo_gpu)  $ python -c "import instanovo;print(instanovo.__version__)"
1.0.0
(instanovo_gpu)  $ python -c "import torch;print(torch.cuda.is_available())"
True ## Yay!!

Is that the intended way of installing CUDA-enabled code in the (bio)conda ecosytem?

@mfansler
Copy link
Member

"Is that the intended way of installing CUDA-enabled code in the (bio)conda ecosytem?"

Yes. Generally, one should not explicitly specify CPU or GPU in the package metadata if it technically is capable of running on both.

@BioGeek
Copy link
Contributor Author

BioGeek commented Nov 20, 2024

Understood. Closing this PR.

@BioGeek BioGeek closed this Nov 20, 2024
@BioGeek BioGeek deleted the instanovo_gpu branch November 20, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants