huggingface.js icon indicating copy to clipboard operation
huggingface.js copied to clipboard

the `ProcessorMixin` class is not found in the huggingface.js library

Open yusuf-eren opened this issue 7 months ago • 4 comments

Hi,

I was migrating one of the codebase to TypeScript and found out that ProcessorMixin class is not implemented yet in huggingface. Or am I missing it?

yusuf-eren avatar Jul 14 '25 12:07 yusuf-eren

Which codebase are you referring to?

julien-c avatar Jul 14 '25 15:07 julien-c

It is python version. https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L505

yusuf-eren avatar Jul 14 '25 15:07 yusuf-eren

maybe cc @xenova, not sure if it makes sense in JS or not, tbh

julien-c avatar Jul 14 '25 15:07 julien-c

@yusuf-eren Could you maybe explain your use-case? For example, if you're trying to load and run a certain processor in typescript, you should be able to with Transformers.js.

xenova avatar Jul 14 '25 18:07 xenova