Kernels:
Trusted publisher
Download build/torch211-cpu-x86_64-linux/_ops.py from kernels-community/quantization-bitsandbytes: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/kernels/kernels-community/quantization-bitsandbytes/resolve/v1/build/torch211-cpu-x86_64-linux/_ops.py
- Command line
-
hf download hf://kernels-community/quantization-bitsandbytes@v1/build/torch211-cpu-x86_64-linux/_ops.py
-
curl -L -o _ops.py https://huggingface.co/kernels/kernels-community/quantization-bitsandbytes/resolve/v1/build/torch211-cpu-x86_64-linux/_ops.py
273 Bytes
| import torch | |
| from . import _quantization_bitsandbytes_cpu_5fe9dbb | |
| ops = torch.ops._quantization_bitsandbytes_cpu_5fe9dbb | |
| def add_op_namespace_prefix(op_name: str): | |
| """ | |
| Prefix op by namespace. | |
| """ | |
| return f"_quantization_bitsandbytes_cpu_5fe9dbb::{op_name}" | |