Skip to content

How to determine if a file is a safetensor file #649

@bernt-matthias

Description

@bernt-matthias

Is there a good and fast way to determine if a file is a safetensors file. We would like to avoid reading the whole header.

Background we are currently trying to add safetensors as a datatype to the Galaxy project: galaxyproject/galaxy#20754

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