Skip to content

Correct type hint for load? Processor or Union[PreTrainedTokenizer, PreTrainedTokenizerFast]?Β #696

@jrp2014

Description

@jrp2014

The load function in mlx_vlm/utils.py uses AutoProcessor.from_pretrained(...) internally (returning a Processor), but is explicitly type-hinted to return Union[PreTrainedTokenizer, PreTrainedTokenizerFast].

What is the correct annotation, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions