-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/add-algo-aurora
- Loading branch information
Showing
51 changed files
with
2,018 additions
and
1,427 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
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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ version: 2 | |
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.8" | ||
python: "3.9" | ||
apt_packages: | ||
- swig | ||
|
||
|
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
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
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,7 @@ | ||
# MAP-Elites Low-Spread (ME-LS) | ||
|
||
[ME-LS](https://dl.acm.org/doi/abs/10.1145/3583131.3590433) is a variant of | ||
MAP-Elites that thrives the search process towards solutions that are consistent | ||
in the behavior space for uncertain domains. | ||
|
||
::: qdax.core.mels.MELS |
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 |
---|---|---|
|
@@ -56,59 +56,6 @@ sudo docker run --rm -it -v $QDAX_PATH:/app instadeep/qdax:$USER /bin/bash | |
sudo docker run --rm -it --gpus '"device=0,1"' -v $QDAX_PATH:/app instadeep/qdax:$USER /bin/bash | ||
``` | ||
|
||
|
||
|
||
### Using singularity | ||
|
||
First, follow these initial steps: | ||
|
||
1. If it is not already done, install Singularity, following [these instructions](https://docs.sylabs.io/guides/3.0/user-guide/installation.html). | ||
|
||
2. Clone `qdax` | ||
```zsh | ||
git clone [email protected]:adaptive-intelligent-robotics/QDax.git | ||
``` | ||
|
||
3. Enter the singularity folder | ||
```zsh | ||
cd qdax/singularity/ | ||
``` | ||
|
||
You can build two distinct types of images with singularity: "final images" or "sandbox images". | ||
A final image is a single file with the `.sif` extension, it is immutable. | ||
On the contrary, a sandbox image is not a file but a folder, it allows you to develop inside the singularity container to test your code while writing it. | ||
|
||
To build a final image, execute the `build_final_image` script: | ||
```zsh | ||
./build_final_image | ||
``` | ||
It will generate a `.sif` file: `[image_name].sif`. If you execute this file using singularity, as follows, it will run the default application of the image, defined in the `singularity.def` file that you can find in the `singularity` folder as well. At the moment, this is just running the MAP-Elites algorithm on a simple task. | ||
```zsh | ||
singularity run --nv [image_name].sif | ||
``` | ||
|
||
!!! warning "Using GPU" | ||
The `--nv` flag of the `singularity run` command allows the container to use the GPU, it is thus important to use it for QDax. | ||
|
||
|
||
To build a sandbox image, execute the `start_container` script: | ||
```zsh | ||
./start_container -n | ||
``` | ||
|
||
!!! warning "Using GPU" | ||
The `-n` flag of the `start_container` command allow the container to use the GPU, it is thus important to use it for QDax. | ||
|
||
This command will generate a sandbox container `qdax.sif/` and enter it. If you execute this command again later, it will not generate a new container but enter directly the existing one. | ||
Once inside the sandbox container, enter the qdax development folder: | ||
```zsh | ||
cd /git/exp/qdax | ||
``` | ||
This folder is linked with the `qdax` folder on your machine, meaning that any modification inside the container will directly modify the files on your machine. You can now use this development environment to develop your own QDax-based code. | ||
|
||
|
||
|
||
|
||
### Using conda | ||
|
||
1. If it is not already done, install conda from [here](https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html) | ||
|
@@ -139,7 +86,7 @@ git clone [email protected]:adaptive-intelligent-robotics/QDax.git | |
|
||
2. Activate the environment and manually install the package qdax | ||
```zsh | ||
conda activate qdaxpy38 | ||
conda activate qdaxpy39 | ||
pip install -e . | ||
``` | ||
|
||
|
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
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 |
---|---|---|
|
@@ -49,7 +49,13 @@ | |
"except:\n", | ||
" !pip install --no-deps git+https://github.com/deepmind/[email protected] |tail -n 1\n", | ||
" import chex\n", | ||
" \n", | ||
"\n", | ||
"try:\n", | ||
" import jumanji\n", | ||
"except:\n", | ||
" !pip install \"jumanji==0.2.2\"\n", | ||
" import jumanji\n", | ||
"\n", | ||
"try:\n", | ||
" import qdax\n", | ||
"except:\n", | ||
|
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 |
---|---|---|
|
@@ -43,7 +43,13 @@ | |
"except:\n", | ||
" !pip install --no-deps git+https://github.com/deepmind/[email protected] |tail -n 1\n", | ||
" import chex\n", | ||
" \n", | ||
"\n", | ||
"try:\n", | ||
" import jumanji\n", | ||
"except:\n", | ||
" !pip install \"jumanji==0.2.2\"\n", | ||
" import jumanji\n", | ||
"\n", | ||
"try:\n", | ||
" import qdax\n", | ||
"except:\n", | ||
|
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 |
---|---|---|
|
@@ -45,10 +45,16 @@ | |
"try:\n", | ||
" import brax\n", | ||
"except:\n", | ||
" !pip install git+https://github.com/google/brax.git@v0.0.15 |tail -n 1\n", | ||
" !pip install git+https://github.com/google/brax.git@v0.1.2 |tail -n 1\n", | ||
" import brax\n", | ||
"\n", | ||
"try:\n", | ||
" import jumanji\n", | ||
"except:\n", | ||
" !pip install \"jumanji==0.2.2\"\n", | ||
" import jumanji\n", | ||
"\n", | ||
"try:\n", | ||
" import haiku\n", | ||
"except:\n", | ||
" !pip install git+https://github.com/deepmind/[email protected] |tail -n 1\n", | ||
|
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 |
---|---|---|
|
@@ -45,10 +45,16 @@ | |
"try:\n", | ||
" import brax\n", | ||
"except:\n", | ||
" !pip install git+https://github.com/google/brax.git@v0.0.15 |tail -n 1\n", | ||
" !pip install git+https://github.com/google/brax.git@v0.1.2 |tail -n 1\n", | ||
" import brax\n", | ||
"\n", | ||
"try:\n", | ||
" import jumanji\n", | ||
"except:\n", | ||
" !pip install \"jumanji==0.2.2\"\n", | ||
" import jumanji\n", | ||
"\n", | ||
"try:\n", | ||
" import haiku\n", | ||
"except:\n", | ||
" !pip install git+https://github.com/deepmind/[email protected] |tail -n 1\n", | ||
|
Oops, something went wrong.