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

Method session

lmdeploy/pipeline.py:244–246  ·  view source on GitHub ↗

Create a new session.

(self)

Source from the content-addressed store, hash-verified

242 return session
243
244 def session(self) -> Session:
245 """Create a new session."""
246 return self.session_mgr.get()
247
248 def get_reward_score(self, input_ids: list) -> list[float]:
249 """Get reward score.

Callers 4

mainFunction · 0.80
test_chat_streamingMethod · 0.80
test_session_creationMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 3

test_chat_streamingMethod · 0.64
test_session_creationMethod · 0.64