Views
No views yet
1import torch
2from huggingface_hub import hf_hub_download
3
4# Download model and bridges
5sparse_model_path = hf_hub_download(repo_id="jacobcd52/ss_bridges_d4096_f0.002", filename="sparse_model.bin")
6bridges_path = hf_hub_download(repo_id="jacobcd52/ss_bridges_d4096_f0.002", filename="bridges.bin")
7config_path = hf_hub_download(repo_id="jacobcd52/ss_bridges_d4096_f0.002", filename="config.json")
8
9# Load (requires the SparseGPT and BridgeSet classes from this repo)
10sparse_state_dict = torch.load(sparse_model_path)
11bridges_state_dict = torch.load(bridges_path)