Closed chainsawriot closed 5 months ago
Initial experiment suggests this is possible with Colab's R runtime.
system("python3 -m pip install simpletransformers", intern = TRUE)
install.packages("reticulate")
writeLines("import torch\ndef py_detect_cuda():\n return(torch.cuda.is_available())", "cuda2.py")
reticulate::source_python("cuda2.py")
py_detect_cuda()
Initial idea is to rewrite this:
The idea probably would be: Make grafzahl usable with non-Conda Python, e.g. the Python provided by Colab. As of writing, that's 3.8.
Install all the Python dependencies: pandas, emoji, tqdm, simpletransformers