Skip to content

Reduce runtime memory for multilang tts #1622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Spycsh
Copy link
Member

@Spycsh Spycsh commented Apr 24, 2025

Description

Reduce runtime memory for multilang tts
Remove the .git/ and histories from the downloaded HF model repo

Issues

na

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

na

Tests

ut

@Spycsh Spycsh force-pushed the reduce_runtime_memory branch from c95f8f2 to cd85605 Compare April 24, 2025 03:15
Copy link
Contributor

@eero-t eero-t left a comment

Choose a reason for hiding this comment

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

Approved.

PS. AFAIK * pattern should skip dot files & dot dirs, so removing .git dir before mv is probably not needed. And because original repo dir is removed afterwards, .git dir history should also go away with it, so I think --depth arg addition actually affects only the Git repo download size, not final disk usage. It's still optimization, and I like this PR making extra data exclusion more explicit.

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.

3 participants