Skip to content

Commit 0343d51

Browse files
authored
Merge pull request #1062 from NeuromatchAcademy/staging
Staging
2 parents 6fcc732 + a812d7f commit 0343d51

8 files changed

Lines changed: 53 additions & 47 deletions

File tree

book/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ execute:
1818
execute_notebooks : force # Whether to execute notebooks at build time. Must be one of ("auto", "force", "cache", "off")
1919
cache : "" # A path to the jupyter cache that will be used to store execution artifacts. Defaults to `_build/.jupyter_cache/`
2020
exclude_patterns : [projects/ComputerVision/*.ipynb, projects/ReinforcementLearning/*.ipynb, projects/Neuroscience/*.ipynb, projects/NaturalLanguageProcessing/*.ipynb]
21-
timeout : 720 # The maximum time (in seconds) each notebook cell is allowed to run.
21+
timeout : 1800 # The maximum time (in seconds) each notebook cell is allowed to run.
2222
run_in_temp : false # If `True`, then a temporary directory will be created and used as the command working directory (cwd),
2323
# otherwise the notebook's parent directory will be the cwd.
2424
allow_errors : true # If `False`, when a code cell raises an error the execution is stopped, otherwise all cells are always run.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ numpy>=2.0
55
pandas>=2.2
66
matplotlib>=3.9
77
torch>=2.6
8-
torchvision>=0.21
8+
torchvision<0.24
99
torchaudio>=2.6
1010
scikit-learn>=1.6
1111
scipy>=1.13

tutorials/W2D5_TimeSeriesAndNaturalLanguageProcessing/W2D5_Tutorial1.ipynb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "4f51095f",
5+
"id": "a65b0859",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -113,11 +113,11 @@
113113
},
114114
"outputs": [],
115115
"source": [
116-
"# @title Install dependencies\n",
117-
"!pip install nltk --quiet\n",
118-
"!pip install fasttext --quiet\n",
119-
"!pip install -U datasets --quiet\n",
120-
"!pip install -U tokenizers --quiet"
116+
"# @title Uncomment to install dependencies\n",
117+
"# !pip install nltk --quiet\n",
118+
"# !pip install fasttext --quiet\n",
119+
"# !pip install -U datasets --quiet\n",
120+
"# !pip install -U tokenizers==0.22.2 --quiet"
121121
]
122122
},
123123
{
@@ -1764,7 +1764,7 @@
17641764
"source": [
17651765
"tokenizer = get_tokenizer(fasttext_vocab)\n",
17661766
"num_class, train_data, valid_data, test_data = load_dataset(\n",
1767-
" \"fancyzhx/ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
1767+
" \"ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
17681768
")\n",
17691769
"hidden_size = 128\n",
17701770
"embedding_length = fasttext_vectors.size(1) # 300\n",
@@ -1910,7 +1910,8 @@
19101910
"name": "python3"
19111911
},
19121912
"kernelspec": {
1913-
"display_name": "Python 3",
1913+
"display_name": "nma-dl",
1914+
"language": "python",
19141915
"name": "python3"
19151916
},
19161917
"language_info": {

tutorials/W2D5_TimeSeriesAndNaturalLanguageProcessing/instructor/W2D5_Tutorial1.ipynb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "9e62340e",
5+
"id": "760a5442",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -113,11 +113,11 @@
113113
},
114114
"outputs": [],
115115
"source": [
116-
"# @title Install dependencies\n",
117-
"!pip install nltk --quiet\n",
118-
"!pip install fasttext --quiet\n",
119-
"!pip install -U datasets --quiet\n",
120-
"!pip install -U tokenizers --quiet"
116+
"# @title Uncomment to install dependencies\n",
117+
"# !pip install nltk --quiet\n",
118+
"# !pip install fasttext --quiet\n",
119+
"# !pip install -U datasets --quiet\n",
120+
"# !pip install -U tokenizers==0.22.2 --quiet"
121121
]
122122
},
123123
{
@@ -1766,7 +1766,7 @@
17661766
"source": [
17671767
"tokenizer = get_tokenizer(fasttext_vocab)\n",
17681768
"num_class, train_data, valid_data, test_data = load_dataset(\n",
1769-
" \"fancyzhx/ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
1769+
" \"ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
17701770
")\n",
17711771
"hidden_size = 128\n",
17721772
"embedding_length = fasttext_vectors.size(1) # 300\n",
@@ -1912,7 +1912,8 @@
19121912
"name": "python3"
19131913
},
19141914
"kernelspec": {
1915-
"display_name": "Python 3",
1915+
"display_name": "nma-dl",
1916+
"language": "python",
19161917
"name": "python3"
19171918
},
19181919
"language_info": {

tutorials/W2D5_TimeSeriesAndNaturalLanguageProcessing/student/W2D5_Tutorial1.ipynb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "bcd0131c",
5+
"id": "8626dc97",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -113,11 +113,11 @@
113113
},
114114
"outputs": [],
115115
"source": [
116-
"# @title Install dependencies\n",
117-
"!pip install nltk --quiet\n",
118-
"!pip install fasttext --quiet\n",
119-
"!pip install -U datasets --quiet\n",
120-
"!pip install -U tokenizers --quiet"
116+
"# @title Uncomment to install dependencies\n",
117+
"# !pip install nltk --quiet\n",
118+
"# !pip install fasttext --quiet\n",
119+
"# !pip install -U datasets --quiet\n",
120+
"# !pip install -U tokenizers==0.22.2 --quiet"
121121
]
122122
},
123123
{
@@ -1686,7 +1686,7 @@
16861686
"source": [
16871687
"tokenizer = get_tokenizer(fasttext_vocab)\n",
16881688
"num_class, train_data, valid_data, test_data = load_dataset(\n",
1689-
" \"fancyzhx/ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
1689+
" \"ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
16901690
")\n",
16911691
"hidden_size = 128\n",
16921692
"embedding_length = fasttext_vectors.size(1) # 300\n",
@@ -1832,7 +1832,8 @@
18321832
"name": "python3"
18331833
},
18341834
"kernelspec": {
1835-
"display_name": "Python 3",
1835+
"display_name": "nma-dl",
1836+
"language": "python",
18361837
"name": "python3"
18371838
},
18381839
"language_info": {

tutorials/W3D1_AttentionAndTransformers/W3D1_Tutorial1.ipynb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "dd45a284",
5+
"id": "b0c8af02",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -116,11 +116,11 @@
116116
},
117117
"outputs": [],
118118
"source": [
119-
"# @title Install dependencies\n",
120-
"!pip install tensorboard --quiet\n",
121-
"!pip install -U transformers --quiet\n",
122-
"!pip install -U datasets --quiet\n",
123-
"!pip install fasttext --quiet"
119+
"# @title Uncomment to install dependencies\n",
120+
"# !pip install tensorboard --quiet\n",
121+
"# !pip install -U transformers --quiet\n",
122+
"# !pip install -U datasets --quiet\n",
123+
"# !pip install fasttext --quiet"
124124
]
125125
},
126126
{
@@ -2852,7 +2852,8 @@
28522852
"name": "python3"
28532853
},
28542854
"kernelspec": {
2855-
"display_name": "Python 3",
2855+
"display_name": "nma-dl",
2856+
"language": "python",
28562857
"name": "python3"
28572858
},
28582859
"language_info": {

tutorials/W3D1_AttentionAndTransformers/instructor/W3D1_Tutorial1.ipynb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "ebad91d4",
5+
"id": "0bcb7794",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -116,11 +116,11 @@
116116
},
117117
"outputs": [],
118118
"source": [
119-
"# @title Install dependencies\n",
120-
"!pip install tensorboard --quiet\n",
121-
"!pip install -U transformers --quiet\n",
122-
"!pip install -U datasets --quiet\n",
123-
"!pip install fasttext --quiet"
119+
"# @title Uncomment to install dependencies\n",
120+
"# !pip install tensorboard --quiet\n",
121+
"# !pip install -U transformers --quiet\n",
122+
"# !pip install -U datasets --quiet\n",
123+
"# !pip install fasttext --quiet"
124124
]
125125
},
126126
{
@@ -2860,7 +2860,8 @@
28602860
"name": "python3"
28612861
},
28622862
"kernelspec": {
2863-
"display_name": "Python 3",
2863+
"display_name": "nma-dl",
2864+
"language": "python",
28642865
"name": "python3"
28652866
},
28662867
"language_info": {

tutorials/W3D1_AttentionAndTransformers/student/W3D1_Tutorial1.ipynb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "d467cfb2",
5+
"id": "080759fb",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -116,11 +116,11 @@
116116
},
117117
"outputs": [],
118118
"source": [
119-
"# @title Install dependencies\n",
120-
"!pip install tensorboard --quiet\n",
121-
"!pip install -U transformers --quiet\n",
122-
"!pip install -U datasets --quiet\n",
123-
"!pip install fasttext --quiet"
119+
"# @title Uncomment to install dependencies\n",
120+
"# !pip install tensorboard --quiet\n",
121+
"# !pip install -U transformers --quiet\n",
122+
"# !pip install -U datasets --quiet\n",
123+
"# !pip install fasttext --quiet"
124124
]
125125
},
126126
{
@@ -2555,7 +2555,8 @@
25552555
"name": "python3"
25562556
},
25572557
"kernelspec": {
2558-
"display_name": "Python 3",
2558+
"display_name": "nma-dl",
2559+
"language": "python",
25592560
"name": "python3"
25602561
},
25612562
"language_info": {

0 commit comments

Comments
 (0)