![](https://img.haomeiwen.com/i452087/c1d043090c25b4a0.png)
在 Google Cloud Platform 谷歌云上配置完成之后,咱们就拥有交互式编程笔记 「JupyterNotebook」环境,配有 GPU硬件图形加速器,以调动充分的「算力」,来学习fast.ai的深度学习(炼丹)技术。
07.09更新:国内朋友可以试试->易学智能
步骤1:创建你的账户
前往官网 https://cloud.google.com/,创建新账户。
价格与性能
- 潜在的坑:尽管有 300 美元的初始额度,但我们需要开启 账单(Billing)功能,绑定信用卡或借记卡,等候几个工作日之后激活它。
Potential roadblock: Even though GCP provides a $300 initial credit, you must enable billing to use it. You can put a credit card or a bank account but the latter will take several days for the activation.
- 比如,结算的坑:你在 GoogleClound 里运行虚拟镜像的项目,需要连接至你的账单账号。导航到 billing dashboard,点击「...」菜单,选择「更改账单账号」。
The project on which you are going to run the image needs to be linked with your billing account. For this navigate to the billing dashboard, click the ‘…’ menu and choose ‘change billing account’.
步骤2:安装 Google 命令行工具
笔者使用的是 macOS 系统,进行了如下操作命令:
curl https://sdk.cloud.google.com | bash
exec -l $SHELL
与报错不期而遇:连接 Google 的 SDK 服务失败,端口 443,操作超时
$ curl https://sdk.cloud.google.com | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:01:15 --:--:-- 0curl: (7) Failed to connect to sdk.cloud.google.com port 443: Operation timed out
查看官网文档
https://cloud.google.com/sdk/docs/quickstart-macos
在准备工作中的第二条,赫然写着
确保您的系统上安装了 Python 2.7:
python -V
$ python -V
Python 3.6.8 :: Anaconda custom (64-bit)
系统反馈,我当前使用的是 Python3.6.8版本
adi0229 (adi0229) ~
$ pyenv virtualenv 2.7.10 my-virtual-env-2.7.10
pyenv-virtualenv: `2.7.10' is not installed in pyenv.
使用pyenv模块,创建一个 python2.7.x的虚拟环境?
$ pyenv install 2.7
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-2.7.tgz...
-> https://www.python.org/ftp/python/2.7/Python-2.7.tgz
警告:Python2.7要在2020年1月时被“废黜”。
adi0229 (adi0229) ~
$ pyenv virtualenv 2.7 google-cli
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
pyenv activate <name>
pyenv deactivate
adi0229 (adi0229) ~
$ pyenv activate google-cli
pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
(google-cli) adi0229 (adi0229) ~
激活所创建的虚拟环境
(google-cli) adi0229 (adi0229) ~
$ ./google-cloud-sdk/install.sh
Welcome to the Google Cloud SDK!
To help improve the quality of this product, we collect anonymized usage data
and anonymized stacktraces when crashes are encountered; additional information
is available at <https://cloud.google.com/sdk/usage-statistics>. You may choose
to opt out of this collection now (by choosing 'N' at the below prompt), or at
any time in the future by running the following command:
gcloud config set disable_usage_reporting true
Do you want to help improve the Google Cloud SDK (Y/n)? y
Your current Cloud SDK version is: 218.0.0
The latest available version is: 231.0.0
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Components │
├──────────────────┬──────────────────────────────────────────────────────┬──────────────────────────┬───────────┤
│ Status │ Name │ ID │ Size │
├──────────────────┼──────────────────────────────────────────────────────┼──────────────────────────┼───────────┤
│ Update Available │ BigQuery Command Line Tool │ bq │ < 1 MiB │
│ Update Available │ Cloud SDK Core Libraries │ core │ 9.1 MiB │
│ Update Available │ Cloud Storage Command Line Tool │ gsutil │ 3.6 MiB │
│ Not Installed │ App Engine Go Extensions │ app-engine-go │ 56.4 MiB │
│ Not Installed │ Cloud Bigtable Command Line Tool │ cbt │ 6.3 MiB │
│ Not Installed │ Cloud Bigtable Emulator │ bigtable │ 5.6 MiB │
│ Not Installed │ Cloud Datalab Command Line Tool │ datalab │ < 1 MiB │
│ Not Installed │ Cloud Datastore Emulator │ cloud-datastore-emulator │ 18.4 MiB │
│ Not Installed │ Cloud Datastore Emulator (Legacy) │ gcd-emulator │ 38.1 MiB │
│ Not Installed │ Cloud Firestore Emulator │ cloud-firestore-emulator │ 32.2 MiB │
│ Not Installed │ Cloud Pub/Sub Emulator │ pubsub-emulator │ 33.4 MiB │
│ Not Installed │ Cloud SQL Proxy │ cloud_sql_proxy │ 3.7 MiB │
│ Not Installed │ Emulator Reverse Proxy │ emulator-reverse-proxy │ 14.5 MiB │
│ Not Installed │ Google Cloud Build Local Builder │ cloud-build-local │ 5.9 MiB │
│ Not Installed │ Google Container Registry's Docker credential helper │ docker-credential-gcr │ 1.8 MiB │
│ Not Installed │ gcloud Alpha Commands │ alpha │ < 1 MiB │
│ Not Installed │ gcloud Beta Commands │ beta │ < 1 MiB │
│ Not Installed │ gcloud app Java Extensions │ app-engine-java │ 107.5 MiB │
│ Not Installed │ gcloud app PHP Extensions │ app-engine-php │ 21.9 MiB │
│ Not Installed │ gcloud app Python Extensions │ app-engine-python │ 6.2 MiB │
│ Not Installed │ gcloud app Python Extensions (Extra Libraries) │ app-engine-python-extras │ 28.5 MiB │
│ Not Installed │ kubectl │ kubectl │ < 1 MiB │
└──────────────────┴──────────────────────────────────────────────────────┴──────────────────────────┴───────────┘
To install or remove components at your current SDK version [218.0.0], run:
$ gcloud components install COMPONENT_ID
$ gcloud components remove COMPONENT_ID
To update your SDK installation to the latest version [231.0.0], run:
$ gcloud components update
Modify profile to update your $PATH and enable shell command
completion?
Do you want to continue (Y/n)? y
The Google Cloud SDK installer will now prompt you to update an rc
file to bring the Google Cloud CLIs into your environment.
Enter a path to an rc file to update, or leave blank to use
[/Users/apple/.bash_profile]:
Backing up [/Users/apple/.bash_profile] to [/Users/apple/.bash_profile.backup].
[/Users/apple/.bash_profile] has been updated.
==> Start a new shell for the changes to take effect.
For more information on how to get started, please visit:
https://cloud.google.com/sdk/docs/quickstarts
You must log in to continue. Would you like to log in (Y/n)? y
提示是否继续时,输入 y
https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&prompt=select_account&response_type=code&client_id=32555940559.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Faccounts.reauth&access_type=offline
这时,浏览器会自动打开授权页面,请授权你的谷歌云平台账号。
![](https://img.haomeiwen.com/i452087/a2788523a39908a5.png)
![](https://img.haomeiwen.com/i452087/b811896795b62ac2.png)
![](https://img.haomeiwen.com/i452087/574aafb20baec52c.png)
Updates are available for some Cloud SDK components. To install them,
please run:
$ gcloud components update
You are logged in as: [jiandi.huang@gmail.com].
Pick cloud project to use:
[1] aaabbb2429
[2] aaabbb2477
[3] aaabbb24788
[4] aadi0229
[5] blissful-column-173718
[6] citric-glow-173718
[7] cldz-47871703-428d-4c5c-902
[8] cldz-56c7788c-8547-44f0-bfd
[9] cldz-bba1b1ea-a00a-4b33-a09
[10] clouderizer-baseimage
[11] movie-trail
[12] Create a new project
Please enter numeric choice or text value (must exactly match list
item):
Project IDs must be 6-30 characters (lowercase ASCII, digits, or
hyphens) in length and start with a lowercase letter. fastai
WARNING: Project creation failed: HttpError accessing <https://cloudresourcemanager.googleapis.com/v1/projects?alt=json>: response: <{'status': '409', 'content-length': '119', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'vary': 'Origin, X-Origin, Referer', 'server': 'ESF', '-content-encoding': 'gzip', 'cache-control': 'private', 'date': 'Sun, 27 Jan 2019 16:39:11 GMT', 'x-frame-options': 'SAMEORIGIN', 'alt-svc': 'quic=":443"; ma=2592000; v="44,43,39"', 'content-type': 'application/json; charset=UTF-8'}>, content <{
"error": {
"code": 409,
"message": "Requested entity already exists",
"status": "ALREADY_EXISTS"
}
}
>
Please make sure to create the project [fastai] using
$ gcloud projects create fastai
or change to another project using
$ gcloud config set project <PROJECT ID>
Pick cloud project to use:
[1] aaabbb2429
[2] aaabbb2477
[3] aaabbb24788
[4] aadi0229
[5] blissful-column-173718
[6] citric-glow-173718
[7] cldz-47871703-428d-4c5c-902
[8] cldz-56c7788c-8547-44f0-bfd
[9] cldz-bba1b1ea-a00a-4b33-a09
[10] clouderizer-baseimage
[11] fastai-v3-229916
[12] movie-trail
[13] Create a new project
Please enter numeric choice or text value (must exactly match list
item): 11
Your current project has been set to: [fastai-v3-229916].
Not setting default zone/region (this feature makes it easier to use
[gcloud compute] by setting an appropriate default value for the
--zone and --region flag).
See https://cloud.google.com/compute/docs/gcloud-compute section on how to set
default compute region and zone manually. If you would like [gcloud init] to be
able to do this for you the next time you run it, make sure the
Compute Engine API is enabled for your project on the
https://console.developers.google.com/apis page.
Created a default .boto configuration file at [/Users/apple/.boto]. See this file and
[https://cloud.google.com/storage/docs/gsutil/commands/config] for more
information about configuring Google Cloud Storage.
Your Google Cloud SDK is configured and ready to use!
* Commands that require authentication will use jiandi.huang@gmail.com by default
* Commands will reference project `fastai-v3-229916` by default
Run `gcloud help config` to learn how to change individual settings
This gcloud configuration is called [default]. You can create additional configurations if you work with multiple accounts and/or projects.
Run `gcloud topic configurations` to learn more.
Some things to try next:
* Run `gcloud --help` to see the Cloud Platform services you can interact with. And run `gcloud help COMMAND` to get help on any gcloud command.
* Run `gcloud topic -h` to learn about advanced features of the SDK like arg files and output formatting
https://cloud.google.com/compute/docs/gcloud-compute
至此,谷歌云GCP 的SDK 配置完毕。
步骤3: 创建一个实例(Instance)
输入各种配置指令,比如「IMAGE_FAMILY(镜像组合)」-> "pytorch-latest-gpu",「ZONE」-> "us-west1-b"等等。最新操作步骤,请移步查阅https://course.fast.ai/start_gcp.html
(google-cli) adi0229 (adi0229) ~
$ gcloud config set compute/zone us-west1-b
Updated property [compute/zone].
(google-cli) adi0229 (adi0229) ~
$ gcloud config set compute/zone ZONE
Updated property [compute/zone].
(google-cli) adi0229 (adi0229) ~
$ gcloud config set compute/zone us-west1-b
Updated property [compute/zone].
(google-cli) adi0229 (adi0229) ~
$ export IMAGE_FAMILY="pytorch-latest-gpu" # or "pytorch-latest-cpu" for non-GPU instances
(google-cli) adi0229 (adi0229) ~
$ export ZONE="us-west2-b" # budget: "us-west1-b"
(google-cli) adi0229 (adi0229) ~
$ export INSTANCE_NAME="my-fastai-instance"
(google-cli) adi0229 (adi0229) ~
$ export INSTANCE_TYPE="n1-highmem-8" # budget: "n1-highmem-4"
(google-cli) adi0229 (adi0229) ~
$
(google-cli) adi0229 (adi0229) ~
$ # budget: 'type=nvidia-tesla-k80,count=1'
(google-cli) adi0229 (adi0229) ~
$ gcloud compute instances create $INSTANCE_NAME \
> --zone=$ZONE \
> --image-family=$IMAGE_FAMILY \
> --image-project=deeplearning-platform-release \
> --maintenance-policy=TERMINATE \
> --accelerator="type=nvidia-tesla-p4,count=1" \
> --machine-type=$INSTANCE_TYPE \
> --boot-disk-size=200GB \
> --metadata="install-nvidia-driver=True" \
> --preemptible
API [compute.googleapis.com] not enabled on project [191131005934].
Would you like to enable and retry (this will take a few minutes)?
(y/N)?
Enabling service compute.googleapis.com on project 191131005934...
ERROR: (gcloud.compute.instances.create) FAILED_PRECONDITION: Operation does not satisfy the following requirements: billing-enabled {Billing must be enabled for activation of service '' in project 'fastai-v3-229916' to proceed., https://console.developers.google.com/project/fastai-v3-229916/settings}
设置了结算账户之后,
(google-cli) adi0229 (adi0229) ~
$ export IMAGE_FAMILY="pytorch-latest-gpu" # or "pytorch-latest-cpu" for non-GPU instances
(google-cli) adi0229 (adi0229) ~
$ export ZONE="us-west2-b" # budget: "us-west1-b"
(google-cli) adi0229 (adi0229) ~
$ export INSTANCE_NAME="my-fastai-instance"
(google-cli) adi0229 (adi0229) ~
$ export INSTANCE_TYPE="n1-highmem-8" # budget: "n1-highmem-4"
(google-cli) adi0229 (adi0229) ~
$
(google-cli) adi0229 (adi0229) ~
$ # budget: 'type=nvidia-tesla-k80,count=1'
(google-cli) adi0229 (adi0229) ~
$ gcloud compute instances create $INSTANCE_NAME \
> --zone=$ZONE \
> --image-family=$IMAGE_FAMILY \
> --image-project=deeplearning-platform-release \
> --maintenance-policy=TERMINATE \
> --accelerator="type=nvidia-tesla-p4,count=1" \
> --machine-type=$INSTANCE_TYPE \
> --boot-disk-size=200GB \
> --metadata="install-nvidia-driver=True" \
> --preemptible
API [compute.googleapis.com] not enabled on project [191131005934].
Would you like to enable and retry (this will take a few minutes)?
(y/N)? y
Enabling service compute.googleapis.com on project 191131005934...
Waiting for async operation operations/acf.5da1affd-33a8-48f4-a1c2-a0aa79b6fc6a to complete...
Operation finished successfully. The following command can describe the Operation details:
gcloud services operations describe operations/tmo-acf.5da1affd-33a8-48f4-a1c2-a0aa79b6fc6a
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally.
(google-cli) adi0229 (adi0229) ~
$
![](https://img.haomeiwen.com/i452087/b076b92ce04eb721.png)
![](https://img.haomeiwen.com/i452087/79580e4227586702.png)
![](https://img.haomeiwen.com/i452087/f45eabd43e66bd33.png)
![](https://img.haomeiwen.com/i452087/d9356405938c1a20.png)
步骤3:创建你的示例
![](https://img.haomeiwen.com/i452087/cc8a381e7cf98d6c.png)
再次输入 CLI 命令行代码,创建示例
(google-cli) adi0229 (adi0229) ~
$ export IMAGE_FAMILY="pytorch-latest-gpu" # or "pytorch-latest-cpu" for non-GPU instances
(google-cli) adi0229 (adi0229) ~
$ export ZONE="us-west2-b" # budget: "us-west1-b"
(google-cli) adi0229 (adi0229) ~
$ export INSTANCE_NAME="my-fastai-instance"
(google-cli) adi0229 (adi0229) ~
$ export INSTANCE_TYPE="n1-highmem-8"
(google-cli) adi0229 (adi0229) ~
$ gcloud compute instances create $INSTANCE_NAME \
> --zone=$ZONE \
> --image-family=$IMAGE_FAMILY \
> --image-project=deeplearning-platform-release \
> --maintenance-policy=TERMINATE \
> --accelerator="type=nvidia-tesla-p4,count=1" \
> --machine-type=$INSTANCE_TYPE \
> --boot-disk-size=200GB \
> --metadata="install-nvidia-driver=True" \
> --preemptible
功夫不负有心人,创建成功。
Created [https://www.googleapis.com/compute/v1/projects/fastai-v3-229916/zones/us-west2-b/instances/my-fastai-instance].
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
my-fastai-instance us-west2-b n1-highmem-8 true 10.168.0.2 35.236.103.27 RUNNING
![](https://img.haomeiwen.com/i452087/977d3bb5a96ef199.png)
gcloud compute ssh --zone=$ZONE jupyter@$INSTANCE_NAME -- -L 8080:localhost:8080
一大串的命令行英文,非常吓人。
$ gcloud compute ssh --zone=$ZONE jupyter@$INSTANCE_NAME -- -L 8080:localhost:8080
WARNING: The public SSH key file for gcloud does not exist.
WARNING: The private SSH key file for gcloud does not exist.
WARNING: You do not have an SSH key for gcloud.
WARNING: SSH keygen will be executed to generate a key.
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/apple/.ssh/google_compute_engine.
Your public key has been saved in /Users/apple/.ssh/google_compute_engine.pub.
The key fingerprint is:
SHA256:28o1ycLmw0LnBs/dkPybjH5HDsgl70sFyC3nef1zR1s adi0229@bogon
The key's randomart image is:
+---[RSA 2048]----+
| |
| . o |
| + + |
| .+.o . |
| So *o o E|
| o..+*.oo..+|
| . B=.*=.+ o+|
| .+B+.==.o +|
| o+oo.=+ |
+----[SHA256]-----+
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Users/apple/.pyenv/versions/2.7/lib/python2.7/threading.py", line 530, in __bootstrap_inner
self.run()
File "/Users/apple/.pyenv/versions/2.7/lib/python2.7/threading.py", line 483, in run
self.__target(*self.__args, **self.__kwargs)
File "/Users/apple/google-cloud-sdk/lib/googlecloudsdk/core/console/progress_tracker.py", line 154, in Ticker
if self.Tick():
File "/Users/apple/google-cloud-sdk/lib/googlecloudsdk/core/console/progress_tracker.py", line 226, in Tick
self._ticks % len(self._symbols.spin_marks)])
File "/Users/apple/google-cloud-sdk/lib/googlecloudsdk/core/console/progress_tracker.py", line 244, in _Print
self._console_output.UpdateConsole()
File "/Users/apple/google-cloud-sdk/lib/googlecloudsdk/core/console/multiline.py", line 154, in UpdateConsole
self._UpdateConsole()
File "/Users/apple/google-cloud-sdk/lib/googlecloudsdk/core/console/multiline.py", line 168, in _UpdateConsole
self._messages[self._last_print_index].Print()
File "/Users/apple/google-cloud-sdk/lib/googlecloudsdk/core/console/multiline.py", line 280, in Print
self._WriteLine(line)
File "/Users/apple/google-cloud-sdk/lib/googlecloudsdk/core/console/multiline.py", line 330, in _WriteLine
self._stream.write(self._level * INDENTATION_WIDTH * ' ' + line)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u281b' in position 32: ordinal not in range(128)
Updated [https://www.googleapis.com/compute/v1/projects/fastai-v3-229916].
Updating project ssh metadata...done.
Waiting for SSH key to propagate.
Warning: Permanently added 'compute.3388207759647270175' (ECDSA) to the list of known hosts.
======================================
Welcome to the Google Deep Learning VM
======================================
Version: m19
Based on: Debian GNU/Linux 9.7 (stretch) (GNU/Linux 4.9.0-8-amd64 x86_64\n)
Resources:
* Google Deep Learning Platform StackOverflow: https://stackoverflow.com/questions/tagged/google-dl-platform
* Google Cloud Documentation: https://cloud.google.com/deep-learning-vm
* Google Group: https://groups.google.com/forum/#!forum/google-dl-platform
To reinstall Nvidia driver (if needed) run:
sudo /opt/deeplearning/install-driver.sh
This image uses python 3.7 from the Anaconda. Anaconda is installed to:
/opt/anaconda3/
Linux my-fastai-instance 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
jupyter@my-fastai-instance:~$
查看 GPU,型号是:Tesla P4
jupyter@my-fastai-instance:~$ watch -n 1 nvidia-smi
self._UpdateConsole()
File "/Users/apple/google-cloud-sdk/lib/googlecloudsdk/core/console/multiline.py", line 168, in _UpdateConsole
Every 1.0s: nvidia-smi my-fastai-instance: Thu Jan 31 11:45:56 2019
Thu Jan 31 11:45:56 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.72 Driver Version: 410.72 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla P4 Off | 00000000:00:04.0 Off | N/A |
| N/A 44C P0 24W / 75W | 621MiB / 7611MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 7834 C /opt/anaconda3/bin/python 611MiB |
+-----------------------------------------------------------------------------+
步骤4:接入 fast.ai材料,更新工具包
cd tutorials/fastai/course-v3
git checkout .
git pull
upyter@my-fastai-instance:~$ cd tutorials/fastai/course-v3
jupyter@my-fastai-instance:~/tutorials/fastai/course-v3$ git checkout .
jupyter@my-fastai-instance:~/tutorials/fastai/course-v3$ git pull
remote: Enumerating objects: 112, done.
remote: Counting objects: 100% (112/112), done.
remote: Total 181 (delta 112), reused 112 (delta 112), pack-reused 69
Receiving objects: 100% (181/181), 78.53 MiB | 37.14 MiB/s, done.
Resolving deltas: 100% (115/115), completed with 30 local objects.
From https://github.com/fastai/course-v3
89bb13d..72ab579 master -> origin/master
Updating 89bb13d..72ab579
Fast-forward
README.md | 4 +-
docs/_data/sidebars/home_sidebar.yml | 9 +-
docs/css/customstyles.css | 18 ++-
docs/datasets.md | 68 ++++++++++
docs/deployment_aws_beanstalk.md | 2 +-
docs/gpu_tutorial.md | 4 +-
docs/images/kaggle/fork.png | Bin 0 -> 123815 bytes
docs/images/kaggle/homepage.png | Bin 0 -> 244864 bytes
docs/images/kaggle/landing_page.png | Bin 0 -> 170725 bytes
docs/images/kaggle/sign_up.png | Bin 0 -> 187383 bytes
docs/images/kaggle/start_working.png | Bin 0 -> 204760 bytes
docs/images/kaggle/stop.png | Bin 0 -> 118468 bytes
docs/images/kaggle/your_work.png | Bin 0 -> 220391 bytes
docs/index.md | 17 +--
docs/production/aws-beanstalk.zip | Bin 10028 -> 81089420 bytes
docs/setup/colab | 15 +--
docs/start_aws.md | 6 +-
docs/start_colab.md | 51 ++++----
docs/start_gcp.md | 16 ++-
docs/start_gradient.md | 5 +-
docs/start_kaggle.md | 70 ++++++++++
docs/static/js/{main.1780dcf1.chunk.js => main.c6652583.chunk.js} | 4 +-
docs/static/js/{main.1780dcf1.chunk.js.map => main.c6652583.chunk.js.map} | 2 +-
docs/update_kaggle.md | 43 +++++++
docs/update_sagemaker.md | 2 +-
docs/videos/asset-manifest.json | 6 +-
docs/videos/index.html | 2 +-
...04e6c6508e113.js => precache-manifest.91d8a87f45992a7dd79e3b201e850386.js} | 8 +-
docs/videos/service-worker.js | 2 +-
files/dl-2019/notes/notes-1-6.md | 22 +++-
files/dl-2019/notes/notes-1-7.md | 15 ++-
nbs/dl1/00_notebook_tutorial.ipynb | 4 +-
nbs/dl1/lesson1-pets.ipynb | 2 +-
nbs/dl1/lesson3-imdb.ipynb | 257 ++++++++++++++++++++++++-------------
34 files changed, 479 insertions(+), 175 deletions(-)
create mode 100644 docs/datasets.md
create mode 100644 docs/images/kaggle/fork.png
create mode 100644 docs/images/kaggle/homepage.png
create mode 100644 docs/images/kaggle/landing_page.png
create mode 100644 docs/images/kaggle/sign_up.png
create mode 100644 docs/images/kaggle/start_working.png
create mode 100644 docs/images/kaggle/stop.png
create mode 100644 docs/images/kaggle/your_work.png
create mode 100644 docs/start_kaggle.md
rename docs/static/js/{main.1780dcf1.chunk.js => main.c6652583.chunk.js} (99%)
rename docs/static/js/{main.1780dcf1.chunk.js.map => main.c6652583.chunk.js.map} (99%)
create mode 100644 docs/update_kaggle.md
rename docs/videos/{precache-manifest.edcade663e2c15c437b04e6c6508e113.js => precache-manifest.91d8a87f45992a7dd79e3b201e850386.js} (69%)
upyter@my-fastai-instance:~/tutorials/fastai/course-v3$ sudo /opt/anaconda3/bin/conda install -c fastai fastai
Collecting package metadata: done
Solving environment: done
## Package Plan ##
environment location: /opt/anaconda3
added / updated specs:
- fastai
The following packages will be downloaded:
package | build
---------------------------|-----------------
bleach-3.1.0 | py37_0 225 KB
------------------------------------------------------------
Total: 225 KB
The following NEW packages will be INSTALLED:
bleach pkgs/main/linux-64::bleach-3.1.0-py37_0
parso pkgs/main/linux-64::parso-0.3.1-py37_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
bleach-3.1.0 | 225 KB | ################################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
回到控制台,
![](https://img.haomeiwen.com/i452087/18df5a0a3866732d.png)
![](https://img.haomeiwen.com/i452087/03b7032f6edf7ca5.png)
![](https://img.haomeiwen.com/i452087/8cb1d31ca44a15f6.png)
adi0229 (adi0229) ~
$ pyenv activate google-cli
pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
(google-cli) adi0229 (adi0229) ~
步骤5:停止实例运行
![](https://img.haomeiwen.com/i452087/4e2007a1f888fa4d.png)
参考资料
https://www.jianshu.com/p/7d720393fea3
https://course.fast.ai/update_gcp.html
https://course.fast.ai/start_gcp.html
网友评论