setup_grafzahl | R Documentation |
Install a self-contained miniconda environment with all Python components (PyTorch, Transformers, Simpletransformers, etc) which grafzahl required. The default location is "~/.local/share/r-miniconda/envs/grafzahl_condaenv" (suffix "_cuda" is added if cuda
is TRUE
).
On Linux or Mac and if miniconda is not found, this function will also install miniconda. The path can be changed by the environment variable GRAFZAHL_MINICONDA_PATH
setup_grafzahl(cuda = FALSE, force = FALSE, cuda_version = "11.3")
cuda |
logical, if |
force |
logical, if |
cuda_version |
character, indicate CUDA version, ignore if |
TRUE (invisibly) if installation is successful.
# setup an environment with cuda enabled.
if (detect_conda() && interactive()) {
setup_grafzahl(cuda = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.