alert-psychiatrist-14102
06/14/2023, 2:56 PMgenerate-lockfiles
.fancy-photographer-78161
06/14/2023, 3:11 PMalert-psychiatrist-14102
06/14/2023, 3:11 PMalert-psychiatrist-14102
06/14/2023, 3:22 PMfancy-photographer-78161
06/14/2023, 3:22 PMalert-psychiatrist-14102
06/14/2023, 3:26 PMpython_source
targets on macosenough-analyst-54434
06/14/2023, 5:34 PMalert-psychiatrist-14102
06/14/2023, 5:38 PMenough-analyst-54434
06/14/2023, 5:52 PMalert-psychiatrist-14102
06/14/2023, 6:38 PM.../bin/python ./pex --tmpdir .tmp --jobs 8 --pip-version 22.3 --python-path /Users/vova/.pyenv/versions/3.9.7/bin:/usr/local/Cellar/pyenv-virtualenv/1.1.5/shims:/Users/vova/.pyenv/shims:/Users/vova/.pyenv/bin:/opt/pycharm-2021.2.3/bin:/opt/idea-IU-212.5284.40/bin:/Users/vova/go/bin:/Users/vova/.local/lib/go/bin:/Users/vova/.local/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin --output-file main.py.pex --no-emit-warnings --no-strip-pex-env --requirements-pex local_dists.pex --venv --seed verbose --no-venv-site-packages-copies --python /usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/bin/python3.9 --entry-point nl_python.main --sources-directory="source_files av aws_lambda_powertools==1.25.7 boto3 botocore==1.29.50 datapane==0.15.4 deepdiff dirsync fastparquet ffmpeg_python flask flask_cors flask_socketio frozendict gitpython grpcio jinja2 joblib jsonpath_ng jupyter jupyterlab matplotlib mediapipe==0.8.9.1 mss mypy_boto3_s3 numpy opencv_python pandas persist_queue pillow plotly protobuf psutil pyarrow pygments pynput pyobjc_framework_cocoa; platform_system == \Darwin\ pytest python_daemon python_dateutil pytorch_lightning pytz pyyaml pyzipper remodnav requests sagemaker scikit-learn scikit_learn scipy seaborn setuptools slack_sdk spring_config_client streamlit streamlit-ext toml torch>=1.13 torchvision tqdm watchdog xgboost" --lock third_party/python/default.lock --no-pypi --index="<https://pypi.org/simple/>" --manylinux manylinux2014 --layout packed
enough-analyst-54434
06/15/2023, 12:58 AMlocal_dists.pex
and so I removed that option entirely. I also don't have sources; so removed that option + the entrypoint.enough-analyst-54434
06/15/2023, 12:59 AMrm -rf ~/.pex
for a cold cache:
...
Needed cp39-cp39-manylinux_2_35_x86_64 compatible dependencies for:
1: nvidia-cuda-nvrtc-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cuda-nvrtc-cu11', normalized='nvidia-cuda-nvrtc-cu11') distributions.
2: nvidia-cuda-runtime-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cuda-runtime-cu11', normalized='nvidia-cuda-runtime-cu11') distributions.
3: nvidia-cuda-cupti-cu11==11.7.101; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cuda-cupti-cu11', normalized='nvidia-cuda-cupti-cu11') distributions.
4: nvidia-cudnn-cu11==8.5.0.96; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cudnn-cu11', normalized='nvidia-cudnn-cu11') distributions.
5: nvidia-cublas-cu11==11.10.3.66; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cublas-cu11', normalized='nvidia-cublas-cu11') distributions.
6: nvidia-cufft-cu11==10.9.0.58; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cufft-cu11', normalized='nvidia-cufft-cu11') distributions.
7: nvidia-curand-cu11==10.2.10.91; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-curand-cu11', normalized='nvidia-curand-cu11') distributions.
8: nvidia-cusolver-cu11==11.4.0.1; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cusolver-cu11', normalized='nvidia-cusolver-cu11') distributions.
9: nvidia-cusparse-cu11==11.7.4.91; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cusparse-cu11', normalized='nvidia-cusparse-cu11') distributions.
10: nvidia-nccl-cu11==2.14.3; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-nccl-cu11', normalized='nvidia-nccl-cu11') distributions.
11: nvidia-nvtx-cu11==11.7.91; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-nvtx-cu11', normalized='nvidia-nvtx-cu11') distributions.
12: triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='triton', normalized='triton') distributions.
Failed to resolve requirements from PEX environment @ /home/jsirois/.pex/unzipped_pexes/f4fdcfb4fe4751b027192c5811503b32ee7743be.
Needed cp39-cp39-manylinux_2_35_x86_64 compatible dependencies for:
1: nvidia-cuda-nvrtc-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cuda-nvrtc-cu11', normalized='nvidia-cuda-nvrtc-cu11') distributions.
2: nvidia-cuda-runtime-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cuda-runtime-cu11', normalized='nvidia-cuda-runtime-cu11') distributions.
3: nvidia-cuda-cupti-cu11==11.7.101; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cuda-cupti-cu11', normalized='nvidia-cuda-cupti-cu11') distributions.
4: nvidia-cudnn-cu11==8.5.0.96; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cudnn-cu11', normalized='nvidia-cudnn-cu11') distributions.
5: nvidia-cublas-cu11==11.10.3.66; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cublas-cu11', normalized='nvidia-cublas-cu11') distributions.
6: nvidia-cufft-cu11==10.9.0.58; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cufft-cu11', normalized='nvidia-cufft-cu11') distributions.
7: nvidia-curand-cu11==10.2.10.91; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-curand-cu11', normalized='nvidia-curand-cu11') distributions.
8: nvidia-cusolver-cu11==11.4.0.1; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cusolver-cu11', normalized='nvidia-cusolver-cu11') distributions.
9: nvidia-cusparse-cu11==11.7.4.91; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-cusparse-cu11', normalized='nvidia-cusparse-cu11') distributions.
10: nvidia-nccl-cu11==2.14.3; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-nccl-cu11', normalized='nvidia-nccl-cu11') distributions.
11: nvidia-nvtx-cu11==11.7.91; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='nvidia-nvtx-cu11', normalized='nvidia-nvtx-cu11') distributions.
12: triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64"
Required by:
torch 2.0.1
But this pex had no ProjectName(raw='triton', normalized='triton') distributions.
real 19m42.430s
user 9m29.931s
sys 0m49.984s
enough-analyst-54434
06/15/2023, 1:00 AM--ignore-errors
for a 2nd run:
$ time ./repro.sh
{"pex_root": "/home/jsirois/.pex", "python": "/home/jsirois/.pyenv/versions/3.9.17/bin/python3.9", "pex": "/home/jsirois/.pex/venvs/46e3bb631036d8dfab394bac2eaff7abdc121019/532d53e33a68b7f477bce2fd4c5178ae3308162f/pex"}
real 0m5.745s
user 0m4.871s
sys 0m0.696s
This is typical, always ~6s.
With PEX_VERBOSE=3
the breakdown shows as:
pex: Resolving requirements from lock file default.lock: 4567.8ms
pex: Parsing requirements: 9.6ms
pex: Resolving urls to fetch for 61 requirements from lock default.lock: 80.2ms
pex: Hashing pex: 17.8ms
pex: Isolating pex: 0.1ms
pex: Downloading 248 distributions to satisfy 61 requirements: 120.4ms
pex: Categorizing 248 downloaded artifacts: 1.2ms
pex: Building 8 artifacts and installing 248: 4335.0ms
That's as expected - the time is dominated by the install (creation of the PEX post resolve / download / build sdists which are all cache hit ~noops).enough-analyst-54434
06/15/2023, 1:15 AM--requirements-pex local_dists.pex
bit, which seems to be the major difference here.happy-kitchen-89482
06/15/2023, 1:38 AMhappy-kitchen-89482
06/15/2023, 1:38 AMhappy-kitchen-89482
06/15/2023, 1:39 AMnice-tiger-10140
08/21/2023, 2:10 PMenough-analyst-54434
08/21/2023, 2:29 PM