MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / encode

Method encode

benchmarks/benchmark_mtp.py:42–43  ·  view source on GitHub ↗
(self, text: str, add_special_tokens: bool = False)

Source from the content-addressed store, hash-verified

40
41class FakeTokenizer:
42 def encode(self, text: str, add_special_tokens: bool = False):
43 return []
44
45
46def send_one_batch(base_url, max_concurrency, input_requests, disable_tqdm):

Callers 15

_get_hash_slotMethod · 0.45
select_writerMethod · 0.45
serializeMethod · 0.45
serializeMethod · 0.45
_tokenizeMethod · 0.45
generateMethod · 0.45
run_control_methodMethod · 0.45
rearrange_expertsMethod · 0.45
mainFunction · 0.45
__init__Method · 0.45
verify_tokenMethod · 0.45
_prepare_generatorsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected