Skip to content

运行colab里的配置出错ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject #924

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

Open
redstoneleo opened this issue Apr 4, 2025 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation stale The topic has been ignored for a long time ui UI improvements & issues

Comments

@redstoneleo
Copy link

在colab里的配置在Import Packages运行后出现

ValueError                                Traceback (most recent call last)
[<ipython-input-9-2c663eac4724>](https://localhost:8080/#) in <cell line: 0>()
      1 import torch
      2 
----> 3 torch._dynamo.config.cache_size_limit = 64
      4 torch._dynamo.config.suppress_errors = True
      5 torch.set_float32_matmul_precision("high")

15 frames
[/usr/local/lib/python3.11/dist-packages/numpy/random/_pickle.py](https://localhost:8080/#) in <module>
----> 1 from .mtrand import RandomState
      2 from ._philox import Philox
      3 from ._pcg64 import PCG64, PCG64DXSM
      4 from ._sfc64 import SFC64
      5 

numpy/random/mtrand.pyx in init numpy.random.mtrand()

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
@fumiama
Copy link
Member

fumiama commented Apr 23, 2025

也许是numpy版本问题。

@fumiama fumiama added documentation Improvements or additions to documentation bug Something isn't working ui UI improvements & issues labels Apr 23, 2025
@github-actions github-actions bot added the stale The topic has been ignored for a long time label May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation stale The topic has been ignored for a long time ui UI improvements & issues
Projects
None yet
Development

No branches or pull requests

2 participants