As of June 2017, you can only run CNTK on OSX using Docker (which will run the Linux container)
Microsoft documentation is available here: https://docs.microsoft.com/en-us/cognitive-toolkit/CNTK-Docker-Containers
If you want to run the CNTK CPU version (unlike the GPU that is turned on), you will need to pull out a specific version of the docker container. See: https://hub.docker.com/r/microsoft/cntk/
I recommend using the following for CNTK CPUs:
docker pull microsoft/cntk:2.0-cpu-python3.5
Once you pulled out the container above, you can use Jupyter Notebooks to view tutorials, etc .:
First run the container:
docker run -d -p 8888:8888 --name cntk-jupyter-notebooks -t microsoft/cntk:2.0-cpu-python3.5
Then run this command:
docker exec -it cntk-jupyter-notebooks bash -c "source /cntk/activate-cntk && jupyter-notebook --no-browser --port=8888 --ip=0.0.0.0 --notebook-dir=/cntk/Tutorials --allow-root"
You want to access the shell to run CNTK commands. You can connect the bash shell using docker.
Get container id
docker ps
Then attach the shell
docker exec -it <container_id> bash
Ian finnegan
source share