My solutions for the assignments for Berkeley CS 285: Deep Reinforcement Learning, Decision Making, and Control.
I develop and run things using vast.ai. For this I've built a handy Docker image (see below).
I have produced the following reports for the homework exercises.
A docker file is available which allows for iterative development and running experiments. To build a new image and use it, follow the proceeding steps.
-
Create GitHub personal access token. Ideally use a fine-grained one which has access only to the contents of this repository.
-
Create a file named
.env
with the following contents
GITHUB_USER=
GITHUB_PAT=
GIT_NAME=""
GIT_EMAIL=""
SSH_PUBKEY=""
-
Fill in the details with your GitHub username, your GitHub PAT, your name as you'd like it to appear in git commit messages, the email you'd like to use for git commits and the SSH public key you'd like to use to access the container.
-
Build the image using the following command:
docker build -t DOCKER_REPO:DOCKER_TAG --secret id=my_env,src=.env .
replacing DOCKER_REPO
and DOCKER_TAG
with the appropriate details.
- Push the image to the Docker Hub, ready for use.
- Use the docker image you built and uploaded to the Hub.
- Set the 'on-start script' to be
vastai-startup-script
.