Skip to content

[Bug] Model download progress halts at a fraction of 100% due to full-repo sizing #150

Description

@akramcodez

Description

The Python script gets total repo size using total_size = sum(s.size for s in siblings). This calculates the size of all files on HuggingFace, including multiple quantizations. As MLX downloads only a subset, the progress percent stops early (e.g., at 20%) and jumps abruptly to "done".

Environment

  • macOS version: macOS 14.0
  • Apple Silicon: M2
  • Node version: v22.0.0
  • Python version: 3.12
  • Nanotune version: 1.7.0

Steps to Reproduce

  1. Download a large HuggingFace repository containing both .bin and .safetensors files using nanotune.
  2. Observe the download progress bar.

Expected Behavior

The progress bar goes smoothly from 0 to 100%.

Actual Behavior

The progress bar stops at ~50% and abruptly finishes.

Logs/Screenshots

N/A

Additional Context

  • I have searched existing issues to ensure this is not a duplicate
  • I can reproduce this issue consistently
  • This issue occurs with the latest version of nanotune

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions