Skip to content

fix(app): move (not copy) models from install tmpdir to destination #8351

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

Merged
merged 2 commits into from
Jul 29, 2025

Conversation

psychedelicious
Copy link
Collaborator

Summary

It's not clear why we were copying downloaded models to the destination dir instead of moving them. I cannot find a reason for it, and I am able to install single-file and diffusers models just fine with the change.

This fixes an issue where model installation requires 2x the model's size (bc we were copying the model over).

Related Issues / Discussions

CC @keturn who noticed this in #8268

QA Instructions

Install a diffusers and single-file model. Should work and generation should succeed afterwards.

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added python PRs that change python files services PRs that change app services labels Jul 29, 2025
@psychedelicious psychedelicious force-pushed the psyche/fix/app/mm-move-dont-copy branch from fe5cec5 to 693bba8 Compare July 29, 2025 03:50
@github-actions github-actions bot added the python-tests PRs that change python tests label Jul 29, 2025
It's not clear why we were copying downloaded models to the destination
dir instead of moving them. I cannot find a reason for it, and I am able
to install single-file and diffusers models just fine with the change.

This fixes an issue where model installation requires 2x the model's
size (bc we were copying the model over).
@psychedelicious psychedelicious force-pushed the psyche/fix/app/mm-move-dont-copy branch from afb1c2e to 62d5977 Compare July 29, 2025 06:03
@psychedelicious psychedelicious enabled auto-merge (rebase) July 29, 2025 06:03
@psychedelicious psychedelicious merged commit 3b0d59e into main Jul 29, 2025
12 checks passed
@psychedelicious psychedelicious deleted the psyche/fix/app/mm-move-dont-copy branch July 29, 2025 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python PRs that change python files python-tests PRs that change python tests services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants