Download build/torch-universal/_ops.py from replicate/flash-attn-cute: direct link, hf CLI and curl.
- Browser
- Download file 191 Bytes
-
https://huggingface.co/replicate/flash-attn-cute/resolve/main/build/torch-universal/_ops.py
- Command line
-
hf download hf://replicate/flash-attn-cute/build/torch-universal/_ops.py
-
curl -L -o _ops.py https://huggingface.co/replicate/flash-attn-cute/resolve/main/build/torch-universal/_ops.py
191 Bytes
| import torch | |
| ops = torch.ops._flash_attn_cute_d347f27 | |
| def add_op_namespace_prefix(op_name: str): | |
| """ | |
| Prefix op by namespace. | |
| """ | |
| return f"_flash_attn_cute_d347f27::{op_name}" |