tahamajs/RR / Docs /module_metadata /erc_svd.json
tahamajs's picture
download
raw
1.09 kB
{
"module_name": "erc_svd",
"class_name": "ERCCompressor",
"category": "compression",
"family": "compression",
"params": [
"model",
"allowed_error",
"rank",
"target_modules"
],
"ops": [
"linear",
"matmul",
"norm",
"softmax"
],
"docstring": "Error-Controlled SVD (ERC-SVD) Compressor.\n\nFinds the minimal rank r for each linear layer such that the relative Frobenius reconstruction\nerror ||W - W_r||_F / ||W||_F is guaranteed to be <= allowed_error (i.e. singular energy retention\nsum_{i=1}^r sigma_i^2 / sum_j sigma_j^2 >= 1 - allowed_error^2). Factorizes weights symmetrically\n(U_r * sqrt(Sigma_r), sqrt(Sigma_r) * V_r^T) and replaces nn.Linear with SVDLinear modules.\n\nArgs:\n model: PyTorch model.\n allowed_error: Relative Frobenius error tolerance epsilon in (0, 1).\n rank: Optional maximum rank ceiling.\n target_modules: Optional list of layer name filters.",
"rank": 32,
"d_state": 1,
"num_experts": 1,
"top_k": 1,
"sparsity_pct": 0.0,
"bits": 4,
"hash_val": 307094973207436427639730589389218880665
}

Xet Storage Details

Size:
1.09 kB
·
Xet hash:
9658ffcc289eca755f09e89199d064e01d7d644dbbe32d2aecbe159897173635

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