Instructions to use replicate/quantization-eetq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/quantization-eetq 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-eetq", version=1) - Notebooks
- Google Colab
- Kaggle
Download torch-ext/quantization_eetq/__init__.py from replicate/quantization-eetq: direct link, hf CLI and curl.
- Browser
- Download file 167 Bytes
-
https://huggingface.co/replicate/quantization-eetq/resolve/8f7b5f05c1eef6061e33b4e67ce888eb3e558e44/torch-ext/quantization_eetq/__init__.py
- Command line
-
hf download hf://replicate/quantization-eetq@8f7b5f05c1eef6061e33b4e67ce888eb3e558e44/torch-ext/quantization_eetq/__init__.py
-
curl -L -o __init__.py https://huggingface.co/replicate/quantization-eetq/resolve/8f7b5f05c1eef6061e33b4e67ce888eb3e558e44/torch-ext/quantization_eetq/__init__.py
167 Bytes
| from .custom_ops import w8_a16_gemm, w8_a16_gemm_, preprocess_weights, quant_weights | |
| __all__ = ["w8_a16_gemm", "w8_a16_gemm_", "preprocess_weights", "quant_weights"] | |