Fix the default arguments of bench_offline_throughput.py & simplify detokenizer manager (#2042)
This commit is contained in:
@@ -100,20 +100,6 @@ class DetokenizerManager:
|
||||
|
||||
if isinstance(recv_obj, BatchEmbeddingOut):
|
||||
# If it is embedding model, no detokenization is needed.
|
||||
self.send_to_tokenizer.send_pyobj(
|
||||
BatchEmbeddingOut(
|
||||
rids=recv_obj.rids,
|
||||
embeddings=recv_obj.embeddings,
|
||||
meta_info=recv_obj.meta_info,
|
||||
finished_reason=recv_obj.finished_reason,
|
||||
)
|
||||
)
|
||||
continue
|
||||
elif isinstance(recv_obj, UpdateWeightReqOutput):
|
||||
# If it is a weight update request, no detokenization is needed.
|
||||
self.send_to_tokenizer.send_pyobj(recv_obj)
|
||||
continue
|
||||
elif isinstance(recv_obj, GetMemPoolSizeReqOutput):
|
||||
self.send_to_tokenizer.send_pyobj(recv_obj)
|
||||
continue
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user