np.int deprecation issue

#5
by whiteg671 - opened

The np.int type has gone from being deprecated when this repository was released to now unsupported. Running the model results in an exception in the following script:

lib/python3.10/site-packages/transformers/models/deberta_v2/modeling_deberta_v2.py", line 538, in make_log_bucket_position
bucket_pos = np.where(abs_pos <= mid, relative_pos, log_pos * sign).astype(np.int)

The astype input needs to be changed to either "int" or "np.int_" as shown in the np release below.

https://numpy.org/doc/stable/release/1.20.0-notes.html#deprecations

Sign up or log in to comment