Skip to content

small fix replacing download_file with fetch#10877

Merged
chenyuxyz merged 3 commits intotinygrad:masterfrom
NinoRisteski:sovits-imports-fix
Jun 19, 2025
Merged

small fix replacing download_file with fetch#10877
chenyuxyz merged 3 commits intotinygrad:masterfrom
NinoRisteski:sovits-imports-fix

Conversation

@NinoRisteski
Copy link
Contributor

i added os as it was missing and replaced download file with fetch from helpers

@@ -20,7 +20,7 @@
F0_MEL_MAX = 1127 * np.log(1 + F0_MAX / 700)

def download_if_not_present(file_path: Path, url: str):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this function and just use fetch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, made those changes in the latest commit.

@github-actions
Copy link
Contributor

This branch currently is behind tinygrad/master. The line count difference bot is disabled.

@classmethod
def load_from_pretrained(cls, checkpoint_path:str, checkpoint_url:str) -> ContentVec:
download_if_not_present(checkpoint_path, checkpoint_url)
if not os.path.isfile(checkpoint_path): fetch(checkpoint_url, checkpoint_path)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still need if not os.path.isfile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right. sorry for rushing. removed those

@chenyuxyz
Copy link
Collaborator

have you tested this from a fresh env so made sure it works?

also please update pr title

@NinoRisteski NinoRisteski changed the title small fixes on missing os and added fetch small fix replacing download_file with fetch Jun 19, 2025
@NinoRisteski
Copy link
Contributor Author

have you tested this from a fresh env so made sure it works?

yes, fetch works for me.

also please update pr title

updated

@chenyuxyz chenyuxyz merged commit 5a56710 into tinygrad:master Jun 19, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants