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

[QST]Follow the example 'getting started movies' to execute an error. #1077

Open
jianhuaz opened this issue Oct 19, 2023 · 3 comments
Open
Labels
question Further information is requested

Comments

@jianhuaz
Copy link

❓ Questions & Help

Details

Merlin-PyTorch

batch : ({'userId': tensor([13849, 1743, 35896, ..., 339, 79530, 88722], device='cuda:0'), 'movieId': tensor([ 890, 2922, 780, ..., 9143, 2444, 813], device='cuda:0'), 'genres__values': tensor([ 4, 3, 10, ..., 17, 15, 12], device='cuda:0'), 'genres__offsets': tensor([ 0, 2, 6, ..., 89550, 89555, 89557], device='cuda:0',
dtype=torch.int32)}, tensor([1., 1., 0., ..., 1., 1., 1.], device='cuda:0'))

target_columns : ['userId', 'movieId', 'genres']

Why are ‘genres_values‘ and ’genres_offsets‘ in batch instead of ’genres‘?

image

@jianhuaz jianhuaz added the question Further information is requested label Oct 19, 2023
@rnyak
Copy link
Contributor

rnyak commented Dec 5, 2023

@jianhuaz Because genres is a ragged list input feature, and we represent ragged tensors with __values and __offsets.

how did you install Merlin libraries? are you using a docker image to run our examples?

@CarloNicolini
Copy link

This issue is still present. I have installed the Merlin libraries locally and it works up exactly to that point.

I believe this problem could be solved by writing a different transform function rather than the standard one present at https://github.com/NVIDIA-Merlin/NVTabular/blob/main/nvtabular/framework_utils/torch/utils.py

Any update on this?

@yueming-zhang
Copy link

I am getting the same error using PyTorch container as shown below. I like the framework but this type of error discourage new users from the getgo.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants