Scaffolding MajorityVote does not support negatives numbers result.
Scaffolding MajorityVote does not support negatives numbers result.
Majority vote is using .isdigit(), which doesn't work with dash/negative sign: https://github.com/NVIDIA/TensorRT-LLM/blob/abcb0486dc872417259ebb1675dd0607506c8503/tensorrt_llm/scaffolding/math_utils.py#L78C33-L78C42
An example of negative answers is in MATH500 with the following problem:
- "unique_id": "test/intermediate_algebra/134.json"
- "answer": "-50",
Can you share a sample run on how to repro it? I would like to work on it @WeiHaocheng @rzhao01
Can you share a sample run on how to repro it? I would like to work on it @WeiHaocheng @rzhao01
Thank you! Assign to you.
You can initiate scaffoldingLlm with MajorityVoteController and run it with as prompt which is a mathematical problem with a negative answer such as "Solve for x: 6x + 5 = 4x - 7". Then you can reproduce the issue.
After fixing it.
You can add a test to here
Hi @ankitmaurya001 ~ May I ask if your progress is still going smoothly? If you encounter some difficult problems during the building, maybe you can try downloading the pre-compiled image directly from my dockerhub.
https://hub.docker.com/r/weihaocheng2/tensorrt_llm
Feel free to contact me if you got any problem.
Thanks @WeiHaocheng shall get back to you in case of any problem.
Hi, I wanted to know if this issue is still open? If yes, can I take it up?
Hi, I wanted to know if this issue is still open? If yes, can I take it up?
Hi~ I think this issue is still exists, assign to you.
Hi @WeiHaocheng, so I have raised a PR for this issue. Waiting for the code review.
Hi @WeiHaocheng could please merge the changes. I have raised the PRs for it.