NVIDIA-Merlin / core

Core Utilities for NVIDIA Merlin
Apache License 2.0
19 stars 14 forks source link

[BUG] runtime error: "ValueError: high is out of bounds for int32" #347

Open rogerioxavier opened 1 year ago

rogerioxavier commented 1 year ago

Bug description

When training the all recommender systems models with NVIDIA Merlin at: ... history = model.fit( train_data, epochs=3, batch_size=512, pre=predict_last ) ... runtime error: "ValueError: high is out of bounds for int32"

Steps/Code to reproduce bug

  1. I solved it like this: at file C:\Users\Xavier\AppData\Roaming\Python\Python310\site-packages\merlin\core\dispatch.py line 778 from: seeds = random_state.randint(0, 2 32, size=global_size) to: seeds = random_state.randint(0, 2 32, size=global_size, dtype='int64') # include ", dtype='int64'"

Expected behavior

After the change in line 778 setting the type, all models trained normally.

Environment details

Additional context

with pip install protobuf==3.20.0

karlhigley commented 1 year ago

@rogerioxavier It seems like you already have a solution for this issue, which sounds right to me. I'd be happy to review/merge a PR if you'd be willing to open one (so that you get credited as a contributor for the fix), or we can apply the fix ourselves if you'd rather we did it that way. Thoughts?