Weight-sparse transformer trained with the procedure from Gao et al. (2025).
1import torch
2from huggingface_hub import hf_hub_download
3
4# Download model
5model_path = hf_hub_download(repo_id="asher577/dcpbeta325_dcploss_advkl_l0_0.05_actsp0.2_fixedp0.4_mlpmin0.1", filename="pytorch_model.bin")
6config_path = hf_hub_download(repo_id="asher577/dcpbeta325_dcploss_advkl_l0_0.05_actsp0.2_fixedp0.4_mlpmin0.1", filename="config.json")
7
8# Load (requires the SparseGPT model class from this repo)
9state_dict = torch.load(model_path)