From a0ac14d0f76188856aa5338788b5f7f42c8e9da0 Mon Sep 17 00:00:00 2001 From: deng Date: Wed, 1 Mar 2023 14:56:27 +0800 Subject: [PATCH] mlflow 1.30 -> 2.1 --- env.yaml => conda.yaml | 92 +++++++++++++++++++++++++++++++++--------- test_pytorch_m1.py | 8 ++++ 2 files changed, 82 insertions(+), 18 deletions(-) rename env.yaml => conda.yaml (61%) create mode 100644 test_pytorch_m1.py diff --git a/env.yaml b/conda.yaml similarity index 61% rename from env.yaml rename to conda.yaml index a516d7c..46c6722 100644 --- a/env.yaml +++ b/conda.yaml @@ -1,26 +1,42 @@ -name: torch +name: mlflow channels: - pytorch - - anaconda - conda-forge dependencies: - alembic=1.9.4 - aom=3.5.0 - - appdirs=1.4.4 + - arrow-cpp=9.0.0 + - aws-c-auth=0.6.24 + - aws-c-cal=0.5.20 + - aws-c-common=0.8.11 + - aws-c-compression=0.2.16 + - aws-c-event-stream=0.2.18 + - aws-c-http=0.7.4 + - aws-c-io=0.13.17 + - aws-c-mqtt=0.8.6 + - aws-c-s3=0.2.4 + - aws-c-sdkutils=0.1.7 + - aws-checksums=0.1.14 + - aws-crt-cpp=0.19.7 + - aws-sdk-cpp=1.10.57 - bcrypt=3.2.2 - blinker=1.5 - - bottleneck=1.3.4 + - brotli=1.0.9 + - brotli-bin=1.0.9 - brotlipy=0.7.0 - bzip2=1.0.8 - - ca-certificates=2022.4.26 - - certifi=2022.6.15 + - c-ares=1.18.1 + - ca-certificates=2022.12.7 + - certifi=2022.12.7 - cffi=1.15.1 - charset-normalizer=2.1.1 - click=8.1.3 - cloudpickle=2.2.1 - colorama=0.4.6 - configparser=5.3.0 + - contourpy=1.0.7 - cryptography=39.0.1 + - cycler=0.11.0 - databricks-cli=0.17.4 - docker-py=6.0.0 - entrypoints=0.4 @@ -34,10 +50,13 @@ dependencies: - fontconfig=2.14.2 - fonts-conda-ecosystem=1 - fonts-conda-forge=1 + - fonttools=4.38.0 - freetype=2.12.1 - gettext=0.21.1 + - gflags=2.2.2 - gitdb=4.0.10 - gitpython=3.1.31 + - glog=0.6.0 - gmp=6.2.1 - gnutls=3.7.8 - greenlet=2.0.2 @@ -48,57 +67,85 @@ dependencies: - importlib_resources=5.12.0 - itsdangerous=2.1.2 - jinja2=3.1.2 + - joblib=1.2.0 - jpeg=9e + - kiwisolver=1.4.4 + - krb5=1.20.1 - lame=3.100 - lcms2=2.14 - lerc=4.0.0 + - libabseil=20230125.0 - libblas=3.9.0 + - libbrotlicommon=1.0.9 + - libbrotlidec=1.0.9 + - libbrotlienc=1.0.9 - libcblas=3.9.0 - - libcxx=14.0.6 + - libcrc32c=1.1.2 + - libcurl=7.88.1 + - libcxx=15.0.7 - libdeflate=1.17 + - libedit=3.1.20191231 + - libev=4.33 + - libevent=2.1.10 - libffi=3.4.2 - libgfortran=5.0.0 - libgfortran5=11.3.0 + - libgoogle-cloud=2.7.0 + - libgrpc=1.51.1 - libiconv=1.17 - libidn2=2.3.4 - liblapack=3.9.0 + - libllvm11=11.1.0 + - libnghttp2=1.51.0 - libopenblas=0.3.21 - libopus=1.3.1 - libpng=1.6.39 - libprotobuf=3.21.12 - libsodium=1.0.18 - libsqlite=3.40.0 + - libssh2=1.10.0 - libtasn1=4.19.0 + - libthrift=0.18.0 - libtiff=4.5.0 - libunistring=0.9.10 + - libutf8proc=2.8.0 - libvpx=1.11.0 - libwebp-base=1.2.4 - libxcb=1.13 - libxml2=2.10.3 - libzlib=1.2.13 - llvm-openmp=15.0.7 + - llvmlite=0.39.1 + - lz4-c=1.9.4 - mako=1.2.4 + - markdown=3.4.1 - markupsafe=2.1.2 - - mlflow=1.30.0 + - matplotlib-base=3.7.0 + - mlflow=2.1.1 + - munkres=1.1.4 - ncurses=6.3 - nettle=3.8.1 - - numexpr=2.8.1 - - numpy=1.24.2 + - numba=0.56.4 + - numpy=1.23.5 - oauthlib=3.2.2 - openh264=2.3.1 - openjpeg=2.5.0 - openssl=3.0.8 + - orc=1.8.2 - p11-kit=0.24.1 - - packaging=21.3 - - pandas=1.4.2 + - packaging=22.0 + - pandas=1.5.3 - paramiko=3.0.0 + - parquet-cpp=1.5.1 - pillow=9.4.0 - pip=23.0.1 - - pooch=1.6.0 + - platformdirs=3.0.0 + - pooch=1.7.0 - prometheus_client=0.16.0 - - prometheus_flask_exporter=0.22.0 + - prometheus_flask_exporter=0.22.2 - protobuf=4.21.12 - pthread-stubs=0.4 + - pyarrow=9.0.0 - pycparser=2.21 - pyjwt=2.6.0 - pynacl=1.5.0 @@ -113,22 +160,30 @@ dependencies: - pywin32-on-windows=0.1.0 - pyyaml=6.0 - querystring_parser=1.2.4 + - re2=2023.02.02 - readline=8.1.2 - requests=2.28.2 - - scipy=1.10.0 - - setuptools=67.3.2 + - scikit-learn=1.2.1 + - scipy=1.10.1 + - setuptools=67.4.0 + - shap=0.41.0 - six=1.16.0 + - slicer=0.0.7 - smmap=3.0.5 + - snappy=1.1.9 - sqlalchemy=1.4.46 - sqlparse=0.4.3 - svt-av1=1.4.1 - tabulate=0.9.0 + - threadpoolctl=3.1.0 - tk=8.6.12 - torchaudio=0.13.1 - torchvision=0.14.1 - tqdm=4.64.1 + - typing-extensions=4.4.0 - typing_extensions=4.4.0 - tzdata=2022g + - unicodedata2=15.0.0 - urllib3=1.26.14 - websocket-client=1.5.1 - werkzeug=2.2.3 @@ -139,6 +194,7 @@ dependencies: - xorg-libxdmcp=1.1.3 - xz=5.2.6 - yaml=0.2.5 - - zipp=3.14.0 + - zipp=3.15.0 + - zlib=1.2.13 - zstd=1.5.2 -prefix: /Users/xiao_deng/miniforge3/envs/torch +prefix: /Users/xiao_deng/miniforge3/envs/mlflow diff --git a/test_pytorch_m1.py b/test_pytorch_m1.py new file mode 100644 index 0000000..095355d --- /dev/null +++ b/test_pytorch_m1.py @@ -0,0 +1,8 @@ +import torch +import math + +print('this ensures that the current MacOS version is at least 12.3+') +print(torch.backends.mps.is_available()) + +print('\nthis ensures that the current current PyTorch installation was built with MPS activated.') +print(torch.backends.mps.is_built()) \ No newline at end of file