Instructions to use Motif-Technologies/optimizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use Motif-Technologies/optimizer 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("Motif-Technologies/optimizer", version=1) - Notebooks
- Google Colab
- Kaggle
Download torch-ext/torch_binding.cpp from Motif-Technologies/optimizer: direct link, hf CLI and curl.
- Browser
- Download file 224 Bytes
-
https://huggingface.co/Motif-Technologies/optimizer/resolve/refs%2Fpr%2F3/torch-ext/torch_binding.cpp
- Command line
-
hf download hf://Motif-Technologies/optimizer@refs/pr/3/torch-ext/torch_binding.cpp
-
curl -L -o torch_binding.cpp https://huggingface.co/Motif-Technologies/optimizer/resolve/refs%2Fpr%2F3/torch-ext/torch_binding.cpp
224 Bytes
| TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { | |
| // Activation ops | |
| ops.def("dummy() -> ()"); | |
| } | |
| REGISTER_EXTENSION(TORCH_EXTENSION_NAME) | |