Skip to content

Commit 6088109

Browse files
committed
fix mistakes after merging PRs
1 parent 31cfc9e commit 6088109

7 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/pre_commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Install pre-commit
2424
uses: pre-commit/action@v3.0.1
25-
# with:
25+
# with:
2626
# continue-on-error: true
2727

2828
# - name: List modified files

pages/before.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
When working on the exercises, I in general recommend following this structure:
44

5-
```
5+
```txt
66
<02476_XXX>/ # call this whatever you like
77
├── dtu_mlops/ # the content of this repository
88
│ ├── .venv/

s1_development_environment/exercise_files/1_Tensors_in_PyTorch.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"cell_type": "markdown",
6565
"metadata": {},
6666
"source": [
67-
"If you are using a wsl and the kernel does not corretly connect, then Jupiter may not be corretly installed on the wsl.\n",
67+
"If you are using a wsl and the kernel does not correctly connect, then Jupiter may not be correctly installed on the wsl.\n",
6868
"Run\n",
6969
"\"python3 -m jupyter --version\"\n",
7070
"\n",

s1_development_environment/exercise_files/fc_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import torch
22
from torch import nn
33

4+
45
class Network(nn.Module):
56
"""Builds a feedforward network with arbitrary hidden layers.
67

s4_debugging_and_logging/profiling.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,9 @@ result nicely (like `snakeviz` for `cProfile`) we are also going to use the tens
247247
prof.export_chrome_trace("trace.json")
248248
```
249249

250-
You should be able to visualize the file by going to `chrome://tracing` in any chromium-based web browser (provided you have enabled internal debugging pages at chrome://chrome-urls).
251-
Can you still identify the information printed in the previous exercises from the visualizations?
250+
You should be able to visualize the file by going to `chrome://tracing` in any chromium-based web browser (provided
251+
you have enabled internal debugging pages at chrome://chrome-urls). Can you still identify the information printed
252+
in the previous exercises from the visualizations?
252253

253254
5. Running profiling on a single forward step can produce misleading results, as it only provides a single sample that
254255
may depend on what background processes are running on your computer. Therefore it is recommended to profile

s6_the_cloud/cloud_setup.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,10 @@ you want them to be able to do. The figure below shows how to do this.
167167
</figure>
168168
169169
What we are going to go through right now is how to increase the quotas for how many GPUs you have available for your
170-
project. You can read more about quota types and levels [here](https://docs.cloud.google.com/docs/quotas/overview). By
171-
default, for any free accounts in GCP (or accounts using teaching credits) the default quota for GPUs that
172-
you can use is either 0 or 1 (their policies sometimes change). We will in the exercises below try to increase it.
170+
project. You can read more about quota types and levels
171+
[in the documentation](https://docs.cloud.google.com/docs/quotas/overview). By default, for any free accounts in GCP
172+
(or accounts using teaching credits) the default quota for GPUs that you can use is either 0 or 1 (their policies
173+
sometimes change). We will in the exercises below try to increase it.
173174
174175
### ❔ Exercises
175176

tasks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import os
22
import sys
3-
import numpy as np
4-
import matplotlib.pyplot as plt
53

64
from invoke import task
75

0 commit comments

Comments
 (0)