Instructions to use cahlen/kronecker-cuda with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use cahlen/kronecker-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/kronecker-cuda", version=1) - Notebooks
- Google Colab
- Kaggle
Download torch-ext/torch_binding.cpp from cahlen/kronecker-cuda: direct link, hf CLI and curl.
- Browser
- Download file 253 Bytes
-
https://huggingface.co/cahlen/kronecker-cuda/resolve/main/torch-ext/torch_binding.cpp
- Command line
-
hf download hf://cahlen/kronecker-cuda/torch-ext/torch_binding.cpp
-
curl -L -o torch_binding.cpp https://huggingface.co/cahlen/kronecker-cuda/resolve/main/torch-ext/torch_binding.cpp
253 Bytes
| PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { | |
| m.doc() = "Kronecker Coefficients (Symmetric Group) CUDA kernel"; | |
| m.def("compute_kronecker", &compute_kronecker, py::arg("ct"), py::arg("z_inv")); | |
| } | |