Skip to content

Commit

Permalink
added the pytorch cuda cell to the torch_to_jax demo
Browse files Browse the repository at this point in the history
  • Loading branch information
vedpatwardhan committed Feb 20, 2024
1 parent a806ae3 commit d5dd40c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples_and_demos/torch_to_jax.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,19 @@
"After transpiling our model, we can see what's the improvement in runtime efficiency like. For this let's compile the original PyTorch model using `torch.compile`"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# ref : https://github.com/pytorch/pytorch/issues/107960\n",
"!export LC_ALL=\"en_US.UTF-8\"\n",
"!export LD_LIBRARY_PATH=\"/usr/lib64-nvidia\"\n",
"!export LIBRARY_PATH=\"/usr/local/cuda/lib64/stubs\"\n",
"!ldconfig /usr/lib64-nvidia"
]
},
{
"cell_type": "code",
"execution_count": 6,
Expand Down

0 comments on commit d5dd40c

Please sign in to comment.