Skip to content

Commit

Permalink
fix colab
Browse files Browse the repository at this point in the history
  • Loading branch information
HomerW committed Aug 22, 2024
1 parent 40b249f commit e662a08
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions inference_pretrained.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,25 @@
"First, let's start with a minimal example!"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ca93d021",
"metadata": {},
"outputs": [],
"source": [
"# run this block if you're using Colab\n",
"\n",
"# Download repo\n",
"!git clone https://github.com/rail-berkeley/crossformer.git\n",
"%cd crossformer\n",
"# Install repo\n",
"!pip3 install -e .\n",
"!pip3 install -r requirements.txt\n",
"!pip3 install --upgrade \"jax[cuda11_pip]==0.4.20\" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html\n",
"!pip install numpy==1.21.1 # to fix colab AttributeError: module 'numpy' has no attribute '_no_nep50_warning', if the error still shows reload"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit e662a08

Please sign in to comment.