[Bug] 使用internevo训练,转换成hf模型用opencompass测试时候有一定概率会nan

Open
#266 2 comments 0 reactions 2 assignees View on GitHub

@SolenoidWGT is already working on this.

Since Jul 9, 2024.

Assessment

This issue has not been assessed yet.

Description

bug
Describe the bug

使用internevo训练,转换成hf模型用opencompass测试ppl的时候有一定概率会nan,opencompass默认是用fp16测试的,是因为这个原因导致的嘛?切换成bf16后这个问题能够解决,但是其他的hf模型并没有这个问题,请问和use_fp32_norm有关嘛,训练用的bf16

Environment

官方镜像

Other information

No response

Dominant language
Python
Stars
420
Forks
67
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from InternLM/InternEvo

All issues in InternLM/InternEvo

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.