Spaces:
Sleeping
Sleeping
Hugo Flores Garcia
commited on
Commit
•
421682e
1
Parent(s):
31b771c
compile is back
Browse files- scripts/exp/train.py +2 -2
scripts/exp/train.py
CHANGED
@@ -513,14 +513,14 @@ def load(
|
|
513 |
|
514 |
if args["fine_tune"]:
|
515 |
assert fine_tune_checkpoint is not None, "Must provide a fine-tune checkpoint"
|
516 |
-
model = (
|
517 |
VampNet.load(location=Path(fine_tune_checkpoint),
|
518 |
map_location="cpu",
|
519 |
)
|
520 |
)
|
521 |
|
522 |
|
523 |
-
model = VampNet() if model is None else model
|
524 |
model = accel.prepare_model(model)
|
525 |
|
526 |
# assert accel.unwrap(model).n_codebooks == codec.quantizer.n_codebooks
|
|
|
513 |
|
514 |
if args["fine_tune"]:
|
515 |
assert fine_tune_checkpoint is not None, "Must provide a fine-tune checkpoint"
|
516 |
+
model = torch.compile(
|
517 |
VampNet.load(location=Path(fine_tune_checkpoint),
|
518 |
map_location="cpu",
|
519 |
)
|
520 |
)
|
521 |
|
522 |
|
523 |
+
model = torch.compile(VampNet()) if model is None else model
|
524 |
model = accel.prepare_model(model)
|
525 |
|
526 |
# assert accel.unwrap(model).n_codebooks == codec.quantizer.n_codebooks
|