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
File size: 319 Bytes
96cb0ff 1839df4 96cb0ff | 1 2 3 4 5 6 7 8 9 | #include <torch/extension.h>
#include "torch_binding.h"
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);
}
|