Skip to content
Merged

Staging #1062

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ execute:
execute_notebooks : force # Whether to execute notebooks at build time. Must be one of ("auto", "force", "cache", "off")
cache : "" # A path to the jupyter cache that will be used to store execution artifacts. Defaults to `_build/.jupyter_cache/`
exclude_patterns : [projects/ComputerVision/*.ipynb, projects/ReinforcementLearning/*.ipynb, projects/Neuroscience/*.ipynb, projects/NaturalLanguageProcessing/*.ipynb]
timeout : 720 # The maximum time (in seconds) each notebook cell is allowed to run.
timeout : 1800 # The maximum time (in seconds) each notebook cell is allowed to run.
run_in_temp : false # If `True`, then a temporary directory will be created and used as the command working directory (cwd),
# otherwise the notebook's parent directory will be the cwd.
allow_errors : true # If `False`, when a code cell raises an error the execution is stopped, otherwise all cells are always run.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ numpy>=2.0
pandas>=2.2
matplotlib>=3.9
torch>=2.6
torchvision>=0.21
torchvision<0.24
torchaudio>=2.6
scikit-learn>=1.6
scipy>=1.13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "4f51095f",
"id": "a65b0859",
"metadata": {
"colab_type": "text",
"execution": {},
Expand Down Expand Up @@ -113,11 +113,11 @@
},
"outputs": [],
"source": [
"# @title Install dependencies\n",
"!pip install nltk --quiet\n",
"!pip install fasttext --quiet\n",
"!pip install -U datasets --quiet\n",
"!pip install -U tokenizers --quiet"
"# @title Uncomment to install dependencies\n",
"# !pip install nltk --quiet\n",
"# !pip install fasttext --quiet\n",
"# !pip install -U datasets --quiet\n",
"# !pip install -U tokenizers==0.22.2 --quiet"
]
},
{
Expand Down Expand Up @@ -1764,7 +1764,7 @@
"source": [
"tokenizer = get_tokenizer(fasttext_vocab)\n",
"num_class, train_data, valid_data, test_data = load_dataset(\n",
" \"fancyzhx/ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
" \"ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
")\n",
"hidden_size = 128\n",
"embedding_length = fasttext_vectors.size(1) # 300\n",
Expand Down Expand Up @@ -1910,7 +1910,8 @@
"name": "python3"
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "nma-dl",
"language": "python",
"name": "python3"
},
"language_info": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "9e62340e",
"id": "760a5442",
"metadata": {
"colab_type": "text",
"execution": {},
Expand Down Expand Up @@ -113,11 +113,11 @@
},
"outputs": [],
"source": [
"# @title Install dependencies\n",
"!pip install nltk --quiet\n",
"!pip install fasttext --quiet\n",
"!pip install -U datasets --quiet\n",
"!pip install -U tokenizers --quiet"
"# @title Uncomment to install dependencies\n",
"# !pip install nltk --quiet\n",
"# !pip install fasttext --quiet\n",
"# !pip install -U datasets --quiet\n",
"# !pip install -U tokenizers==0.22.2 --quiet"
]
},
{
Expand Down Expand Up @@ -1766,7 +1766,7 @@
"source": [
"tokenizer = get_tokenizer(fasttext_vocab)\n",
"num_class, train_data, valid_data, test_data = load_dataset(\n",
" \"fancyzhx/ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
" \"ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
")\n",
"hidden_size = 128\n",
"embedding_length = fasttext_vectors.size(1) # 300\n",
Expand Down Expand Up @@ -1912,7 +1912,8 @@
"name": "python3"
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "nma-dl",
"language": "python",
"name": "python3"
},
"language_info": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "bcd0131c",
"id": "8626dc97",
"metadata": {
"colab_type": "text",
"execution": {},
Expand Down Expand Up @@ -113,11 +113,11 @@
},
"outputs": [],
"source": [
"# @title Install dependencies\n",
"!pip install nltk --quiet\n",
"!pip install fasttext --quiet\n",
"!pip install -U datasets --quiet\n",
"!pip install -U tokenizers --quiet"
"# @title Uncomment to install dependencies\n",
"# !pip install nltk --quiet\n",
"# !pip install fasttext --quiet\n",
"# !pip install -U datasets --quiet\n",
"# !pip install -U tokenizers==0.22.2 --quiet"
]
},
{
Expand Down Expand Up @@ -1686,7 +1686,7 @@
"source": [
"tokenizer = get_tokenizer(fasttext_vocab)\n",
"num_class, train_data, valid_data, test_data = load_dataset(\n",
" \"fancyzhx/ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
" \"ag_news\", tokenizer, device=DEVICE, seed=1, batch_size=32, valid_split=0.7\n",
")\n",
"hidden_size = 128\n",
"embedding_length = fasttext_vectors.size(1) # 300\n",
Expand Down Expand Up @@ -1832,7 +1832,8 @@
"name": "python3"
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "nma-dl",
"language": "python",
"name": "python3"
},
"language_info": {
Expand Down
15 changes: 8 additions & 7 deletions tutorials/W3D1_AttentionAndTransformers/W3D1_Tutorial1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "dd45a284",
"id": "b0c8af02",
"metadata": {
"colab_type": "text",
"execution": {},
Expand Down Expand Up @@ -116,11 +116,11 @@
},
"outputs": [],
"source": [
"# @title Install dependencies\n",
"!pip install tensorboard --quiet\n",
"!pip install -U transformers --quiet\n",
"!pip install -U datasets --quiet\n",
"!pip install fasttext --quiet"
"# @title Uncomment to install dependencies\n",
"# !pip install tensorboard --quiet\n",
"# !pip install -U transformers --quiet\n",
"# !pip install -U datasets --quiet\n",
"# !pip install fasttext --quiet"
]
},
{
Expand Down Expand Up @@ -2852,7 +2852,8 @@
"name": "python3"
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "nma-dl",
"language": "python",
"name": "python3"
},
"language_info": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "ebad91d4",
"id": "0bcb7794",
"metadata": {
"colab_type": "text",
"execution": {},
Expand Down Expand Up @@ -116,11 +116,11 @@
},
"outputs": [],
"source": [
"# @title Install dependencies\n",
"!pip install tensorboard --quiet\n",
"!pip install -U transformers --quiet\n",
"!pip install -U datasets --quiet\n",
"!pip install fasttext --quiet"
"# @title Uncomment to install dependencies\n",
"# !pip install tensorboard --quiet\n",
"# !pip install -U transformers --quiet\n",
"# !pip install -U datasets --quiet\n",
"# !pip install fasttext --quiet"
]
},
{
Expand Down Expand Up @@ -2860,7 +2860,8 @@
"name": "python3"
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "nma-dl",
"language": "python",
"name": "python3"
},
"language_info": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "d467cfb2",
"id": "080759fb",
"metadata": {
"colab_type": "text",
"execution": {},
Expand Down Expand Up @@ -116,11 +116,11 @@
},
"outputs": [],
"source": [
"# @title Install dependencies\n",
"!pip install tensorboard --quiet\n",
"!pip install -U transformers --quiet\n",
"!pip install -U datasets --quiet\n",
"!pip install fasttext --quiet"
"# @title Uncomment to install dependencies\n",
"# !pip install tensorboard --quiet\n",
"# !pip install -U transformers --quiet\n",
"# !pip install -U datasets --quiet\n",
"# !pip install fasttext --quiet"
]
},
{
Expand Down Expand Up @@ -2555,7 +2555,8 @@
"name": "python3"
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "nma-dl",
"language": "python",
"name": "python3"
},
"language_info": {
Expand Down