Instructions to use galqiwi/hadamard_transform_kernels with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use galqiwi/hadamard_transform_kernels 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("galqiwi/hadamard_transform_kernels", version=1) - Notebooks
- Google Colab
- Kaggle
Download torch-ext/torch_binding.cpp from galqiwi/hadamard_transform_kernels: direct link, hf CLI and curl.
- Browser
- Download file 384 Bytes
-
https://huggingface.co/galqiwi/hadamard_transform_kernels/resolve/main/torch-ext/torch_binding.cpp
- Command line
-
hf download hf://galqiwi/hadamard_transform_kernels/torch-ext/torch_binding.cpp
-
curl -L -o torch_binding.cpp https://huggingface.co/galqiwi/hadamard_transform_kernels/resolve/main/torch-ext/torch_binding.cpp
384 Bytes
| TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { | |
| ops.def("hadamard_transform(Tensor! out, Tensor input, float scale) -> ()"); | |
| ops.impl("hadamard_transform", torch::kCUDA, &hadamard_transform); | |
| } | |
| REGISTER_EXTENSION(TORCH_EXTENSION_NAME) | |