MCPcopy Create free account
hub / github.com/MLSysU/TD-Pipe / get_len

Method get_len

TD_Pipe/sequence.py:172–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

170 self.data.append_token_id(token_id, logprobs[token_id])
171
172 def get_len(self) -> int:
173 return self.data.get_len()
174
175 def get_prompt_len(self) -> int:
176 return self.data.get_prompt_len()

Callers 5

get_beam_search_scoreMethod · 0.95
update_modeMethod · 0.45
_scheduleMethod · 0.45
_check_stopMethod · 0.45
_prepare_decodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected