This project is introduced in an attempt to demonstrate the use of original repo here: https://github.com/SkymindIO/skil-python
To install SKIL itself, head over to docs.skymind.ai.
https://hub.docker.com/r/skymind/skil/
# pull the SKIL image
docker pull skymind/skil
docker pull skymind/skil:1.2.1-cpu-spark1.6-python2-centos7
docker pull skymind/skil:1.2.1-cuda10.0-spark1.6-python2-centos7
docker pull skymind/skil:1.2.1-cuda10.0-spark1.6-python2-ubuntu16.04
docker pull skymind/skil:1.2.1-cuda10.0-spark1.6-python2-ubuntu18.04
# run the SKIL server
docker run --rm -it -p 9008:9008 -p 8080:8080 skymind/skil
# with license
docker run --rm -it -p 9008:9008 -p 8080:8080 -v /home/poom/.skil/skil-license.txt:/etc/skil/license.txt skymind/skil
# or with gpu
docker run --runtime=nvidia --rm -it -p 9008:9008 -p 8080:8080 skymind/skil
# persistent data
docker volume create --name skil-data
docker volume create --name skil-conf
docker volume create --name skil-root
docker run -it --rm \
-v skil-root:/opt/skil \
-v skil-data:/var/skil \
-v skil-conf:/etc/skil \
-p 9008:9008 -p 8080:8080 \
skymind/skil:1.2.1-cpu-spark1.6-python2-centos7
# add license file
-v /home/poom/.skil/skil-license.txt:/etc/skil/license.txt
Sample Configuration:
FORCE_APPLY_CONF=true
SKIL_CLASS_PATH=/opt/skil/cuda/*:/opt/skil/lib/*:/opt/skil/native/*:/etc/skil/*
SKIL_BACKEND=gpu
DEFAULT_ZEPPELIN_BACKEND=gpu
DEFAULT_ZEPPELIN_JVM_ARGS=-Xmx16g -Dorg.bytedeco.javacpp.maxbytes=16G -Dorg.bytedeco.javacpp.maxphysicalbytes=16G -Dorg.nd4j.versioncheck=false -Dorg.deeplearning4j.config.custom.enabled=false
Add ENV file to /etc/skil/skil-env.sh
# persistent data + gpu + env
docker run --runtime=nvidia --rm -it --network host \
-v skil-root:/opt/skil \
-v skil-data:/var/skil \
-v skil-conf:/etc/skil \
-v /home/skymind/skil-env.sh:/etc/skil/skil-env.sh \
skymind/skil:1.2.1-cuda10.0-spark1.6-python2-ubuntu16.04
# debug skil
tail -f /var/log/skil/skil.log
Now, you can access the SKIL UI by opening a browser window to http://localhost:9008
https://hub.docker.com/r/skymindops/skil-ce
For more details, head over to: docs/skil-ce_installation.md
# expose all the container ports
docker run --network host ...
docker exec -i -t container_id bash
For Ubuntu 14.04/16.04/18.04, Debian Jessie/Stretch
# Add the package repositories
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
# Install nvidia-docker2 and reload the Docker daemon configuration
sudo apt-get install -y nvidia-docker2
sudo pkill -SIGHUP dockerd
# Test nvidia-smi with the latest official CUDA image
docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi
python client: https://pypi.org/project/skil/
SKIL's Python client can be SKIL's Docker Imagenstalled from PyPI:
pip install skil --user
java client (TODO)
- NLP
- Text Classification
- Word2Vec
- Keras MNIST
- VGG
- InceptionV3
- Xception
- YOLO2