Update model.py
Browse files
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),
|