Intel AI Cloud 使用

 1.申請AI Cloudhtml

  A ‘training-ready’ hardware like Amazon® EC2, Intel® AI DevCloud, or a GPU-based system pre-installed with Caffe - Installation instructionsnode

  

  提交信息後約一個工做日便可收到審覈經過的郵件python

 2.Jupyter的使用git

  申請審覈經過後便可在https://access.colfaxresearch.com/?p=connect#sec-jup查看帳號和密碼,經過hub.colfaxresearch.com進行登錄github

 3.SSH登錄雲服務器服務器

 sudo apt-get install ssh

  下載Linux access key到本地~/Downloads/app

 cd ~
 mkdir .ssh
 cd ~/.ssh/
 vi config

  在登錄頁面將https://access.colfaxresearch.com/?p=connect#sec-jup的配置信息拷貝到config文件中,例如(以網頁上的數據爲準)ssh

  Host colfax
  User u14673
  IdentityFile ~/Downloads/colfax-access-key-14673
  ProxyCommand ssh -T -i ~/Downloads/colfax-access-key-14673 guest@cluster.colfaxresearch.com

  配置執行權限this

  chmod 600 ~/Downloads/colfax-access-key-14673
  chmod 600 ~/.ssh/config

  首次登錄時在terminal中輸入以下命令,隨後選擇yes,出現welcome to intel AI dev Cloud 時即爲登錄成功spa

  ssh colfax
  ########################################################################
  # Welcome to Intel AI DevCloud!             
  ########################################################################

    可能出現的運行錯誤

  Error1:ssh:  Could not resolve hostname colfax: Name or service not known
  基本上是因爲運行帳戶與配置文件的建立帳戶不一致形成的,mkdir .ssh 和 vi config 時不要加sudo

   Princles

  ①do not run jobs on the login node and use qsub directives.
  ②In the same folder,create a file
"myjob",add the following three lines.    #PBS -l nodes=1:ppn=2  cd $PBS_O_WORKDIR    python my_application.py
  ③can submit this job with    qsub myjob
  ④track the job with    qstat          cat myjob.oXXXXXX    cat myjob.eXXXXXX   ⑤Running Multiple Jobs    If resources are available, all
4 jobs will start at the same time on different compute nodes.

 4.文件拷貝

  [myname@myhomecomputer ~] scp /path/to/local/file colfax:/path/to/remote/directory/
  [myname@myhomecomputer ~] scp colfax:/path/to/remote/file /path/to/local/directory/

  拷貝文件和拷貝文件夾的差別在於scp 是否加 -r ,即scp -r

 5.軟件安裝

  If you need to install a dependency, please put it in your home directory.
  * For autotools, you can do it with "./configure --prefix=~/my-path"
  * For Python packages, use "pip install package_name --user".  

   6.Caffe的使用

  BIN=/glob/intel-python/python3/bin

 

  參考文獻:

  https://access.colfaxresearch.com/

  https://movidius.github.io/blog/deploying-custom-caffe-models/

相關文章
相關標籤/搜索