feat: use bitsqueeze as communication compression library to replace the previous quantization/k_quantization/sparsity. Also add a new argument call comm_compression_threshold to allow user can set a threshold for compression (good for only compress prefilling tokens)

This commit is contained in:
DandinPower
2025-12-06 21:08:10 +08:00
parent f90029e3c3
commit 73969b44b1
15 changed files with 282 additions and 902 deletions
+1
View File
@@ -2116,6 +2116,7 @@ struct llama_context_params llama_context_params_from_gpt_params(const gpt_param
}
cparams.comm_sparse_percentage = params.comm_sparse_percentage;
cparams.comm_compression_threshold = params.comm_compression_threshold;
cparams.n_ctx = params.n_ctx;
cparams.n_predict = params.n_predict;