Skip to content

Support symlink=False for from_single_file download. #11035

@jlonge4

Description

@jlonge4

Is your feature request related to a problem? Please describe.

When downloading from single file, take flux-dev-fp8 for example, the other pipeline components are loaded, but with a multi directory layout including symlinks (eg snapshots, blobs, etc).

This is a problem when trying to compress the downloaded components for deployment (think model.tar.gz for sagemaker).

Describe the solution you'd like.

It would be awesome to have a symlinks=False parameter like snapshot_download used to have prior to being deprecated.

Describe alternatives you've considered.

The alternative for me in this case was to download from single file locally, remove symlinks manually, and save the fp8 version of the flux dev pipeline to the hub.

Additional context.
Jlonge4/flux-dev-fp8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions