Download shapequant/__init__.py from Angshul/Shapequant: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/Angshul/Shapequant/resolve/main/shapequant/__init__.py
- Command line
-
hf download hf://Angshul/Shapequant/shapequant/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Angshul/Shapequant/resolve/main/shapequant/__init__.py
495 Bytes
| """shapequant: data-free, training-free noise-shaped quantization of Hugging Face causal LMs.""" | |
| from .quantize import quantize_model, allocate | |
| from .qlinear import load_quantized, QuantLinear | |
| from .evaluate import perplexity, wikitext2_windows, windows_from_text | |
| from .memory import estimate as estimate_memory | |
| __version__ = "0.1.0" | |
| __all__ = ["quantize_model", "allocate", "load_quantized", "QuantLinear", "perplexity", "wikitext2_windows", | |
| "windows_from_text", "estimate_memory"] | |