MCPcopy Create free account
hub / github.com/modelscope/modelscope / hot_fix_transformers

Function hot_fix_transformers

tests/run.py:574–579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

572
573
574def hot_fix_transformers():
575 try:
576 from transformers import modeling_utils
577 modeling_utils.ALL_PARALLEL_STYLES = {}
578 except AttributeError or ImportError:
579 pass
580
581
582if __name__ == '__main__':

Callers 1

run.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…