Skip to content

Commit

Permalink
Remove sed patch for jax 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Dec 28, 2023
1 parent 5fd3a84 commit 4e9714a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions AlphaFold2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@
" os.system(\"pip install -q --no-warn-conflicts 'colabfold[alphafold-minus-jax] @ git+https://github.com/sokrypton/ColabFold'\")\n",
" os.system(\"ln -s /usr/local/lib/python3.*/dist-packages/colabfold colabfold\")\n",
" os.system(\"ln -s /usr/local/lib/python3.*/dist-packages/alphafold alphafold\")\n",
" # patch for jax > 0.3.25\n",
" os.system(\"sed -i 's/weights = jax.nn.softmax(logits)/logits=jnp.clip(logits,-1e8,1e8);weights=jax.nn.softmax(logits)/g' alphafold/model/modules.py\")\n",
" os.system(\"touch COLABFOLD_READY\")\n",
"\n",
"if USE_AMBER or USE_TEMPLATES:\n",
Expand Down
1 change: 0 additions & 1 deletion batch/AlphaFold2_batch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
" pip install -q --no-warn-conflicts \"colabfold[alphafold-minus-jax] @ git+https://github.com/sokrypton/ColabFold\"\n",
" ln -s /usr/local/lib/python3.*/dist-packages/colabfold colabfold\n",
" ln -s /usr/local/lib/python3.*/dist-packages/alphafold alphafold\n",
" sed -i 's/weights = jax.nn.softmax(logits)/logits=jnp.clip(logits,-1e8,1e8);weights=jax.nn.softmax(logits)/g' alphafold/model/modules.py\n",
" touch COLABFOLD_READY\n",
"fi\n",
"\n",
Expand Down

0 comments on commit 4e9714a

Please sign in to comment.