MCPcopy Index your code
hub / github.com/ModelTC/LightLLM / format

Method format

lightllm/utils/log_utils.py:24–29  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

22 logging.Formatter.__init__(self, fmt, datefmt)
23
24 def format(self, record):
25 msg = logging.Formatter.format(self, record)
26 if record.message != "":
27 parts = msg.split(record.message)
28 msg = msg.replace("\n", "\r\n" + parts[0])
29 return msg
30
31
32_root_logger = logging.getLogger("lightllm")

Callers 15

create_shmFunction · 0.80
quantize_int4Function · 0.80
test_int4Function · 0.80
test_model_layerFunction · 0.80
test_int8Function · 0.80
test_model_layerFunction · 0.80
test_int8Function · 0.80
test_model_layerFunction · 0.80
encodeMethod · 0.80
encodeMethod · 0.80
encodeMethod · 0.80

Calls

no outgoing calls

Tested by 6

test_int4Function · 0.64
test_model_layerFunction · 0.64
test_int8Function · 0.64
test_model_layerFunction · 0.64
test_int8Function · 0.64
test_model_layerFunction · 0.64