Skip to content
Permalink
Browse files

Colab now provides Chainer by default

  • Loading branch information...
kmaehashi committed Dec 18, 2018
1 parent d791192 commit 1adf6172c23f45055c3c799ed8ccb1fe35469611
Showing with 29 additions and 3 deletions.
  1. +29 −3 README.md
@@ -1,10 +1,36 @@
# [Chainer](https://docs.chainer.org/en/latest/) on [Google Colaboratory](https://colab.research.google.com/)

Use the following snippet to install Chainer & CuPy (with cuDNN) on Google Colaboratory.
Make sure to enable GPU (`Runtime` > `Change runtime type` > `Hardware accelerator` > `GPU`) on your notebook **before** running the snippet!
**Google Colaboratory now provides Chainer, CuPy and iDeep by default! Manual installation is no longer necessary.**

Make sure to enable GPU (`Runtime` > `Change runtime type` > `Hardware accelerator` > `GPU`) on your notebook!

```py
import chainer
chainer.print_runtime_info()
```

```
Platform: Linux-4.14.65+-x86_64-with-Ubuntu-18.04-bionic
Chainer: 5.0.0
NumPy: 1.14.6
CuPy:
CuPy Version : 5.0.0
CUDA Root : /usr/local/cuda
CUDA Build Version : 9020
CUDA Driver Version : 9020
CUDA Runtime Version : 9020
cuDNN Build Version : 7201
cuDNN Version : 7201
NCCL Build Version : 2213
iDeep: 2.0.0.post3
```

----

You can still use the following snippet to install specific versions of Chainer & CuPy (with cuDNN) on Google Colaboratory.

```
!curl https://colab.chainer.org/install | sh -
!curl https://colab.chainer.org/install | CHAINER_VERSION="==5.1.0" CUPY_VERSION="==5.1.0" sh -
```

## Examples

0 comments on commit 1adf617

Please sign in to comment.
You can’t perform that action at this time.