Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
main
Function · 0.80
test_stream_infer_with_session
Method · 0.80
test_chat_streaming
Method · 0.80
test_session_creation
Method · 0.80
Calls
1
get
Method · 0.45
Tested by
3
test_stream_infer_with_session
Method · 0.64
test_chat_streaming
Method · 0.64
test_session_creation
Method · 0.64