Skip to content

Commit

Permalink
Add changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 6, 2023
1 parent 9b4d103 commit c0fb156
Show file tree
Hide file tree
Showing 21 changed files with 21,483 additions and 20,910 deletions.
2,710 changes: 1,355 additions & 1,355 deletions _data/containers.yaml

Large diffs are not rendered by default.

3,425 changes: 1,711 additions & 1,714 deletions _data/repos.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER <yournamehere>
VERSION v0.0.1

%help
This is a template for a Singularity recipe

%post
apt update -y
apt install build-essential git wget -y

cd /home \
&& mkdir data && cd data \
&& echo "Here you could download data e.g. using wget" \

cd /home \
&& echo "Here you can install everything you need, e.g. dependencies not available on pypi" \
&& echo "Next, we clone and install HPOBench" \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& echo "Please never push a recipe that checks out any other branch than development or master" \
&& git checkout development \
&& echo "Here you can install extra requirements additional to singularity" \
&& pip install .[<new_benchmark>] \
&& echo "Please don't touch the following lines"
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

echo "Finally, please change the benchmark in the runscript to point to your benchmark"

%runscript
python -s /home/HPOBench/hpobench/container/server_abstract_benchmark.py <type>.<new_benchmark> $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER [email protected]
VERSION v0.0.1

%post
apt update -y
apt install build-essential git wget -y

cd /home \
&& wget http://ml4aad.org/wp-content/uploads/2019/01/fcnet_tabular_benchmarks.tar.gz \
&& tar xf fcnet_tabular_benchmarks.tar.gz

cd /home \
&& pip install git+https://github.com/google-research/nasbench.git@master \
&& pip install git+https://github.com/automl/nas_benchmarks.git \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& git checkout master \
&& pip install .[tabular_benchmarks] \
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

%runscript
python -s /home/HPOBench/hpobench/container/server_abstract_benchmark.py nas.tabular_benchmarks $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER [email protected]
VERSION v0.0.1

%post
apt update -y
apt install build-essential git wget -y

cd /home \
&& pip install git+https://github.com/google-research/nasbench.git@master \
&& pip install git+https://github.com/automl/nas_benchmarks.git \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& git checkout master \
&& pip install .[nasbench_101] \
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

%runscript
python -s /home/HPOBench/hpobench/container/server_abstract_benchmark.py nas.nasbench_101 $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER [email protected]
VERSION v0.0.1

%environment
export PYTHONPATH=/home/nasbench-1shot1:$PYTHONPATH

%post
apt update -y \
&& apt install build-essential git wget -y

cd /home \
&& pip install tensorflow==1.15.0 \
&& pip install git+https://github.com/google-research/nasbench.git@master \
&& git clone https://github.com/automl/nasbench-1shot1.git \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& git checkout master \
&& pip install .[nasbench_1shot1] \
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

%runscript
python -s /home/HPOBench/hpobench/container/server_abstract_benchmark.py nas.nasbench_1shot1 $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER [email protected]
VERSION v0.0.1

%post
apt update -y
apt install build-essential git -y

cd /home \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& git checkout master \
&& pip install . \
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

%runscript
python -s /home/HPOBench/hpobench/container/server_abstract_benchmark.py nas.nasbench_201 $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER [email protected]
VERSION v0.0.1

%post
apt update -y \
&& apt install build-essential git -y \
&& cd /home \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& git checkout development \
&& pip install .[outlier_detection] \
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

%runscript
python -s /home/HPOBench/hpobench/container/server_abstract_benchmark.py od.od_benchmarks $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER [email protected]
VERSION v0.0.1

%post
apt update -y \
&& apt install build-essential git -y \
&& cd /home \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& git checkout development \
&& pip install .[outlier_detection] \
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

%runscript
python -s /home/HPOBench/hpobench/container/server_abstract_benchmark.py od.od_kde $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER [email protected]
VERSION v0.0.1

%post
apt update -y \
&& apt install build-essential git -y \
&& pip install numpy==1.18.1 cython==0.29.14

cd /home \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& git checkout master \
&& pip install .[cartpole] \
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

%runscript
python -s /home/HPOBench/hpobench/container/server_abstract_benchmark.py rl.cartpole $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER [email protected]
VERSION v0.0.1

%post
apt update -y \
&& apt install build-essential git wget -y

cd /home \
&& git clone --single-branch --branch development https://github.com/PhMueller/learna.git \
&& cd learna \
&& ./thirdparty/miniconda/make_miniconda.sh \
&& ./thirdparty/miniconda/miniconda/bin/conda env create -f environment.yml \
&& ./thirdparty/miniconda/miniconda/envs/learna/bin/python -m pip install docutils==0.16 \
&& ./thirdparty/miniconda/miniconda/envs/learna/bin/python -m pip install tensorforce==0.3.3 \
&& ./thirdparty/miniconda/miniconda/envs/learna/bin/python -m pip install . \
&& ./thirdparty/miniconda/miniconda/envs/learna/bin/python -m learna.data.download_and_build_eterna ./learna/data/secondaries_to_single_files.sh data/eterna data/eterna/interim/eterna.txt \
&& ./learna/data/download_and_build_rfam_taneda.sh \
&& ./learna/data/download_and_build_rfam_learn.sh \
&& mv data/rfam_learn/test data/rfam_learn_test \
&& mv data/rfam_learn/validation data/rfam_learn_validation \
&& mv data/rfam_learn/train data/rfam_learn_train \
&& rm -rf data/rfam_learn \
&& chmod -R 755 data/ \
&& cd /home \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& git checkout master \
&& ../learna/thirdparty/miniconda/miniconda/envs/learna/bin/python -m pip install . \
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

%runscript
/home/learna/thirdparty/miniconda/miniconda/envs/learna/bin/python -s \
/home/HPOBench/hpobench/container/server_abstract_benchmark.py rl.learna_benchmark $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER [email protected]
VERSION v0.0.1

%post
apt update -y \
&& apt install build-essential git wget -y

cd /home \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& git checkout master \
&& pip install --upgrade .[paramnet] \
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

%runscript
python -s /home/HPOBench/hpobench/container/server_abstract_benchmark.py surrogates.paramnet_benchmark $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Bootstrap: docker
From: python:3.7-slim

%labels
MAINTAINER [email protected]
VERSION v0.0.1

%post

%post
apt update -y \
&& apt install build-essential git wget -y

cd /home \
&& git clone https://github.com/automl/HPOBench.git \
&& cd HPOBench \
&& git checkout master \
&& pip install --upgrade .[paramnet] \
&& cd / \
&& mkdir /var/lib/hpobench/ \
&& chmod -R 777 /var/lib/hpobench/ \
&& rm -rf /var/lib/apt/lists/* \
&& pip cache purge

%runscript
python -s /home/HPOBench/hpobench/container/server_abstract_benchmark.py surrogates.svm_benchmark $@
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright (c) 2020 NVIDIA Corporation. All rights reserved.

Bootstrap: docker
#From: nvcr.io/nvidia/deepstream:5.0-20.07-triton
#From: nvcr.io/nvidia/deepstream:6.0.1-devel
From: nvcr.io/nvidia/deepstream:6.0.1-triton

%runscript

"$@"

%post

apt-get -y update
apt-get -y install ffmpeg python3-gi python3-dev python3-gst-1.0

cd /opt/nvidia/deepstream/deepstream-6.0
pip3 install jupyterlab

#python binding
cd /opt/nvidia/deepstream/deepstream/sources
git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps.git
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/
git submodule update --init
mkdir build
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/build
cmake .. -DPYTHON_MAJOR_VERSION=3 -DPYTHON_MINOR_VERSION=8
make
apt -y install libgirepository1.0-dev libcairo2-dev
pip3 install ./pyds-1.1.1-py3-none-linux_x86_64.whl

cd /opt/nvidia/deepstream/deepstream-6.0

%files

English/* /opt/nvidia/deepstream/deepstream-6.0/

%environment
XDG_RUNTIME_DIR=

%labels

AUTHOR Tosin
Loading

0 comments on commit c0fb156

Please sign in to comment.