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

[Bug]: UserWarning: TypedStorage is deprecated. #13

Closed
1 task done
soulteary opened this issue Feb 2, 2024 · 0 comments
Closed
1 task done

[Bug]: UserWarning: TypedStorage is deprecated. #13

soulteary opened this issue Feb 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@soulteary
Copy link
Contributor

Is there an existing issue ? / 是否已有相关的 issue ?

  • I have searched, and there is no existing issue. / 我已经搜索过了,没有相关的 issue。

Describe the bug / 描述这个 bug

annoying log alerts

To Reproduce / 如何复现

python demo/hf_based_demo.py --model_path=../models/OpenBMB/MiniCPM-2B-sft-fp32/
/usr/local/lib/python3.10/dist-packages/torch/_utils.py:836: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.

Expected behavior / 期望的结果

No response

Screenshots / 截图

No response

Environment / 环境

nvidia docker 24.01-py3

Additional context / 其他信息

refs: pytorch/pytorch#97207

@soulteary soulteary added bug Something isn't working triage labels Feb 2, 2024
@a710128 a710128 removed the triage label Feb 2, 2024
SUDA-HLT-ywfang added a commit that referenced this issue Feb 4, 2024
fix: ignore typedstorage deprecated message #13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants