voidful / TextRL

Implementation of ChatGPT RLHF (Reinforcement Learning with Human Feedback) on any generation model in huggingface's transformer (blommz-176B/bloom/gpt/bart/T5/MetaICL)
MIT License
539 stars 60 forks source link

AttributeError: module 'numpy' has no attribute '_no_nep50_warning' #7

Closed GrahamboJangles closed 1 year ago

GrahamboJangles commented 1 year ago

https://colab.research.google.com/drive/1bXTOz1yet03xwAHeriV4pbZjR_6vDXTR?usp=sharing

idk what I'm doing wrong

AttributeError                            Traceback (most recent call last)
[<ipython-input-7-4461cfac8857>](https://localhost:8080/#) in <module>
      1 import pfrl
      2 from textrl import TextRLEnv, TextRLActor
----> 3 from transformers import BloomTokenizerFast
      4 from petals import DistributedBloomForCausalLM
      5 

29 frames
[/usr/local/lib/python3.8/dist-packages/numpy/__init__.py](https://localhost:8080/#) in __getattr__(attr)
    311             x = ones(2, dtype=float32)
    312             if not abs(x.dot(x) - float32(2.0)) < 1e-5:
--> 313                 raise AssertionError()
    314         except AssertionError:
    315             msg = ("The current Numpy installation ({!r}) fails to "

AttributeError: module 'numpy' has no attribute '_no_nep50_warning'
voidful commented 1 year ago

It seems to be an numpy related issue