Skip to content

Commit

Permalink
refactor: BRANCH for notebooks (#9711)
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Koenig <[email protected]>
  • Loading branch information
ko3n1g authored and dimapihtar committed Aug 27, 2024
1 parent 2d73974 commit 25b66ac
Show file tree
Hide file tree
Showing 72 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion tutorials/00_NeMo_Primer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"!pip install text-unidecode\n",
"\n",
"# ## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"## Install TorchAudio\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/01_NeMo_Models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"!pip install text-unidecode\n",
"\n",
"# ## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"## Install TorchAudio\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/02_NeMo_Adapters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"!pip install text-unidecode\n",
"\n",
"# ## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"## Grab the config we'll use in this example\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/AudioTranslationSample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"outputs": [],
"source": [
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n"
]
},
Expand Down
2 changes: 1 addition & 1 deletion tutorials/Publish_NeMo_Model_On_Hugging_Face_Hub.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"!pip install text-unidecode\n",
"\n",
"### Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]"
]
},
Expand Down
2 changes: 1 addition & 1 deletion tutorials/VoiceSwapSample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"outputs": [],
"source": [
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n"
]
},
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/ASR_CTC_Language_Finetuning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"\"\"\"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/ASR_Confidence_Estimation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"outputs": [],
"source": [
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"\n",
"\"\"\"\n",
"You can run either this notebook locally (if you have all the dependencies and a GPU) or on Google Colab.\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/ASR_Context_Biasing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"metadata": {},
"outputs": [],
"source": [
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"\n",
"\"\"\"\n",
"You can run either this notebook locally (if you have all the dependencies and a GPU) or on Google Colab.\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/ASR_TTS_Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"metadata": {},
"outputs": [],
"source": [
"BRANCH = '2.0.0rc1'"
"BRANCH = 'r2.0.0rc1'"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/ASR_for_telephony_speech.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"## Grab the config we'll use in this example\n",
Expand Down
4 changes: 2 additions & 2 deletions tutorials/asr/ASR_with_NeMo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"\"\"\"\n",
Expand Down Expand Up @@ -588,7 +588,7 @@
"\n",
"if not os.path.exists(config_path):\n",
" # Grab the config we'll use in this example\n",
" BRANCH = '2.0.0rc1'\n",
" BRANCH = 'r2.0.0rc1'\n",
" !mkdir configs\n",
" !wget -P configs/ https://raw.githubusercontent.com/NVIDIA/NeMo/$BRANCH/examples/asr/conf/config.yaml\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/ASR_with_Subword_Tokenization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"## Grab the config we'll use in this example\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/ASR_with_Transducers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"## Grab the config we'll use in this example\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Buffered_Transducer_Inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"# Update numba and restart (this is required to update internal numba version of Colab)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"# Update numba and restart (this is required to update internal numba version of Colab)\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Confidence_Ensembles.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"\n",
"# option #2: download NeMo repo\n",
"if 'google.colab' in str(get_ipython()) or not os.path.exists(os.path.join(NEMO_DIR, \"nemo\")):\n",
" BRANCH = 'main'\n",
" BRANCH = 'r2.0.0rc1'\n",
" !git clone -b $BRANCH https://github.com/NVIDIA/NeMo $WORKSPACE_DIR/NeMo\n",
" NEMO_DIR = os.path.join(WORKSPACE_DIR, 'NeMo')\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Intro_to_Transducers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]"
],
"execution_count": null,
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Multilang_ASR.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"\n",
"## Install NeMo\n",
"## We are using the main branch but you might want to adjust that too\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"\"\"\"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Offline_ASR_with_VAD_for_CTC_models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"!pip install wget\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"\"\"\"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"!pip install pyaudio\n",
"\n",
"# ## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[asr]\n",
"\n",
"## Grab the config we'll use in this example\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"outputs": [],
"source": [
"# ## Uncomment this cell to install NeMo if it has not been installed\n",
"# BRANCH = '2.0.0rc1'\n",
"# BRANCH = 'r2.0.0rc1'\n",
"# !python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[asr]"
]
},
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Online_Noise_Augmentation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"!pip install text-unidecode\n",
"\n",
"# ## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[asr]\n",
"\n",
"## Install TorchAudio\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Online_Offline_Microphone_VAD_Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"!pip install pyaudio\n",
"\n",
"# ## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[asr]\n",
"\n",
"## Install TorchAudio\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Online_Offline_Speech_Commands_Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"!pip install pyaudio\n",
"\n",
"# ## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[asr]\n",
"\n",
"## Install TorchAudio\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Self_Supervised_Pre_Training.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"\"\"\"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Speech_Commands.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"!pip install text-unidecode\n",
"\n",
"# ## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[asr]\n",
"\n",
"## Install TorchAudio\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Streaming_ASR.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"## Grab the config we'll use in this example\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/Voice_Activity_Detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"!pip install text-unidecode\n",
"\n",
"# ## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[asr]\n",
"\n",
"## Install TorchAudio\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/asr/asr_adapters/ASR_with_Adapters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"## Grab the config we'll use in this example\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"\"\"\"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/cloud/aws/SageMaker_ASR_Training.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"!pip install matplotlib>=3.3.2\n",
"\n",
"## Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"\"\"\"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/multimodal/Multimodal Data Preparation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"! pip install img2dataset\n",
"\n",
"### Install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"# If you're using Google Colab and not running locally, run this cell\n",
"\n",
"# install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[nlp]"
]
},
Expand Down
4 changes: 2 additions & 2 deletions tutorials/nlp/02_NLP_Tokenizers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"outputs": [],
"source": [
"BRANCH = '2.0.0rc1'"
"BRANCH = 'r2.0.0rc1'"
]
},
{
Expand All @@ -35,7 +35,7 @@
"# If you're using Google Colab and not running locally, run this cell\n",
"\n",
"# install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[nlp]"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
"\n",
"## Install NeMo\n",
"\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all]\n",
"\n",
"!pip uninstall -y sacrebleu\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/nlp/ITN_with_Thutmose_Tagger.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"import os\n",
"\n",
"# install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"\n",
"GITHUB_ACCOUNT = 'NVIDIA' # change this if using a fork\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/nlp/Joint_Intent_and_Slot_Classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"# If you're using Google Colab and not running locally, run this cell\n",
"\n",
"# install NeMo\n",
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[nlp]"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"metadata": {},
"outputs": [],
"source": [
"BRANCH = '2.0.0rc1'\n",
"BRANCH = 'r2.0.0rc1'\n",
"DATA_PATH='.'\n",
"TRANSACTIONS=DATA_PATH+'/card_transaction.v1.csv'\n",
"#CHECKPOINTS='/chk_points'\n",
Expand Down
2 changes: 1 addition & 1 deletion tutorials/nlp/Punctuation_and_Capitalization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"BRANCH = '2.0.0rc1'"
"BRANCH = 'r2.0.0rc1'"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"outputs": [],
"source": [
"BRANCH = '2.0.0rc1'"
"BRANCH = 'r2.0.0rc1'"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/nlp/Relation_Extraction-BioMegatron.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"BRANCH = '2.0.0rc1'"
"BRANCH = 'r2.0.0rc1'"
]
},
{
Expand Down
Loading

0 comments on commit 25b66ac

Please sign in to comment.