Instructions to use replicate/quantization-bitsandbytes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/quantization-bitsandbytes 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("replicate/quantization-bitsandbytes", version=1) - Notebooks
- Google Colab
- Kaggle
Download build/torch211-cxx11-cpu-x86_64-linux/__init__.py from replicate/quantization-bitsandbytes: direct link, hf CLI and curl.
- Browser
- Download file 74 Bytes
-
https://huggingface.co/replicate/quantization-bitsandbytes/resolve/main/build/torch211-cxx11-cpu-x86_64-linux/__init__.py
- Command line
-
hf download hf://replicate/quantization-bitsandbytes/build/torch211-cxx11-cpu-x86_64-linux/__init__.py
-
curl -L -o __init__.py https://huggingface.co/replicate/quantization-bitsandbytes/resolve/main/build/torch211-cxx11-cpu-x86_64-linux/__init__.py
74 Bytes
| from .custom_ops import gemm_4bit_forward | |
| __all__ = ["gemm_4bit_forward"] |