llmcompressor.entrypoints.model_free.reindex_fused_weights
Functions:
-
reindex_fused_weights–This function is deprecated. The reindexing step is no longer necessary for
reindex_fused_weights
This function is deprecated. The reindexing step is no longer necessary for model_free_ptq with microscale schemes (NVFP4A16, MXFP4A16).
Previously, this script was used to reindex safetensors files so that all fused modules (gate_up, qkv) were in the same safetensors file. This is now handled automatically by model_free_ptq.
Parameters:
-
model_stub(str) –huggingface model hub or path to local weights files
-
save_directory(str) –output directory for reindexed weights files
-
num_workers(int, default:5) –number of worker threads to save files with