Views
No views yet
1import torch
2from huggingface_hub import hf_hub_download
3
4# Download sparse model and bridges
5sparse_model_path = hf_hub_download(repo_id="jacobcd52/ss_d3072_f0.0039", filename="sparse_model.bin")
6bridges_path = hf_hub_download(repo_id="jacobcd52/ss_d3072_f0.0039", filename="bridges.bin")
7config_path = hf_hub_download(repo_id="jacobcd52/ss_d3072_f0.0039", 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)