Download torch-ext/torch_binding.cpp from robtaylor-chipflow/rotary-embedding: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/robtaylor-chipflow/rotary-embedding/resolve/main/torch-ext/torch_binding.cpp
- Command line
-
hf download hf://robtaylor-chipflow/rotary-embedding/torch-ext/torch_binding.cpp
-
curl -L -o torch_binding.cpp https://huggingface.co/robtaylor-chipflow/rotary-embedding/resolve/main/torch-ext/torch_binding.cpp
465 Bytes
| TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { | |
| ops.def("rotary_embedding(Tensor positions, Tensor! query," | |
| " Tensor!? key, int head_size," | |
| " Tensor cos_sin_cache, bool is_neox) -> ()"); | |
| ops.impl("rotary_embedding", torch::kMPS, rotary_embedding); | |
| } | |
| REGISTER_EXTENSION(TORCH_EXTENSION_NAME) | |