-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrate to ariautils * add grad_acc_steps * update tests
- Loading branch information
Showing
11 changed files
with
139 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""Contains utils.""" | ||
|
||
|
||
def _load_weight(ckpt_path: str, device="cpu"): | ||
if ckpt_path.endswith("safetensors"): | ||
try: | ||
from safetensors.torch import load_file | ||
except ImportError as e: | ||
raise ImportError( | ||
f"Please install safetensors in order to read from the checkpoint: {ckpt_path}" | ||
) from e | ||
return load_file(ckpt_path, device=device) | ||
else: | ||
import torch | ||
|
||
return torch.load(ckpt_path, map_location=device) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
aria @ git+https://github.com/EleutherAI/aria.git | ||
ariautils @ git+https://github.com/EleutherAI/aria-utils.git | ||
torch >= 2.3 | ||
torchaudio | ||
accelerate | ||
psutil | ||
librosa | ||
mido | ||
tqdm | ||
orjson | ||
mir_eval | ||
mir_eval |
Oops, something went wrong.