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

使用Openai_api_server.py,进行推理出现RuntimeError #35

Open
3 tasks done
xiaoToby opened this issue May 10, 2024 · 5 comments
Open
3 tasks done

使用Openai_api_server.py,进行推理出现RuntimeError #35

xiaoToby opened this issue May 10, 2024 · 5 comments
Labels

Comments

@xiaoToby
Copy link

提交前必须检查以下项目

  • 请确保使用的是仓库最新代码(git pull)
  • 已阅读项目文档FAQ章节并且已在Issue中对问题进行了搜索,没有找到相似问题和解决方案。
  • 第三方插件问题:例如llama.cpptext-generation-webui等,建议优先去对应的项目中查找解决方案。

问题类型

模型推理

基础模型

Llama-3-Chinese-8B-Instruct(指令模型)

操作系统

Linux

详细描述问题

# 请在此处粘贴运行代码(请粘贴在本代码块里)

image
为什么会出现这个问题和该如何解决这个问题

依赖情况(代码类问题务必提供)

# 请在此处粘贴依赖情况(请粘贴在本代码块里)

运行日志或截图

# 请在此处粘贴运行日志(请粘贴在本代码块里)
@xiaoToby
Copy link
Author

RuntimeError: probability tensor contains either inf, nan or element < 0

@ymcui @iMountTai

@ymcui
Copy link
Owner

ymcui commented May 10, 2024

不太清楚。colab上都能跑通,不知道你这个是因为版本问题还是什么总出错。
你参考我跑的colab记录,自行debug吧。

https://colab.research.google.com/drive/1mbHo-kAL_zP-JX8TIdLcYYidpTryw6KP?usp=sharing

@CodeDevMasterPro
Copy link

@xiaoToby 你好,我也遇到此类问题,请问你解决了吗?什么情况呢?又是如何解决呢?

@xiaoToby
Copy link
Author

xiaoToby commented May 24, 2024

image
@CodeDevMasterPro 可以参考一下

Copy link

github-actions bot commented Jun 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your consideration.

@github-actions github-actions bot added the stale label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants