Instructions to use cahlen/ramanujan-machine-cuda with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use cahlen/ramanujan-machine-cuda with Kernels:
# !pip install kernels from kernels import get_kernel # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("cahlen/ramanujan-machine-cuda", version=1) - Notebooks
- Google Colab
- Kaggle
Download torch-ext/torch_binding.cpp from cahlen/ramanujan-machine-cuda: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/cahlen/ramanujan-machine-cuda/resolve/main/torch-ext/torch_binding.cpp
- Command line
-
hf download hf://cahlen/ramanujan-machine-cuda/torch-ext/torch_binding.cpp
-
curl -L -o torch_binding.cpp https://huggingface.co/cahlen/ramanujan-machine-cuda/resolve/main/torch-ext/torch_binding.cpp
319 Bytes
| PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { | |
| m.doc() = "Ramanujan Machine v2 (Asymmetric-Degree CF Search) CUDA kernel"; | |
| m.def("search", &search, py::arg("deg_a"), py::arg("deg_b"), | |
| py::arg("range_a"), py::arg("range_b"), py::arg("cf_depth") = 300); | |
| } | |