Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for +: 'int' and 'dict' #23

Open
AIR-hl opened this issue Aug 3, 2024 · 2 comments
Open

TypeError: unsupported operand type(s) for +: 'int' and 'dict' #23

AIR-hl opened this issue Aug 3, 2024 · 2 comments

Comments

@AIR-hl
Copy link

AIR-hl commented Aug 3, 2024

我在 TruthfulQA 上评估 SimPO, 但出现了下面的报错:TypeError: unsupported operand type(s) for +: 'int' and 'dict'.

image

执行命令如下:

bash scripts/run_job_base.sh ../Mistral-7B-Base-SFT-SimPO 1 1 logs/Mistral-7B-Base-SFT-SimPO truthfulqa ppl -1
@Ming0310
Copy link

Ming0310 commented Oct 11, 2024

我在使用ppl模式测试piqa时出现了类似的报错,请问怎么解决呢?
命令如下:
bash scripts/run_job_base.sh /share/llama-7b 1 1 test piqa ppl -1
错误信息:

    process_outputs = [[-sum(inner) for inner in outer] for outer in result]
TypeError: unsupported operand type(s) for +: 'int' and 'str'

@AIR-hl
Copy link
Author

AIR-hl commented Oct 11, 2024

我在使用ppl模式测试piqa时出现了类似的报错,请问怎么解决呢? 命令如下: bash scripts/run_job_base.sh /share/llama-7b 1 1 test piqa ppl -1 错误信息:

    process_outputs = [[-sum(inner) for inner in outer] for outer in result]
TypeError: unsupported operand type(s) for +: 'int' and 'str'

@Ming0310 这个库感觉也不怎么维护了,去用lm-evaluation-harness吧,好用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants