Skip to content

Commit

Permalink
update branch
Browse files Browse the repository at this point in the history
  • Loading branch information
michele-milesi committed Feb 26, 2024
2 parents bc8b63a + 33cf9d6 commit 630a584
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
© 2018-2023, DIAMBRA Inc., https://diambra.ai
© 2018-2024, DIAMBRA Inc., https://diambra.ai

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,4 @@ Paper: <a href="https://arxiv.org/abs/2210.10595" target="_blank">https://arxiv.

DIAMBRA Arena software package is subject to our <a href="https://diambra.ai/terms" target="_blank">Terms of Use</a>. By using it, you accept them in full.

###### DIAMBRA, Inc. © Copyright 2018-2023. All Rights Reserved.
###### DIAMBRA, Inc. © Copyright 2018-2024. All Rights Reserved.
11 changes: 2 additions & 9 deletions diambra/arena/engine/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
from diambra.engine import Client, model
import grpc

CONNECTION_FAILED_ERROR_TEXT = """DIAMBRA Arena failed to connect to the Engine Server.
- If you are running a Python script, are you running with DIAMBRA CLI: `diambra run python script.py`?
- If you are running a Python Notebook, have you started Jupyter Notebook with DIAMBRA CLI: `diambra run jupyter notebook`?
CONNECTION_FAILED_ERROR_TEXT = """DIAMBRA Arena failed to connect to the Engine Server. Are you running it with DIAMBRA CLI: `diambra run python script.py`?
See the docs (https://docs.diambra.ai) for additional details, or join DIAMBRA Discord Server (https://diambra.ai/discord) for support."""

Expand All @@ -32,12 +30,7 @@ def env_init(self, env_settings_pb):
try:
response = self.client.EnvInit(env_settings_pb)
except:
try:
response = self.client.GetError(model.Empty())
exceptionMessage = "Received error message from engine: " + response.errorMessage
self.logger.error(exceptionMessage)
except:
raise Exception(CONNECTION_FAILED_ERROR_TEXT)
raise Exception(CONNECTION_FAILED_ERROR_TEXT)

return response

Expand Down
4 changes: 4 additions & 0 deletions images/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ RUN apt-get -qy update && \

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8

RUN pip install huggingface_hub

# Copy arena to tmp since bind-mount is read-only and pip doesn't support
# out-of-tree builds.
RUN --mount=target=/usr/src/arena,type=bind,source=. \
cp -r /usr/src/arena /tmp/arena && \
pip install /tmp/arena && \
rm -rf /tmp/arena

ENV HF_HOME=/tmp
1 change: 1 addition & 0 deletions images/base/on.arg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
3.10-bullseye
3.9-bullseye
3.8-bullseye
3.7-bullseye
4 changes: 4 additions & 0 deletions images/ray_rllib/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ RUN apt-get -qy update && \

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 HOME=/tmp

RUN pip install huggingface_hub

# Copy arena to tmp since bind-mount is read-only and pip doesn't support
# out-of-tree builds.
RUN --mount=target=/usr/src/arena,type=bind,source=. \
cp -r /usr/src/arena /tmp/arena && \
pip install /tmp/arena[ray-rllib] && \
rm -rf /tmp/arena

ENV HF_HOME=/tmp
1 change: 1 addition & 0 deletions images/ray_rllib/on.arg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
3.10-bullseye
3.9-bullseye
3.8-bullseye
4 changes: 4 additions & 0 deletions images/sheeprl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ RUN apt-get -qy update && \

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8

RUN pip install huggingface_hub

# Copy arena to tmp since bind-mount is read-only and pip doesn't support
# out-of-tree builds.
RUN --mount=target=/usr/src/arena,type=bind,source=. \
cp -r /usr/src/arena /tmp/arena && \
pip install /tmp/arena[sheeprl] && \
rm -rf /tmp/arena

ENV HF_HOME=/tmp
4 changes: 4 additions & 0 deletions images/stable-baselines/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN apt-get -qy update && \

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8

RUN pip install huggingface_hub

# Copy arena to tmp since bind-mount is read-only and pip doesn't support
# out-of-tree builds.
# Need to pin the specific version of tensorflow 1.15.0 due to
Expand All @@ -18,3 +20,5 @@ RUN --mount=target=/usr/src/arena,type=bind,source=. \
pip install /tmp/arena[stable-baselines] && \
pip install tensorflow==1.15.0 && \
rm -rf /tmp/arena

ENV HF_HOME=/tmp
4 changes: 4 additions & 0 deletions images/stable-baselines3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ RUN apt-get -qy update && \

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8

RUN pip install huggingface_hub

# Copy arena to tmp since bind-mount is read-only and pip doesn't support
# out-of-tree builds.
RUN --mount=target=/usr/src/arena,type=bind,source=. \
cp -r /usr/src/arena /tmp/arena && \
pip install /tmp/arena[stable-baselines3] && \
rm -rf /tmp/arena

ENV HF_HOME=/tmp
1 change: 1 addition & 0 deletions images/stable-baselines3/on.arg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
3.10-bullseye
3.9-bullseye
3.8-bullseye

0 comments on commit 630a584

Please sign in to comment.