-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into add_smac_env
- Loading branch information
Showing
47 changed files
with
2,365 additions
and
630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
.circleci/unittest/linux_libs/scripts_envpool/environment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
channels: | ||
- pytorch | ||
- defaults | ||
dependencies: | ||
- pip | ||
- protobuf | ||
- pip: | ||
- hypothesis | ||
- future | ||
- cloudpickle | ||
- gym | ||
- pygame | ||
- gym[accept-rom-license] | ||
- gym[atari] | ||
- moviepy | ||
- pytest-cov | ||
- pytest-mock | ||
- pytest-instafail | ||
- expecttest | ||
- pyyaml | ||
- scipy | ||
- dm_control | ||
- coverage | ||
- envpool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env bash | ||
|
||
unset PYTORCH_VERSION | ||
# For unittest, nightly PyTorch is used as the following section, | ||
# so no need to set PYTORCH_VERSION. | ||
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config. | ||
|
||
set -e | ||
|
||
eval "$(./conda/bin/conda shell.bash hook)" | ||
conda activate ./env | ||
|
||
if [ "${CU_VERSION:-}" == cpu ] ; then | ||
version="cpu" | ||
echo "Using cpu build" | ||
else | ||
if [[ ${#CU_VERSION} -eq 4 ]]; then | ||
CUDA_VERSION="${CU_VERSION:2:1}.${CU_VERSION:3:1}" | ||
elif [[ ${#CU_VERSION} -eq 5 ]]; then | ||
CUDA_VERSION="${CU_VERSION:2:2}.${CU_VERSION:4:1}" | ||
fi | ||
echo "Using CUDA $CUDA_VERSION as determined by CU_VERSION ($CU_VERSION)" | ||
version="$(python -c "print('.'.join(\"${CUDA_VERSION}\".split('.')[:2]))")" | ||
fi | ||
|
||
# submodules | ||
git submodule sync && git submodule update --init --recursive | ||
|
||
printf "Installing PyTorch with %s\n" "${CU_VERSION}" | ||
if [ "${CU_VERSION:-}" == cpu ] ; then | ||
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu | ||
else | ||
pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu113 | ||
fi | ||
|
||
# smoke test | ||
python -c "import functorch" | ||
|
||
# install tensordict | ||
pip install git+https://github.com/pytorch-labs/tensordict | ||
|
||
printf "* Installing torchrl\n" | ||
python setup.py develop |
6 changes: 6 additions & 0 deletions
6
.circleci/unittest/linux_libs/scripts_envpool/post_process.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
eval "$(./conda/bin/conda shell.bash hook)" | ||
conda activate ./env |
Oops, something went wrong.