svp19 commited on
Commit
cd61fb5
·
1 Parent(s): 90dfc08

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +0 -3
model.py CHANGED
@@ -50,9 +50,6 @@ class INF5Model(PreTrainedModel):
50
  # Download vocab.txt from HF Hub
51
  vocab_path = hf_hub_download(config.name_or_path, filename="checkpoints/vocab.txt")
52
 
53
- self.ema_model.to(self.device)
54
- self.vocoder.to(self.device)
55
-
56
  self.ema_model = torch.compile(load_model(
57
  DiT,
58
  dict(dim=1024, depth=22, heads=16, ff_mult=2, text_dim=512, conv_layers=4),
 
50
  # Download vocab.txt from HF Hub
51
  vocab_path = hf_hub_download(config.name_or_path, filename="checkpoints/vocab.txt")
52
 
 
 
 
53
  self.ema_model = torch.compile(load_model(
54
  DiT,
55
  dict(dim=1024, depth=22, heads=16, ff_mult=2, text_dim=512, conv_layers=4),