README: fix stale transformers version guidance (currently recommends a broken version window)

#14
by VemVemRu - opened

The README currently recommends transformers==4.54.1 and warns against >=4.56.0, but with the current code revision this guidance is inverted: it points users at the one version window that crashes, and away from the range that works.

Verified empirically (fresh environments, CPU import test of the custom classes, plus full GPU inference on 4.57.1):

transformers version result
4.52.4 and earlier ❌ ImportError: cannot import name 'layer_type_validation' from 'transformers.configuration_utils', raised by configuration_ouro.py (the helper was added to transformers later)
4.54.1 and 4.55.0 ❌ AttributeError: property 'key_cache' of 'UniversalTransformerCache' object has no setter. modeling_ouro.py assigns self.key_cache = [] in UniversalTransformerCache.__init__, but Cache.key_cache was a read-only property in this transformers window
4.57.1 βœ… config loads, cache initializes, generation runs correctly

This is consistent with the merged ouro-cache-fix credited in the acknowledgments ("resolved a critical compatibility issue with transformers>=4.56.0"). The ⚠️ warning appears to predate that fix and was never updated.

This is also the likely root cause of #12 (AttributeError on the Colab example): following the README's recommendation lands users in the 4.54 to 4.55 window that raises exactly that error. Related: #13 extends compatibility to transformers 5.x. If that merges, the guidance could become "use transformers>=4.56, including 5.x".

Note: Ouro-2.6B and the -Thinking model cards share this same warning text and would benefit from the same correction.

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

Sign up or log in to comment