mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
working checkpoints
This commit is contained in:
@@ -29,4 +29,4 @@ RUN pip3 install -e .
|
||||
# RUN pip3 install rl_coach
|
||||
|
||||
# CMD ["coach", "-p", "CartPole_PG", "-e", "cartpole"]
|
||||
CMD python3 rl_coach/rollout_worker.py
|
||||
CMD python3 rl_coach/rollout_worker.py --preset CartPole_PG
|
||||
|
||||
@@ -15,6 +15,7 @@ endif
|
||||
|
||||
RUN_ARGUMENTS+=--rm
|
||||
RUN_ARGUMENTS+=--net host
|
||||
RUN_ARGUMENTS+=-v /tmp/checkpoint:/checkpoint
|
||||
|
||||
CONTEXT = $(realpath ..)
|
||||
|
||||
@@ -24,6 +25,7 @@ endif
|
||||
|
||||
build:
|
||||
${DOCKER} build -f=Dockerfile -t=${IMAGE} ${BUILD_ARGUMENTS} ${CONTEXT}
|
||||
mkdir -p /tmp/checkpoint
|
||||
|
||||
shell: build
|
||||
${DOCKER} run ${RUN_ARGUMENTS} -it ${IMAGE} /bin/bash
|
||||
@@ -34,5 +36,11 @@ test: build
|
||||
run: build
|
||||
${DOCKER} run ${RUN_ARGUMENTS} -it ${IMAGE}
|
||||
|
||||
run_training_worker: build
|
||||
${DOCKER} run ${RUN_ARGUMENTS} -it ${IMAGE} python3 rl_coach/training_worker.py --preset CartPole_PG
|
||||
|
||||
run_rollout_worker: build
|
||||
${DOCKER} run ${RUN_ARGUMENTS} -it ${IMAGE} python3 rl_coach/rollout_worker.py --preset CartPole_PG
|
||||
|
||||
push:
|
||||
docker push ${IMAGE}
|
||||
|
||||
Reference in New Issue
Block a user