svp19 commited on
Commit
5a6e5b2
·
1 Parent(s): 2842d35

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -43,7 +43,7 @@ class INF5Model(PreTrainedModel):
43
  self.vocoder = torch.compile(load_vocoder(vocoder_name="vocos", is_local=False, device=device))
44
 
45
  # Download and load model weights
46
- safetensors_path = hf_hub_download(config.name_or_path, filename="model.safetensors")
47
  print(f"Loading model weights from {safetensors_path} (safetensors)...")
48
  state_dict = load_file(safetensors_path, device=str(device))
49
 
 
43
  self.vocoder = torch.compile(load_vocoder(vocoder_name="vocos", is_local=False, device=device))
44
 
45
  # Download and load model weights
46
+ # safetensors_path = hf_hub_download(config.name_or_path, filename="model.safetensors")
47
  print(f"Loading model weights from {safetensors_path} (safetensors)...")
48
  state_dict = load_file(safetensors_path, device=str(device))
49