Add preprocessor_config.json for Transformers

#1
by bezzam HF Staff - opened

Hello I'm from the Transformers team at Hugging Face! We're working on adding native Yue2 support to Transformers πŸ€—

This PR adds the feature extractor config used by the native Transformers integration of the YuE2 VAE (https://github.com/huggingface/transformers/pull/50107), so that AutoFeatureExtractor.from_pretrained("m-a-p/YuE2-Vae") works.

It only zero-pads batches of 48 kHz stereo audio to the same length (EncodecFeatureExtractor). It is not read by modeling_vae.py, so it does not change the behavior of the existing remote code.

NOTE: merging can wait until the Transformers PR is done πŸ€—

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment