OpenBMB / ToolBench

[ICLR'24 spotlight] An open platform for training, serving, and evaluating large language model for tool learning.
https://openbmb.github.io/ToolBench/
Apache License 2.0
4.62k stars 397 forks source link

[BUG] function `parse` of class `ToolLLaMA` #238

Open a171232886 opened 4 months ago

a171232886 commented 4 months ago

The code of toolbench/inference/LLM/tool_llama_model.py#L110:

decoded_token_len = len(self.tokenizer(predictions))

may be ?

decoded_token_len = len(self.tokenizer(predictions)['input_ids'])