MCPcopy Create free account
hub / github.com/InternScience/SciReason / wait

Method wait

opencompass/models/lightllm_api.py:167–172  ·  view source on GitHub ↗

Wait till the next query can be sent. Applicable in both single-thread and multi-thread environments.

(self)

Source from the content-addressed store, hash-verified

165 'details.')
166
167 def wait(self):
168 """Wait till the next query can be sent.
169
170 Applicable in both single-thread and multi-thread environments.
171 """
172 return self.token_bucket.get_token()
173
174 def get_token_len(self, prompt: str) -> int:
175 """Get lengths of the tokenized string. Only English and Chinese

Callers 3

_generateMethod · 0.95
_get_pplMethod · 0.95
_generateMethod · 0.45

Calls 1

get_tokenMethod · 0.80

Tested by

no test coverage detected