MCPcopy Create free account
hub / github.com/EverMind-AI/MSA / enable_explicit_format

Function enable_explicit_format

src/utils/common.py:93–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 import logging
92 import transformers
93 def enable_explicit_format():
94 handlers = transformers.utils.logging._get_library_root_logger().handlers
95
96 for handler in handlers:
97 formatter = logging.Formatter("[(%(levelname)s) %(pathname)s:%(lineno)s ] %(asctime)s >> %(message)s")
98 handler.setFormatter(formatter)
99 transformers.utils.logging.enable_explicit_format = enable_explicit_format
100
101def print_model_stats(model):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected