tahamajs/RR / Docs /module_metadata /compot_compressor.json
tahamajs's picture
download
raw
1 kB
{
"module_name": "compot_compressor",
"class_name": "COMPOTCompressor",
"category": "compression",
"family": "compression",
"params": [
"in_features",
"out_features",
"rank",
"bias",
"dtype",
"device",
"model",
"calibration_texts",
"tokenizer",
"cfg",
"target_layers"
],
"ops": [
"reshape",
"linear",
"view"
],
"docstring": "COMPOT (Compressed Orthogonal Dictionary Learning) Compressor.\nLearns a low-rank basis from activation QR decompositions and compresses\nlinear layers into factorized COMPOTLinear modules.\n\nArgs:\n model: PyTorch model.\n rank: Target rank for factorization.\n calibration_texts: Optional calibration texts.\n tokenizer: Optional tokenizer.\n cfg: Optional configuration object.\n target_layers: Optional target layer filter.",
"rank": 32,
"d_state": 1,
"num_experts": 1,
"top_k": 1,
"sparsity_pct": 0.0,
"bits": 4,
"hash_val": 180748376431327030690668207549126466182
}

Xet Storage Details

Size:
1 kB
·
Xet hash:
2b3f9a886d0913b359b77bb331a97996bb8c0916e2dc953d951edf3e46aaa1d1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.