Repository navigation
Fix compatibility with transformers 4.41+ and remove diffusers dependency - #25
nekoscratch01 wants to merge 2 commits into
Conversation
Replace deprecated transformers Cache API: - Cache.get_usable_length() -> Cache.get_seq_length() - Cache.seen_tokens -> use cache_length These APIs were removed in transformers 4.41+, causing AttributeError. Tested with transformers 4.55.0.
Extract OobleckDiagonalGaussianDistribution to local implementation. Only one small class was needed from diffusers. Extracting locally to: - Reduce dependency footprint - Avoid potential version conflicts - Maintain identical functionality Source: diffusers.models.autoencoders.autoencoder_oobleck
|
Thanks for your interest! |
|
Thanks for your response! I’m not sure why it doesn’t work on my end. Currently I am working with a project that tried to integrate Ming into our framework, and I suspected the issue might be related to the latest transformers version. |
I met the Problem when I tried to integrated this model: Version Conflict Loop
Current code cannot work with modern transformers versions due to a dependency conflict:
Errors encountered:
The Solution
1. Update to new transformers API
File: modeling_bailing_moe.py
This makes code compatible with transformers 4.41+
2. Remove diffusers dependency
Files: audio_tokenizer/oobleck_distribution.py (new), audio_tokenizer/modeling_audio_vae.py
Result