Skip to content

Commit

Permalink
Create a chess-only version of kaggle-environments for chess competit…
Browse files Browse the repository at this point in the history
…ion (#308)

* start on chess package

* update script
  • Loading branch information
bovard authored Nov 14, 2024
1 parent 39a196b commit d942136
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker/cpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,16 @@ ADD ./MANIFEST.in ./MANIFEST.in
ADD ./kaggle_environments ./kaggle_environments
RUN pip install Flask bitsandbytes accelerate vec-noise jax gymnax==0.0.8 && pip install . && pytest

# SET UP KAGGLE-ENVIRONMENTS CHESS
# minimal package to reduce memory footprint
# rename pip package
RUN sed -i 's/kaggle-environments/kaggle-environments-chess/g' ./setup.py
RUN sed -i 's/kaggle_environments/kaggle_environments_chess/g' ./setup.py
RUN mkdir ./kaggle_environments_chess
RUN cp -r ./kaggle_environments/* ./kaggle_environments_chess/
# remove other runtimes
RUN find ./kaggle_environments_chess/envs -mindepth 1 -maxdepth 1 ! -name "chess" -type d -exec rm -rf {} +
# install kaggle-environments-chess
RUN pip install .

CMD kaggle-environments

0 comments on commit d942136

Please sign in to comment.