Skip to content

Commit 302f8d2

Browse files
committed
Fix formatting
1 parent b93a5a2 commit 302f8d2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ Everything you want to know about Google Cloud TPU
3333
* [7.6. Freeze certain model parameters](#76-freeze-certain-model-parameters)
3434
* [7.7. Integration with Hugging Face Transformers](#77-integration-with-hugging-face-transformers)
3535
* [8. TPU Best Practices](#8-tpu-best-practices)
36-
* [8.1. Prefer Google Cloud Platform to Google Colab](#81-prefer-google-cloud-platform-to-google-colab)
37-
* [8.2. Prefer TPU VM to TPU node](#82-prefer-tpu-vm-to-tpu-node)
38-
* [8.3. Run Jupyter Notebook on TPU VM](#83-run-jupyter-notebook-on-tpu-vm)
39-
* [8.4. Share files across multiple TPU VM instances](#84-share-files-across-multiple-tpu-vm-instances)
40-
* [8.5. Monitor TPU usage](#85-monitor-tpu-usage)
41-
* [8.6. Start a server on TPU VM](#86-start-a-server-on-tpu-vm)
36+
* [8.1. Prefer Google Cloud Platform to Google Colab](#81-prefer-google-cloud-platform-to-google-colab)
37+
* [8.2. Prefer TPU VM to TPU node](#82-prefer-tpu-vm-to-tpu-node)
38+
* [8.3. Run Jupyter Notebook on TPU VM](#83-run-jupyter-notebook-on-tpu-vm)
39+
* [8.4. Share files across multiple TPU VM instances](#84-share-files-across-multiple-tpu-vm-instances)
40+
* [8.5. Monitor TPU usage](#85-monitor-tpu-usage)
41+
* [8.6. Start a server on TPU VM](#86-start-a-server-on-tpu-vm)
4242
* [9. JAX Best Practices](#9-jax-best-practices)
4343
* [9.1. Import convention](#91-import-convention)
4444
* [9.2. Manage random keys in JAX](#92-manage-random-keys-in-jax)
@@ -354,7 +354,7 @@ See [Freeze Parameters Example](https://colab.research.google.com/drive/1-qLk5l0
354354

355355
## 8. TPU Best Practices
356356

357-
#### 8.1. Prefer Google Cloud Platform to Google Colab
357+
### 8.1. Prefer Google Cloud Platform to Google Colab
358358

359359
[Google Colab](https://colab.research.google.com/) only provides TPU v2-8 devices, while on [Google Cloud Platform](https://cloud.google.com/tpu) you can select TPU v2-8 and TPU v3-8.
360360

@@ -372,23 +372,23 @@ devices = jax.devices()
372372
print(devices) # should print TpuDevice
373373
```
374374

375-
#### 8.2. Prefer TPU VM to TPU node
375+
### 8.2. Prefer TPU VM to TPU node
376376

377377
When you are creating a TPU instance, you need to choose between TPU VM and TPU node. Always prefer TPU VM because it is the new architecture in which TPU devices are connected to the host VM directly. This will make it easier to set up the TPU device.
378378

379-
#### 8.3. Run Jupyter Notebook on TPU VM
379+
### 8.3. Run Jupyter Notebook on TPU VM
380380

381381
After setting up Remote-SSH, you can work with Jupyter notebook files in VSCode.
382382

383383
Alternatively, you can run a regular Jupyter Notebook server on the TPU VM, forward the port to your PC and connect to it. However, you should prefer VSCode because it is more powerful, offers better integration with other tools and is easier to set up.
384384

385-
#### 8.4. Share files across multiple TPU VM instances
385+
### 8.4. Share files across multiple TPU VM instances
386386

387387
TPU VM instances in the same zone are connected with internal IPs, so you can [create a shared file system using NFS](https://tecadmin.net/how-to-install-and-configure-an-nfs-server-on-ubuntu-20-04/).
388388

389-
#### 8.5. Monitor TPU usage
389+
### 8.5. Monitor TPU usage
390390

391-
#### 8.6. Start a server on TPU VM
391+
### 8.6. Start a server on TPU VM
392392

393393
Example: Tensorboard
394394

0 commit comments

Comments
 (0)