MCPcopy
hub / github.com/InternLM/lmdeploy / new_session

Method new_session

lmdeploy/profiler.py:37–40  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

35 self.percentages = percentages
36
37 def new_session(self, *args, **kwargs):
38 sess = Session(*args, **kwargs)
39 self.sessions.append(sess)
40 return sess
41
42 def start(self):
43 self.t_start = time.perf_counter()

Callers 3

process_requestMethod · 0.80
process_requestMethod · 0.80
process_requestMethod · 0.80

Calls 2

SessionClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected