Skip to content

Safetensor file is not scaned, without any reason complained #290

@crystaldust

Description

@crystaldust

Describe the bug
When scan a safetensor file downloaded from huggingface, model scan skipped the file and gives no reason.

To Reproduce
Steps to reproduce the behavior:

  1. Download the model(safetensor format) from huggingface: https://huggingface.co/Qwen/Qwen3-0.6B/tree/main
  2. Run command modelscan scan -l DEBUG --show-skipped -p ./model.safetensors
  3. See error:
No settings file detected at $HOME/modelscan-settings.toml. Using defaults. 


--- Summary ---

 No issues found! 🎉

--- Skipped --- 

Total skipped: 1 - run with --show-skipped to see the full list.

Skipped files list:

The following file $HOME/Downloads/model.safetensors was skipped during a ModelScan scan: 
Model Scan did not scan file

Expected behavior
A scan result is expected to be reported. The model file on huggingface is tagged as 'safe' by multiple scan services, including ModelScan, the result can be found here: https://protectai.com/insights/models/Qwen/Qwen3-0.6B/e6de91484c29aa9480d55605af694f39b081c455/files?blob-id=a0458bbfda764d86cf930900d5f0f933933da9a3&utm_source=huggingface

Is there anything else I should take care of when using the local modelscan command?

Screenshots
No screenshots but all info is obtained in the log above.

Environment (please complete the following information):

  • OS [Arch Linux with Kernel 6.14.9, x86]
  • Modelscan Version [e.g. 0.8.5]
  • ML Framework version [Unknown]
  • Describe the model serialization format that triggered this error: safetensor

Additional context
No more extra context.

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