Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 2.03 KB

CNTK.md

File metadata and controls

38 lines (30 loc) · 2.03 KB

Installing CNTK on Windows

Before you begin

  • Do I have to do this?
    • No, this is only needed if you want to take advantage of GPU computing
  • Will this work on any computer
  • How large is it?
    • CNTK will download several GB of data during installation.
  • Any prerequisites?
    • CNTK comes with its own Anaconda, if you already have an Anaconda installation you may want to remove it. CNTK might be able to use your existing Anaconda, but the installation instructions are surprisingly specific about the Anaconda version CNTK needs.

Download and installation

  • Download the zip file from here (click "I accept" at the bottom) - https://cntk.ai/dlwg-2.6.html
  • Unzip the file (e.g. into C:\ProgramData\CNTK)
  • cd to cntk\Scripts\install\windows\
  • Run install.bat -AnacondaBasePath C:\ProgramData\Anaconda3 -PyVersion 36
    • Replace C:\ProgramData\Anaconda3 with the path where you want Anaconda to be installed
  • When done, the script will display some info, the useful part is the location of the activation script:
    • \cntk\scripts\cntkpy36.bat

Testing the installation

  • Open command line (the usual windows cmd)
  • Run the bat faile generated by CNTK
  • Start ipython
  • import keras
    • Check if it says during the import that it's using cntk as the backend and if it found the GPU

Try running the following to see if your GPU is seen by CNTK (related post )

import cntk.device
cntk.device.gpu(0)