Skip to content

Commit

Permalink
Merge pull request #625 from anthonyduong9/fix-demos-pip-install-pack…
Browse files Browse the repository at this point in the history
…ages-from-unfound-repos

Fix demos pip install packages from unfound repos
  • Loading branch information
bryce13950 authored Jun 6, 2024
2 parents 9321ca0 + 55cca8b commit 2ee51c5
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion demos/Activation_Patching_in_TL_Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
" print(\"Running as a Colab notebook\")\n",
" %pip install git+https://github.com/TransformerLensOrg/TransformerLens.git\n",
" # Install my janky personal plotting utils\n",
" %pip install git+https://github.com/TransformerLensOrg/neel-plotly.git\n",
" %pip install git+https://github.com/neelnanda-io/neel-plotly.git\n",
"except:\n",
" IN_COLAB = False\n",
" print(\"Running as a Jupyter notebook - intended for development only!\")\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/Attribution_Patching_Demo.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demos/BERT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
" # PySvelte is an unmaintained visualization library, use it as a backup if circuitsvis isn't working\n",
" # # Install another version of node that makes PySvelte work way faster\n",
" # !curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -; sudo apt-get install -y nodejs\n",
" # %pip install git+https://github.com/TransformerLensOrg/PySvelte.git\n",
" # %pip install git+https://github.com/neelnanda-io/PySvelte.git\n",
"except:\n",
" IN_COLAB = False\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions demos/Grokking_Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
" # PySvelte is an unmaintained visualization library, use it as a backup if circuitsvis isn't working\n",
" # # Install another version of node that makes PySvelte work way faster\n",
" # !curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -; sudo apt-get install -y nodejs\n",
" # %pip install git+https://github.com/TransformerLensOrg/PySvelte.git\n",
" # %pip install git+https://github.com/neelnanda-io/PySvelte.git\n",
"except:\n",
" IN_COLAB = False\n",
" print(\"Running as a Jupyter notebook - intended for development only!\")\n",
Expand Down Expand Up @@ -932,7 +932,7 @@
}
],
"source": [
"%pip install git+https://github.com/TransformerLensOrg/neel-plotly.git \n",
"%pip install git+https://github.com/neelnanda-io/neel-plotly.git \n",
"from neel_plotly.plot import line\n",
"line([train_losses[::100], test_losses[::100]], x=np.arange(0, len(train_losses), 100), xaxis=\"Epoch\", yaxis=\"Loss\", log_y=True, title=\"Training Curve for Modular Addition\", line_labels=['train', 'test'], toggle_x=True, toggle_y=True)"
]
Expand Down
12 changes: 6 additions & 6 deletions demos/Head_Detector_Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@
"Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.10/dist-packages (from sympy->torch>=1.10->transformer-lens==0.0.0) (1.3.0)\n",
"Requirement already satisfied: smmap<6,>=3.0.1 in /usr/local/lib/python3.10/dist-packages (from gitdb<5,>=4.0.1->GitPython!=3.1.29,>=1.0.0->wandb>=0.13.5->transformer-lens==0.0.0) (5.0.0)\n",
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
"Collecting git+https://github.com/TransformerLensOrg/neel-plotly.git\n",
" Cloning https://github.com/TransformerLensOrg/neel-plotly.git to /tmp/pip-req-build-u8mujxc3\n",
" Running command git clone --filter=blob:none --quiet https://github.com/TransformerLensOrg/neel-plotly.git /tmp/pip-req-build-u8mujxc3\n",
" Resolved https://github.com/TransformerLensOrg/neel-plotly.git to commit 6dc096fdc575da978d3e56489f2347d95cd397e7\n",
"Collecting git+https://github.com/neelnanda-io/neel-plotly.git\n",
" Cloning https://github.com/neelnanda-io/neel-plotly.git to /tmp/pip-req-build-u8mujxc3\n",
" Running command git clone --filter=blob:none --quiet https://github.com/neelnanda-io/neel-plotly.git /tmp/pip-req-build-u8mujxc3\n",
" Resolved https://github.com/neelnanda-io/neel-plotly.git to commit 6dc096fdc575da978d3e56489f2347d95cd397e7\n",
" Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
"Requirement already satisfied: einops in /usr/local/lib/python3.10/dist-packages (from neel-plotly==0.0.0) (0.6.1)\n",
"Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from neel-plotly==0.0.0) (1.24.3)\n",
Expand Down Expand Up @@ -318,10 +318,10 @@
"if IN_COLAB or IN_GITHUB:\n",
" %pip install git+https://github.com/TransformerLensOrg/TransformerLens.git\n",
" # Install Neel's personal plotting utils\n",
" %pip install git+https://github.com/TransformerLensOrg/neel-plotly.git\n",
" %pip install git+https://github.com/neelnanda-io/neel-plotly.git\n",
" # Install another version of node that makes PySvelte work way faster\n",
" !curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -; sudo apt-get install -y nodejs\n",
" %pip install git+https://github.com/TransformerLensOrg/PySvelte.git\n",
" %pip install git+https://github.com/neelnanda-io/PySvelte.git\n",
" # Needed for PySvelte to work, v3 came out and broke things...\n",
" %pip install typeguard==2.13.3\n",
" %pip install typing-extensions"
Expand Down
2 changes: 1 addition & 1 deletion demos/Othello_GPT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
" # PySvelte is an unmaintained visualization library, use it as a backup if circuitsvis isn't working\n",
" # # Install another version of node that makes PySvelte work way faster\n",
" # !curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -; sudo apt-get install -y nodejs\n",
" # %pip install git+https://github.com/TransformerLensOrg/PySvelte.git\n",
" # %pip install git+https://github.com/neelnanda-io/PySvelte.git\n",
"except:\n",
" IN_COLAB = False\n",
" print(\"Running as a Jupyter notebook - intended for development only!\")\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/Qwen.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
" # PySvelte is an unmaintained visualization library, use it as a backup if circuitsvis isn't working\n",
" # # Install another version of node that makes PySvelte work way faster\n",
" # !curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -; sudo apt-get install -y nodejs\n",
" # %pip install git+https://github.com/TransformerLensOrg/PySvelte.git\n",
" # %pip install git+https://github.com/neelnanda-io/PySvelte.git\n",
"except:\n",
" IN_COLAB = False\n",
" print(\"Running as a Jupyter notebook - intended for development only!\")\n",
Expand Down
4 changes: 2 additions & 2 deletions demos/SVD_Interpreter_Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
" print(\"Running as a Colab notebook\")\n",
" %pip install git+https://github.com/JayBaileyCS/TransformerLens.git # TODO: Change!\n",
" # Install Neel's personal plotting utils\n",
" %pip install git+https://github.com/TransformerLensOrg/neel-plotly.git\n",
" %pip install git+https://github.com/neelnanda-io/neel-plotly.git\n",
" # Install another version of node that makes PySvelte work way faster\n",
" !curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -; sudo apt-get install -y nodejs\n",
" %pip install git+https://github.com/TransformerLensOrg/PySvelte.git\n",
" %pip install git+https://github.com/neelnanda-io/PySvelte.git\n",
" # Needed for PySvelte to work, v3 came out and broke things...\n",
" %pip install typeguard==2.13.3\n",
" %pip install typing-extensions\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/Santa_Coder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
" # PySvelte is an unmaintained visualization library, use it as a backup if circuitsvis isn't working\n",
" # # Install another version of node that makes PySvelte work way faster\n",
" # !curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -; sudo apt-get install -y nodejs\n",
" # %pip install git+https://github.com/TransformerLensOrg/PySvelte.git\n",
" # %pip install git+https://github.com/neelnanda-io/PySvelte.git\n",
"except:\n",
" IN_COLAB = False\n",
" print(\"Running as a Jupyter notebook - intended for development only!\")\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/Tracr_to_Transformer_Lens_Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
" print(\"Running as a Colab notebook\")\n",
" %pip install transformer_lens\n",
" # Fork of Tracr that's backward compatible with Python 3.8\n",
" %pip install git+https://github.com/TransformerLensOrg/Tracr\n",
" %pip install git+https://github.com/neelnanda-io/Tracr\n",
" \n",
"except:\n",
" IN_COLAB = False\n",
Expand Down

0 comments on commit 2ee51c5

Please sign in to comment.