Skip to content

apr import fails with incorrect message when address doesn't exist #129

@alfredodeza

Description

@alfredodeza

Currently if you pass an invalid (404) address for import the error reports mentions invalid safetensors file which is not right:

 apr import hf://invalid/model --output invalid.apr
=== APR Import Pipeline ===

Source: hf:// (HuggingFace)
  Organization: invalid
  Repository: model
Output: invalid.apr

Architecture: Auto
Validation: Strict

Importing...

✗ Import failed
error: Validation failed: Invalid model format: HuggingFace model not found in cache. Download manually:
huggingface-cli download invalid/model model.safetensors
Or provide a local path to the SafeTensors file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions